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
688 ac_precious_vars
='build_alias
699 # Initialize some variables set by options.
701 ac_init_version
=false
702 # The variables have the same names as the options, with
703 # dashes changed to underlines.
711 program_transform_name
=s
,x
,x
,
719 # Installation directory options.
720 # These are left unexpanded so users can "make install exec_prefix=/foo"
721 # and all the variables that are supposed to be based on exec_prefix
722 # by default will actually change.
723 # Use braces instead of parens because sh, perl, etc. also accept them.
724 # (The list follows the same order as the GNU Coding Standards.)
725 bindir
='${exec_prefix}/bin'
726 sbindir
='${exec_prefix}/sbin'
727 libexecdir
='${exec_prefix}/libexec'
728 datarootdir
='${prefix}/share'
729 datadir
='${datarootdir}'
730 sysconfdir
='${prefix}/etc'
731 sharedstatedir
='${prefix}/com'
732 localstatedir
='${prefix}/var'
733 includedir
='${prefix}/include'
734 oldincludedir
='/usr/include'
735 docdir
='${datarootdir}/doc/${PACKAGE}'
736 infodir
='${datarootdir}/info'
741 libdir
='${exec_prefix}/lib'
742 localedir
='${datarootdir}/locale'
743 mandir
='${datarootdir}/man'
749 # If the previous option needs an argument, assign it.
750 if test -n "$ac_prev"; then
751 eval $ac_prev=\
$ac_option
757 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
761 # Accept the important Cygnus configure options, so we can diagnose typos.
763 case $ac_dashdash$ac_option in
767 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
769 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
772 -build |
--build |
--buil |
--bui |
--bu)
773 ac_prev
=build_alias
;;
774 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
775 build_alias
=$ac_optarg ;;
777 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
778 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
779 ac_prev
=cache_file
;;
780 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
781 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
782 cache_file
=$ac_optarg ;;
785 cache_file
=config.cache
;;
787 -datadir |
--datadir |
--datadi |
--datad)
789 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
790 datadir
=$ac_optarg ;;
792 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
793 |
--dataroo |
--dataro |
--datar)
794 ac_prev
=datarootdir
;;
795 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
796 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
797 datarootdir
=$ac_optarg ;;
799 -disable-* |
--disable-*)
800 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
803 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
804 { (exit 1); exit 1; }; }
805 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
806 eval enable_
$ac_feature=no
;;
808 -docdir |
--docdir |
--docdi |
--doc |
--do)
810 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
813 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
815 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
818 -enable-* |
--enable-*)
819 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
822 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
823 { (exit 1); exit 1; }; }
824 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
825 eval enable_
$ac_feature=\
$ac_optarg ;;
827 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
828 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
829 |
--exec |
--exe |
--ex)
830 ac_prev
=exec_prefix
;;
831 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
832 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
833 |
--exec=* |
--exe=* |
--ex=*)
834 exec_prefix
=$ac_optarg ;;
836 -gas |
--gas |
--ga |
--g)
837 # Obsolete; use --with-gas.
840 -help |
--help |
--hel |
--he |
-h)
842 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
843 ac_init_help
=recursive
;;
844 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
845 ac_init_help
=short
;;
847 -host |
--host |
--hos |
--ho)
848 ac_prev
=host_alias
;;
849 -host=* |
--host=* |
--hos=* |
--ho=*)
850 host_alias
=$ac_optarg ;;
852 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
854 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
856 htmldir
=$ac_optarg ;;
858 -includedir |
--includedir |
--includedi |
--included |
--include \
859 |
--includ |
--inclu |
--incl |
--inc)
860 ac_prev
=includedir
;;
861 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
862 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
863 includedir
=$ac_optarg ;;
865 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
867 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
868 infodir
=$ac_optarg ;;
870 -libdir |
--libdir |
--libdi |
--libd)
872 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
875 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
876 |
--libexe |
--libex |
--libe)
877 ac_prev
=libexecdir
;;
878 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
879 |
--libexe=* |
--libex=* |
--libe=*)
880 libexecdir
=$ac_optarg ;;
882 -localedir |
--localedir |
--localedi |
--localed |
--locale)
884 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
885 localedir
=$ac_optarg ;;
887 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
888 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
889 ac_prev
=localstatedir
;;
890 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
891 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
892 localstatedir
=$ac_optarg ;;
894 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
896 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
900 # Obsolete; use --without-fp.
903 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
904 |
--no-cr |
--no-c |
-n)
907 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
908 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
911 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
912 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
913 |
--oldin |
--oldi |
--old |
--ol |
--o)
914 ac_prev
=oldincludedir
;;
915 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
916 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
917 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
918 oldincludedir
=$ac_optarg ;;
920 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
922 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
925 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
926 |
--program-pre |
--program-pr |
--program-p)
927 ac_prev
=program_prefix
;;
928 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
929 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
930 program_prefix
=$ac_optarg ;;
932 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
933 |
--program-suf |
--program-su |
--program-s)
934 ac_prev
=program_suffix
;;
935 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
936 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
937 program_suffix
=$ac_optarg ;;
939 -program-transform-name |
--program-transform-name \
940 |
--program-transform-nam |
--program-transform-na \
941 |
--program-transform-n |
--program-transform- \
942 |
--program-transform |
--program-transfor \
943 |
--program-transfo |
--program-transf \
944 |
--program-trans |
--program-tran \
945 |
--progr-tra |
--program-tr |
--program-t)
946 ac_prev
=program_transform_name
;;
947 -program-transform-name=* |
--program-transform-name=* \
948 |
--program-transform-nam=* |
--program-transform-na=* \
949 |
--program-transform-n=* |
--program-transform-=* \
950 |
--program-transform=* |
--program-transfor=* \
951 |
--program-transfo=* |
--program-transf=* \
952 |
--program-trans=* |
--program-tran=* \
953 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
954 program_transform_name
=$ac_optarg ;;
956 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
958 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
961 -psdir |
--psdir |
--psdi |
--psd |
--ps)
963 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
966 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
967 |
-silent |
--silent |
--silen |
--sile |
--sil)
970 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
972 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
974 sbindir
=$ac_optarg ;;
976 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
977 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
978 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
980 ac_prev
=sharedstatedir
;;
981 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
982 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
983 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
985 sharedstatedir
=$ac_optarg ;;
987 -site |
--site |
--sit)
989 -site=* |
--site=* |
--sit=*)
992 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
994 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
997 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
998 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
999 ac_prev
=sysconfdir
;;
1000 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1001 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1002 sysconfdir
=$ac_optarg ;;
1004 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1005 ac_prev
=target_alias
;;
1006 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1007 target_alias
=$ac_optarg ;;
1009 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1012 -version |
--version |
--versio |
--versi |
--vers |
-V)
1013 ac_init_version
=: ;;
1016 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1019 { echo "$as_me: error: invalid package name: $ac_package" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1022 eval with_
$ac_package=\
$ac_optarg ;;
1024 -without-* |
--without-*)
1025 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1028 { echo "$as_me: error: invalid package name: $ac_package" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1031 eval with_
$ac_package=no
;;
1034 # Obsolete; use --with-x.
1037 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1038 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1039 ac_prev
=x_includes
;;
1040 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1041 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1042 x_includes
=$ac_optarg ;;
1044 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1045 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1046 ac_prev
=x_libraries
;;
1047 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1048 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1049 x_libraries
=$ac_optarg ;;
1051 -*) { echo "$as_me: error: unrecognized option: $ac_option
1052 Try \`$0 --help' for more information." >&2
1053 { (exit 1); exit 1; }; }
1057 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1060 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1061 { (exit 1); exit 1; }; }
1062 eval $ac_envvar=\
$ac_optarg
1063 export $ac_envvar ;;
1066 # FIXME: should be removed in autoconf 3.0.
1067 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1068 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1069 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1070 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1076 if test -n "$ac_prev"; then
1077 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1078 { echo "$as_me: error: missing argument to $ac_option" >&2
1079 { (exit 1); exit 1; }; }
1082 # Be sure to have absolute directory names.
1083 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1084 datadir sysconfdir sharedstatedir localstatedir includedir \
1085 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1086 libdir localedir mandir
1088 eval ac_val
=\$
$ac_var
1090 [\\/$
]* | ?
:[\\/]* ) continue;;
1091 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1093 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1094 { (exit 1); exit 1; }; }
1097 # There might be people who depend on the old broken behavior: `$host'
1098 # used to hold the argument of --host etc.
1099 # FIXME: To remove some day.
1102 target
=$target_alias
1104 # FIXME: To remove some day.
1105 if test "x$host_alias" != x
; then
1106 if test "x$build_alias" = x
; then
1107 cross_compiling
=maybe
1108 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1109 If a cross compiler is detected then cross compile mode will be used." >&2
1110 elif test "x$build_alias" != "x$host_alias"; then
1116 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1118 test "$silent" = yes && exec 6>/dev
/null
1121 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1122 ac_ls_di
=`ls -di .` &&
1123 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1124 { echo "$as_me: error: Working directory cannot be determined" >&2
1125 { (exit 1); exit 1; }; }
1126 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1127 { echo "$as_me: error: pwd does not report name of working directory" >&2
1128 { (exit 1); exit 1; }; }
1131 # Find the source files, if location was not specified.
1132 if test -z "$srcdir"; then
1133 ac_srcdir_defaulted
=yes
1134 # Try the directory containing this script, then the parent directory.
1135 ac_confdir
=`$as_dirname -- "$0" ||
1136 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1137 X"$0" : 'X\(//\)[^/]' \| \
1138 X"$0" : 'X\(//\)$' \| \
1139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1159 if test ! -r "$srcdir/$ac_unique_file"; then
1163 ac_srcdir_defaulted
=no
1165 if test ! -r "$srcdir/$ac_unique_file"; then
1166 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1167 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1168 { (exit 1); exit 1; }; }
1170 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1172 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1173 { (exit 1); exit 1; }; }
1175 # When building in place, set srcdir=.
1176 if test "$ac_abs_confdir" = "$ac_pwd"; then
1179 # Remove unnecessary trailing slashes from srcdir.
1180 # Double slashes in file names in object file debugging info
1181 # mess up M-x gdb in Emacs.
1183 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1185 for ac_var
in $ac_precious_vars; do
1186 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1187 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1188 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1189 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1193 # Report the --help message.
1195 if test "$ac_init_help" = "long"; then
1196 # Omit some internal or obsolete options to make the list less imposing.
1197 # This message is too long to be a string in the A/UX 3.1 sh.
1199 \`configure' configures this package to adapt to many kinds of systems.
1201 Usage: $0 [OPTION]... [VAR=VALUE]...
1203 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1204 VAR=VALUE. See below for descriptions of some of the useful variables.
1206 Defaults for the options are specified in brackets.
1209 -h, --help display this help and exit
1210 --help=short display options specific to this package
1211 --help=recursive display the short help of all the included packages
1212 -V, --version display version information and exit
1213 -q, --quiet, --silent do not print \`checking...' messages
1214 --cache-file=FILE cache test results in FILE [disabled]
1215 -C, --config-cache alias for \`--cache-file=config.cache'
1216 -n, --no-create do not create output files
1217 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1219 Installation directories:
1220 --prefix=PREFIX install architecture-independent files in PREFIX
1221 [$ac_default_prefix]
1222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1225 By default, \`make install' will install all the files in
1226 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1227 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1228 for instance \`--prefix=\$HOME'.
1230 For better control, use the options below.
1232 Fine tuning of the installation directories:
1233 --bindir=DIR user executables [EPREFIX/bin]
1234 --sbindir=DIR system admin executables [EPREFIX/sbin]
1235 --libexecdir=DIR program executables [EPREFIX/libexec]
1236 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1237 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1238 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1239 --libdir=DIR object code libraries [EPREFIX/lib]
1240 --includedir=DIR C header files [PREFIX/include]
1241 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1242 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1243 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1244 --infodir=DIR info documentation [DATAROOTDIR/info]
1245 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1246 --mandir=DIR man documentation [DATAROOTDIR/man]
1247 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1248 --htmldir=DIR html documentation [DOCDIR]
1249 --dvidir=DIR dvi documentation [DOCDIR]
1250 --pdfdir=DIR pdf documentation [DOCDIR]
1251 --psdir=DIR ps documentation [DOCDIR]
1257 --build=BUILD configure
for building on BUILD
[guessed
]
1258 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1262 if test -n "$ac_init_help"; then
1267 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1268 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1269 --enable-smb enable possibly-buggy SMB printer default
=yes
1270 --disable-smb disable possibly-buggy SMB printer
1271 --enable-ipv6 enable ipv6
(with ipv4
) support
1272 --disable-ipv6 disable ipv6 support
1275 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1276 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1277 --without-gcc don
't use gcc
1278 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1279 --without-smi don't link with libsmi
1280 --with-user=USERNAME drop privileges by default to USERNAME
1281 --with-chroot=DIRECTORY when dropping privileges
, chroot to DIRECTORY
1282 --with-crypto[=PATH
] use SSLeay libcrypto
(located
in directory PATH
, if
1283 supplied
).
[default
=yes, if available
]
1285 Some influential environment variables
:
1286 CC C compiler
command
1287 CFLAGS C compiler flags
1288 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1289 nonstandard directory
<lib dir
>
1290 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1291 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1292 you have headers
in a nonstandard directory
<include dir
>
1295 Use these variables to override the choices made by
`configure' or to help
1296 it to find libraries and programs with nonstandard names/locations.
1302 if test "$ac_init_help" = "recursive"; then
1303 # If there are subdirs, report their specific --help.
1304 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1305 test -d "$ac_dir" || continue
1309 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1311 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1312 # A ".." for each directory in $ac_dir_suffix.
1313 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1314 case $ac_top_builddir_sub in
1315 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1316 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319 ac_abs_top_builddir=$ac_pwd
1320 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1321 # for backward compatibility:
1322 ac_top_builddir=$ac_top_build_prefix
1325 .) # We are building in place.
1327 ac_top_srcdir=$ac_top_builddir_sub
1328 ac_abs_top_srcdir=$ac_pwd ;;
1329 [\\/]* | ?:[\\/]* ) # Absolute name.
1330 ac_srcdir=$srcdir$ac_dir_suffix;
1331 ac_top_srcdir=$srcdir
1332 ac_abs_top_srcdir=$srcdir ;;
1334 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1335 ac_top_srcdir=$ac_top_build_prefix$srcdir
1336 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1338 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1340 cd "$ac_dir" || { ac_status=$?; continue; }
1341 # Check for guested configure.
1342 if test -f "$ac_srcdir/configure.gnu"; then
1344 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1345 elif test -f "$ac_srcdir/configure"; then
1347 $SHELL "$ac_srcdir/configure" --help=recursive
1349 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1351 cd "$ac_pwd" || { ac_status=$?; break; }
1355 test -n "$ac_init_help" && exit $ac_status
1356 if $ac_init_version; then
1359 generated by GNU Autoconf 2.61
1361 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1362 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1363 This configure script is free software; the Free Software Foundation
1364 gives unlimited permission to copy, distribute and modify it.
1368 cat >config.log <<_ACEOF
1369 This file contains any messages produced by compilers while
1370 running configure, to aid debugging if configure makes a mistake.
1372 It was created by $as_me, which was
1373 generated by GNU Autoconf 2.61. Invocation command line was
1385 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1386 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1387 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1388 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1389 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1391 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1392 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1394 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1395 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1396 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1397 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1398 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1399 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1400 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408 test -z "$as_dir" && as_dir=.
1409 echo "PATH: $as_dir"
1425 # Keep a trace of the command line.
1426 # Strip out --no-create and --no-recursion so they do not pile up.
1427 # Strip out --silent because we don't want to record it for future runs.
1428 # Also quote any args containing shell meta-characters.
1429 # Make two passes to allow for proper duplicate-argument suppression.
1433 ac_must_keep_next=false
1439 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1441 | -silent | --silent | --silen | --sile | --sil)
1444 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1447 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1449 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1450 if test $ac_must_keep_next = true; then
1451 ac_must_keep_next=false # Got value, back to normal.
1454 *=* | --config-cache | -C | -disable-* | --disable-* \
1455 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1456 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1457 | -with-* | --with-* | -without-* | --without-* | --x)
1458 case "$ac_configure_args0 " in
1459 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462 -* ) ac_must_keep_next=true ;;
1465 ac_configure_args="$ac_configure_args '$ac_arg'"
1470 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1471 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1473 # When interrupted or exit'd, cleanup temporary files, and complete
1474 # config.log. We remove comments because anyway the quotes in there
1475 # would cause problems or look ugly.
1476 # WARNING: Use '\'' to represent an apostrophe within the trap.
1477 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1478 trap 'exit_status=$?
1479 # Save into config.log some information that might help in debugging.
1484 ## ---------------- ##
1485 ## Cache variables. ##
1486 ## ---------------- ##
1489 # The following way of writing the cache mishandles newlines in values,
1491 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1492 eval ac_val=\$$ac_var
1496 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1497 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500 _ | IFS | as_nl) ;; #(
1501 *) $as_unset $ac_var ;;
1506 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1507 *${as_nl}ac_space=\ *)
1509 "s/'\''/'\''\\\\'\'''\''/g;
1510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1521 ## ----------------- ##
1522 ## Output variables. ##
1523 ## ----------------- ##
1526 for ac_var in $ac_subst_vars
1528 eval ac_val=\$$ac_var
1530 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1532 echo "$ac_var='\''$ac_val'\''"
1536 if test -n "$ac_subst_files"; then
1538 ## ------------------- ##
1539 ## File substitutions. ##
1540 ## ------------------- ##
1543 for ac_var in $ac_subst_files
1545 eval ac_val=\$$ac_var
1547 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1549 echo "$ac_var='\''$ac_val'\''"
1554 if test -s confdefs.h; then
1564 test "$ac_signal" != 0 &&
1565 echo "$as_me: caught signal $ac_signal"
1566 echo "$as_me: exit $exit_status"
1568 rm -f core *.core core.conftest.* &&
1569 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572 for ac_signal in 1 2 13 15; do
1573 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1577 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1578 rm -f -r conftest* confdefs.h
1580 # Predefined preprocessor variables.
1582 cat >>confdefs.h <<_ACEOF
1583 #define PACKAGE_NAME "$PACKAGE_NAME"
1587 cat >>confdefs.h <<_ACEOF
1588 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1592 cat >>confdefs.h <<_ACEOF
1593 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1597 cat >>confdefs.h <<_ACEOF
1598 #define PACKAGE_STRING "$PACKAGE_STRING"
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1607 # Let the site file select an alternate cache file if it wants to.
1608 # Prefer explicitly selected file to automatically selected ones.
1609 if test -n "$CONFIG_SITE"; then
1610 set x "$CONFIG_SITE"
1611 elif test "x$prefix" != xNONE; then
1612 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1614 set x "$ac_default_prefix/share/config.site" \
1615 "$ac_default_prefix/etc/config.site"
1620 if test -r "$ac_site_file"; then
1621 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1622 echo "$as_me: loading site script $ac_site_file" >&6;}
1623 sed 's/^/| /' "$ac_site_file" >&5
1628 if test -r "$cache_file"; then
1629 # Some versions of bash will fail to source /dev/null (special
1630 # files actually), so we avoid doing that.
1631 if test -f "$cache_file"; then
1632 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1633 echo "$as_me: loading cache $cache_file" >&6;}
1635 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1636 *) . "./$cache_file";;
1640 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1641 echo "$as_me: creating cache $cache_file" >&6;}
1645 # Check that the precious variables saved in the cache have kept the same
1647 ac_cache_corrupted=false
1648 for ac_var in $ac_precious_vars; do
1649 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1650 eval ac_new_set=\$ac_env_${ac_var}_set
1651 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1652 eval ac_new_val=\$ac_env_${ac_var}_value
1653 case $ac_old_set,$ac_new_set in
1655 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1656 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1657 ac_cache_corrupted=: ;;
1659 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1660 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1661 ac_cache_corrupted=: ;;
1664 if test "x$ac_old_val" != "x$ac_new_val"; then
1665 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1666 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1667 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1668 echo "$as_me: former value
: $ac_old_val" >&2;}
1669 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1670 echo "$as_me: current value
: $ac_new_val" >&2;}
1671 ac_cache_corrupted=:
1674 # Pass precious variables to config.status.
1675 if test "$ac_new_set" = set; then
1677 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1678 *) ac_arg=$ac_var=$ac_new_val ;;
1680 case " $ac_configure_args " in
1681 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1682 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1686 if $ac_cache_corrupted; then
1687 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1688 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1689 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1690 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1691 { (exit 1); exit 1; }; }
1711 ac_cpp='$CPP $CPPFLAGS'
1712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1719 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1720 if test -f "$ac_dir/install-sh"; then
1722 ac_install_sh="$ac_aux_dir/install-sh -c"
1724 elif test -f "$ac_dir/install.sh"; then
1726 ac_install_sh="$ac_aux_dir/install.sh -c"
1728 elif test -f "$ac_dir/shtool"; then
1730 ac_install_sh="$ac_aux_dir/shtool install -c"
1734 if test -z "$ac_aux_dir"; then
1735 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1736 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1737 { (exit 1); exit 1; }; }
1740 # These three variables are undocumented and unsupported,
1741 # and are intended to be withdrawn in a future Autoconf release.
1742 # They can cause serious problems if a builder's source tree is in a directory
1743 # whose full name contains unusual characters.
1744 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1745 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1746 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1749 # Make sure we can run config.sub.
1750 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1751 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1752 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1753 { (exit 1); exit 1; }; }
1755 { echo "$as_me:$LINENO: checking build system type" >&5
1756 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1757 if test "${ac_cv_build+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 ac_build_alias=$build_alias
1761 test "x$ac_build_alias" = x &&
1762 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1763 test "x$ac_build_alias" = x &&
1764 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1765 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1766 { (exit 1); exit 1; }; }
1767 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1768 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1769 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1770 { (exit 1); exit 1; }; }
1773 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1774 echo "${ECHO_T}$ac_cv_build" >&6; }
1775 case $ac_cv_build in
1777 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1778 echo "$as_me: error: invalid value of canonical build" >&2;}
1779 { (exit 1); exit 1; }; };;
1782 ac_save_IFS=$IFS; IFS='-'
1788 # Remember, the first character of IFS is used to create $*,
1789 # except with old shells:
1792 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1795 { echo "$as_me:$LINENO: checking host system type" >&5
1796 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1797 if test "${ac_cv_host+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 if test "x$host_alias" = x; then
1801 ac_cv_host=$ac_cv_build
1803 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1804 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1805 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1806 { (exit 1); exit 1; }; }
1810 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1811 echo "${ECHO_T}$ac_cv_host" >&6; }
1814 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1815 echo "$as_me: error: invalid value of canonical host" >&2;}
1816 { (exit 1); exit 1; }; };;
1819 ac_save_IFS=$IFS; IFS='-'
1825 # Remember, the first character of IFS is used to create $*,
1826 # except with old shells:
1829 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1838 # Check whether --with-gcc was given.
1839 if test "${with_gcc+set}" = set; then
1845 if test "${srcdir}" != "." ; then
1846 V_INCLS="-I\$(srcdir)"
1848 if test "${CFLAGS+set}" = set; then
1849 LBL_CFLAGS="$CFLAGS"
1851 if test -z "$CC" ; then
1855 # Extract the first word of "shlicc2", so it can be a program name with args.
1856 set dummy shlicc2; ac_word=$2
1857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1859 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$SHLICC2"; then
1863 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1872 ac_cv_prog_SHLICC2="yes"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1883 SHLICC2=$ac_cv_prog_SHLICC2
1884 if test -n "$SHLICC2"; then
1885 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1886 echo "${ECHO_T}$SHLICC2" >&6; }
1888 { echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6; }
1893 if test $SHLICC2 = yes ; then
1900 if test -z "$CC" -a "$with_gcc" = no ; then
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909 if test -n "$ac_tool_prefix"; then
1910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1911 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1914 if test "${ac_cv_prog_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$CC"; then
1918 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 if test -n "$CC"; then
1939 { echo "$as_me:$LINENO: result: $CC" >&5
1940 echo "${ECHO_T}$CC" >&6; }
1942 { echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6; }
1948 if test -z "$ac_cv_prog_CC"; then
1950 # Extract the first word of "gcc", so it can be a program name with args.
1951 set dummy gcc; ac_word=$2
1952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test -n "$ac_ct_CC"; then
1958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1967 ac_cv_prog_ac_ct_CC="gcc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6; }
1982 { echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6; }
1986 if test "x$ac_ct_CC" = x; then
1989 case $cross_compiling:$ac_tool_warned in
1991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1992 whose name does not start with the host triplet. If you think this
1993 configuration is useful to you, please write to autoconf@gnu.org." >&5
1994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1995 whose name does not start with the host triplet. If you think this
1996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1997 ac_tool_warned=yes ;;
2005 if test -z "$CC"; then
2006 if test -n "$ac_tool_prefix"; then
2007 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2008 set dummy ${ac_tool_prefix}cc; ac_word=$2
2009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2024 ac_cv_prog_CC="${ac_tool_prefix}cc"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 if test -n "$CC"; then
2036 { echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6; }
2039 { echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6; }
2046 if test -z "$CC"; then
2047 # Extract the first word of "cc", so it can be a program name with args.
2048 set dummy cc; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$CC"; then
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2065 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2066 ac_prog_rejected=yes
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 if test $ac_prog_rejected = yes; then
2078 # We found a bogon in the path, so make sure we never use it.
2079 set dummy $ac_cv_prog_CC
2081 if test $# != 0; then
2082 # We chose a different compiler from the bogus one.
2083 # However, it has the same basename, so the bogon will be chosen
2084 # first if we set CC to just the basename; use the full file name.
2086 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2092 if test -n "$CC"; then
2093 { echo "$as_me:$LINENO: result: $CC" >&5
2094 echo "${ECHO_T}$CC" >&6; }
2096 { echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6; }
2102 if test -z "$CC"; then
2103 if test -n "$ac_tool_prefix"; then
2104 for ac_prog in cl.exe
2106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 if test -n "$CC"; then
2135 { echo "$as_me:$LINENO: result: $CC" >&5
2136 echo "${ECHO_T}$CC" >&6; }
2138 { echo "$as_me:$LINENO: result: no" >&5
2139 echo "${ECHO_T}no" >&6; }
2143 test -n "$CC" && break
2146 if test -z "$CC"; then
2148 for ac_prog in cl.exe
2150 # Extract the first word of "$ac_prog", so it can be a program name with args.
2151 set dummy $ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$ac_ct_CC"; then
2158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_ac_ct_CC="$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2178 if test -n "$ac_ct_CC"; then
2179 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2180 echo "${ECHO_T}$ac_ct_CC" >&6; }
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2187 test -n "$ac_ct_CC" && break
2190 if test "x$ac_ct_CC" = x; then
2193 case $cross_compiling:$ac_tool_warned in
2195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet. If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&5
2198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2201 ac_tool_warned=yes ;;
2210 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2211 See \`config.log
' for more details." >&5
2212 echo "$as_me: error: no acceptable C compiler found in \$PATH
2213 See \`config.log' for more details.
" >&2;}
2214 { (exit 1); exit 1; }; }
2216 # Provide some information about the compiler.
2217 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2218 ac_compiler=`set X $ac_compile; echo $2`
2219 { (ac_try="$ac_compiler --version >&5"
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2225 (eval "$ac_compiler --version >&5") 2>&5
2227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2228 (exit $ac_status); }
2229 { (ac_try="$ac_compiler -v >&5"
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2235 (eval "$ac_compiler -v >&5") 2>&5
2237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2238 (exit $ac_status); }
2239 { (ac_try="$ac_compiler -V >&5"
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2245 (eval "$ac_compiler -V >&5") 2>&5
2247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2248 (exit $ac_status); }
2250 cat >conftest.$ac_ext <<_ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2265 ac_clean_files_save=$ac_clean_files
2266 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2267 # Try to create an executable without -o first, disregard a.out.
2268 # It will help us diagnose broken compilers, and finding out an intuition
2270 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2271 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2272 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2274 # List of possible output files, starting from the most likely.
2275 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2276 # only as a last resort. b.out is created by i960 compilers.
2277 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2279 # The IRIX 6 linker writes into existing files which may not be
2280 # executable, retaining their permissions. Remove them first so a
2281 # subsequent execution test works.
2283 for ac_file in $ac_files
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2292 if { (ac_try="$ac_link_default"
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_link_default") 2>&5
2300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2301 (exit $ac_status); }; then
2302 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2303 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2304 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2305 # so that the user can short-circuit this test for compilers unknown to
2307 for ac_file in $ac_files ''
2309 test -f "$ac_file" || continue
2311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2314 # We found the default executable, but exeext='' is most
2318 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2320 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 # We set ac_cv_exeext here because the later test for it is not
2323 # safe: cross compilers may not add the suffix if given an `-o'
2324 # argument, so we may need to know it at that point already.
2325 # Even if this section looks crufty: it has the advantage of
2332 test "$ac_cv_exeext" = no && ac_cv_exeext=
2338 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2339 echo "${ECHO_T}$ac_file" >&6; }
2340 if test -z "$ac_file"; then
2341 echo "$as_me: failed program was
:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2344 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2345 See \
`config.log' for more details." >&5
2346 echo "$as_me: error: C compiler cannot create executables
2347 See \`config.log
' for more details." >&2;}
2348 { (exit 77); exit 77; }; }
2351 ac_exeext=$ac_cv_exeext
2353 # Check that the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2356 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2357 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2358 # If not cross compiling, check that we can run a simple program.
2359 if test "$cross_compiling" != yes; then
2360 if { ac_try='.
/$ac_file'
2361 { (case "(($ac_try" in
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_try") 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 if test "$cross_compiling" = maybe; then
2375 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2376 If you meant to cross compile, use \`--host'.
2377 See \
`config.log' for more details." >&5
2378 echo "$as_me: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details.
" >&2;}
2381 { (exit 1); exit 1; }; }
2385 { echo "$as_me:$LINENO: result
: yes" >&5
2386 echo "${ECHO_T}yes" >&6; }
2388 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2389 ac_clean_files=$ac_clean_files_save
2390 # Check that the compiler produces executables we can run. If not, either
2391 # the compiler is broken, or we cross compile.
2392 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2393 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2394 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2395 echo "${ECHO_T}$cross_compiling" >&6; }
2397 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2398 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2399 if { (ac_try="$ac_link"
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_link") 2>&5
2407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2408 (exit $ac_status); }; then
2409 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2410 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2411 # work properly (i.e., refer to `conftest.exe'), while it won't with
2413 for ac_file in conftest.exe conftest conftest.*; do
2414 test -f "$ac_file" || continue
2416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2417 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2424 See \
`config.log' for more details." >&5
2425 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2426 See \`config.log
' for more details." >&2;}
2427 { (exit 1); exit 1; }; }
2430 rm -f conftest$ac_cv_exeext
2431 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2432 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2434 rm -f conftest.$ac_ext
2435 EXEEXT=$ac_cv_exeext
2437 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2438 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2439 if test "${ac_cv_objext+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 rm -f conftest.o conftest.obj
2458 if { (ac_try="$ac_compile"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; then
2468 for ac_file in conftest.o conftest.obj conftest.*; do
2469 test -f "$ac_file" || continue;
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2472 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2477 echo "$as_me: failed program was:" >&5
2478 sed 's
/^
/|
/' conftest.$ac_ext >&5
2480 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2481 See \`config.log' for more details.
" >&5
2482 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2483 See \
`config.log' for more details." >&2;}
2484 { (exit 1); exit 1; }; }
2487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2489 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2490 echo "${ECHO_T}$ac_cv_objext" >&6; }
2491 OBJEXT=$ac_cv_objext
2493 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2495 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2516 rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
2519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2520 *) ac_try_echo
=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2525 grep -v '^ *+' conftest.er1
>conftest.err
2527 cat conftest.err
>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } && {
2530 test -z "$ac_c_werror_flag" ||
2531 test ! -s conftest.err
2532 } && test -s conftest.
$ac_objext; then
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.
$ac_ext >&5
2541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2542 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2545 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2546 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2547 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2548 ac_test_CFLAGS
=${CFLAGS+set}
2549 ac_save_CFLAGS
=$CFLAGS
2550 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2551 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_cc_g+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 ac_save_c_werror_flag
=$ac_c_werror_flag
2556 ac_c_werror_flag
=yes
2559 cat >conftest.
$ac_ext <<_ACEOF
2562 cat confdefs.h
>>conftest.
$ac_ext
2563 cat >>conftest.
$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.
$ac_objext
2575 if { (ac_try
="$ac_compile"
2577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } && {
2588 test -z "$ac_c_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest.$ac_objext; then
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2597 cat >conftest.$ac_ext <<_ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2612 rm -f conftest.$ac_objext
2613 if { (ac_try="$ac_compile"
2615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2616 *) ac_try_echo
=$ac_try;;
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_compile") 2>conftest.er1
2621 grep -v '^ *+' conftest.er1
>conftest.err
2623 cat conftest.err
>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } && {
2626 test -z "$ac_c_werror_flag" ||
2627 test ! -s conftest.err
2628 } && test -s conftest.
$ac_objext; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.
$ac_ext >&5
2634 ac_c_werror_flag
=$ac_save_c_werror_flag
2636 cat >conftest.
$ac_ext <<_ACEOF
2639 cat confdefs.h
>>conftest.
$ac_ext
2640 cat >>conftest.
$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2651 rm -f conftest.
$ac_objext
2652 if { (ac_try
="$ac_compile"
2654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compile") 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } && {
2665 test -z "$ac_c_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest.$ac_objext; then
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_c_werror_flag=$ac_save_c_werror_flag
2685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2686 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2687 if test "$ac_test_CFLAGS" = set; then
2688 CFLAGS=$ac_save_CFLAGS
2689 elif test $ac_cv_prog_cc_g = yes; then
2690 if test "$GCC" = yes; then
2696 if test "$GCC" = yes; then
2702 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2703 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2704 if test "${ac_cv_prog_cc_c89+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 ac_cv_prog_cc_c89=no
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2717 #include <sys/types.h>
2718 #include <sys/stat.h>
2719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2720 struct buf { int x; };
2721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2722 static char *e (p, i)
2728 static char *f (char * (*g) (char **, int), char **p, ...)
2733 s = g (p, va_arg (v,int));
2738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2739 function prototypes and stuff, but not '\xHH' hex character constants.
2740 These don't provoke an error unfortunately, instead are silently treated
2741 as 'x'. The following induces an error, until -std is added to get
2742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2743 array size at least. It's necessary to write '\x00'==0 to get something
2744 that's true only with -std. */
2745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2748 inside strings and character constants. */
2750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2752 int test (int i, double x);
2753 struct s1 {int (*f) (int a);};
2754 struct s2 {int (*f) (double a);};
2755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2769 CC="$ac_save_CC $ac_arg"
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2774 *) ac_try_echo
=$ac_try;;
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2779 grep -v '^ *+' conftest.er1
>conftest.err
2781 cat conftest.err
>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.
$ac_objext; then
2787 ac_cv_prog_cc_c89
=$ac_arg
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.
$ac_ext >&5
2795 rm -f core conftest.err conftest.
$ac_objext
2796 test "x$ac_cv_prog_cc_c89" != "xno" && break
2798 rm -f conftest.
$ac_ext
2803 case "x$ac_cv_prog_cc_c89" in
2805 { echo "$as_me:$LINENO: result: none needed" >&5
2806 echo "${ECHO_T}none needed" >&6; } ;;
2808 { echo "$as_me:$LINENO: result: unsupported" >&5
2809 echo "${ECHO_T}unsupported" >&6; } ;;
2811 CC
="$CC $ac_cv_prog_cc_c89"
2812 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2818 ac_cpp
='$CPP $CPPFLAGS'
2819 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2823 if test "$GCC" = yes ; then
2824 if test "$SHLICC2" = yes ; then
2825 ac_cv_lbl_gcc_vers
=2
2828 { echo "$as_me:$LINENO: checking gcc version" >&5
2829 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2830 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2834 sed -e '/^gcc version /!d' \
2835 -e 's/^gcc version //' \
2836 -e 's/ .*//' -e 's/^[^0-9]*//' \
2840 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2841 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2842 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2847 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2848 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2849 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 cat >conftest.
$ac_ext <<_ACEOF
2856 cat confdefs.h
>>conftest.
$ac_ext
2857 cat >>conftest.
$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2859 #include <sys/types.h>
2863 int frob(int, char *)
2868 rm -f conftest.
$ac_objext
2869 if { (ac_try
="$ac_compile"
2871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875 (eval "$ac_compile") 2>conftest.er1
2877 grep -v '^ *+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } && {
2882 test -z "$ac_c_werror_flag" ||
2883 test ! -s conftest.err
2884 } && test -s conftest.$ac_objext; then
2885 ac_cv_lbl_cc_ansi_prototypes=yes
2887 echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2890 ac_cv_lbl_cc_ansi_prototypes=no
2893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2897 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2898 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2902 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2903 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2904 savedcflags="$CFLAGS"
2905 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2906 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2915 #include <sys/types.h>
2919 int frob(int, char *)
2924 rm -f conftest.$ac_objext
2925 if { (ac_try="$ac_compile"
2927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2928 *) ac_try_echo
=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compile") 2>conftest.er1
2933 grep -v '^ *+' conftest.er1
>conftest.err
2935 cat conftest.err
>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } && {
2938 test -z "$ac_c_werror_flag" ||
2939 test ! -s conftest.err
2940 } && test -s conftest.
$ac_objext; then
2941 ac_cv_lbl_cc_hpux_cc_aa
=yes
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.
$ac_ext >&5
2946 ac_cv_lbl_cc_hpux_cc_aa
=no
2949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2952 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2953 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2954 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2955 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2956 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2957 { (exit 1); exit 1; }; }
2959 CFLAGS
="$savedcflags"
2960 V_CCOPT
="-Aa $V_CCOPT"
2961 cat >>confdefs.h
<<\_ACEOF
2962 #define _HPUX_SOURCE 1
2968 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2969 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2970 { (exit 1); exit 1; }; }
2974 V_INCLS
="$V_INCLS -I/usr/local/include"
2975 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2980 V_CCOPT
="$V_CCOPT -xansi -signed -O"
2984 V_CCOPT
="$V_CCOPT -std1 -O"
2988 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2989 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
2990 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 cat >conftest.
$ac_ext <<_ACEOF
2996 cat confdefs.h
>>conftest.
$ac_ext
2997 cat >>conftest.
$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #include <sys/types.h>
3003 struct a { int b; };
3004 void c(const struct a *)
3009 rm -f conftest.
$ac_objext
3010 if { (ac_try
="$ac_compile"
3012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compile") 2>conftest.er1
3018 grep -v '^ *+' conftest.er1 >conftest.err
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } && {
3023 test -z "$ac_c_werror_flag" ||
3024 test ! -s conftest.err
3025 } && test -s conftest.$ac_objext; then
3026 ac_cv_lbl_cc_const_proto=yes
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 ac_cv_lbl_cc_const_proto=no
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3038 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3039 if test $ac_cv_lbl_cc_const_proto = no ; then
3040 cat >>confdefs.h <<\_ACEOF
3049 { echo "$as_me:$LINENO: checking for inline" >&5
3050 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3051 if test "${ac_cv_lbl_inline+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 for ac_lbl_inline in inline __inline__ __inline
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3065 #define inline $ac_lbl_inline
3066 static inline struct iltest *foo(void);
3072 static inline struct iltest *
3075 static struct iltest xxx;
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3091 *) ac_try_echo
=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3096 grep -v '^ *+' conftest.er1
>conftest.err
3098 cat conftest.err
>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.
$ac_objext; then
3104 ac_lbl_cc_inline
=yes
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.
$ac_ext >&5
3112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3113 if test "$ac_lbl_cc_inline" = yes ; then
3117 if test "$ac_lbl_cc_inline" = yes ; then
3118 ac_cv_lbl_inline
=$ac_lbl_inline
3122 if test ! -z "$ac_cv_lbl_inline" ; then
3123 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3124 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3126 { echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6; }
3130 cat >>confdefs.h
<<_ACEOF
3131 #define inline $ac_cv_lbl_inline
3135 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3136 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3137 if test "${ac_cv___attribute__+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 cat >conftest.
$ac_ext <<_ACEOF
3144 cat confdefs.h
>>conftest.
$ac_ext
3145 cat >>conftest.
$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3150 static void foo(void) __attribute__ ((noreturn));
3159 main(int argc, char **argv)
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_cv___attribute__=yes
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_cv___attribute__=no
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 if test "$ac_cv___attribute__" = "yes"; then
3195 cat >>confdefs.h <<\_ACEOF
3196 #define HAVE___ATTRIBUTE__ 1
3199 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3201 V_DEFS="$V_DEFS -D_U_=\"\""
3203 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3204 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3217 if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3249 *) ac_try_echo
=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1
>conftest.err
3256 cat conftest.err
>&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev
/null
&& {
3259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3260 test ! -s conftest.err
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.
$ac_ext >&5
3267 # Broken: fails on valid input.
3271 rm -f conftest.err conftest.
$ac_ext
3273 # OK, works on sane cases. Now check whether nonexistent headers
3274 # can be detected and how.
3275 cat >conftest.
$ac_ext <<_ACEOF
3278 cat confdefs.h
>>conftest.
$ac_ext
3279 cat >>conftest.
$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 #include <ac_nonexistent.h>
3283 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } >/dev/null && {
3296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3297 test ! -s conftest.err
3299 # Broken: success on invalid input.
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 # Passes both tests.
3310 rm -f conftest.err conftest.$ac_ext
3313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3314 rm -f conftest.err conftest.
$ac_ext
3315 if $ac_preproc_ok; then
3327 { echo "$as_me:$LINENO: result: $CPP" >&5
3328 echo "${ECHO_T}$CPP" >&6; }
3330 for ac_c_preproc_warn_flag
in '' yes
3332 # Use a header file that comes with gcc, so configuring glibc
3333 # with a fresh cross-compiler works.
3334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3335 # <limits.h> exists even on freestanding compilers.
3336 # On the NeXT, cc -E runs the code through the compiler's parser,
3337 # not just through cpp. "Syntax error" is here to catch this case.
3338 cat >conftest.
$ac_ext <<_ACEOF
3341 cat confdefs.h
>>conftest.
$ac_ext
3342 cat >>conftest.
$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3345 # include <limits.h>
3347 # include <assert.h>
3351 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3359 grep -v '^ *+' conftest.er1 >conftest.err
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } >/dev/null && {
3364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3365 test ! -s conftest.err
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 # Broken: fails on valid input.
3376 rm -f conftest.err conftest.$ac_ext
3378 # OK, works on sane cases. Now check whether nonexistent headers
3379 # can be detected and how.
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 #include <ac_nonexistent.h>
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3391 *) ac_try_echo
=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1
>conftest.err
3398 cat conftest.err
>&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev
/null
&& {
3401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3404 # Broken: success on invalid input.
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.
$ac_ext >&5
3410 # Passes both tests.
3415 rm -f conftest.err conftest.
$ac_ext
3418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3419 rm -f conftest.err conftest.
$ac_ext
3420 if $ac_preproc_ok; then
3423 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3424 See \`config.log' for more details." >&5
3425 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3426 See \`config.log' for more details." >&2;}
3427 { (exit 1); exit 1; }; }
3431 ac_cpp
='$CPP $CPPFLAGS'
3432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3437 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3438 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3439 if test "${ac_cv_path_GREP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 # Extract the first word of "grep ggrep" to use in msg output
3443 if test -z "$GREP"; then
3444 set dummy
grep ggrep
; ac_prog_name
=$2
3445 if test "${ac_cv_path_GREP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 ac_path_GREP_found
=false
3449 # Loop through the user's path and test for each of PROGNAME-LIST
3450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3451 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3454 test -z "$as_dir" && as_dir
=.
3455 for ac_prog
in grep ggrep
; do
3456 for ac_exec_ext
in '' $ac_executable_extensions; do
3457 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3458 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3459 # Check for GNU ac_path_GREP and select it if it is found.
3460 # Check for GNU $ac_path_GREP
3461 case `"$ac_path_GREP" --version 2>&1` in
3463 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3466 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3469 cat "conftest.in" "conftest.in" >"conftest.tmp"
3470 mv "conftest.tmp" "conftest.in"
3471 cp "conftest.in" "conftest.nl"
3472 echo 'GREP' >> "conftest.nl"
3473 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3474 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3475 ac_count
=`expr $ac_count + 1`
3476 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3477 # Best one so far, save it but keep looking for a better one
3478 ac_cv_path_GREP
="$ac_path_GREP"
3479 ac_path_GREP_max
=$ac_count
3481 # 10*(2^10) chars as input seems more than enough
3482 test $ac_count -gt 10 && break
3484 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3488 $ac_path_GREP_found && break 3
3498 GREP
="$ac_cv_path_GREP"
3499 if test -z "$GREP"; then
3500 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3501 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3502 { (exit 1); exit 1; }; }
3506 ac_cv_path_GREP
=$GREP
3511 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3512 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3513 GREP
="$ac_cv_path_GREP"
3516 { echo "$as_me:$LINENO: checking for egrep" >&5
3517 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3518 if test "${ac_cv_path_EGREP+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3522 then ac_cv_path_EGREP
="$GREP -E"
3524 # Extract the first word of "egrep" to use in msg output
3525 if test -z "$EGREP"; then
3526 set dummy
egrep; ac_prog_name
=$2
3527 if test "${ac_cv_path_EGREP+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 ac_path_EGREP_found
=false
3531 # Loop through the user's path and test for each of PROGNAME-LIST
3532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3533 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3536 test -z "$as_dir" && as_dir
=.
3537 for ac_prog
in egrep; do
3538 for ac_exec_ext
in '' $ac_executable_extensions; do
3539 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3540 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3541 # Check for GNU ac_path_EGREP and select it if it is found.
3542 # Check for GNU $ac_path_EGREP
3543 case `"$ac_path_EGREP" --version 2>&1` in
3545 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3548 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3551 cat "conftest.in" "conftest.in" >"conftest.tmp"
3552 mv "conftest.tmp" "conftest.in"
3553 cp "conftest.in" "conftest.nl"
3554 echo 'EGREP' >> "conftest.nl"
3555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3556 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3557 ac_count
=`expr $ac_count + 1`
3558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3559 # Best one so far, save it but keep looking for a better one
3560 ac_cv_path_EGREP
="$ac_path_EGREP"
3561 ac_path_EGREP_max
=$ac_count
3563 # 10*(2^10) chars as input seems more than enough
3564 test $ac_count -gt 10 && break
3566 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3570 $ac_path_EGREP_found && break 3
3580 EGREP
="$ac_cv_path_EGREP"
3581 if test -z "$EGREP"; then
3582 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3583 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3584 { (exit 1); exit 1; }; }
3588 ac_cv_path_EGREP
=$EGREP
3594 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3595 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3596 EGREP
="$ac_cv_path_EGREP"
3599 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3601 if test "${ac_cv_header_stdc+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 cat >conftest.
$ac_ext <<_ACEOF
3607 cat confdefs.h
>>conftest.
$ac_ext
3608 cat >>conftest.
$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3623 rm -f conftest.
$ac_objext
3624 if { (ac_try
="$ac_compile"
3626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 ac_cv_header_stdc=yes
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 ac_cv_header_stdc=no
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 if test $ac_cv_header_stdc = yes; then
3651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3652 cat >conftest.$ac_ext <<_ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3662 $EGREP "memchr" >/dev/null 2>&1; then
3665 ac_cv_header_stdc=no
3671 if test $ac_cv_header_stdc = yes; then
3672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3673 cat >conftest.$ac_ext <<_ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 $EGREP "free" >/dev/null 2>&1; then
3686 ac_cv_header_stdc=no
3692 if test $ac_cv_header_stdc = yes; then
3693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3694 if test "$cross_compiling" = yes; then
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3705 #if ((' ' & 0x0FF) == 0x020)
3706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3709 # define ISLOWER(c) \
3710 (('a' <= (c) && (c) <= 'i') \
3711 || ('j' <= (c) && (c) <= 'r') \
3712 || ('s' <= (c) && (c) <= 'z'))
3713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3721 for (i = 0; i < 256; i++)
3722 if (XOR (islower (i), ISLOWER (i))
3723 || toupper (i) != TOUPPER (i))
3728 rm -f conftest$ac_exeext
3729 if { (ac_try="$ac_link"
3731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3732 *) ac_try_echo
=$ac_try;;
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735 (eval "$ac_link") 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3739 { (case "(($ac_try" in
3740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_try") 2>&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3750 echo "$as_me: program exited with status $ac_status" >&5
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3755 ac_cv_header_stdc=no
3757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3763 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3764 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3765 if test $ac_cv_header_stdc = yes; then
3767 cat >>confdefs.h <<\_ACEOF
3768 #define STDC_HEADERS 1
3773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3784 inttypes.h stdint.h unistd.h
3786 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 cat >conftest.$ac_ext <<_ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3798 $ac_includes_default
3800 #include <$ac_header>
3802 rm -f conftest.$ac_objext
3803 if { (ac_try="$ac_compile"
3805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3806 *) ac_try_echo
=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1
>conftest.err
3813 cat conftest.err
>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } && {
3816 test -z "$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 } && test -s conftest.
$ac_objext; then
3819 eval "$as_ac_Header=yes"
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.
$ac_ext >&5
3824 eval "$as_ac_Header=no"
3827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3829 ac_res
=`eval echo '${'$as_ac_Header'}'`
3830 { echo "$as_me:$LINENO: result: $ac_res" >&5
3831 echo "${ECHO_T}$ac_res" >&6; }
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833 cat >>confdefs.h
<<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3845 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3847 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3848 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3851 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 ac_res
=`eval echo '${'$as_ac_Header'}'`
3855 { echo "$as_me:$LINENO: result: $ac_res" >&5
3856 echo "${ECHO_T}$ac_res" >&6; }
3858 # Is the header compilable?
3859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3861 cat >conftest.
$ac_ext <<_ACEOF
3864 cat confdefs.h
>>conftest.
$ac_ext
3865 cat >>conftest.
$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 $ac_includes_default
3868 #include <$ac_header>
3870 rm -f conftest.
$ac_objext
3871 if { (ac_try
="$ac_compile"
3873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_compile") 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest.$ac_objext; then
3887 ac_header_compiler=yes
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 ac_header_compiler=no
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3897 echo "${ECHO_T}$ac_header_compiler" >&6; }
3899 # Is the header present?
3900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 #include <$ac_header>
3910 if { (ac_try="$ac_cpp conftest.$ac_ext"
3912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3913 *) ac_try_echo
=$ac_try;;
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1
>conftest.err
3920 cat conftest.err
>&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev
/null
&& {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3926 ac_header_preproc
=yes
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.
$ac_ext >&5
3931 ac_header_preproc
=no
3934 rm -f conftest.err conftest.
$ac_ext
3935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3936 echo "${ECHO_T}$ac_header_preproc" >&6; }
3938 # So? What about this header?
3939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3945 ac_header_preproc
=yes
3948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3965 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 eval "$as_ac_Header=\$ac_header_preproc"
3970 ac_res
=`eval echo '${'$as_ac_Header'}'`
3971 { echo "$as_me:$LINENO: result: $ac_res" >&5
3972 echo "${ECHO_T}$ac_res" >&6; }
3975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3976 cat >>confdefs.h
<<_ACEOF
3977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3985 for ac_header
in net
/pfvar.h
3987 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3990 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <sys/types.h>
4000 #include <sys/socket.h>
4003 #include <$ac_header>
4005 rm -f conftest.
$ac_objext
4006 if { (ac_try
="$ac_compile"
4008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4014 grep -v '^ *+' conftest.er1 >conftest.err
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } && {
4019 test -z "$ac_c_werror_flag" ||
4020 test ! -s conftest.err
4021 } && test -s conftest.$ac_objext; then
4022 eval "$as_ac_Header=yes"
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 eval "$as_ac_Header=no"
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_res=`eval echo '${'$as_ac_Header'}'`
4033 { echo "$as_me:$LINENO: result: $ac_res" >&5
4034 echo "${ECHO_T}$ac_res" >&6; }
4035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4036 cat >>confdefs.h <<_ACEOF
4037 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4044 if test "$ac_cv_header_net_pfvar_h" = yes; then
4045 LOCALSRC="print-pflog.c $LOCALSRC"
4048 for ac_header in netinet/if_ether.h
4050 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 #include <sys/types.h>
4063 #include <sys/socket.h>
4065 #include <$ac_header>
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4071 *) ac_try_echo
=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1
>conftest.err
4078 cat conftest.err
>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.
$ac_objext; then
4084 eval "$as_ac_Header=yes"
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.
$ac_ext >&5
4089 eval "$as_ac_Header=no"
4092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4094 ac_res
=`eval echo '${'$as_ac_Header'}'`
4095 { echo "$as_me:$LINENO: result: $ac_res" >&5
4096 echo "${ECHO_T}$ac_res" >&6; }
4097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4098 cat >>confdefs.h
<<_ACEOF
4099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4106 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4108 # The simple test didn't work.
4109 # Do we need to include <net/if.h> first?
4110 # Unset ac_cv_header_netinet_if_ether_h so we don't
4111 # treat the previous failure as a cached value and
4112 # suppress the next test.
4114 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4115 echo "$as_me: Rechecking with some additional includes" >&6;}
4116 unset ac_cv_header_netinet_if_ether_h
4118 for ac_header
in netinet
/if_ether.h
4120 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4123 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 cat >conftest.
$ac_ext <<_ACEOF
4129 cat confdefs.h
>>conftest.
$ac_ext
4130 cat >>conftest.
$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4132 #include <sys/types.h>
4133 #include <sys/socket.h>
4134 #include <netinet/in.h>
4139 #include <$ac_header>
4141 rm -f conftest.
$ac_objext
4142 if { (ac_try
="$ac_compile"
4144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && {
4155 test -z "$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4157 } && test -s conftest.$ac_objext; then
4158 eval "$as_ac_Header=yes"
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 eval "$as_ac_Header=no"
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 ac_res=`eval echo '${'$as_ac_Header'}'`
4169 { echo "$as_me:$LINENO: result: $ac_res" >&5
4170 echo "${ECHO_T}$ac_res" >&6; }
4171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4172 cat >>confdefs.h <<_ACEOF
4173 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4182 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4183 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4184 if test "${ac_cv_header_time+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #include <sys/types.h>
4194 #include <sys/time.h>
4200 if ((struct tm *) 0)
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4210 *) ac_try_echo
=$ac_try;;
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4215 grep -v '^ *+' conftest.er1
>conftest.err
4217 cat conftest.err
>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && {
4220 test -z "$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4222 } && test -s conftest.
$ac_objext; then
4223 ac_cv_header_time
=yes
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.
$ac_ext >&5
4228 ac_cv_header_time
=no
4231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4233 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4234 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4235 if test $ac_cv_header_time = yes; then
4237 cat >>confdefs.h
<<\_ACEOF
4238 #define TIME_WITH_SYS_TIME 1
4247 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4248 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4249 if test "$cross_compiling" = yes; then
4250 if test "${ac_cv_linux_vers+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 ac_cv_linux_vers
=unknown
4257 if test "${ac_cv_linux_vers+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 ac_cv_linux_vers
=`uname -r 2>&1 | \
4261 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4265 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4266 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4267 if test $ac_cv_linux_vers = unknown
; then
4268 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4269 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4270 { (exit 1); exit 1; }; }
4272 if test $ac_cv_linux_vers -lt 2 ; then
4273 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4274 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4275 { (exit 1); exit 1; }; }
4285 # Check whether --with-smi was given.
4286 if test "${with_smi+set}" = set; then
4293 if test "x$with_smi" != "xno" ; then
4295 for ac_header
in smi.h
4297 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4301 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 ac_res
=`eval echo '${'$as_ac_Header'}'`
4305 { echo "$as_me:$LINENO: result: $ac_res" >&5
4306 echo "${ECHO_T}$ac_res" >&6; }
4308 # Is the header compilable?
4309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4311 cat >conftest.
$ac_ext <<_ACEOF
4314 cat confdefs.h
>>conftest.
$ac_ext
4315 cat >>conftest.
$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 $ac_includes_default
4318 #include <$ac_header>
4320 rm -f conftest.
$ac_objext
4321 if { (ac_try
="$ac_compile"
4323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4337 ac_header_compiler=yes
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_header_compiler=no
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4347 echo "${ECHO_T}$ac_header_compiler" >&6; }
4349 # Is the header present?
4350 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #include <$ac_header>
4360 if { (ac_try="$ac_cpp conftest.$ac_ext"
4362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4363 *) ac_try_echo
=$ac_try;;
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4368 grep -v '^ *+' conftest.er1
>conftest.err
4370 cat conftest.err
>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } >/dev
/null
&& {
4373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4374 test ! -s conftest.err
4376 ac_header_preproc
=yes
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.
$ac_ext >&5
4381 ac_header_preproc
=no
4384 rm -f conftest.err conftest.
$ac_ext
4385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4386 echo "${ECHO_T}$ac_header_preproc" >&6; }
4388 # So? What about this header?
4389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4395 ac_header_preproc
=yes
4398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4415 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 eval "$as_ac_Header=\$ac_header_preproc"
4420 ac_res
=`eval echo '${'$as_ac_Header'}'`
4421 { echo "$as_me:$LINENO: result: $ac_res" >&5
4422 echo "${ECHO_T}$ac_res" >&6; }
4425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4426 cat >>confdefs.h
<<_ACEOF
4427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4435 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4436 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4437 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 ac_check_lib_save_LIBS
=$LIBS
4442 cat >conftest.
$ac_ext <<_ACEOF
4445 cat confdefs.h
>>conftest.
$ac_ext
4446 cat >>conftest.
$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4449 /* Override any GCC internal prototype to avoid an error.
4450 Use char because int might match the return type of a GCC
4451 builtin and then its argument prototype would still apply. */
4464 rm -f conftest.
$ac_objext conftest
$ac_exeext
4465 if { (ac_try
="$ac_link"
4467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_link") 2>conftest.er1
4473 grep -v '^ *+' conftest.er1 >conftest.err
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } && {
4478 test -z "$ac_c_werror_flag" ||
4479 test ! -s conftest.err
4480 } && test -s conftest$ac_exeext &&
4481 $as_test_x conftest$ac_exeext; then
4482 ac_cv_lib_smi_smiInit=yes
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 ac_cv_lib_smi_smiInit=no
4490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4491 conftest$ac_exeext conftest.$ac_ext
4492 LIBS=$ac_check_lib_save_LIBS
4494 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4495 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4496 if test $ac_cv_lib_smi_smiInit = yes; then
4497 cat >>confdefs.h <<_ACEOF
4498 #define HAVE_LIBSMI 1
4505 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4507 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4508 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4509 if test "$cross_compiling" = yes; then
4510 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4511 echo "${ECHO_T}not when cross-compiling" >&6; }
4515 cat >conftest.$ac_ext <<_ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 /* libsmi available check */
4525 int current, revision, age, n;
4526 const int required = 2;
4529 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4531 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4534 if (required < current - age || required > current)
4540 rm -f conftest$ac_exeext
4541 if { (ac_try="$ac_link"
4543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4544 *) ac_try_echo
=$ac_try;;
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_link") 2>&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4551 { (case "(($ac_try" in
4552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_try") 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 { echo "$as_me:$LINENO: result: yes" >&5
4561 echo "${ECHO_T}yes" >&6; }
4562 cat >>confdefs.h <<\_ACEOF
4568 echo "$as_me: program exited with status $ac_status" >&5
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4574 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4575 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4576 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4577 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4578 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4579 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4580 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4581 echo "${ECHO_T}no - too old" >&6; } ;;
4582 *) { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; } ;;
4587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4594 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4595 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4596 # Check whether --enable-smb was given.
4597 if test "${enable_smb+set}" = set; then
4598 enableval=$enable_smb;
4603 case "$enableval" in
4604 yes) { echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6; }
4606 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4607 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4608 cat >>confdefs.h <<\_ACEOF
4609 #define TCPDUMP_DO_SMB 1
4612 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4614 *) { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4620 # Check whether --with-user was given.
4621 if test "${with_user+set}" = set; then
4625 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4626 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4627 if test ! -z "$with_user" ; then
4628 cat >>confdefs.h <<_ACEOF
4629 #define WITH_USER "$withval"
4632 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4633 echo "${ECHO_T}to \"$withval\"" >&6; }
4635 { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4640 # Check whether --with-chroot was given.
4641 if test "${with_chroot+set}" = set; then
4642 withval=$with_chroot;
4645 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4646 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4647 if test ! -z "$with_chroot" ; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define WITH_CHROOT "$withval"
4652 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4653 echo "${ECHO_T}to \"$withval\"" >&6; }
4655 { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4659 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4660 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4661 # Check whether --enable-ipv6 was given.
4662 if test "${enable_ipv6+set}" = set; then
4663 enableval=$enable_ipv6; case "$enableval" in
4664 yes) { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4666 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"
4667 cat >>confdefs.h <<\_ACEOF
4674 { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4680 if test "$cross_compiling" = yes; then
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4686 cat >conftest.$ac_ext <<_ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 /* AF_INET6 available check */
4693 #include <sys/types.h>
4694 #include <sys/socket.h>
4697 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4704 rm -f conftest$ac_exeext
4705 if { (ac_try="$ac_link"
4707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4708 *) ac_try_echo
=$ac_try;;
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_link") 2>&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4715 { (case "(($ac_try" in
4716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_try") 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 { echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6; }
4726 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"
4727 cat >>confdefs.h <<\_ACEOF
4733 echo "$as_me: program exited with status $ac_status" >&5
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4753 if test "$ipv6" = "yes"; then
4754 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4755 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4756 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 #include <netinet/in.h>
4766 #ifdef IPV6_INRIA_VERSION
4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771 $EGREP "yes" >/dev/null 2>&1; then
4773 CFLAGS="-DINET6 $CFLAGS"
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #include <netinet/in.h>
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791 $EGREP "yes" >/dev/null 2>&1; then
4794 ipv6libdir=/usr/local/v6/lib;
4796 CFLAGS="-DINET6 $CFLAGS"
4802 cat >conftest.$ac_ext <<_ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 #include <features.h>
4809 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4814 $EGREP "yes" >/dev/null 2>&1; then
4816 CFLAGS="-DINET6 $CFLAGS"
4822 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4825 ipv6libdir=/usr/inet6/lib
4827 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <sys/param.h>
4838 #ifdef _TOSHIBA_INET6
4842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4843 $EGREP "yes" >/dev/null 2>&1; then
4846 ipv6libdir=/usr/local/v6/lib;
4847 CFLAGS="-DINET6 $CFLAGS"
4853 cat >conftest.$ac_ext <<_ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include </usr/local/v6/include/sys/v6config.h>
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 $EGREP "yes" >/dev/null 2>&1; then
4868 ipv6libdir=/usr/local/v6/lib;
4869 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4875 cat >conftest.$ac_ext <<_ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4881 #include <sys/param.h>
4882 #ifdef _ZETA_MINAMI_INET6
4886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4887 $EGREP "yes" >/dev/null 2>&1; then
4890 ipv6libdir=/usr/local/v6/lib;
4891 CFLAGS="-DINET6 $CFLAGS"
4897 if test "$ipv6type" != "unknown"; then
4901 { echo "$as_me:$LINENO: result: $ipv6type" >&5
4902 echo "${ECHO_T}$ipv6type" >&6; }
4905 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4906 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4907 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4908 echo "You have $ipv6lib library, using it"
4910 if test "$ipv6trylibc" = "yes"; then
4911 echo "You do not have $ipv6lib library, using libc"
4913 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4914 echo "You need to fetch lib$ipv6lib.a from appropriate"
4915 echo 'ipv6 kit and compile beforehand.'
4922 if test "$ipv6" = "yes"; then
4924 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4925 # function in libc; there are "ngetaddrinfo()" and
4926 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4927 # "getaddrinfo" to be either "ngetaddrinfo" or
4928 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4929 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4931 # So this test doesn't work on Tru64 5.1, and possibly
4932 # on other 5.x releases. This causes the configure
4933 # script to become confused, and results in libpcap
4934 # being unbuildable.
4936 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4937 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
4938 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 ac_func_search_save_LIBS=$LIBS
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 /* Override any GCC internal prototype to avoid an error.
4950 Use char because int might match the return type of a GCC
4951 builtin and then its argument prototype would still apply. */
4955 char getaddrinfo ();
4959 return getaddrinfo ();
4964 for ac_lib in '' socket; do
4965 if test -z "$ac_lib"; then
4966 ac_res="none required"
4969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (ac_try="$ac_link"
4974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4975 *) ac_try_echo
=$ac_try;;
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_link") 2>conftest.er1
4980 grep -v '^ *+' conftest.er1
>conftest.err
4982 cat conftest.err
>&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest
$ac_exeext &&
4988 $as_test_x conftest
$ac_exeext; then
4989 ac_cv_search_getaddrinfo
=$ac_res
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.
$ac_ext >&5
4997 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4999 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5003 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5006 ac_cv_search_getaddrinfo
=no
5009 LIBS
=$ac_func_search_save_LIBS
5011 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5012 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5013 ac_res
=$ac_cv_search_getaddrinfo
5014 if test "$ac_res" != no
; then
5015 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5016 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5017 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5018 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 if test "$cross_compiling" = yes; then
5022 td_cv_buggygetaddrinfo
=yes
5024 cat >conftest.
$ac_ext <<_ACEOF
5027 cat confdefs.h
>>conftest.
$ac_ext
5028 cat >>conftest.
$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5031 #include <sys/types.h>
5034 #include <sys/socket.h>
5035 #include <netinet/in.h>
5039 int passive, gaierr, inet4 = 0, inet6 = 0;
5040 struct addrinfo hints, *ai, *aitop;
5041 char straddr[INET6_ADDRSTRLEN], strport[16];
5043 for (passive = 0; passive <= 1; passive++) {
5044 memset(&hints, 0, sizeof(hints));
5045 hints.ai_family = AF_UNSPEC;
5046 hints.ai_flags = passive ? AI_PASSIVE : 0;
5047 hints.ai_socktype = SOCK_STREAM;
5048 hints.ai_protocol = IPPROTO_TCP;
5049 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5050 (void)gai_strerror(gaierr);
5053 for (ai = aitop; ai; ai = ai->ai_next) {
5054 if (ai->ai_addr == NULL ||
5055 ai->ai_addrlen == 0 ||
5056 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5057 straddr, sizeof(straddr), strport, sizeof(strport),
5058 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5061 switch (ai->ai_family) {
5063 if (strcmp(strport, "54321") != 0) {
5067 if (strcmp(straddr, "0.0.0.0") != 0) {
5071 if (strcmp(straddr, "127.0.0.1") != 0) {
5078 if (strcmp(strport, "54321") != 0) {
5082 if (strcmp(straddr, "::") != 0) {
5086 if (strcmp(straddr, "::1") != 0) {
5103 /* another family support? */
5109 /* supported family should be 2, unsupported family should be 0 */
5110 if (!(inet4 == 0 || inet4 == 2))
5112 if (!(inet6 == 0 || inet6 == 2))
5116 freeaddrinfo(aitop);
5121 freeaddrinfo(aitop);
5126 rm -f conftest
$ac_exeext
5127 if { (ac_try
="$ac_link"
5129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_link") 2>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5137 { (case "(($ac_try" in
5138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5139 *) ac_try_echo
=$ac_try;;
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_try") 2>&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 td_cv_buggygetaddrinfo
=no
5148 echo "$as_me: program exited with status $ac_status" >&5
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.
$ac_ext >&5
5153 td_cv_buggygetaddrinfo
=yes
5155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5161 if test "$td_cv_buggygetaddrinfo" = no
; then
5162 { echo "$as_me:$LINENO: result: good" >&5
5163 echo "${ECHO_T}good" >&6; }
5165 { echo "$as_me:$LINENO: result: buggy" >&5
5166 echo "${ECHO_T}buggy" >&6; }
5169 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5171 # XXX - it doesn't appear that "ipv6type" can ever be
5172 # set to "linux". Should this be testing for
5173 # "linux-glibc", or for that *or* "linux-libinet6"?
5174 # If the latter, note that "linux-libinet6" is also
5175 # the type given to some non-Linux OSes.
5177 if test "$ipv6type" != "linux"; then
5178 echo 'Fatal: You must get working getaddrinfo() function.'
5179 echo ' or you can specify "--disable-ipv6"'.
5182 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5183 echo ' Better upgrade your system library to newest version'
5184 echo ' of GNU C library (aka glibc).'
5192 for ac_func
in getaddrinfo getnameinfo
5194 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5197 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 cat >conftest.
$ac_ext <<_ACEOF
5203 cat confdefs.h
>>conftest.
$ac_ext
5204 cat >>conftest.
$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5208 #define $ac_func innocuous_$ac_func
5210 /* System header to define __stub macros and hopefully few prototypes,
5211 which can conflict with char $ac_func (); below.
5212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5213 <limits.h> exists even on freestanding compilers. */
5216 # include <limits.h>
5218 # include <assert.h>
5223 /* Override any GCC internal prototype to avoid an error.
5224 Use char because int might match the return type of a GCC
5225 builtin and then its argument prototype would still apply. */
5230 /* The GNU C library defines this for functions which it implements
5231 to always fail with ENOSYS. Some functions are actually named
5232 something starting with __ and the normal name is an alias. */
5233 #if defined __stub_$ac_func || defined __stub___$ac_func
5245 rm -f conftest.
$ac_objext conftest
$ac_exeext
5246 if { (ac_try
="$ac_link"
5248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_link") 2>conftest.er1
5254 grep -v '^ *+' conftest.er1 >conftest.err
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest$ac_exeext &&
5262 $as_test_x conftest$ac_exeext; then
5263 eval "$as_ac_var=yes"
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 eval "$as_ac_var=no"
5271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5272 conftest$ac_exeext conftest.$ac_ext
5274 ac_res=`eval echo '${'$as_ac_var'}'`
5275 { echo "$as_me:$LINENO: result: $ac_res" >&5
5276 echo "${ECHO_T}$ac_res" >&6; }
5277 if test `eval echo '${'$as_ac_var'}'` = yes; then
5278 cat >>confdefs.h <<_ACEOF
5279 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5283 case " $LIBOBJS " in
5284 *" $ac_func.$ac_objext "* ) ;;
5285 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5295 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5296 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5297 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 #include <netdnet/dnetdb.h>
5309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5311 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5313 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5318 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5319 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5320 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5321 cat >>confdefs.h <<\_ACEOF
5322 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5327 { echo "$as_me:$LINENO: checking for char" >&5
5328 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5329 if test "${ac_cv_type_char+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 cat >conftest.$ac_ext <<_ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 $ac_includes_default
5339 typedef char ac__type_new_;
5343 if ((ac__type_new_ *) 0)
5345 if (sizeof (ac__type_new_))
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5355 *) ac_try_echo
=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5360 grep -v '^ *+' conftest.er1
>conftest.err
5362 cat conftest.err
>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.
$ac_objext; then
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.
$ac_ext >&5
5376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5378 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5379 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5381 # The cast to long int works around a bug in the HP C Compiler
5382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5384 # This bug is HP SR number 8606223364.
5385 { echo "$as_me:$LINENO: checking size of char" >&5
5386 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5387 if test "${ac_cv_sizeof_char+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 if test "$cross_compiling" = yes; then
5391 # Depending upon the size, compute the lo and hi bounds.
5392 cat >conftest.
$ac_ext <<_ACEOF
5395 cat confdefs.h
>>conftest.
$ac_ext
5396 cat >>conftest.
$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5399 typedef char ac__type_sizeof_;
5403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5410 rm -f conftest.
$ac_objext
5411 if { (ac_try
="$ac_compile"
5413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compile") 2>conftest.er1
5419 grep -v '^ *+' conftest.er1 >conftest.err
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } && {
5424 test -z "$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5426 } && test -s conftest.$ac_objext; then
5429 cat >conftest.$ac_ext <<_ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 $ac_includes_default
5436 typedef char ac__type_sizeof_;
5440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5447 rm -f conftest.$ac_objext
5448 if { (ac_try="$ac_compile"
5450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5451 *) ac_try_echo
=$ac_try;;
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_compile") 2>conftest.er1
5456 grep -v '^ *+' conftest.er1
>conftest.err
5458 cat conftest.err
>&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } && {
5461 test -z "$ac_c_werror_flag" ||
5462 test ! -s conftest.err
5463 } && test -s conftest.
$ac_objext; then
5464 ac_hi
=$ac_mid; break
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.
$ac_ext >&5
5469 ac_lo
=`expr $ac_mid + 1`
5470 if test $ac_lo -le $ac_mid; then
5474 ac_mid
=`expr 2 '*' $ac_mid + 1`
5477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.
$ac_ext >&5
5483 cat >conftest.
$ac_ext <<_ACEOF
5486 cat confdefs.h
>>conftest.
$ac_ext
5487 cat >>conftest.
$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5490 typedef char ac__type_sizeof_;
5494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5501 rm -f conftest.
$ac_objext
5502 if { (ac_try
="$ac_compile"
5504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5510 grep -v '^ *+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5520 cat >conftest.$ac_ext <<_ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5527 typedef char ac__type_sizeof_;
5531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5542 *) ac_try_echo
=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5547 grep -v '^ *+' conftest.er1
>conftest.err
5549 cat conftest.err
>&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.
$ac_objext; then
5555 ac_lo
=$ac_mid; break
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.
$ac_ext >&5
5560 ac_hi
=`expr '(' $ac_mid ')' - 1`
5561 if test $ac_mid -le $ac_hi; then
5565 ac_mid
=`expr 2 '*' $ac_mid`
5568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.
$ac_ext >&5
5577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5581 # Binary search between lo and hi bounds.
5582 while test "x$ac_lo" != "x$ac_hi"; do
5583 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5584 cat >conftest.
$ac_ext <<_ACEOF
5587 cat confdefs.h
>>conftest.
$ac_ext
5588 cat >>conftest.
$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 $ac_includes_default
5591 typedef char ac__type_sizeof_;
5595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5602 rm -f conftest.
$ac_objext
5603 if { (ac_try
="$ac_compile"
5605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5611 grep -v '^ *+' conftest.er1 >conftest.err
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest.$ac_objext; then
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 ac_lo=`expr '(' $ac_mid ')' + 1`
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 ?*) ac_cv_sizeof_char=$ac_lo;;
5631 '') if test "$ac_cv_type_char" = yes; then
5632 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5633 See \`config.log
' for more details." >&5
5634 echo "$as_me: error: cannot compute sizeof (char)
5635 See \`config.log' for more details.
" >&2;}
5636 { (exit 77); exit 77; }; }
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5649 typedef char ac__type_sizeof_;
5650 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5651 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5658 FILE *f = fopen ("conftest.val
", "w
");
5661 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5663 long int i = longval ();
5664 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5666 fprintf (f, "%ld
\n", i);
5670 unsigned long int i = ulongval ();
5671 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5673 fprintf (f, "%lu
\n", i);
5675 return ferror (f) || fclose (f) != 0;
5681 rm -f conftest$ac_exeext
5682 if { (ac_try="$ac_link"
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_link") 2>&5
5690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5692 { (case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_try") 2>&5
5699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 ac_cv_sizeof_char=`cat conftest.val`
5703 echo "$as_me: program exited with status
$ac_status" >&5
5704 echo "$as_me: failed program was
:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5708 if test "$ac_cv_type_char" = yes; then
5709 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
)
5710 See \
`config.log' for more details." >&5
5711 echo "$as_me: error: cannot compute sizeof (char)
5712 See \`config.log
' for more details." >&2;}
5713 { (exit 77); exit 77; }; }
5718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5722 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5723 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5727 cat >>confdefs.h <<_ACEOF
5728 #define SIZEOF_CHAR $ac_cv_sizeof_char
5732 { echo "$as_me:$LINENO: checking for short" >&5
5733 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5734 if test "${ac_cv_type_short+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 cat >conftest.$ac_ext <<_ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5744 typedef short ac__type_new_;
5748 if ((ac__type_new_ *) 0)
5750 if (sizeof (ac__type_new_))
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_compile") 2>conftest.er1
5765 grep -v '^
*+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest.$ac_objext; then
5773 ac_cv_type_short=yes
5775 echo "$as_me: failed program was:" >&5
5776 sed 's
/^
/|
/' conftest.$ac_ext >&5
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5784 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5786 # The cast to long int works around a bug in the HP C Compiler
5787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5789 # This bug is HP SR number 8606223364.
5790 { echo "$as_me:$LINENO: checking size of short" >&5
5791 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5792 if test "${ac_cv_sizeof_short+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 if test "$cross_compiling" = yes; then
5796 # Depending upon the size, compute the lo and hi bounds.
5797 cat >conftest.
$ac_ext <<_ACEOF
5800 cat confdefs.h
>>conftest.
$ac_ext
5801 cat >>conftest.
$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5804 typedef short ac__type_sizeof_;
5808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5815 rm -f conftest.
$ac_objext
5816 if { (ac_try
="$ac_compile"
5818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5824 grep -v '^ *+' conftest.er1 >conftest.err
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5841 typedef short ac__type_sizeof_;
5845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5852 rm -f conftest.$ac_objext
5853 if { (ac_try="$ac_compile"
5855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5856 *) ac_try_echo
=$ac_try;;
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_compile") 2>conftest.er1
5861 grep -v '^ *+' conftest.er1
>conftest.err
5863 cat conftest.err
>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } && {
5866 test -z "$ac_c_werror_flag" ||
5867 test ! -s conftest.err
5868 } && test -s conftest.
$ac_objext; then
5869 ac_hi
=$ac_mid; break
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.
$ac_ext >&5
5874 ac_lo
=`expr $ac_mid + 1`
5875 if test $ac_lo -le $ac_mid; then
5879 ac_mid
=`expr 2 '*' $ac_mid + 1`
5882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.
$ac_ext >&5
5888 cat >conftest.
$ac_ext <<_ACEOF
5891 cat confdefs.h
>>conftest.
$ac_ext
5892 cat >>conftest.
$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5895 typedef short ac__type_sizeof_;
5899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5906 rm -f conftest.
$ac_objext
5907 if { (ac_try
="$ac_compile"
5909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5915 grep -v '^ *+' conftest.er1 >conftest.err
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.$ac_objext; then
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5932 typedef short ac__type_sizeof_;
5936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5943 rm -f conftest.$ac_objext
5944 if { (ac_try="$ac_compile"
5946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5947 *) ac_try_echo
=$ac_try;;
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5952 grep -v '^ *+' conftest.er1
>conftest.err
5954 cat conftest.err
>&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.
$ac_objext; then
5960 ac_lo
=$ac_mid; break
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.
$ac_ext >&5
5965 ac_hi
=`expr '(' $ac_mid ')' - 1`
5966 if test $ac_mid -le $ac_hi; then
5970 ac_mid
=`expr 2 '*' $ac_mid`
5973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.
$ac_ext >&5
5982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5986 # Binary search between lo and hi bounds.
5987 while test "x$ac_lo" != "x$ac_hi"; do
5988 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5989 cat >conftest.
$ac_ext <<_ACEOF
5992 cat confdefs.h
>>conftest.
$ac_ext
5993 cat >>conftest.
$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
5996 typedef short ac__type_sizeof_;
6000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6007 rm -f conftest.
$ac_objext
6008 if { (ac_try
="$ac_compile"
6010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 ac_lo=`expr '(' $ac_mid ')' + 1`
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 ?*) ac_cv_sizeof_short=$ac_lo;;
6036 '') if test "$ac_cv_type_short" = yes; then
6037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6038 See \`config.log
' for more details." >&5
6039 echo "$as_me: error: cannot compute sizeof (short)
6040 See \`config.log' for more details.
" >&2;}
6041 { (exit 77); exit 77; }; }
6043 ac_cv_sizeof_short=0
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 $ac_includes_default
6054 typedef short ac__type_sizeof_;
6055 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6056 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6063 FILE *f = fopen ("conftest.val
", "w
");
6066 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6068 long int i = longval ();
6069 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6071 fprintf (f, "%ld
\n", i);
6075 unsigned long int i = ulongval ();
6076 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6078 fprintf (f, "%lu
\n", i);
6080 return ferror (f) || fclose (f) != 0;
6086 rm -f conftest$ac_exeext
6087 if { (ac_try="$ac_link"
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_link") 2>&5
6095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6097 { (case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_try") 2>&5
6104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_cv_sizeof_short=`cat conftest.val`
6108 echo "$as_me: program exited with status
$ac_status" >&5
6109 echo "$as_me: failed program was
:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6113 if test "$ac_cv_type_short" = yes; then
6114 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
6115 See \
`config.log' for more details." >&5
6116 echo "$as_me: error: cannot compute sizeof (short)
6117 See \`config.log
' for more details." >&2;}
6118 { (exit 77); exit 77; }; }
6120 ac_cv_sizeof_short=0
6123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6127 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6128 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6132 cat >>confdefs.h <<_ACEOF
6133 #define SIZEOF_SHORT $ac_cv_sizeof_short
6137 { echo "$as_me:$LINENO: checking for int" >&5
6138 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6139 if test "${ac_cv_type_int+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 cat >conftest.$ac_ext <<_ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 $ac_includes_default
6149 typedef int ac__type_new_;
6153 if ((ac__type_new_ *) 0)
6155 if (sizeof (ac__type_new_))
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6170 grep -v '^
*+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6180 echo "$as_me: failed program was:" >&5
6181 sed 's
/^
/|
/' conftest.$ac_ext >&5
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6189 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6191 # The cast to long int works around a bug in the HP C Compiler
6192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6194 # This bug is HP SR number 8606223364.
6195 { echo "$as_me:$LINENO: checking size of int" >&5
6196 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6197 if test "${ac_cv_sizeof_int+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 if test "$cross_compiling" = yes; then
6201 # Depending upon the size, compute the lo and hi bounds.
6202 cat >conftest.
$ac_ext <<_ACEOF
6205 cat confdefs.h
>>conftest.
$ac_ext
6206 cat >>conftest.
$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 $ac_includes_default
6209 typedef int ac__type_sizeof_;
6213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6220 rm -f conftest.
$ac_objext
6221 if { (ac_try
="$ac_compile"
6223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6229 grep -v '^ *+' conftest.er1 >conftest.err
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } && {
6234 test -z "$ac_c_werror_flag" ||
6235 test ! -s conftest.err
6236 } && test -s conftest.$ac_objext; then
6239 cat >conftest.$ac_ext <<_ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6246 typedef int ac__type_sizeof_;
6250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6257 rm -f conftest.$ac_objext
6258 if { (ac_try="$ac_compile"
6260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6261 *) ac_try_echo
=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6266 grep -v '^ *+' conftest.er1
>conftest.err
6268 cat conftest.err
>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.
$ac_objext; then
6274 ac_hi
=$ac_mid; break
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.
$ac_ext >&5
6279 ac_lo
=`expr $ac_mid + 1`
6280 if test $ac_lo -le $ac_mid; then
6284 ac_mid
=`expr 2 '*' $ac_mid + 1`
6287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.
$ac_ext >&5
6293 cat >conftest.
$ac_ext <<_ACEOF
6296 cat confdefs.h
>>conftest.
$ac_ext
6297 cat >>conftest.
$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 $ac_includes_default
6300 typedef int ac__type_sizeof_;
6304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6311 rm -f conftest.
$ac_objext
6312 if { (ac_try
="$ac_compile"
6314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compile") 2>conftest.er1
6320 grep -v '^ *+' conftest.er1 >conftest.err
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
6330 cat >conftest.$ac_ext <<_ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 $ac_includes_default
6337 typedef int ac__type_sizeof_;
6341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6352 *) ac_try_echo
=$ac_try;;
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_compile") 2>conftest.er1
6357 grep -v '^ *+' conftest.er1
>conftest.err
6359 cat conftest.err
>&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && {
6362 test -z "$ac_c_werror_flag" ||
6363 test ! -s conftest.err
6364 } && test -s conftest.
$ac_objext; then
6365 ac_lo
=$ac_mid; break
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.
$ac_ext >&5
6370 ac_hi
=`expr '(' $ac_mid ')' - 1`
6371 if test $ac_mid -le $ac_hi; then
6375 ac_mid
=`expr 2 '*' $ac_mid`
6378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.
$ac_ext >&5
6387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6391 # Binary search between lo and hi bounds.
6392 while test "x$ac_lo" != "x$ac_hi"; do
6393 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6394 cat >conftest.
$ac_ext <<_ACEOF
6397 cat confdefs.h
>>conftest.
$ac_ext
6398 cat >>conftest.
$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 $ac_includes_default
6401 typedef int ac__type_sizeof_;
6405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6412 rm -f conftest.
$ac_objext
6413 if { (ac_try
="$ac_compile"
6415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compile") 2>conftest.er1
6421 grep -v '^ *+' conftest.er1 >conftest.err
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && {
6426 test -z "$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 } && test -s conftest.$ac_objext; then
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_lo=`expr '(' $ac_mid ')' + 1`
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 ?*) ac_cv_sizeof_int=$ac_lo;;
6441 '') if test "$ac_cv_type_int" = yes; then
6442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6443 See \`config.log
' for more details." >&5
6444 echo "$as_me: error: cannot compute sizeof (int)
6445 See \`config.log' for more details.
" >&2;}
6446 { (exit 77); exit 77; }; }
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 $ac_includes_default
6459 typedef int ac__type_sizeof_;
6460 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6461 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6468 FILE *f = fopen ("conftest.val
", "w
");
6471 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6473 long int i = longval ();
6474 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6476 fprintf (f, "%ld
\n", i);
6480 unsigned long int i = ulongval ();
6481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6483 fprintf (f, "%lu
\n", i);
6485 return ferror (f) || fclose (f) != 0;
6491 rm -f conftest$ac_exeext
6492 if { (ac_try="$ac_link"
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_link") 2>&5
6500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6502 { (case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_try") 2>&5
6509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_cv_sizeof_int=`cat conftest.val`
6513 echo "$as_me: program exited with status
$ac_status" >&5
6514 echo "$as_me: failed program was
:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6518 if test "$ac_cv_type_int" = yes; then
6519 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
6520 See \
`config.log' for more details." >&5
6521 echo "$as_me: error: cannot compute sizeof (int)
6522 See \`config.log
' for more details." >&2;}
6523 { (exit 77); exit 77; }; }
6528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6532 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6533 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6537 cat >>confdefs.h <<_ACEOF
6538 #define SIZEOF_INT $ac_cv_sizeof_int
6542 { echo "$as_me:$LINENO: checking for long" >&5
6543 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6544 if test "${ac_cv_type_long+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 cat >conftest.$ac_ext <<_ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 $ac_includes_default
6554 typedef long ac__type_new_;
6558 if ((ac__type_new_ *) 0)
6560 if (sizeof (ac__type_new_))
6566 rm -f conftest.$ac_objext
6567 if { (ac_try="$ac_compile"
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_compile") 2>conftest.er1
6575 grep -v '^
*+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } && {
6580 test -z "$ac_c_werror_flag" ||
6581 test ! -s conftest.err
6582 } && test -s conftest.$ac_objext; then
6585 echo "$as_me: failed program was:" >&5
6586 sed 's
/^
/|
/' conftest.$ac_ext >&5
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6594 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6596 # The cast to long int works around a bug in the HP C Compiler
6597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6599 # This bug is HP SR number 8606223364.
6600 { echo "$as_me:$LINENO: checking size of long" >&5
6601 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6602 if test "${ac_cv_sizeof_long+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 if test "$cross_compiling" = yes; then
6606 # Depending upon the size, compute the lo and hi bounds.
6607 cat >conftest.
$ac_ext <<_ACEOF
6610 cat confdefs.h
>>conftest.
$ac_ext
6611 cat >>conftest.
$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 $ac_includes_default
6614 typedef long ac__type_sizeof_;
6618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6625 rm -f conftest.
$ac_objext
6626 if { (ac_try
="$ac_compile"
6628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_compile") 2>conftest.er1
6634 grep -v '^ *+' conftest.er1 >conftest.err
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && {
6639 test -z "$ac_c_werror_flag" ||
6640 test ! -s conftest.err
6641 } && test -s conftest.$ac_objext; then
6644 cat >conftest.$ac_ext <<_ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 $ac_includes_default
6651 typedef long ac__type_sizeof_;
6655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6662 rm -f conftest.$ac_objext
6663 if { (ac_try="$ac_compile"
6665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6666 *) ac_try_echo
=$ac_try;;
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
6671 grep -v '^ *+' conftest.er1
>conftest.err
6673 cat conftest.err
>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && {
6676 test -z "$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 } && test -s conftest.
$ac_objext; then
6679 ac_hi
=$ac_mid; break
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.
$ac_ext >&5
6684 ac_lo
=`expr $ac_mid + 1`
6685 if test $ac_lo -le $ac_mid; then
6689 ac_mid
=`expr 2 '*' $ac_mid + 1`
6692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.
$ac_ext >&5
6698 cat >conftest.
$ac_ext <<_ACEOF
6701 cat confdefs.h
>>conftest.
$ac_ext
6702 cat >>conftest.
$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 typedef long ac__type_sizeof_;
6709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6716 rm -f conftest.
$ac_objext
6717 if { (ac_try
="$ac_compile"
6719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6725 grep -v '^ *+' conftest.er1 >conftest.err
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6735 cat >conftest.$ac_ext <<_ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 $ac_includes_default
6742 typedef long ac__type_sizeof_;
6746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6753 rm -f conftest.$ac_objext
6754 if { (ac_try="$ac_compile"
6756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6757 *) ac_try_echo
=$ac_try;;
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760 (eval "$ac_compile") 2>conftest.er1
6762 grep -v '^ *+' conftest.er1
>conftest.err
6764 cat conftest.err
>&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 } && test -s conftest.
$ac_objext; then
6770 ac_lo
=$ac_mid; break
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.
$ac_ext >&5
6775 ac_hi
=`expr '(' $ac_mid ')' - 1`
6776 if test $ac_mid -le $ac_hi; then
6780 ac_mid
=`expr 2 '*' $ac_mid`
6783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.
$ac_ext >&5
6792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6796 # Binary search between lo and hi bounds.
6797 while test "x$ac_lo" != "x$ac_hi"; do
6798 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6799 cat >conftest.
$ac_ext <<_ACEOF
6802 cat confdefs.h
>>conftest.
$ac_ext
6803 cat >>conftest.
$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6806 typedef long ac__type_sizeof_;
6810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6817 rm -f conftest.
$ac_objext
6818 if { (ac_try
="$ac_compile"
6820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_compile") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_lo=`expr '(' $ac_mid ')' + 1`
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 ?*) ac_cv_sizeof_long=$ac_lo;;
6846 '') if test "$ac_cv_type_long" = yes; then
6847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6848 See \`config.log
' for more details." >&5
6849 echo "$as_me: error: cannot compute sizeof (long)
6850 See \`config.log' for more details.
" >&2;}
6851 { (exit 77); exit 77; }; }
6857 cat >conftest.$ac_ext <<_ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6863 $ac_includes_default
6864 typedef long ac__type_sizeof_;
6865 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6866 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6873 FILE *f = fopen ("conftest.val
", "w
");
6876 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6878 long int i = longval ();
6879 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6881 fprintf (f, "%ld
\n", i);
6885 unsigned long int i = ulongval ();
6886 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6888 fprintf (f, "%lu
\n", i);
6890 return ferror (f) || fclose (f) != 0;
6896 rm -f conftest$ac_exeext
6897 if { (ac_try="$ac_link"
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_link") 2>&5
6905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6907 { (case "(($ac_try" in
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_try") 2>&5
6914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 ac_cv_sizeof_long=`cat conftest.val`
6918 echo "$as_me: program exited with status
$ac_status" >&5
6919 echo "$as_me: failed program was
:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6923 if test "$ac_cv_type_long" = yes; then
6924 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
6925 See \
`config.log' for more details." >&5
6926 echo "$as_me: error: cannot compute sizeof (long)
6927 See \`config.log
' for more details." >&2;}
6928 { (exit 77); exit 77; }; }
6933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6938 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6942 cat >>confdefs.h <<_ACEOF
6943 #define SIZEOF_LONG $ac_cv_sizeof_long
6947 { echo "$as_me:$LINENO: checking for long long" >&5
6948 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6949 if test "${ac_cv_type_long_long+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 cat >conftest.$ac_ext <<_ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 $ac_includes_default
6959 typedef long long ac__type_new_;
6963 if ((ac__type_new_ *) 0)
6965 if (sizeof (ac__type_new_))
6971 rm -f conftest.$ac_objext
6972 if { (ac_try="$ac_compile"
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_compile") 2>conftest.er1
6980 grep -v '^
*+' conftest.er1 >conftest.err
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest.$ac_objext; then
6988 ac_cv_type_long_long=yes
6990 echo "$as_me: failed program was:" >&5
6991 sed 's
/^
/|
/' conftest.$ac_ext >&5
6993 ac_cv_type_long_long=no
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6999 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7001 # The cast to long int works around a bug in the HP C Compiler
7002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7004 # This bug is HP SR number 8606223364.
7005 { echo "$as_me:$LINENO: checking size of long long" >&5
7006 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7007 if test "${ac_cv_sizeof_long_long+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 if test "$cross_compiling" = yes; then
7011 # Depending upon the size, compute the lo and hi bounds.
7012 cat >conftest.
$ac_ext <<_ACEOF
7015 cat confdefs.h
>>conftest.
$ac_ext
7016 cat >>conftest.
$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019 typedef long long ac__type_sizeof_;
7023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7030 rm -f conftest.
$ac_objext
7031 if { (ac_try
="$ac_compile"
7033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7034 *) ac_try_echo=$ac_try;;
7036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037 (eval "$ac_compile") 2>conftest.er1
7039 grep -v '^ *+' conftest.er1 >conftest.err
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } && {
7044 test -z "$ac_c_werror_flag" ||
7045 test ! -s conftest.err
7046 } && test -s conftest.$ac_objext; then
7049 cat >conftest.$ac_ext <<_ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 typedef long long ac__type_sizeof_;
7060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7071 *) ac_try_echo
=$ac_try;;
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7076 grep -v '^ *+' conftest.er1
>conftest.err
7078 cat conftest.err
>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.
$ac_objext; then
7084 ac_hi
=$ac_mid; break
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.
$ac_ext >&5
7089 ac_lo
=`expr $ac_mid + 1`
7090 if test $ac_lo -le $ac_mid; then
7094 ac_mid
=`expr 2 '*' $ac_mid + 1`
7097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.
$ac_ext >&5
7103 cat >conftest.
$ac_ext <<_ACEOF
7106 cat confdefs.h
>>conftest.
$ac_ext
7107 cat >>conftest.
$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 $ac_includes_default
7110 typedef long long ac__type_sizeof_;
7114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7121 rm -f conftest.
$ac_objext
7122 if { (ac_try
="$ac_compile"
7124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7130 grep -v '^ *+' conftest.er1 >conftest.err
7132 cat conftest.err >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7140 cat >conftest.$ac_ext <<_ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 $ac_includes_default
7147 typedef long long ac__type_sizeof_;
7151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7158 rm -f conftest.$ac_objext
7159 if { (ac_try="$ac_compile"
7161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7162 *) ac_try_echo
=$ac_try;;
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_compile") 2>conftest.er1
7167 grep -v '^ *+' conftest.er1
>conftest.err
7169 cat conftest.err
>&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest.
$ac_objext; then
7175 ac_lo
=$ac_mid; break
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.
$ac_ext >&5
7180 ac_hi
=`expr '(' $ac_mid ')' - 1`
7181 if test $ac_mid -le $ac_hi; then
7185 ac_mid
=`expr 2 '*' $ac_mid`
7188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7191 echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.
$ac_ext >&5
7197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7201 # Binary search between lo and hi bounds.
7202 while test "x$ac_lo" != "x$ac_hi"; do
7203 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7204 cat >conftest.
$ac_ext <<_ACEOF
7207 cat confdefs.h
>>conftest.
$ac_ext
7208 cat >>conftest.
$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 $ac_includes_default
7211 typedef long long ac__type_sizeof_;
7215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7222 rm -f conftest.
$ac_objext
7223 if { (ac_try
="$ac_compile"
7225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7229 (eval "$ac_compile") 2>conftest.er1
7231 grep -v '^ *+' conftest.er1 >conftest.err
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && {
7236 test -z "$ac_c_werror_flag" ||
7237 test ! -s conftest.err
7238 } && test -s conftest.$ac_objext; then
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7244 ac_lo=`expr '(' $ac_mid ')' + 1`
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7251 '') if test "$ac_cv_type_long_long" = yes; then
7252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7253 See \`config.log
' for more details." >&5
7254 echo "$as_me: error: cannot compute sizeof (long long)
7255 See \`config.log' for more details.
" >&2;}
7256 { (exit 77); exit 77; }; }
7258 ac_cv_sizeof_long_long=0
7262 cat >conftest.$ac_ext <<_ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7269 typedef long long ac__type_sizeof_;
7270 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7271 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7278 FILE *f = fopen ("conftest.val
", "w
");
7281 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7283 long int i = longval ();
7284 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7286 fprintf (f, "%ld
\n", i);
7290 unsigned long int i = ulongval ();
7291 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7293 fprintf (f, "%lu
\n", i);
7295 return ferror (f) || fclose (f) != 0;
7301 rm -f conftest$ac_exeext
7302 if { (ac_try="$ac_link"
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7308 (eval "$ac_link") 2>&5
7310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7312 { (case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_try") 2>&5
7319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 ac_cv_sizeof_long_long=`cat conftest.val`
7323 echo "$as_me: program exited with status
$ac_status" >&5
7324 echo "$as_me: failed program was
:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7328 if test "$ac_cv_type_long_long" = yes; then
7329 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
7330 See \
`config.log' for more details." >&5
7331 echo "$as_me: error: cannot compute sizeof (long long)
7332 See \`config.log
' for more details." >&2;}
7333 { (exit 77); exit 77; }; }
7335 ac_cv_sizeof_long_long=0
7338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7342 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7343 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7347 cat >>confdefs.h <<_ACEOF
7348 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7355 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7356 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7357 if test "${ac_cv_addrinfo+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7376 rm -f conftest.$ac_objext
7377 if { (ac_try="$ac_compile"
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7385 grep -v '^
*+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7395 echo "$as_me: failed program was:" >&5
7396 sed 's
/^
/|
/' conftest.$ac_ext >&5
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7404 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7405 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7406 if test $ac_cv_addrinfo = yes; then
7407 cat >>confdefs.h <<\_ACEOF
7408 #define HAVE_ADDRINFO 1
7412 cat >>confdefs.h <<\_ACEOF
7413 #define NEED_ADDRINFO_H 1
7418 if test "$ac_cv_addrinfo" = no; then
7419 missing_includes=yes
7423 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7424 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7425 if test "${ac_cv_maxserv+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7440 $EGREP "yes" >/dev/null 2>&1; then
7449 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7450 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7451 if test $ac_cv_maxserv != yes; then
7452 cat >>confdefs.h <<\_ACEOF
7453 #define NEED_ADDRINFO_H 1
7458 if test "$ac_cv_maxserv" = no; then
7459 missing_includes=yes
7463 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7464 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7465 if test "${ac_cv_namereqd+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 cat >conftest.$ac_ext <<_ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7480 $EGREP "yes" >/dev/null 2>&1; then
7489 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7490 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7491 if test $ac_cv_namereqd != yes; then
7492 cat >>confdefs.h <<\_ACEOF
7493 #define NEED_ADDRINFO_H 1
7498 if test "$ac_cv_namereqd" = no; then
7499 missing_includes=yes
7503 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7504 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7505 if test "${ac_cv_sa_storage+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 cat >conftest.$ac_ext <<_ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7515 # include <sys/types.h>
7516 # include <sys/socket.h>
7520 struct sockaddr_storage s
7525 rm -f conftest.$ac_objext
7526 if { (ac_try="$ac_compile"
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532 (eval "$ac_compile") 2>conftest.er1
7534 grep -v '^
*+' conftest.er1 >conftest.err
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest.$ac_objext; then
7542 ac_cv_sa_storage=yes
7544 echo "$as_me: failed program was:" >&5
7545 sed 's
/^
/|
/' conftest.$ac_ext >&5
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7554 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7555 if test $ac_cv_sa_storage = yes; then
7556 cat >>confdefs.h <<\_ACEOF
7557 #define HAVE_SOCKADDR_STORAGE 1
7562 if test "$ac_cv_sa_storage" = no; then
7563 missing_includes=yes
7568 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7569 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7570 if test "${ac_cv_inaddrsz+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7580 # include <arpa/nameser.h>
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_compile") 2>conftest.er1
7598 grep -v '^
*+' conftest.er1 >conftest.err
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && {
7603 test -z "$ac_c_werror_flag" ||
7604 test ! -s conftest.err
7605 } && test -s conftest.$ac_objext; then
7608 echo "$as_me: failed program was:" >&5
7609 sed 's
/^
/|
/' conftest.$ac_ext >&5
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7618 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7619 if test $ac_cv_inaddrsz = yes; then
7620 cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_INADDRSZ 1
7627 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7628 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7629 if test "${ac_cv_in6addrsz+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 cat >conftest.$ac_ext <<_ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7639 # include <arpa/nameser.h>
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7657 grep -v '^
*+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7667 echo "$as_me: failed program was:" >&5
7668 sed 's
/^
/|
/' conftest.$ac_ext >&5
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7677 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7678 if test $ac_cv_in6addrsz = yes; then
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_IN6ADDRSZ 1
7687 if test "$ac_cv_addrsz" = no; then
7688 missing_includes=yes
7692 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7693 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7694 if test "${ac_cv_res_inet6+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 cat >conftest.$ac_ext <<_ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7704 # include <sys/types.h>
7705 # include <netinet/in.h>
7706 # include <resolv.h>
7710 int a = RES_USE_INET6
7715 rm -f conftest.$ac_objext
7716 if { (ac_try="$ac_compile"
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7722 (eval "$ac_compile") 2>conftest.er1
7724 grep -v '^
*+' conftest.er1 >conftest.err
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && {
7729 test -z "$ac_c_werror_flag" ||
7730 test ! -s conftest.err
7731 } && test -s conftest.$ac_objext; then
7734 echo "$as_me: failed program was:" >&5
7735 sed 's
/^
/|
/' conftest.$ac_ext >&5
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7744 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7745 if test $ac_cv_res_inet6 = yes; then
7746 cat >>confdefs.h <<\_ACEOF
7747 #define HAVE_RES_USE_INET6 1
7752 if test "$ac_cv_res_inet6" = no; then
7753 missing_includes=yes
7757 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7758 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7759 if test "${ac_cv_res_state_ext+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 cat >conftest.$ac_ext <<_ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7769 # include <sys/types.h>
7770 # include <netinet/in.h>
7771 # include <netinet6/in6.h>
7772 # include <resolv.h>
7776 struct __res_state_ext e
7781 rm -f conftest.$ac_objext
7782 if { (ac_try="$ac_compile"
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_compile") 2>conftest.er1
7790 grep -v '^
*+' conftest.er1 >conftest.err
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && {
7795 test -z "$ac_c_werror_flag" ||
7796 test ! -s conftest.err
7797 } && test -s conftest.$ac_objext; then
7798 ac_cv_res_state_ext=yes
7800 echo "$as_me: failed program was:" >&5
7801 sed 's
/^
/|
/' conftest.$ac_ext >&5
7803 ac_cv_res_state_ext=no
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7810 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7811 if test $ac_cv_res_state_ext = yes; then
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_RES_STATE_EXT 1
7818 if test "$ac_cv_res_state_ext" = no; then
7819 missing_includes=yes
7823 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7824 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7825 if test "${ac_cv_res_state+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 cat >conftest.$ac_ext <<_ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7835 # include <sys/types.h>
7836 # include <netinet/in.h>
7837 # include <netinet6/in6.h>
7838 # include <resolv.h>
7842 struct __res_state e; e.nsort = 0
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7856 grep -v '^
*+' conftest.er1 >conftest.err
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest.$ac_objext; then
7866 echo "$as_me: failed program was:" >&5
7867 sed 's
/^
/|
/' conftest.$ac_ext >&5
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7876 echo "${ECHO_T}$ac_cv_res_state" >&6; }
7877 if test $ac_cv_res_state = yes; then
7878 cat >>confdefs.h <<\_ACEOF
7879 #define HAVE_NEW_RES_STATE 1
7892 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7908 #define $ac_func innocuous_$ac_func
7910 /* System header to define __stub macros and hopefully few prototypes,
7911 which can conflict with char $ac_func (); below.
7912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7913 <limits.h> exists even on freestanding compilers. */
7916 # include <limits.h>
7918 # include <assert.h>
7923 /* Override any GCC internal prototype to avoid an error.
7924 Use char because int might match the return type of a GCC
7925 builtin and then its argument prototype would still apply. */
7930 /* The GNU C library defines this for functions which it implements
7931 to always fail with ENOSYS. Some functions are actually named
7932 something starting with __ and the normal name is an alias. */
7933 #if defined __stub_$ac_func || defined __stub___$ac_func
7945 rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_link") 2>conftest.er1
7954 grep -v '^
*+' conftest.er1 >conftest.err
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } && {
7959 test -z "$ac_c_werror_flag" ||
7960 test ! -s conftest.err
7961 } && test -s conftest$ac_exeext &&
7962 $as_test_x conftest$ac_exeext; then
7963 eval "$as_ac_var=yes"
7965 echo "$as_me: failed program was:" >&5
7966 sed 's
/^
/|
/' conftest.$ac_ext >&5
7968 eval "$as_ac_var=no"
7971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7972 conftest$ac_exeext conftest.$ac_ext
7974 ac_res=`eval echo '${'$as_ac_var'}'`
7975 { echo "$as_me:$LINENO: result: $ac_res" >&5
7976 echo "${ECHO_T}$ac_res" >&6; }
7977 if test `eval echo '${'$as_ac_var'}'` = yes; then
7978 cat >>confdefs.h <<_ACEOF
7979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7983 case " $LIBOBJS " in
7984 *" $ac_func.$ac_objext "* ) ;;
7985 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7994 for ac_func in strftime
7996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 cat >conftest.$ac_ext <<_ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8010 #define $ac_func innocuous_$ac_func
8012 /* System header to define __stub macros and hopefully few prototypes,
8013 which can conflict with char $ac_func (); below.
8014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8015 <limits.h> exists even on freestanding compilers. */
8018 # include <limits.h>
8020 # include <assert.h>
8025 /* Override any GCC internal prototype to avoid an error.
8026 Use char because int might match the return type of a GCC
8027 builtin and then its argument prototype would still apply. */
8032 /* The GNU C library defines this for functions which it implements
8033 to always fail with ENOSYS. Some functions are actually named
8034 something starting with __ and the normal name is an alias. */
8035 #if defined __stub_$ac_func || defined __stub___$ac_func
8047 rm -f conftest.$ac_objext conftest$ac_exeext
8048 if { (ac_try="$ac_link"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_link") 2>conftest.er1
8056 grep -v '^
*+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest$ac_exeext &&
8064 $as_test_x conftest$ac_exeext; then
8065 eval "$as_ac_var=yes"
8067 echo "$as_me: failed program was:" >&5
8068 sed 's
/^
/|
/' conftest.$ac_ext >&5
8070 eval "$as_ac_var=no"
8073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8074 conftest$ac_exeext conftest.$ac_ext
8076 ac_res=`eval echo '${'$as_ac_var'}'`
8077 { echo "$as_me:$LINENO: result: $ac_res" >&5
8078 echo "${ECHO_T}$ac_res" >&6; }
8079 if test `eval echo '${'$as_ac_var'}'` = yes; then
8080 cat >>confdefs.h <<_ACEOF
8081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8089 for ac_func in setlinebuf alarm
8091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8105 #define $ac_func innocuous_$ac_func
8107 /* System header to define __stub macros and hopefully few prototypes,
8108 which can conflict with char $ac_func (); below.
8109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8110 <limits.h> exists even on freestanding compilers. */
8113 # include <limits.h>
8115 # include <assert.h>
8120 /* Override any GCC internal prototype to avoid an error.
8121 Use char because int might match the return type of a GCC
8122 builtin and then its argument prototype would still apply. */
8127 /* The GNU C library defines this for functions which it implements
8128 to always fail with ENOSYS. Some functions are actually named
8129 something starting with __ and the normal name is an alias. */
8130 #if defined __stub_$ac_func || defined __stub___$ac_func
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (ac_try="$ac_link"
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_link") 2>conftest.er1
8151 grep -v '^
*+' conftest.er1 >conftest.err
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && {
8156 test -z "$ac_c_werror_flag" ||
8157 test ! -s conftest.err
8158 } && test -s conftest$ac_exeext &&
8159 $as_test_x conftest$ac_exeext; then
8160 eval "$as_ac_var=yes"
8162 echo "$as_me: failed program was:" >&5
8163 sed 's
/^
/|
/' conftest.$ac_ext >&5
8165 eval "$as_ac_var=no"
8168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8169 conftest$ac_exeext conftest.$ac_ext
8171 ac_res=`eval echo '${'$as_ac_var'}'`
8172 { echo "$as_me:$LINENO: result: $ac_res" >&5
8173 echo "${ECHO_T}$ac_res" >&6; }
8174 if test `eval echo '${'$as_ac_var'}'` = yes; then
8175 cat >>confdefs.h <<_ACEOF
8176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8186 for ac_func in vsnprintf snprintf
8188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 cat >conftest.$ac_ext <<_ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8202 #define $ac_func innocuous_$ac_func
8204 /* System header to define __stub macros and hopefully few prototypes,
8205 which can conflict with char $ac_func (); below.
8206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8207 <limits.h> exists even on freestanding compilers. */
8210 # include <limits.h>
8212 # include <assert.h>
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8224 /* The GNU C library defines this for functions which it implements
8225 to always fail with ENOSYS. Some functions are actually named
8226 something starting with __ and the normal name is an alias. */
8227 #if defined __stub_$ac_func || defined __stub___$ac_func
8239 rm -f conftest.$ac_objext conftest$ac_exeext
8240 if { (ac_try="$ac_link"
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_link") 2>conftest.er1
8248 grep -v '^
*+' conftest.er1 >conftest.err
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest$ac_exeext &&
8256 $as_test_x conftest$ac_exeext; then
8257 eval "$as_ac_var=yes"
8259 echo "$as_me: failed program was:" >&5
8260 sed 's
/^
/|
/' conftest.$ac_ext >&5
8262 eval "$as_ac_var=no"
8265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8266 conftest$ac_exeext conftest.$ac_ext
8268 ac_res=`eval echo '${'$as_ac_var'}'`
8269 { echo "$as_me:$LINENO: result: $ac_res" >&5
8270 echo "${ECHO_T}$ac_res" >&6; }
8271 if test `eval echo '${'$as_ac_var'}'` = yes; then
8272 cat >>confdefs.h <<_ACEOF
8273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8281 if test $needsnprintf = yes; then
8282 case " $LIBOBJS " in
8283 *" snprintf.$ac_objext "* ) ;;
8284 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8291 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8292 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8293 if test "${ac_cv_type_signal+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 cat >conftest.$ac_ext <<_ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 #include <sys/types.h>
8308 return *(signal (0, 0)) (0) == 1;
8313 rm -f conftest.$ac_objext
8314 if { (ac_try="$ac_compile"
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_compile") 2>conftest.er1
8322 grep -v '^
*+' conftest.er1 >conftest.err
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } && {
8327 test -z "$ac_c_werror_flag" ||
8328 test ! -s conftest.err
8329 } && test -s conftest.$ac_objext; then
8330 ac_cv_type_signal=int
8332 echo "$as_me: failed program was:" >&5
8333 sed 's
/^
/|
/' conftest.$ac_ext >&5
8335 ac_cv_type_signal=void
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8341 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8343 cat >>confdefs.h <<_ACEOF
8344 #define RETSIGTYPE $ac_cv_type_signal
8348 if test "$ac_cv_type_signal" = void ; then
8349 cat >>confdefs.h <<\_ACEOF
8354 cat >>confdefs.h <<\_ACEOF
8355 #define RETSIGVAL (0)
8362 cat >>confdefs.h <<\_ACEOF
8363 #define _BSD_SIGNALS 1
8370 for ac_func in sigaction
8372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8386 #define $ac_func innocuous_$ac_func
8388 /* System header to define __stub macros and hopefully few prototypes,
8389 which can conflict with char $ac_func (); below.
8390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391 <limits.h> exists even on freestanding compilers. */
8394 # include <limits.h>
8396 # include <assert.h>
8401 /* Override any GCC internal prototype to avoid an error.
8402 Use char because int might match the return type of a GCC
8403 builtin and then its argument prototype would still apply. */
8408 /* The GNU C library defines this for functions which it implements
8409 to always fail with ENOSYS. Some functions are actually named
8410 something starting with __ and the normal name is an alias. */
8411 #if defined __stub_$ac_func || defined __stub___$ac_func
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (ac_try="$ac_link"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_link") 2>conftest.er1
8432 grep -v '^
*+' conftest.er1 >conftest.err
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && {
8437 test -z "$ac_c_werror_flag" ||
8438 test ! -s conftest.err
8439 } && test -s conftest$ac_exeext &&
8440 $as_test_x conftest$ac_exeext; then
8441 eval "$as_ac_var=yes"
8443 echo "$as_me: failed program was:" >&5
8444 sed 's
/^
/|
/' conftest.$ac_ext >&5
8446 eval "$as_ac_var=no"
8449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8450 conftest$ac_exeext conftest.$ac_ext
8452 ac_res=`eval echo '${'$as_ac_var'}'`
8453 { echo "$as_me:$LINENO: result: $ac_res" >&5
8454 echo "${ECHO_T}$ac_res" >&6; }
8455 if test `eval echo '${'$as_ac_var'}'` = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8463 if test $ac_cv_func_sigaction = no ; then
8465 for ac_func in sigset
8467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8481 #define $ac_func innocuous_$ac_func
8483 /* System header to define __stub macros and hopefully few prototypes,
8484 which can conflict with char $ac_func (); below.
8485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8486 <limits.h> exists even on freestanding compilers. */
8489 # include <limits.h>
8491 # include <assert.h>
8496 /* Override any GCC internal prototype to avoid an error.
8497 Use char because int might match the return type of a GCC
8498 builtin and then its argument prototype would still apply. */
8503 /* The GNU C library defines this for functions which it implements
8504 to always fail with ENOSYS. Some functions are actually named
8505 something starting with __ and the normal name is an alias. */
8506 #if defined __stub_$ac_func || defined __stub___$ac_func
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (ac_try="$ac_link"
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_link") 2>conftest.er1
8527 grep -v '^
*+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest$ac_exeext &&
8535 $as_test_x conftest$ac_exeext; then
8536 eval "$as_ac_var=yes"
8538 echo "$as_me: failed program was:" >&5
8539 sed 's
/^
/|
/' conftest.$ac_ext >&5
8541 eval "$as_ac_var=no"
8544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8545 conftest$ac_exeext conftest.$ac_ext
8547 ac_res=`eval echo '${'$as_ac_var'}'`
8548 { echo "$as_me:$LINENO: result: $ac_res" >&5
8549 echo "${ECHO_T}$ac_res" >&6; }
8550 if test `eval echo '${'$as_ac_var'}'` = yes; then
8551 cat >>confdefs.h <<_ACEOF
8552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8562 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8563 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8564 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 ac_func_search_save_LIBS=$LIBS
8568 cat >conftest.$ac_ext <<_ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8575 /* Override any GCC internal prototype to avoid an error.
8576 Use char because int might match the return type of a GCC
8577 builtin and then its argument prototype would still apply. */
8585 return dnet_htoa ();
8590 for ac_lib in '' dnet; do
8591 if test -z "$ac_lib"; then
8592 ac_res="none required"
8595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (ac_try="$ac_link"
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_link") 2>conftest.er1
8606 grep -v '^
*+' conftest.er1 >conftest.err
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } && {
8611 test -z "$ac_c_werror_flag" ||
8612 test ! -s conftest.err
8613 } && test -s conftest$ac_exeext &&
8614 $as_test_x conftest$ac_exeext; then
8615 ac_cv_search_dnet_htoa=$ac_res
8617 echo "$as_me: failed program was:" >&5
8618 sed 's
/^
/|
/' conftest.$ac_ext >&5
8623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8625 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8629 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8632 ac_cv_search_dnet_htoa=no
8635 LIBS=$ac_func_search_save_LIBS
8637 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8638 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8639 ac_res=$ac_cv_search_dnet_htoa
8640 if test "$ac_res" != no; then
8641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8642 cat >>confdefs.h <<\_ACEOF
8643 #define HAVE_DNET_HTOA 1
8650 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8651 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8652 if test "${ac_cv_lib_rpc_main+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 ac_check_lib_save_LIBS=$LIBS
8657 cat >conftest.$ac_ext <<_ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (ac_try="$ac_link"
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_link") 2>conftest.er1
8682 grep -v '^
*+' conftest.er1 >conftest.err
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } && {
8687 test -z "$ac_c_werror_flag" ||
8688 test ! -s conftest.err
8689 } && test -s conftest$ac_exeext &&
8690 $as_test_x conftest$ac_exeext; then
8691 ac_cv_lib_rpc_main=yes
8693 echo "$as_me: failed program was:" >&5
8694 sed 's
/^
/|
/' conftest.$ac_ext >&5
8696 ac_cv_lib_rpc_main=no
8699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8703 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8704 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8705 if test $ac_cv_lib_rpc_main = yes; then
8706 cat >>confdefs.h <<_ACEOF
8707 #define HAVE_LIBRPC 1
8714 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8715 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8716 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 ac_func_search_save_LIBS=$LIBS
8720 cat >conftest.$ac_ext <<_ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8727 /* Override any GCC internal prototype to avoid an error.
8728 Use char because int might match the return type of a GCC
8729 builtin and then its argument prototype would still apply. */
8733 char getrpcbynumber ();
8737 return getrpcbynumber ();
8742 for ac_lib in '' nsl; do
8743 if test -z "$ac_lib"; then
8744 ac_res="none required"
8747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (ac_try="$ac_link"
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_link") 2>conftest.er1
8758 grep -v '^
*+' conftest.er1 >conftest.err
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest$ac_exeext &&
8766 $as_test_x conftest$ac_exeext; then
8767 ac_cv_search_getrpcbynumber=$ac_res
8769 echo "$as_me: failed program was:" >&5
8770 sed 's
/^
/|
/' conftest.$ac_ext >&5
8775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8777 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8781 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8784 ac_cv_search_getrpcbynumber=no
8787 LIBS=$ac_func_search_save_LIBS
8789 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8790 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8791 ac_res=$ac_cv_search_getrpcbynumber
8792 if test "$ac_res" != no; then
8793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8794 cat >>confdefs.h <<\_ACEOF
8795 #define HAVE_GETRPCBYNUMBER 1
8803 # Most operating systems have gethostbyname() in the default searched
8804 # libraries (i.e. libc):
8805 # Some OSes (eg. Solaris) place it in libnsl
8806 # Some strange OSes (SINIX) have it in libsocket:
8807 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8808 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8809 if test "${ac_cv_search_gethostbyname+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 ac_func_search_save_LIBS=$LIBS
8813 cat >conftest.$ac_ext <<_ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8820 /* Override any GCC internal prototype to avoid an error.
8821 Use char because int might match the return type of a GCC
8822 builtin and then its argument prototype would still apply. */
8826 char gethostbyname ();
8830 return gethostbyname ();
8835 for ac_lib in '' nsl socket resolv; do
8836 if test -z "$ac_lib"; then
8837 ac_res="none required"
8840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (ac_try="$ac_link"
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_link") 2>conftest.er1
8851 grep -v '^
*+' conftest.er1 >conftest.err
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } && {
8856 test -z "$ac_c_werror_flag" ||
8857 test ! -s conftest.err
8858 } && test -s conftest$ac_exeext &&
8859 $as_test_x conftest$ac_exeext; then
8860 ac_cv_search_gethostbyname=$ac_res
8862 echo "$as_me: failed program was:" >&5
8863 sed 's
/^
/|
/' conftest.$ac_ext >&5
8868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8870 if test "${ac_cv_search_gethostbyname+set}" = set; then
8874 if test "${ac_cv_search_gethostbyname+set}" = set; then
8877 ac_cv_search_gethostbyname=no
8880 LIBS=$ac_func_search_save_LIBS
8882 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8883 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8884 ac_res=$ac_cv_search_gethostbyname
8885 if test "$ac_res" != no; then
8886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8890 # Unfortunately libsocket sometimes depends on libnsl and
8891 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8892 if test "$ac_cv_search_gethostbyname" = "no"
8894 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8895 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
8896 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 ac_check_lib_save_LIBS
=$LIBS
8900 LIBS
="-lsocket -lnsl $LIBS"
8901 cat >conftest.
$ac_ext <<_ACEOF
8904 cat confdefs.h
>>conftest.
$ac_ext
8905 cat >>conftest.
$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8908 /* Override any GCC internal prototype to avoid an error.
8909 Use char because int might match the return type of a GCC
8910 builtin and then its argument prototype would still apply. */
8914 char gethostbyname ();
8918 return gethostbyname ();
8923 rm -f conftest.
$ac_objext conftest
$ac_exeext
8924 if { (ac_try
="$ac_link"
8926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_link") 2>conftest.er1
8932 grep -v '^ *+' conftest.er1 >conftest.err
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest$ac_exeext &&
8940 $as_test_x conftest$ac_exeext; then
8941 ac_cv_lib_socket_gethostbyname=yes
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_cv_lib_socket_gethostbyname=no
8949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8950 conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8953 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8954 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
8955 if test $ac_cv_lib_socket_gethostbyname = yes; then
8956 LIBS="-lsocket -lnsl $LIBS"
8960 { echo "$as_me:$LINENO: checking for library containing socket" >&5
8961 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
8962 if test "${ac_cv_search_socket+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 ac_func_search_save_LIBS=$LIBS
8966 cat >conftest.$ac_ext <<_ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8973 /* Override any GCC internal prototype to avoid an error.
8974 Use char because int might match the return type of a GCC
8975 builtin and then its argument prototype would still apply. */
8988 for ac_lib in '' socket; do
8989 if test -z "$ac_lib"; then
8990 ac_res="none required"
8993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (ac_try="$ac_link"
8998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8999 *) ac_try_echo
=$ac_try;;
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002 (eval "$ac_link") 2>conftest.er1
9004 grep -v '^ *+' conftest.er1
>conftest.err
9006 cat conftest.err
>&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && {
9009 test -z "$ac_c_werror_flag" ||
9010 test ! -s conftest.err
9011 } && test -s conftest
$ac_exeext &&
9012 $as_test_x conftest
$ac_exeext; then
9013 ac_cv_search_socket
=$ac_res
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.
$ac_ext >&5
9021 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9023 if test "${ac_cv_search_socket+set}" = set; then
9027 if test "${ac_cv_search_socket+set}" = set; then
9030 ac_cv_search_socket
=no
9033 LIBS
=$ac_func_search_save_LIBS
9035 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9036 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9037 ac_res
=$ac_cv_search_socket
9038 if test "$ac_res" != no
; then
9039 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9042 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9043 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9044 if test "${ac_cv_lib_socket_socket+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 ac_check_lib_save_LIBS
=$LIBS
9048 LIBS
="-lsocket -lnsl $LIBS"
9049 cat >conftest.
$ac_ext <<_ACEOF
9052 cat confdefs.h
>>conftest.
$ac_ext
9053 cat >>conftest.
$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9056 /* Override any GCC internal prototype to avoid an error.
9057 Use char because int might match the return type of a GCC
9058 builtin and then its argument prototype would still apply. */
9071 rm -f conftest.
$ac_objext conftest
$ac_exeext
9072 if { (ac_try
="$ac_link"
9074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_link") 2>conftest.er1
9080 grep -v '^ *+' conftest.er1 >conftest.err
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } && {
9085 test -z "$ac_c_werror_flag" ||
9086 test ! -s conftest.err
9087 } && test -s conftest$ac_exeext &&
9088 $as_test_x conftest$ac_exeext; then
9089 ac_cv_lib_socket_socket=yes
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9094 ac_cv_lib_socket_socket=no
9097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9098 conftest$ac_exeext conftest.$ac_ext
9099 LIBS=$ac_check_lib_save_LIBS
9101 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9102 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9103 if test $ac_cv_lib_socket_socket = yes; then
9104 LIBS="-lsocket -lnsl $LIBS"
9109 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9110 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9111 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9112 if test "${ac_cv_search_putmsg+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 ac_func_search_save_LIBS=$LIBS
9116 cat >conftest.$ac_ext <<_ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9138 for ac_lib in '' str; do
9139 if test -z "$ac_lib"; then
9140 ac_res="none required"
9143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9149 *) ac_try_echo
=$ac_try;;
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>conftest.er1
9154 grep -v '^ *+' conftest.er1
>conftest.err
9156 cat conftest.err
>&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } && {
9159 test -z "$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9161 } && test -s conftest
$ac_exeext &&
9162 $as_test_x conftest
$ac_exeext; then
9163 ac_cv_search_putmsg
=$ac_res
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.
$ac_ext >&5
9171 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9173 if test "${ac_cv_search_putmsg+set}" = set; then
9177 if test "${ac_cv_search_putmsg+set}" = set; then
9180 ac_cv_search_putmsg
=no
9183 LIBS
=$ac_func_search_save_LIBS
9185 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9186 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9187 ac_res
=$ac_cv_search_putmsg
9188 if test "$ac_res" != no
; then
9189 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9196 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
9197 if test -f $pfopen ; then
9199 for ac_func
in pfopen
9201 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9204 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 cat >conftest.
$ac_ext <<_ACEOF
9210 cat confdefs.h
>>conftest.
$ac_ext
9211 cat >>conftest.
$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9215 #define $ac_func innocuous_$ac_func
9217 /* System header to define __stub macros and hopefully few prototypes,
9218 which can conflict with char $ac_func (); below.
9219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9220 <limits.h> exists even on freestanding compilers. */
9223 # include <limits.h>
9225 # include <assert.h>
9230 /* Override any GCC internal prototype to avoid an error.
9231 Use char because int might match the return type of a GCC
9232 builtin and then its argument prototype would still apply. */
9237 /* The GNU C library defines this for functions which it implements
9238 to always fail with ENOSYS. Some functions are actually named
9239 something starting with __ and the normal name is an alias. */
9240 #if defined __stub_$ac_func || defined __stub___$ac_func
9252 rm -f conftest.
$ac_objext conftest
$ac_exeext
9253 if { (ac_try
="$ac_link"
9255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9259 (eval "$ac_link") 2>conftest.er1
9261 grep -v '^ *+' conftest.er1 >conftest.err
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest$ac_exeext &&
9269 $as_test_x conftest$ac_exeext; then
9270 eval "$as_ac_var=yes"
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 eval "$as_ac_var=no"
9278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9279 conftest$ac_exeext conftest.$ac_ext
9281 ac_res=`eval echo '${'$as_ac_var'}'`
9282 { echo "$as_me:$LINENO: result: $ac_res" >&5
9283 echo "${ECHO_T}$ac_res" >&6; }
9284 if test `eval echo '${'$as_ac_var'}'` = yes; then
9285 cat >>confdefs.h <<_ACEOF
9286 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9292 if test $ac_cv_func_pfopen = "no" ; then
9293 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9294 echo "${ECHO_T}Using $pfopen" >&6; }
9295 LIBS="$LIBS $pfopen"
9298 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9299 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9302 places=`ls $srcdir/.. |
sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9303 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9304 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9305 basedir=`echo $dir |
sed -e 's/[ab][0-9]*$//'`
9306 if test $lastdir = $basedir ; then
9310 if test -r $dir/libpcap.a ; then
9311 libpcap=$dir/libpcap.a
9315 if test $libpcap = FAIL ; then
9316 { echo "$as_me:$LINENO: result: not found" >&5
9317 echo "${ECHO_T}not found" >&6; }
9318 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9319 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9320 if test "${ac_cv_lib_pcap_main+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 ac_check_lib_save_LIBS=$LIBS
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (ac_try="$ac_link"
9344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9345 *) ac_try_echo
=$ac_try;;
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_link") 2>conftest.er1
9350 grep -v '^ *+' conftest.er1
>conftest.err
9352 cat conftest.err
>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } && {
9355 test -z "$ac_c_werror_flag" ||
9356 test ! -s conftest.err
9357 } && test -s conftest
$ac_exeext &&
9358 $as_test_x conftest
$ac_exeext; then
9359 ac_cv_lib_pcap_main
=yes
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.
$ac_ext >&5
9364 ac_cv_lib_pcap_main
=no
9367 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9368 conftest
$ac_exeext conftest.
$ac_ext
9369 LIBS
=$ac_check_lib_save_LIBS
9371 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9372 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9373 if test $ac_cv_lib_pcap_main = yes; then
9377 if test $libpcap = FAIL
; then
9378 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9379 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9380 { (exit 1); exit 1; }; }
9382 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9383 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9384 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
9385 \
( ! -r /usr
/include
/pcap.h \
); then
9386 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
9387 d
="/usr/local/include/pcap"
9388 elif test -r /usr
/include
/pcap
/pcap.h
; then
9389 d
="/usr/include/pcap"
9392 if test -z "$d" ; then
9393 { echo "$as_me:$LINENO: result: not found" >&5
9394 echo "${ECHO_T}not found" >&6; }
9396 V_INCLS
="-I$d $V_INCLS"
9397 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9398 echo "${ECHO_T}found -- -I$d added" >&6; }
9402 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9403 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9404 if test -r $d/pcap.h
; then
9405 V_INCLS
="-I$d $V_INCLS"
9406 elif test -r $places/pcap.h
; then
9407 V_INCLS
="-I$places $V_INCLS"
9409 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9410 echo "$as_me: error: cannot find pcap.h" >&2;}
9411 { (exit see INSTALL
); exit see INSTALL
; }; }
9413 { echo "$as_me:$LINENO: result: $libpcap" >&5
9414 echo "${ECHO_T}$libpcap" >&6; }
9416 LIBS
="$libpcap $LIBS"
9420 pseexe
="/lib/pse.exp"
9421 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9422 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9423 if test -f $pseexe ; then
9424 { echo "$as_me:$LINENO: result: yes" >&5
9425 echo "${ECHO_T}yes" >&6; }
9426 LIBS
="$LIBS -I:$pseexe"
9429 # We need "-lodm" and "-lcfg", as libpcap requires them on
9430 # AIX, and we just build a static libpcap.a and thus can't
9431 # arrange that when you link with libpcap you automatically
9432 # link with those libraries.
9434 LIBS
="$LIBS -lodm -lcfg"
9438 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9439 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9440 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 cat >conftest.
$ac_ext <<_ACEOF
9446 cat confdefs.h
>>conftest.
$ac_ext
9447 cat >>conftest.
$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9451 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9453 /* System header to define __stub macros and hopefully few prototypes,
9454 which can conflict with char pcap_list_datalinks (); below.
9455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9456 <limits.h> exists even on freestanding compilers. */
9459 # include <limits.h>
9461 # include <assert.h>
9464 #undef pcap_list_datalinks
9466 /* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */
9472 char pcap_list_datalinks ();
9473 /* The GNU C library defines this for functions which it implements
9474 to always fail with ENOSYS. Some functions are actually named
9475 something starting with __ and the normal name is an alias. */
9476 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9483 return pcap_list_datalinks ();
9488 rm -f conftest.
$ac_objext conftest
$ac_exeext
9489 if { (ac_try
="$ac_link"
9491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9497 grep -v '^ *+' conftest.er1 >conftest.err
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } && {
9502 test -z "$ac_c_werror_flag" ||
9503 test ! -s conftest.err
9504 } && test -s conftest$ac_exeext &&
9505 $as_test_x conftest$ac_exeext; then
9506 ac_cv_func_pcap_list_datalinks=yes
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_cv_func_pcap_list_datalinks=no
9514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9515 conftest$ac_exeext conftest.$ac_ext
9517 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9518 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9519 if test $ac_cv_func_pcap_list_datalinks = yes; then
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_PCAP_LIST_DATALINKS 1
9526 case " $LIBOBJS " in
9527 *" datalinks.$ac_objext "* ) ;;
9528 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9535 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9536 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9537 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 cat >conftest.$ac_ext <<_ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9548 #define pcap_set_datalink innocuous_pcap_set_datalink
9550 /* System header to define __stub macros and hopefully few prototypes,
9551 which can conflict with char pcap_set_datalink (); below.
9552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9553 <limits.h> exists even on freestanding compilers. */
9556 # include <limits.h>
9558 # include <assert.h>
9561 #undef pcap_set_datalink
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9569 char pcap_set_datalink ();
9570 /* The GNU C library defines this for functions which it implements
9571 to always fail with ENOSYS. Some functions are actually named
9572 something starting with __ and the normal name is an alias. */
9573 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9580 return pcap_set_datalink ();
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (ac_try="$ac_link"
9588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9589 *) ac_try_echo
=$ac_try;;
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_link") 2>conftest.er1
9594 grep -v '^ *+' conftest.er1
>conftest.err
9596 cat conftest.err
>&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } && {
9599 test -z "$ac_c_werror_flag" ||
9600 test ! -s conftest.err
9601 } && test -s conftest
$ac_exeext &&
9602 $as_test_x conftest
$ac_exeext; then
9603 ac_cv_func_pcap_set_datalink
=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.
$ac_ext >&5
9608 ac_cv_func_pcap_set_datalink
=no
9611 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9612 conftest
$ac_exeext conftest.
$ac_ext
9614 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9615 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9616 if test $ac_cv_func_pcap_set_datalink = yes; then
9617 cat >>confdefs.h
<<\_ACEOF
9618 #define HAVE_PCAP_SET_DATALINK 1
9623 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9624 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9625 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 cat >conftest.
$ac_ext <<_ACEOF
9631 cat confdefs.h
>>conftest.
$ac_ext
9632 cat >>conftest.
$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char pcap_datalink_name_to_val (); below.
9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641 <limits.h> exists even on freestanding compilers. */
9644 # include <limits.h>
9646 # include <assert.h>
9649 #undef pcap_datalink_name_to_val
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9657 char pcap_datalink_name_to_val ();
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9668 return pcap_datalink_name_to_val ();
9673 rm -f conftest.
$ac_objext conftest
$ac_exeext
9674 if { (ac_try
="$ac_link"
9676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
9691 ac_cv_func_pcap_datalink_name_to_val=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_func_pcap_datalink_name_to_val=no
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9702 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9703 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9704 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9706 cat >>confdefs.h <<\_ACEOF
9707 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9710 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9711 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9712 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char pcap_datalink_val_to_description (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9731 # include <limits.h>
9733 # include <assert.h>
9736 #undef pcap_datalink_val_to_description
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9744 char pcap_datalink_val_to_description ();
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
9755 return pcap_datalink_val_to_description ();
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9764 *) ac_try_echo
=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9769 grep -v '^ *+' conftest.er1
>conftest.err
9771 cat conftest.err
>&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest
$ac_exeext &&
9777 $as_test_x conftest
$ac_exeext; then
9778 ac_cv_func_pcap_datalink_val_to_description
=yes
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.
$ac_ext >&5
9783 ac_cv_func_pcap_datalink_val_to_description
=no
9786 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9787 conftest
$ac_exeext conftest.
$ac_ext
9789 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9790 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
9791 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9792 cat >>confdefs.h
<<\_ACEOF
9793 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9798 case " $LIBOBJS " in
9799 *" dlnames.$ac_objext "* ) ;;
9800 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
9810 case " $LIBOBJS " in
9811 *" dlnames.$ac_objext "* ) ;;
9812 *) LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
9821 for ac_func
in pcap_breakloop
9823 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9826 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 cat >conftest.
$ac_ext <<_ACEOF
9832 cat confdefs.h
>>conftest.
$ac_ext
9833 cat >>conftest.
$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9837 #define $ac_func innocuous_$ac_func
9839 /* System header to define __stub macros and hopefully few prototypes,
9840 which can conflict with char $ac_func (); below.
9841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9842 <limits.h> exists even on freestanding compilers. */
9845 # include <limits.h>
9847 # include <assert.h>
9852 /* Override any GCC internal prototype to avoid an error.
9853 Use char because int might match the return type of a GCC
9854 builtin and then its argument prototype would still apply. */
9859 /* The GNU C library defines this for functions which it implements
9860 to always fail with ENOSYS. Some functions are actually named
9861 something starting with __ and the normal name is an alias. */
9862 #if defined __stub_$ac_func || defined __stub___$ac_func
9874 rm -f conftest.
$ac_objext conftest
$ac_exeext
9875 if { (ac_try
="$ac_link"
9877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_link") 2>conftest.er1
9883 grep -v '^ *+' conftest.er1 >conftest.err
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } && {
9888 test -z "$ac_c_werror_flag" ||
9889 test ! -s conftest.err
9890 } && test -s conftest$ac_exeext &&
9891 $as_test_x conftest$ac_exeext; then
9892 eval "$as_ac_var=yes"
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 eval "$as_ac_var=no"
9900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9901 conftest$ac_exeext conftest.$ac_ext
9903 ac_res=`eval echo '${'$as_ac_var'}'`
9904 { echo "$as_me:$LINENO: result: $ac_res" >&5
9905 echo "${ECHO_T}$ac_res" >&6; }
9906 if test `eval echo '${'$as_ac_var'}'` = yes; then
9907 cat >>confdefs.h <<_ACEOF
9908 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9915 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9916 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
9917 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 cat >conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9928 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9930 /* System header to define __stub macros and hopefully few prototypes,
9931 which can conflict with char pcap_dump_ftell (); below.
9932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9933 <limits.h> exists even on freestanding compilers. */
9936 # include <limits.h>
9938 # include <assert.h>
9941 #undef pcap_dump_ftell
9943 /* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9949 char pcap_dump_ftell ();
9950 /* The GNU C library defines this for functions which it implements
9951 to always fail with ENOSYS. Some functions are actually named
9952 something starting with __ and the normal name is an alias. */
9953 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
9960 return pcap_dump_ftell ();
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (ac_try="$ac_link"
9968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9969 *) ac_try_echo
=$ac_try;;
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
9974 grep -v '^ *+' conftest.er1
>conftest.err
9976 cat conftest.err
>&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest
$ac_exeext &&
9982 $as_test_x conftest
$ac_exeext; then
9983 ac_cv_func_pcap_dump_ftell
=yes
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.
$ac_ext >&5
9988 ac_cv_func_pcap_dump_ftell
=no
9991 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9992 conftest
$ac_exeext conftest.
$ac_ext
9994 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9995 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
9996 if test $ac_cv_func_pcap_dump_ftell = yes; then
9997 cat >>confdefs.h
<<\_ACEOF
9998 #define HAVE_PCAP_DUMP_FTELL 1
10003 case " $LIBOBJS " in
10004 *" pcap_dump_ftell.$ac_objext "* ) ;;
10005 *) LIBOBJS
="$LIBOBJS pcap_dump_ftell.$ac_objext"
10015 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10016 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10018 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10019 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10020 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10021 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10022 # it does not ship with a libc symbol "inet_ntop()", it ships with
10023 # "_inet_ntop()", and has a #define macro in one of the system headers
10026 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10027 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10028 cat >conftest.
$ac_ext <<_ACEOF
10031 cat confdefs.h
>>conftest.
$ac_ext
10032 cat >>conftest.
$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <sys/types.h>
10035 #include <sys/socket.h>
10036 #include <netinet/in.h>
10037 #include <arpa/inet.h>
10041 char src[4], dst[128];
10042 inet_ntop(AF_INET, src, dst, sizeof(dst));
10047 rm -f conftest.
$ac_objext conftest
$ac_exeext
10048 if { (ac_try
="$ac_link"
10049 case "(($ac_try" in
10050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest$ac_exeext &&
10064 $as_test_x conftest$ac_exeext; then
10065 { echo "$as_me:$LINENO: result: yes" >&5
10066 echo "${ECHO_T}yes" >&6; }
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 { echo "$as_me:$LINENO: result: no" >&5
10072 echo "${ECHO_T}no" >&6; }
10073 case " $LIBOBJS " in
10074 *" inet_ntop.$ac_objext "* ) ;;
10075 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10082 conftest$ac_exeext conftest.$ac_ext
10083 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10084 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10085 cat >conftest.$ac_ext <<_ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10091 #include <sys/types.h>
10092 #include <sys/socket.h>
10093 #include <netinet/in.h>
10094 #include <arpa/inet.h>
10098 char src[128], dst[4];
10099 inet_pton(AF_INET, src, dst);
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (ac_try="$ac_link"
10106 case "(($ac_try" in
10107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10108 *) ac_try_echo
=$ac_try;;
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111 (eval "$ac_link") 2>conftest.er1
10113 grep -v '^ *+' conftest.er1
>conftest.err
10115 cat conftest.err
>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } && {
10118 test -z "$ac_c_werror_flag" ||
10119 test ! -s conftest.err
10120 } && test -s conftest
$ac_exeext &&
10121 $as_test_x conftest
$ac_exeext; then
10122 { echo "$as_me:$LINENO: result: yes" >&5
10123 echo "${ECHO_T}yes" >&6; }
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.
$ac_ext >&5
10128 { echo "$as_me:$LINENO: result: no" >&5
10129 echo "${ECHO_T}no" >&6; }
10130 case " $LIBOBJS " in
10131 *" inet_pton.$ac_objext "* ) ;;
10132 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
10138 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10139 conftest
$ac_exeext conftest.
$ac_ext
10140 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10141 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10142 cat >conftest.
$ac_ext <<_ACEOF
10145 cat confdefs.h
>>conftest.
$ac_ext
10146 cat >>conftest.
$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <sys/types.h>
10149 #include <netinet/in.h>
10150 #include <arpa/inet.h>
10155 struct in_addr dst;
10156 inet_aton(src, &dst);
10161 rm -f conftest.
$ac_objext conftest
$ac_exeext
10162 if { (ac_try
="$ac_link"
10163 case "(($ac_try" in
10164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_link") 2>conftest.er1
10170 grep -v '^ *+' conftest.er1 >conftest.err
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest$ac_exeext &&
10178 $as_test_x conftest$ac_exeext; then
10179 { echo "$as_me:$LINENO: result: yes" >&5
10180 echo "${ECHO_T}yes" >&6; }
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 { echo "$as_me:$LINENO: result: no" >&5
10186 echo "${ECHO_T}no" >&6; }
10187 case " $LIBOBJS " in
10188 *" inet_aton.$ac_objext "* ) ;;
10189 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10196 conftest$ac_exeext conftest.$ac_ext
10199 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10201 # You are in a twisty little maze of UN*Xes, all different.
10202 # Some might not have ether_ntohost().
10203 # Some might have it, but not declare it in any header file.
10204 # Some might have it, but declare it in <netinet/if_ether.h>.
10205 # Some might have it, but declare it in <netinet/ether.h>
10206 # (And some might have it but document it as something declared in
10207 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10209 # Before you is a C compiler.
10212 for ac_func in ether_ntohost
10214 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 cat >conftest.$ac_ext <<_ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10228 #define $ac_func innocuous_$ac_func
10230 /* System header to define __stub macros and hopefully few prototypes,
10231 which can conflict with char $ac_func (); below.
10232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10233 <limits.h> exists even on freestanding compilers. */
10236 # include <limits.h>
10238 # include <assert.h>
10243 /* Override any GCC internal prototype to avoid an error.
10244 Use char because int might match the return type of a GCC
10245 builtin and then its argument prototype would still apply. */
10250 /* The GNU C library defines this for functions which it implements
10251 to always fail with ENOSYS. Some functions are actually named
10252 something starting with __ and the normal name is an alias. */
10253 #if defined __stub_$ac_func || defined __stub___$ac_func
10260 return $ac_func ();
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10269 *) ac_try_echo
=$ac_try;;
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
10274 grep -v '^ *+' conftest.er1
>conftest.err
10276 cat conftest.err
>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest
$ac_exeext &&
10282 $as_test_x conftest
$ac_exeext; then
10283 eval "$as_ac_var=yes"
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.
$ac_ext >&5
10288 eval "$as_ac_var=no"
10291 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10292 conftest
$ac_exeext conftest.
$ac_ext
10294 ac_res
=`eval echo '${'$as_ac_var'}'`
10295 { echo "$as_me:$LINENO: result: $ac_res" >&5
10296 echo "${ECHO_T}$ac_res" >&6; }
10297 if test `eval echo '${'$as_ac_var'}'` = yes; then
10298 cat >>confdefs.h
<<_ACEOF
10299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10302 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10303 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10304 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 if test "$cross_compiling" = yes; then
10309 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
10311 cat >conftest.
$ac_ext <<_ACEOF
10314 cat confdefs.h
>>conftest.
$ac_ext
10315 cat >>conftest.
$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10319 #include <sys/types.h>
10320 #include <sys/param.h>
10321 #include <sys/socket.h>
10324 main(int argc, char **argv)
10326 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10327 char name[MAXHOSTNAMELEN];
10329 ether_ntohost(name, (struct ether_addr *)ea);
10334 rm -f conftest
$ac_exeext
10335 if { (ac_try
="$ac_link"
10336 case "(($ac_try" in
10337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_link") 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10345 { (case "(($ac_try" in
10346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10347 *) ac_try_echo
=$ac_try;;
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_try") 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 ac_cv_buggy_ether_ntohost
=no
10356 echo "$as_me: program exited with status $ac_status" >&5
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.
$ac_ext >&5
10360 ( exit $ac_status )
10361 ac_cv_buggy_ether_ntohost
=yes
10363 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10368 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10369 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10370 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10371 cat >>confdefs.h
<<\_ACEOF
10372 #define USE_ETHER_NTOHOST 1
10380 if test "$ac_cv_func_ether_ntohost" = yes -a \
10381 "$ac_cv_buggy_ether_ntohost" = "no"; then
10383 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10385 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10387 # Yes. Does it declare ether_ntohost()?
10389 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10390 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10391 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 cat >conftest.
$ac_ext <<_ACEOF
10397 cat confdefs.h
>>conftest.
$ac_ext
10398 cat >>conftest.
$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10401 #include <sys/types.h>
10402 #include <sys/socket.h>
10403 #include <netinet/in.h>
10404 #include <arpa/inet.h>
10407 #include <net/if.h>
10408 #include <netinet/if_ether.h>
10414 #ifndef ether_ntohost
10415 (void) ether_ntohost;
10422 rm -f conftest.
$ac_objext
10423 if { (ac_try
="$ac_compile"
10424 case "(($ac_try" in
10425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_compile") 2>conftest.er1
10431 grep -v '^ *+' conftest.er1 >conftest.err
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && {
10436 test -z "$ac_c_werror_flag" ||
10437 test ! -s conftest.err
10438 } && test -s conftest.$ac_objext; then
10439 ac_cv_have_decl_ether_ntohost=yes
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_cv_have_decl_ether_ntohost=no
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10450 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10451 if test $ac_cv_have_decl_ether_ntohost = yes; then
10454 cat >>confdefs.h <<\_ACEOF
10455 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10463 # Did that succeed?
10465 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10467 # No, how about <netinet/ether.h>, as on Linux?
10470 for ac_header in netinet/ether.h
10472 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 ac_res=`eval echo '${'$as_ac_Header'}'`
10480 { echo "$as_me:$LINENO: result: $ac_res" >&5
10481 echo "${ECHO_T}$ac_res" >&6; }
10483 # Is the header compilable?
10484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10486 cat >conftest.$ac_ext <<_ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 $ac_includes_default
10493 #include <$ac_header>
10495 rm -f conftest.$ac_objext
10496 if { (ac_try="$ac_compile"
10497 case "(($ac_try" in
10498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10499 *) ac_try_echo
=$ac_try;;
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_compile") 2>conftest.er1
10504 grep -v '^ *+' conftest.er1
>conftest.err
10506 cat conftest.err
>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && {
10509 test -z "$ac_c_werror_flag" ||
10510 test ! -s conftest.err
10511 } && test -s conftest.
$ac_objext; then
10512 ac_header_compiler
=yes
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.
$ac_ext >&5
10517 ac_header_compiler
=no
10520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10522 echo "${ECHO_T}$ac_header_compiler" >&6; }
10524 # Is the header present?
10525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10527 cat >conftest.
$ac_ext <<_ACEOF
10530 cat confdefs.h
>>conftest.
$ac_ext
10531 cat >>conftest.
$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <$ac_header>
10535 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10536 case "(($ac_try" in
10537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } >/dev/null && {
10548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10551 ac_header_preproc=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_header_preproc=no
10559 rm -f conftest.err conftest.$ac_ext
10560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10561 echo "${ECHO_T}$ac_header_preproc" >&6; }
10563 # So? What about this header?
10564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10570 ac_header_preproc=yes
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10593 eval "$as_ac_Header=\$ac_header_preproc"
10595 ac_res=`eval echo '${'$as_ac_Header'}'`
10596 { echo "$as_me:$LINENO: result: $ac_res" >&5
10597 echo "${ECHO_T}$ac_res" >&6; }
10600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10601 cat >>confdefs.h <<_ACEOF
10602 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10609 if test "$ac_cv_header_netinet_ether_h" = yes; then
10611 # We have it - does it declare ether_ntohost()?
10612 # Unset ac_cv_have_decl_ether_ntohost so we don't
10613 # treat the previous failure as a cached value and
10614 # suppress the next test.
10616 unset ac_cv_have_decl_ether_ntohost
10617 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10618 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10619 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 cat >conftest.$ac_ext <<_ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10629 #include <netinet/ether.h>
10635 #ifndef ether_ntohost
10636 (void) ether_ntohost;
10643 rm -f conftest.$ac_objext
10644 if { (ac_try="$ac_compile"
10645 case "(($ac_try" in
10646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10647 *) ac_try_echo
=$ac_try;;
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_compile") 2>conftest.er1
10652 grep -v '^ *+' conftest.er1
>conftest.err
10654 cat conftest.err
>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest.
$ac_objext; then
10660 ac_cv_have_decl_ether_ntohost
=yes
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.
$ac_ext >&5
10665 ac_cv_have_decl_ether_ntohost
=no
10668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10670 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10671 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10672 if test $ac_cv_have_decl_ether_ntohost = yes; then
10675 cat >>confdefs.h
<<\_ACEOF
10676 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10685 # Is ether_ntohost() declared?
10687 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10689 # No, we'll have to declare it ourselves.
10690 # Do we have "struct ether_addr"?
10692 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10693 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10694 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 cat >conftest.
$ac_ext <<_ACEOF
10700 cat confdefs.h
>>conftest.
$ac_ext
10701 cat >>conftest.
$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10704 #include <sys/types.h>
10705 #include <sys/socket.h>
10706 #include <netinet/in.h>
10707 #include <arpa/inet.h>
10710 #include <net/if.h>
10711 #include <netinet/if_ether.h>
10714 typedef struct ether_addr ac__type_new_;
10718 if ((ac__type_new_ *) 0)
10720 if (sizeof (ac__type_new_))
10726 rm -f conftest.
$ac_objext
10727 if { (ac_try
="$ac_compile"
10728 case "(($ac_try" in
10729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_compile") 2>conftest.er1
10735 grep -v '^ *+' conftest.er1 >conftest.err
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } && {
10740 test -z "$ac_c_werror_flag" ||
10741 test ! -s conftest.err
10742 } && test -s conftest.$ac_objext; then
10743 ac_cv_type_struct_ether_addr=yes
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10748 ac_cv_type_struct_ether_addr=no
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10754 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
10755 if test $ac_cv_type_struct_ether_addr = yes; then
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_STRUCT_ETHER_ADDR 1
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_DECL_ETHER_NTOHOST 0
10771 cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_DECL_ETHER_NTOHOST 1
10778 # libdlpi is needed for Solaris 11 and later.
10779 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
10780 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
10781 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 ac_check_lib_save_LIBS=$LIBS
10785 LIBS="-ldlpi -L/lib $LIBS"
10786 cat >conftest.$ac_ext <<_ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10793 /* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
10803 return dlpi_walk ();
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (ac_try="$ac_link"
10810 case "(($ac_try" in
10811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10812 *) ac_try_echo
=$ac_try;;
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_link") 2>conftest.er1
10817 grep -v '^ *+' conftest.er1
>conftest.err
10819 cat conftest.err
>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } && {
10822 test -z "$ac_c_werror_flag" ||
10823 test ! -s conftest.err
10824 } && test -s conftest
$ac_exeext &&
10825 $as_test_x conftest
$ac_exeext; then
10826 ac_cv_lib_dlpi_dlpi_walk
=yes
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.
$ac_ext >&5
10831 ac_cv_lib_dlpi_dlpi_walk
=no
10834 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10835 conftest
$ac_exeext conftest.
$ac_ext
10836 LIBS
=$ac_check_lib_save_LIBS
10838 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
10839 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
10840 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
10841 LIBS
="$LIBS -ldlpi" LDFLAGS
="-L/lib $LDFLAGS"
10846 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10847 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
10848 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 cat >conftest.
$ac_ext <<_ACEOF
10854 cat confdefs.h
>>conftest.
$ac_ext
10855 cat >>conftest.
$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10858 # include <sys/types.h>
10859 # include <sys/socket.h>
10863 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10868 rm -f conftest.
$ac_objext
10869 if { (ac_try
="$ac_compile"
10870 case "(($ac_try" in
10871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_compile") 2>conftest.er1
10877 grep -v '^ *+' conftest.er1 >conftest.err
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest.$ac_objext; then
10885 ac_cv_sockaddr_has_sa_len=yes
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10890 ac_cv_sockaddr_has_sa_len=no
10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10897 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
10898 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10899 cat >>confdefs.h <<\_ACEOF
10900 #define HAVE_SOCKADDR_SA_LEN 1
10905 if test "$ac_cv_sockaddr_has_sa_len" = no; then
10906 missing_includes=yes
10910 # Do we have the new open API? Check for pcap_create, and assume that,
10911 # if we do, we also have pcap_activate() and the other new routines.
10913 for ac_func in pcap_create
10915 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 cat >conftest.$ac_ext <<_ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10929 #define $ac_func innocuous_$ac_func
10931 /* System header to define __stub macros and hopefully few prototypes,
10932 which can conflict with char $ac_func (); below.
10933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10934 <limits.h> exists even on freestanding compilers. */
10937 # include <limits.h>
10939 # include <assert.h>
10944 /* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10951 /* The GNU C library defines this for functions which it implements
10952 to always fail with ENOSYS. Some functions are actually named
10953 something starting with __ and the normal name is an alias. */
10954 #if defined __stub_$ac_func || defined __stub___$ac_func
10961 return $ac_func ();
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (ac_try="$ac_link"
10968 case "(($ac_try" in
10969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10970 *) ac_try_echo
=$ac_try;;
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_link") 2>conftest.er1
10975 grep -v '^ *+' conftest.er1
>conftest.err
10977 cat conftest.err
>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest
$ac_exeext &&
10983 $as_test_x conftest
$ac_exeext; then
10984 eval "$as_ac_var=yes"
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.
$ac_ext >&5
10989 eval "$as_ac_var=no"
10992 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10993 conftest
$ac_exeext conftest.
$ac_ext
10995 ac_res
=`eval echo '${'$as_ac_var'}'`
10996 { echo "$as_me:$LINENO: result: $ac_res" >&5
10997 echo "${ECHO_T}$ac_res" >&6; }
10998 if test `eval echo '${'$as_ac_var'}'` = yes; then
10999 cat >>confdefs.h
<<_ACEOF
11000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11010 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
11012 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11015 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 cat >conftest.
$ac_ext <<_ACEOF
11021 cat confdefs.h
>>conftest.
$ac_ext
11022 cat >>conftest.
$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11026 #define $ac_func innocuous_$ac_func
11028 /* System header to define __stub macros and hopefully few prototypes,
11029 which can conflict with char $ac_func (); below.
11030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11031 <limits.h> exists even on freestanding compilers. */
11034 # include <limits.h>
11036 # include <assert.h>
11041 /* Override any GCC internal prototype to avoid an error.
11042 Use char because int might match the return type of a GCC
11043 builtin and then its argument prototype would still apply. */
11048 /* The GNU C library defines this for functions which it implements
11049 to always fail with ENOSYS. Some functions are actually named
11050 something starting with __ and the normal name is an alias. */
11051 #if defined __stub_$ac_func || defined __stub___$ac_func
11058 return $ac_func ();
11063 rm -f conftest.
$ac_objext conftest
$ac_exeext
11064 if { (ac_try
="$ac_link"
11065 case "(($ac_try" in
11066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_link") 2>conftest.er1
11072 grep -v '^ *+' conftest.er1 >conftest.err
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } && {
11077 test -z "$ac_c_werror_flag" ||
11078 test ! -s conftest.err
11079 } && test -s conftest$ac_exeext &&
11080 $as_test_x conftest$ac_exeext; then
11081 eval "$as_ac_var=yes"
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 eval "$as_ac_var=no"
11089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090 conftest$ac_exeext conftest.$ac_ext
11092 ac_res=`eval echo '${'$as_ac_var'}'`
11093 { echo "$as_me:$LINENO: result: $ac_res" >&5
11094 echo "${ECHO_T}$ac_res" >&6; }
11095 if test `eval echo '${'$as_ac_var'}'` = yes; then
11096 cat >>confdefs.h <<_ACEOF
11097 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11103 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11104 savedppflags="$CPPLAGS"
11105 CPPFLAGS="$CPPFLAGS $V_INCLS"
11106 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11107 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11108 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 cat >conftest.$ac_ext <<_ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11119 typedef pcap_if_t ac__type_new_;
11123 if ((ac__type_new_ *) 0)
11125 if (sizeof (ac__type_new_))
11131 rm -f conftest.$ac_objext
11132 if { (ac_try="$ac_compile"
11133 case "(($ac_try" in
11134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11135 *) ac_try_echo
=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_compile") 2>conftest.er1
11140 grep -v '^ *+' conftest.er1
>conftest.err
11142 cat conftest.err
>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } && {
11145 test -z "$ac_c_werror_flag" ||
11146 test ! -s conftest.err
11147 } && test -s conftest.
$ac_objext; then
11148 ac_cv_type_pcap_if_t
=yes
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.
$ac_ext >&5
11153 ac_cv_type_pcap_if_t
=no
11156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11158 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11159 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11160 if test $ac_cv_type_pcap_if_t = yes; then
11162 cat >>confdefs.h
<<_ACEOF
11163 #define HAVE_PCAP_IF_T 1
11169 CPPFLAGS
="$savedcppflags"
11172 if test $ac_cv_func_pcap_lib_version = "no" ; then
11173 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11174 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11175 cat >conftest.
$ac_ext <<_ACEOF
11178 cat confdefs.h
>>conftest.
$ac_ext
11179 cat >>conftest.
$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11186 extern char pcap_version[];
11188 return (int)pcap_version;
11194 rm -f conftest.
$ac_objext conftest
$ac_exeext
11195 if { (ac_try
="$ac_link"
11196 case "(($ac_try" in
11197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_link") 2>conftest.er1
11203 grep -v '^ *+' conftest.er1 >conftest.err
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && {
11208 test -z "$ac_c_werror_flag" ||
11209 test ! -s conftest.err
11210 } && test -s conftest$ac_exeext &&
11211 $as_test_x conftest$ac_exeext; then
11212 ac_lbl_cv_pcap_version_defined=yes
11214 echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11217 ac_lbl_cv_pcap_version_defined=no
11220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11221 conftest$ac_exeext conftest.$ac_ext
11222 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11223 { echo "$as_me:$LINENO: result: yes" >&5
11224 echo "${ECHO_T}yes" >&6; }
11225 cat >>confdefs.h <<\_ACEOF
11226 #define HAVE_PCAP_VERSION 1
11230 { echo "$as_me:$LINENO: result: no" >&5
11231 echo "${ECHO_T}no" >&6; }
11234 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11235 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11236 cat >conftest.$ac_ext <<_ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11247 extern int pcap_debug;
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11259 *) ac_try_echo
=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_link") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1
>conftest.err
11266 cat conftest.err
>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest
$ac_exeext &&
11272 $as_test_x conftest
$ac_exeext; then
11273 ac_lbl_cv_pcap_debug_defined
=yes
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.
$ac_ext >&5
11278 ac_lbl_cv_pcap_debug_defined
=no
11281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11282 conftest
$ac_exeext conftest.
$ac_ext
11283 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11284 { echo "$as_me:$LINENO: result: yes" >&5
11285 echo "${ECHO_T}yes" >&6; }
11286 cat >>confdefs.h
<<\_ACEOF
11287 #define HAVE_PCAP_DEBUG 1
11291 { echo "$as_me:$LINENO: result: no" >&5
11292 echo "${ECHO_T}no" >&6; }
11294 # OK, what about "yydebug"?
11296 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11297 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11298 cat >conftest.
$ac_ext <<_ACEOF
11301 cat confdefs.h
>>conftest.
$ac_ext
11302 cat >>conftest.
$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11309 extern int yydebug;
11317 rm -f conftest.
$ac_objext conftest
$ac_exeext
11318 if { (ac_try
="$ac_link"
11319 case "(($ac_try" in
11320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_link") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest$ac_exeext &&
11334 $as_test_x conftest$ac_exeext; then
11335 ac_lbl_cv_yydebug_defined=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_lbl_cv_yydebug_defined=no
11343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11344 conftest$ac_exeext conftest.$ac_ext
11345 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11346 { echo "$as_me:$LINENO: result: yes" >&5
11347 echo "${ECHO_T}yes" >&6; }
11348 cat >>confdefs.h <<\_ACEOF
11349 #define HAVE_YYDEBUG 1
11353 { echo "$as_me:$LINENO: result: no" >&5
11354 echo "${ECHO_T}no" >&6; }
11358 for ac_func in bpf_dump
11360 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11374 #define $ac_func innocuous_$ac_func
11376 /* System header to define __stub macros and hopefully few prototypes,
11377 which can conflict with char $ac_func (); below.
11378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11379 <limits.h> exists even on freestanding compilers. */
11382 # include <limits.h>
11384 # include <assert.h>
11389 /* Override any GCC internal prototype to avoid an error.
11390 Use char because int might match the return type of a GCC
11391 builtin and then its argument prototype would still apply. */
11396 /* The GNU C library defines this for functions which it implements
11397 to always fail with ENOSYS. Some functions are actually named
11398 something starting with __ and the normal name is an alias. */
11399 #if defined __stub_$ac_func || defined __stub___$ac_func
11406 return $ac_func ();
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11415 *) ac_try_echo
=$ac_try;;
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_link") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1
>conftest.err
11422 cat conftest.err
>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest
$ac_exeext &&
11428 $as_test_x conftest
$ac_exeext; then
11429 eval "$as_ac_var=yes"
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.
$ac_ext >&5
11434 eval "$as_ac_var=no"
11437 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11438 conftest
$ac_exeext conftest.
$ac_ext
11440 ac_res
=`eval echo '${'$as_ac_var'}'`
11441 { echo "$as_me:$LINENO: result: $ac_res" >&5
11442 echo "${ECHO_T}$ac_res" >&6; }
11443 if test `eval echo '${'$as_ac_var'}'` = yes; then
11444 cat >>confdefs.h
<<_ACEOF
11445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11449 case " $LIBOBJS " in
11450 *" $ac_func.$ac_objext "* ) ;;
11451 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
11460 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
11464 # Assume V7/BSD convention for man pages (file formats in section 5,
11465 # miscellaneous info in section 7).
11472 cat >>confdefs.h
<<\_ACEOF
11480 # Use System V conventions for man pages.
11490 # Use System V conventions for man pages.
11500 # Use System V conventions for man pages.
11510 # Use System V conventions for man pages.
11517 if test -f /dev
/bpf0
; then
11522 # Check for some headers introduced in later versions of libpcap
11523 # and used by some printers.
11525 savedcppflags
="$CPPFLAGS"
11526 CPPFLAGS
="$CPPFLAGS $V_INCLS"
11528 for ac_header
in pcap
/bluetooth.h
11530 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11531 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11534 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 ac_res
=`eval echo '${'$as_ac_Header'}'`
11538 { echo "$as_me:$LINENO: result: $ac_res" >&5
11539 echo "${ECHO_T}$ac_res" >&6; }
11541 # Is the header compilable?
11542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11544 cat >conftest.
$ac_ext <<_ACEOF
11547 cat confdefs.h
>>conftest.
$ac_ext
11548 cat >>conftest.
$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11551 #include <$ac_header>
11553 rm -f conftest.
$ac_objext
11554 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
11562 grep -v '^ *+' conftest.er1 >conftest.err
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && {
11567 test -z "$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11569 } && test -s conftest.$ac_objext; then
11570 ac_header_compiler=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 ac_header_compiler=no
11578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580 echo "${ECHO_T}$ac_header_compiler" >&6; }
11582 # Is the header present?
11583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11585 cat >conftest.$ac_ext <<_ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 #include <$ac_header>
11593 if { (ac_try="$ac_cpp conftest.$ac_ext"
11594 case "(($ac_try" in
11595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11596 *) ac_try_echo
=$ac_try;;
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11601 grep -v '^ *+' conftest.er1
>conftest.err
11603 cat conftest.err
>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } >/dev
/null
&& {
11606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11607 test ! -s conftest.err
11609 ac_header_preproc
=yes
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.
$ac_ext >&5
11614 ac_header_preproc
=no
11617 rm -f conftest.err conftest.
$ac_ext
11618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11619 echo "${ECHO_T}$ac_header_preproc" >&6; }
11621 # So? What about this header?
11622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11628 ac_header_preproc
=yes
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11648 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 eval "$as_ac_Header=\$ac_header_preproc"
11653 ac_res
=`eval echo '${'$as_ac_Header'}'`
11654 { echo "$as_me:$LINENO: result: $ac_res" >&5
11655 echo "${ECHO_T}$ac_res" >&6; }
11658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11659 cat >>confdefs.h
<<_ACEOF
11660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11668 for ac_header
in pcap
/usb.h
11670 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11671 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11674 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 ac_res
=`eval echo '${'$as_ac_Header'}'`
11678 { echo "$as_me:$LINENO: result: $ac_res" >&5
11679 echo "${ECHO_T}$ac_res" >&6; }
11681 # Is the header compilable?
11682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11684 cat >conftest.
$ac_ext <<_ACEOF
11687 cat confdefs.h
>>conftest.
$ac_ext
11688 cat >>conftest.
$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 $ac_includes_default
11691 #include <$ac_header>
11693 rm -f conftest.
$ac_objext
11694 if { (ac_try
="$ac_compile"
11695 case "(($ac_try" in
11696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_compile") 2>conftest.er1
11702 grep -v '^ *+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } && {
11707 test -z "$ac_c_werror_flag" ||
11708 test ! -s conftest.err
11709 } && test -s conftest.$ac_objext; then
11710 ac_header_compiler=yes
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 ac_header_compiler=no
11718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11720 echo "${ECHO_T}$ac_header_compiler" >&6; }
11722 # Is the header present?
11723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11725 cat >conftest.$ac_ext <<_ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 #include <$ac_header>
11733 if { (ac_try="$ac_cpp conftest.$ac_ext"
11734 case "(($ac_try" in
11735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11736 *) ac_try_echo
=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1
>conftest.err
11743 cat conftest.err
>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } >/dev
/null
&& {
11746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11749 ac_header_preproc
=yes
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.
$ac_ext >&5
11754 ac_header_preproc
=no
11757 rm -f conftest.err conftest.
$ac_ext
11758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11759 echo "${ECHO_T}$ac_header_preproc" >&6; }
11761 # So? What about this header?
11762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11768 ac_header_preproc
=yes
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11788 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 eval "$as_ac_Header=\$ac_header_preproc"
11793 ac_res
=`eval echo '${'$as_ac_Header'}'`
11794 { echo "$as_me:$LINENO: result: $ac_res" >&5
11795 echo "${ECHO_T}$ac_res" >&6; }
11798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11799 cat >>confdefs.h
<<_ACEOF
11800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11807 CPPFLAGS
="$savedcppflags"
11810 for ac_header
in sys
/bitypes.h
11812 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11813 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11816 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 ac_res
=`eval echo '${'$as_ac_Header'}'`
11820 { echo "$as_me:$LINENO: result: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11823 # Is the header compilable?
11824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11826 cat >conftest.
$ac_ext <<_ACEOF
11829 cat confdefs.h
>>conftest.
$ac_ext
11830 cat >>conftest.
$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 $ac_includes_default
11833 #include <$ac_header>
11835 rm -f conftest.
$ac_objext
11836 if { (ac_try
="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_compile") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest.$ac_objext; then
11852 ac_header_compiler=yes
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_header_compiler=no
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11862 echo "${ECHO_T}$ac_header_compiler" >&6; }
11864 # Is the header present?
11865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11867 cat >conftest.$ac_ext <<_ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 #include <$ac_header>
11875 if { (ac_try="$ac_cpp conftest.$ac_ext"
11876 case "(($ac_try" in
11877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11878 *) ac_try_echo
=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1
>conftest.err
11885 cat conftest.err
>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } >/dev
/null
&& {
11888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11891 ac_header_preproc
=yes
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.
$ac_ext >&5
11896 ac_header_preproc
=no
11899 rm -f conftest.err conftest.
$ac_ext
11900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11901 echo "${ECHO_T}$ac_header_preproc" >&6; }
11903 # So? What about this header?
11904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11910 ac_header_preproc
=yes
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11930 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 eval "$as_ac_Header=\$ac_header_preproc"
11935 ac_res
=`eval echo '${'$as_ac_Header'}'`
11936 { echo "$as_me:$LINENO: result: $ac_res" >&5
11937 echo "${ECHO_T}$ac_res" >&6; }
11940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11941 cat >>confdefs.h
<<_ACEOF
11942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11950 { echo "$as_me:$LINENO: checking for int8_t" >&5
11951 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
11952 if test "${ac_cv_type_int8_t+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 cat >conftest.
$ac_ext <<_ACEOF
11958 cat confdefs.h
>>conftest.
$ac_ext
11959 cat >>conftest.
$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11962 typedef int8_t ac__type_new_;
11966 if ((ac__type_new_ *) 0)
11968 if (sizeof (ac__type_new_))
11974 rm -f conftest.
$ac_objext
11975 if { (ac_try
="$ac_compile"
11976 case "(($ac_try" in
11977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_compile") 2>conftest.er1
11983 grep -v '^ *+' conftest.er1 >conftest.err
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest.$ac_objext; then
11991 ac_cv_type_int8_t=yes
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_cv_type_int8_t=no
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12002 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12003 if test $ac_cv_type_int8_t = yes; then
12007 cat >>confdefs.h <<\_ACEOF
12008 #define int8_t signed char
12013 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
12014 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12015 if test "${ac_cv_type_u_int8_t+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12025 #ifdef HAVE_SYS_BITYPES_H
12026 #include <sys/bitypes.h>
12029 typedef u_int8_t ac__type_new_;
12033 if ((ac__type_new_ *) 0)
12035 if (sizeof (ac__type_new_))
12041 rm -f conftest.$ac_objext
12042 if { (ac_try="$ac_compile"
12043 case "(($ac_try" in
12044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12045 *) ac_try_echo
=$ac_try;;
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_compile") 2>conftest.er1
12050 grep -v '^ *+' conftest.er1
>conftest.err
12052 cat conftest.err
>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && {
12055 test -z "$ac_c_werror_flag" ||
12056 test ! -s conftest.err
12057 } && test -s conftest.
$ac_objext; then
12058 ac_cv_type_u_int8_t
=yes
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.
$ac_ext >&5
12063 ac_cv_type_u_int8_t
=no
12066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12068 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12069 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12070 if test $ac_cv_type_u_int8_t = yes; then
12074 cat >>confdefs.h
<<\_ACEOF
12075 #define u_int8_t unsigned char
12080 { echo "$as_me:$LINENO: checking for int16_t" >&5
12081 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12082 if test "${ac_cv_type_int16_t+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 cat >conftest.
$ac_ext <<_ACEOF
12088 cat confdefs.h
>>conftest.
$ac_ext
12089 cat >>conftest.
$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12091 $ac_includes_default
12092 typedef int16_t ac__type_new_;
12096 if ((ac__type_new_ *) 0)
12098 if (sizeof (ac__type_new_))
12104 rm -f conftest.
$ac_objext
12105 if { (ac_try
="$ac_compile"
12106 case "(($ac_try" in
12107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_compile") 2>conftest.er1
12113 grep -v '^ *+' conftest.er1 >conftest.err
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest.$ac_objext; then
12121 ac_cv_type_int16_t=yes
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 ac_cv_type_int16_t=no
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12132 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12133 if test $ac_cv_type_int16_t = yes; then
12137 cat >>confdefs.h <<\_ACEOF
12138 #define int16_t short
12143 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12144 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12145 if test "${ac_cv_type_u_int16_t+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12154 $ac_includes_default
12155 #ifdef HAVE_SYS_BITYPES_H
12156 #include <sys/bitypes.h>
12159 typedef u_int16_t ac__type_new_;
12163 if ((ac__type_new_ *) 0)
12165 if (sizeof (ac__type_new_))
12171 rm -f conftest.$ac_objext
12172 if { (ac_try="$ac_compile"
12173 case "(($ac_try" in
12174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12175 *) ac_try_echo
=$ac_try;;
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_compile") 2>conftest.er1
12180 grep -v '^ *+' conftest.er1
>conftest.err
12182 cat conftest.err
>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } && {
12185 test -z "$ac_c_werror_flag" ||
12186 test ! -s conftest.err
12187 } && test -s conftest.
$ac_objext; then
12188 ac_cv_type_u_int16_t
=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.
$ac_ext >&5
12193 ac_cv_type_u_int16_t
=no
12196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12198 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12199 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12200 if test $ac_cv_type_u_int16_t = yes; then
12204 cat >>confdefs.h
<<\_ACEOF
12205 #define u_int16_t unsigned short
12210 { echo "$as_me:$LINENO: checking for int32_t" >&5
12211 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12212 if test "${ac_cv_type_int32_t+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 cat >conftest.
$ac_ext <<_ACEOF
12218 cat confdefs.h
>>conftest.
$ac_ext
12219 cat >>conftest.
$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 $ac_includes_default
12222 typedef int32_t ac__type_new_;
12226 if ((ac__type_new_ *) 0)
12228 if (sizeof (ac__type_new_))
12234 rm -f conftest.
$ac_objext
12235 if { (ac_try
="$ac_compile"
12236 case "(($ac_try" in
12237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_compile") 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } && {
12248 test -z "$ac_c_werror_flag" ||
12249 test ! -s conftest.err
12250 } && test -s conftest.$ac_objext; then
12251 ac_cv_type_int32_t=yes
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 ac_cv_type_int32_t=no
12259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12262 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12263 if test $ac_cv_type_int32_t = yes; then
12267 cat >>confdefs.h <<\_ACEOF
12268 #define int32_t int
12273 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12274 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12275 if test "${ac_cv_type_u_int32_t+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 cat >conftest.$ac_ext <<_ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 $ac_includes_default
12285 #ifdef HAVE_SYS_BITYPES_H
12286 #include <sys/bitypes.h>
12289 typedef u_int32_t ac__type_new_;
12293 if ((ac__type_new_ *) 0)
12295 if (sizeof (ac__type_new_))
12301 rm -f conftest.$ac_objext
12302 if { (ac_try="$ac_compile"
12303 case "(($ac_try" in
12304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12305 *) ac_try_echo
=$ac_try;;
12307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12308 (eval "$ac_compile") 2>conftest.er1
12310 grep -v '^ *+' conftest.er1
>conftest.err
12312 cat conftest.err
>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } && {
12315 test -z "$ac_c_werror_flag" ||
12316 test ! -s conftest.err
12317 } && test -s conftest.
$ac_objext; then
12318 ac_cv_type_u_int32_t
=yes
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.
$ac_ext >&5
12323 ac_cv_type_u_int32_t
=no
12326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12328 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12329 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12330 if test $ac_cv_type_u_int32_t = yes; then
12334 cat >>confdefs.h
<<\_ACEOF
12335 #define u_int32_t unsigned int
12340 { echo "$as_me:$LINENO: checking for int64_t" >&5
12341 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12342 if test "${ac_cv_type_int64_t+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 cat >conftest.
$ac_ext <<_ACEOF
12348 cat confdefs.h
>>conftest.
$ac_ext
12349 cat >>conftest.
$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12351 $ac_includes_default
12352 typedef int64_t ac__type_new_;
12356 if ((ac__type_new_ *) 0)
12358 if (sizeof (ac__type_new_))
12364 rm -f conftest.
$ac_objext
12365 if { (ac_try
="$ac_compile"
12366 case "(($ac_try" in
12367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_compile") 2>conftest.er1
12373 grep -v '^ *+' conftest.er1 >conftest.err
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } && {
12378 test -z "$ac_c_werror_flag" ||
12379 test ! -s conftest.err
12380 } && test -s conftest.$ac_objext; then
12381 ac_cv_type_int64_t=yes
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 ac_cv_type_int64_t=no
12389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12392 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12393 if test $ac_cv_type_int64_t = yes; then
12397 cat >>confdefs.h <<\_ACEOF
12398 #define int64_t long long
12403 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12404 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12405 if test "${ac_cv_type_u_int64_t+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 $ac_includes_default
12415 #ifdef HAVE_SYS_BITYPES_H
12416 #include <sys/bitypes.h>
12419 typedef u_int64_t ac__type_new_;
12423 if ((ac__type_new_ *) 0)
12425 if (sizeof (ac__type_new_))
12431 rm -f conftest.$ac_objext
12432 if { (ac_try="$ac_compile"
12433 case "(($ac_try" in
12434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12435 *) ac_try_echo
=$ac_try;;
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_compile") 2>conftest.er1
12440 grep -v '^ *+' conftest.er1
>conftest.err
12442 cat conftest.err
>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && {
12445 test -z "$ac_c_werror_flag" ||
12446 test ! -s conftest.err
12447 } && test -s conftest.
$ac_objext; then
12448 ac_cv_type_u_int64_t
=yes
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.
$ac_ext >&5
12453 ac_cv_type_u_int64_t
=no
12456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12458 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12459 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12460 if test $ac_cv_type_u_int64_t = yes; then
12464 cat >>confdefs.h
<<\_ACEOF
12465 #define u_int64_t unsigned long long
12472 # We can't just check for <inttypes.h> - some systems have one that
12473 # doesn't define all the PRI[doxu]64 macros.
12476 for ac_header
in inttypes.h
12478 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12479 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12482 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 ac_res
=`eval echo '${'$as_ac_Header'}'`
12486 { echo "$as_me:$LINENO: result: $ac_res" >&5
12487 echo "${ECHO_T}$ac_res" >&6; }
12489 # Is the header compilable?
12490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12492 cat >conftest.
$ac_ext <<_ACEOF
12495 cat confdefs.h
>>conftest.
$ac_ext
12496 cat >>conftest.
$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 $ac_includes_default
12499 #include <$ac_header>
12501 rm -f conftest.
$ac_objext
12502 if { (ac_try
="$ac_compile"
12503 case "(($ac_try" in
12504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_compile") 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest.$ac_objext; then
12518 ac_header_compiler=yes
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 ac_header_compiler=no
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12528 echo "${ECHO_T}$ac_header_compiler" >&6; }
12530 # Is the header present?
12531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12533 cat >conftest.$ac_ext <<_ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 #include <$ac_header>
12541 if { (ac_try="$ac_cpp conftest.$ac_ext"
12542 case "(($ac_try" in
12543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12544 *) ac_try_echo
=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12549 grep -v '^ *+' conftest.er1
>conftest.err
12551 cat conftest.err
>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } >/dev
/null
&& {
12554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12555 test ! -s conftest.err
12557 ac_header_preproc
=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.
$ac_ext >&5
12562 ac_header_preproc
=no
12565 rm -f conftest.err conftest.
$ac_ext
12566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12567 echo "${ECHO_T}$ac_header_preproc" >&6; }
12569 # So? What about this header?
12570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12576 ac_header_preproc
=yes
12579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 eval "$as_ac_Header=\$ac_header_preproc"
12601 ac_res
=`eval echo '${'$as_ac_Header'}'`
12602 { echo "$as_me:$LINENO: result: $ac_res" >&5
12603 echo "${ECHO_T}$ac_res" >&6; }
12606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12607 cat >>confdefs.h
<<_ACEOF
12608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12612 # OK, we have inttypes.h, but does it define those macros?
12614 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12615 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12616 cat >conftest.
$ac_ext <<_ACEOF
12620 cat confdefs.h
>>conftest.
$ac_ext
12621 cat >>conftest.
$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12624 #include <inttypes.h>
12626 #include <sys/types.h>
12627 #ifdef HAVE_SYS_BITYPES_H
12628 #include <sys/bitypes.h>
12633 printf("%" PRId64 "\n", (u_int64_t)1);
12634 printf("%" PRIo64 "\n", (u_int64_t)1);
12635 printf("%" PRIx64 "\n", (u_int64_t)1);
12636 printf("%" PRIu64 "\n", (u_int64_t)1);
12641 rm -f conftest.
$ac_objext
12642 if { (ac_try
="$ac_compile"
12643 case "(($ac_try" in
12644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_compile") 2>conftest.er1
12650 grep -v '^ *+' conftest.er1 >conftest.err
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } && {
12655 test -z "$ac_c_werror_flag" ||
12656 test ! -s conftest.err
12657 } && test -s conftest.$ac_objext; then
12659 { echo "$as_me:$LINENO: result: yes" >&5
12660 echo "${ECHO_T}yes" >&6; }
12661 ac_lbl_inttypes_h_defines_formats=yes
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12668 { echo "$as_me:$LINENO: result: no" >&5
12669 echo "${ECHO_T}no" >&6; }
12670 ac_lbl_inttypes_h_defines_formats=no
12674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12679 # We don't have inttypes.h, so it obviously can't define those
12682 ac_lbl_inttypes_h_defines_formats=no
12688 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12690 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12691 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12692 if test "$cross_compiling" = yes; then
12693 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12694 See \`config.log
' for more details." >&5
12695 echo "$as_me: error: cannot run test program while cross compiling
12696 See \`config.log' for more details.
" >&2;}
12697 { (exit 1); exit 1; }; }
12699 cat >conftest.$ac_ext <<_ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12707 # ifdef HAVE_INTTYPES_H
12708 #include <inttypes.h>
12710 # ifdef HAVE_SYS_BITYPES_H
12711 #include <sys/bitypes.h>
12714 #include <sys/types.h>
12720 sprintf(strbuf, "%016lx
", t << 32);
12721 if (strcmp(strbuf, "0000000100000000") == 0)
12729 rm -f conftest$ac_exeext
12730 if { (ac_try="$ac_link"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_link") 2>&5
12738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12748 (exit $ac_status); }; }; then
12750 cat >>confdefs.h <<\_ACEOF
12751 #define PRId64 "ld
"
12754 cat >>confdefs.h <<\_ACEOF
12755 #define PRIo64 "lo
"
12758 cat >>confdefs.h <<\_ACEOF
12759 #define PRIx64 "lx
"
12762 cat >>confdefs.h <<\_ACEOF
12763 #define PRIu64 "lu
"
12766 { echo "$as_me:$LINENO: result
: yes" >&5
12767 echo "${ECHO_T}yes" >&6; }
12770 echo "$as_me: program exited with status
$ac_status" >&5
12771 echo "$as_me: failed program was
:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 ( exit $ac_status )
12776 { echo "$as_me:$LINENO: result
: no
" >&5
12777 echo "${ECHO_T}no
" >&6; }
12780 { echo "$as_me:$LINENO: checking whether
%llx can be used to format
64-bit integers
" >&5
12781 echo $ECHO_N "checking whether
%llx can be used to format
64-bit integers...
$ECHO_C" >&6; }
12782 if test "$cross_compiling" = yes; then
12783 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
12784 See \
`config.log' for more details." >&5
12785 echo "$as_me: error: cannot run test program while cross compiling
12786 See \`config.log
' for more details." >&2;}
12787 { (exit 1); exit 1; }; }
12789 cat >conftest.$ac_ext <<_ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12797 # ifdef HAVE_INTTYPES_H
12798 #include <inttypes.h>
12800 # ifdef HAVE_SYS_BITYPES_H
12801 #include <sys/bitypes.h>
12804 #include <sys/types.h>
12810 sprintf(strbuf, "%016llx", t << 32);
12811 if (strcmp(strbuf, "0000000100000000") == 0)
12819 rm -f conftest$ac_exeext
12820 if { (ac_try="$ac_link"
12821 case "(($ac_try" in
12822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823 *) ac_try_echo=$ac_try;;
12825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12826 (eval "$ac_link") 2>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
12830 { (case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_try") 2>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12840 cat >>confdefs.h <<\_ACEOF
12841 #define PRId64 "lld"
12844 cat >>confdefs.h <<\_ACEOF
12845 #define PRIo64 "llo"
12848 cat >>confdefs.h <<\_ACEOF
12849 #define PRIx64 "llx"
12852 cat >>confdefs.h <<\_ACEOF
12853 #define PRIu64 "llu"
12856 { echo "$as_me:$LINENO: result: yes" >&5
12857 echo "${ECHO_T}yes" >&6; }
12860 echo "$as_me: program exited with status $ac_status" >&5
12861 echo "$as_me: failed program was:" >&5
12862 sed 's
/^
/|
/' conftest.$ac_ext >&5
12864 ( exit $ac_status )
12866 { echo "$as_me:$LINENO: result: no" >&5
12867 echo "${ECHO_T}no" >&6; }
12870 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12871 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12872 if test "$cross_compiling" = yes; then
12873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12874 See \`config.log' for more details.
" >&5
12875 echo "$as_me: error
: cannot run
test program
while cross compiling
12876 See \
`config.log' for more details." >&2;}
12877 { (exit 1); exit 1; }; }
12879 cat >conftest.$ac_ext <<_ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12887 # ifdef HAVE_INTTYPES_H
12888 #include <inttypes.h>
12890 # ifdef HAVE_SYS_BITYPES_H
12891 #include <sys/bitypes.h>
12894 #include <sys/types.h>
12900 sprintf(strbuf, "%016Lx", t << 32);
12901 if (strcmp(strbuf, "0000000100000000") == 0)
12909 rm -f conftest$ac_exeext
12910 if { (ac_try="$ac_link"
12911 case "(($ac_try" in
12912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12913 *) ac_try_echo
=$ac_try;;
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_link") 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12920 { (case "(($ac_try" in
12921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_try") 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12930 cat >>confdefs.h <<\_ACEOF
12931 #define PRId64 "Ld"
12934 cat >>confdefs.h <<\_ACEOF
12935 #define PRIo64 "Lo"
12938 cat >>confdefs.h <<\_ACEOF
12939 #define PRIx64 "Lx"
12942 cat >>confdefs.h <<\_ACEOF
12943 #define PRIu64 "Lu"
12946 { echo "$as_me:$LINENO: result: yes" >&5
12947 echo "${ECHO_T}yes" >&6; }
12950 echo "$as_me: program exited with status $ac_status" >&5
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12954 ( exit $ac_status )
12956 { echo "$as_me:$LINENO: result: no" >&5
12957 echo "${ECHO_T}no" >&6; }
12960 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12961 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
12962 if test "$cross_compiling" = yes; then
12963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12964 See \`config.log
' for more details." >&5
12965 echo "$as_me: error: cannot run test program while cross compiling
12966 See \`config.log' for more details.
" >&2;}
12967 { (exit 1); exit 1; }; }
12969 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12977 # ifdef HAVE_INTTYPES_H
12978 #include <inttypes.h>
12980 # ifdef HAVE_SYS_BITYPES_H
12981 #include <sys/bitypes.h>
12984 #include <sys/types.h>
12990 sprintf(strbuf, "%016qx
", t << 32);
12991 if (strcmp(strbuf, "0000000100000000") == 0)
12999 rm -f conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_link") 2>&5
13008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13018 (exit $ac_status); }; }; then
13020 cat >>confdefs.h <<\_ACEOF
13021 #define PRId64 "qd
"
13024 cat >>confdefs.h <<\_ACEOF
13025 #define PRIo64 "qo
"
13028 cat >>confdefs.h <<\_ACEOF
13029 #define PRIx64 "qx
"
13032 cat >>confdefs.h <<\_ACEOF
13033 #define PRIu64 "qu
"
13036 { echo "$as_me:$LINENO: result
: yes" >&5
13037 echo "${ECHO_T}yes" >&6; }
13040 echo "$as_me: program exited with status
$ac_status" >&5
13041 echo "$as_me: failed program was
:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 ( exit $ac_status )
13046 { echo "$as_me:$LINENO: result
: no
" >&5
13047 echo "${ECHO_T}no
" >&6; }
13049 { { echo "$as_me:$LINENO: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&5
13050 echo "$as_me: error
: neither
%llx nor
%Lx nor
%qx worked on a
64-bit integer
" >&2;}
13051 { (exit 1); exit 1; }; }
13055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13086 if test -n "$ac_tool_prefix"; then
13087 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13089 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13090 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13091 if test "${ac_cv_prog_RANLIB+set}" = set; then
13092 echo $ECHO_N "(cached
) $ECHO_C" >&6
13094 if test -n "$RANLIB"; then
13095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13105 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13114 RANLIB=$ac_cv_prog_RANLIB
13115 if test -n "$RANLIB"; then
13116 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
13117 echo "${ECHO_T}$RANLIB" >&6; }
13119 { echo "$as_me:$LINENO: result
: no
" >&5
13120 echo "${ECHO_T}no
" >&6; }
13125 if test -z "$ac_cv_prog_RANLIB"; then
13126 ac_ct_RANLIB=$RANLIB
13127 # Extract the first word of "ranlib
", so it can be a program name with args.
13128 set dummy ranlib; ac_word=$2
13129 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13130 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13131 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13132 echo $ECHO_N "(cached
) $ECHO_C" >&6
13134 if test -n "$ac_ct_RANLIB"; then
13135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138 for as_dir in $PATH
13141 test -z "$as_dir" && as_dir=.
13142 for ac_exec_ext in '' $ac_executable_extensions; do
13143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13144 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13145 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13155 if test -n "$ac_ct_RANLIB"; then
13156 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
13157 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13159 { echo "$as_me:$LINENO: result
: no
" >&5
13160 echo "${ECHO_T}no
" >&6; }
13163 if test "x
$ac_ct_RANLIB" = x; then
13166 case $cross_compiling:$ac_tool_warned in
13168 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13169 whose name does not start with the
host triplet. If you think this
13170 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13171 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13172 whose name does not start with the
host triplet. If you think this
13173 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13174 ac_tool_warned=yes ;;
13176 RANLIB=$ac_ct_RANLIB
13179 RANLIB="$ac_cv_prog_RANLIB"
13184 if test "${LBL_CFLAGS+set}" = set; then
13185 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13187 if test -f .devel ; then
13188 if test "$GCC" = yes ; then
13189 if test "${LBL_CFLAGS+set}" != set; then
13190 if test "$ac_cv_prog_cc_g" = yes ; then
13191 V_CCOPT="-g $V_CCOPT"
13193 V_CCOPT="$V_CCOPT -Wall"
13194 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13195 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13202 V_CCOPT="$V_CCOPT -n32"
13209 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13210 name="lbl
/os-
$os.h
"
13211 if test -f $name ; then
13212 ln -s $name os-proto.h
13213 cat >>confdefs.h <<\_ACEOF
13214 #define HAVE_OS_PROTO_H 1
13218 { echo "$as_me:$LINENO: WARNING
: can
't find $name" >&5
13219 echo "$as_me: WARNING: can't
find $name" >&2;}
13223 { echo "$as_me:$LINENO: checking
if sockaddr struct has sa_len member
" >&5
13224 echo $ECHO_N "checking
if sockaddr struct has sa_len member...
$ECHO_C" >&6; }
13225 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13226 echo $ECHO_N "(cached
) $ECHO_C" >&6
13228 cat >conftest.$ac_ext <<_ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13235 # include <sys/types.h>
13236 # include <sys/socket.h>
13240 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13245 rm -f conftest.$ac_objext
13246 if { (ac_try="$ac_compile"
13247 case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_compile") 2>conftest.er1
13254 grep -v '^ *+' conftest.er1 >conftest.err
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13258 (exit $ac_status); } && {
13259 test -z "$ac_c_werror_flag" ||
13260 test ! -s conftest.err
13261 } && test -s conftest.$ac_objext; then
13262 ac_cv_lbl_sockaddr_has_sa_len=yes
13264 echo "$as_me: failed program was
:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 ac_cv_lbl_sockaddr_has_sa_len=no
13270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13274 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13275 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_SOCKADDR_SA_LEN 1
13282 { echo "$as_me:$LINENO: checking
if unaligned accesses fail
" >&5
13283 echo $ECHO_N "checking
if unaligned accesses fail...
$ECHO_C" >&6; }
13284 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13285 echo $ECHO_N "(cached
) $ECHO_C" >&6
13287 case "$host_cpu" in
13290 # These are CPU types where:
13292 # the CPU faults on an unaligned access, but at least some
13293 # OSes that support that CPU catch the fault and simulate
13294 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13295 # the simulation is slow, so we don't want to use it;
13297 # the CPU, I infer (from the old
13299 # XXX: should also check that they don't do weird things (like on arm)
13301 # comment) doesn't fault on unaligned accesses, but doesn't
13302 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13304 # for whatever reason, the test program doesn't work
13305 # (this has been claimed to be the case for several of those
13306 # CPUs - I don't know what the problem is; the problem
13307 # was reported as "the
test program dumps core
" for SuperH,
13308 # but that's what the test program is *supposed* to do -
13309 # it dumps core before it writes anything, so the test
13310 # for an empty output file should find an empty output
13311 # file and conclude that unaligned accesses don't work).
13313 # This run-time test won't work if you're cross-compiling, so
13314 # in order to support cross-compiling for a particular CPU,
13315 # we have to wire in the list of CPU types anyway, as far as
13316 # I know, so perhaps we should just have a set of CPUs on
13317 # which we know it doesn't work, a set of CPUs on which we
13318 # know it does work, and have the script just fail on other
13319 # cpu types and update it when such a failure occurs.
13321 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13322 ac_cv_lbl_unaligned_fail=yes
13326 cat >conftest.c <<EOF
13327 # include <sys/types.h>
13328 # include <sys/wait.h>
13329 # include <stdio.h>
13330 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13335 /* avoid "core dumped
" message */
13341 pid = waitpid(pid, &status, 0);
13344 exit(!WIFEXITED(status));
13347 i = *(unsigned int *)&a[1];
13352 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13353 conftest.c $LIBS >/dev/null 2>&1
13354 if test ! -x conftest ; then
13355 ac_cv_lbl_unaligned_fail=yes
13357 ./conftest >conftest.out
13358 if test ! -s conftest.out ; then
13359 ac_cv_lbl_unaligned_fail=yes
13361 ac_cv_lbl_unaligned_fail=no
13364 rm -f conftest* core core.conftest
13369 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_unaligned_fail" >&5
13370 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13371 if test $ac_cv_lbl_unaligned_fail = yes ; then
13372 cat >>confdefs.h <<\_ACEOF
13373 #define LBL_ALIGN 1
13379 { echo "$as_me:$LINENO: checking
for h_errno
" >&5
13380 echo $ECHO_N "checking
for h_errno...
$ECHO_C" >&6; }
13381 if test "${ac_cv_var_h_errno+set}" = set; then
13382 echo $ECHO_N "(cached
) $ECHO_C" >&6
13384 cat >conftest.$ac_ext <<_ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13391 # include <sys/types.h>
13392 # include <netdb.h>
13401 rm -f conftest.$ac_objext
13402 if { (ac_try="$ac_compile"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_compile") 2>conftest.er1
13410 grep -v '^ *+' conftest.er1 >conftest.err
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13414 (exit $ac_status); } && {
13415 test -z "$ac_c_werror_flag" ||
13416 test ! -s conftest.err
13417 } && test -s conftest.$ac_objext; then
13418 ac_cv_var_h_errno=yes
13420 echo "$as_me: failed program was
:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 ac_cv_var_h_errno=no
13426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 { echo "$as_me:$LINENO: result
: $ac_cv_var_h_errno" >&5
13430 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13431 if test "$ac_cv_var_h_errno" = "yes"; then
13432 cat >>confdefs.h <<\_ACEOF
13433 #define HAVE_H_ERRNO 1
13440 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto
" >&5
13441 echo $ECHO_N "checking whether to use SSLeay libcrypto...
$ECHO_C" >&6; }
13442 # Specify location for both includes and libraries.
13443 want_libcrypto=youmama
13445 # Check whether --with-crypto was given.
13446 if test "${with_crypto+set}" = set; then
13447 withval=$with_crypto;
13448 if test $withval = no
13451 { echo "$as_me:$LINENO: result
: no
" >&5
13452 echo "${ECHO_T}no
" >&6; }
13453 elif test $withval = yes
13456 { echo "$as_me:$LINENO: result
: yes" >&5
13457 echo "${ECHO_T}yes" >&6; }
13460 { echo "$as_me:$LINENO: result
: yes" >&5
13461 echo "${ECHO_T}yes" >&6; }
13462 crypto_dir=$withval
13468 # Use libcrypto if it's present, otherwise don't.
13470 want_libcrypto=ifavailable
13471 { echo "$as_me:$LINENO: result
: yes, if available
" >&5
13472 echo "${ECHO_T}yes, if available
" >&6; }
13476 if test "$want_libcrypto" != "no
"; then
13477 ac_cv_ssleay_path=no
13479 if test "x
$crypto_dir" = x; then
13481 # Location not specified; check the default locations.
13483 { echo "$as_me:$LINENO: checking where SSLeay is located
" >&5
13484 echo $ECHO_N "checking where SSLeay is located...
$ECHO_C" >&6; }
13485 dirs="/usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
"
13486 if test "x
${host_alias}" != x; then
13487 dirs="/usr
/${host_alias} $dirs"
13489 for dir in $dirs; do
13492 # Find the last component of $libdir; it's not necessarily
13493 # "lib
" - it might be "lib64
" on, for example, x86-64
13496 # We assume the directory in which we're looking for
13497 # libcrypto has a subdirectory with that as its name.
13499 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13502 # XXX - is there a better way to check if a given library is
13503 # in a given directory than checking each of the possible
13504 # shared library suffixes?
13506 # Are there any other suffixes we need to look for? Do we
13507 # have to worry about ".so.
{version
}"?
13509 # Or should we just look for "libcrypto.
*"?
13511 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a
" -o \
13512 -f "$dir/$tmplib/libcrypto.so
" -o \
13513 -f "$dir/$tmplib/libcrypto.sl
" -o \
13514 -f "$dir/$tmplib/libcrypto.dylib
" \); then
13515 ac_cv_ssleay_path="$dir"
13519 # Make sure we have the headers as well.
13521 if test -d "$dir/include
/openssl
" -a -f "$dir/include
/openssl
/des.h
"; then
13522 incdir="-I$dir/include
"
13526 if test "$ac_cv_ssleay_path" != "no
" -a "$incdir" != "no
"; then
13529 ac_cv_ssleay_path=no
13533 if test "$ac_cv_ssleay_path" != no; then
13534 { echo "$as_me:$LINENO: result
: $ac_cv_ssleay_path" >&5
13535 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13538 { echo "$as_me:$LINENO: checking
for SSLeay
in $crypto_dir" >&5
13539 echo $ECHO_N "checking
for SSLeay
in $crypto_dir...
$ECHO_C" >&6; }
13542 # Find the last component of $libdir; it's not necessarily
13543 # "lib
" - it might be "lib64
" on, for example, x86-64
13546 # We assume the directory in which we're looking for
13547 # libcrypto has a subdirectory with that as its name.
13549 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13552 # XXX - is there a better way to check if a given library is
13553 # in a given directory than checking each of the possible
13554 # shared library suffixes?
13556 # Are there any other suffixes we need to look for? Do we
13557 # have to worry about ".so.
{version
}"?
13559 # Or should we just look for "libcrypto.
*"?
13561 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a
" -o \
13562 -f "$crypto_dir/$tmplib/libcrypto.so
" -o \
13563 -f "$crypto_dir/$tmplib/libcrypto.sl
" -o \
13564 -f "$crypto_dir/$tmplib/libcrypto.dylib
" \); then
13565 ac_cv_ssleay_path="$crypto_dir"
13569 # Make sure we have the headers as well.
13571 if test -d "$crypto_dir/include
/openssl
" -a -f "$crypto_dir/include
/openssl
/des.h
"; then
13572 incdir="-I$crypto_dir/include
"
13575 if test "$ac_cv_ssleay_path" != no; then
13576 { echo "$as_me:$LINENO: result
: found
" >&5
13577 echo "${ECHO_T}found
" >&6; }
13580 if test "$ac_cv_ssleay_path" != no; then
13581 V_INCLS="$V_INCLS $incdir"
13582 LDFLAGS="-L$dir/lib
$LDFLAGS"
13583 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13584 LIBS="$LIBS -lRSAglue"
13586 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13587 LIBS="$LIBS -lrsaref"
13590 { echo "$as_me:$LINENO: checking
for DES_cbc_encrypt
in -lcrypto" >&5
13591 echo $ECHO_N "checking
for DES_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
13592 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13593 echo $ECHO_N "(cached
) $ECHO_C" >&6
13595 ac_check_lib_save_LIBS=$LIBS
13596 LIBS="-lcrypto $LIBS"
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13604 /* Override any GCC internal prototype to avoid an error.
13605 Use char because int might match the return type of a GCC
13606 builtin and then its argument prototype would still apply. */
13610 char DES_cbc_encrypt ();
13614 return DES_cbc_encrypt ();
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (ac_try="$ac_link"
13621 case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_link") 2>conftest.er1
13628 grep -v '^ *+' conftest.er1 >conftest.err
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13632 (exit $ac_status); } && {
13633 test -z "$ac_c_werror_flag" ||
13634 test ! -s conftest.err
13635 } && test -s conftest$ac_exeext &&
13636 $as_test_x conftest$ac_exeext; then
13637 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13639 echo "$as_me: failed program was
:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13642 ac_cv_lib_crypto_DES_cbc_encrypt=no
13645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13646 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS
13649 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13650 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13651 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13652 cat >>confdefs.h <<_ACEOF
13653 #define HAVE_LIBCRYPTO 1
13656 LIBS="-lcrypto $LIBS"
13661 CPPFLAGS="$CPPFLAGS $V_INCLS"
13663 for ac_header in openssl/evp.h
13665 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13666 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13667 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13668 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13669 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13670 echo $ECHO_N "(cached
) $ECHO_C" >&6
13672 ac_res=`eval echo '${'$as_ac_Header'}'`
13673 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13674 echo "${ECHO_T}$ac_res" >&6; }
13676 # Is the header compilable?
13677 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13678 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13679 cat >conftest.$ac_ext <<_ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 $ac_includes_default
13686 #include <$ac_header>
13688 rm -f conftest.$ac_objext
13689 if { (ac_try="$ac_compile"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_compile") 2>conftest.er1
13697 grep -v '^ *+' conftest.er1 >conftest.err
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13701 (exit $ac_status); } && {
13702 test -z "$ac_c_werror_flag" ||
13703 test ! -s conftest.err
13704 } && test -s conftest.$ac_objext; then
13705 ac_header_compiler=yes
13707 echo "$as_me: failed program was
:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13710 ac_header_compiler=no
13713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13715 echo "${ECHO_T}$ac_header_compiler" >&6; }
13717 # Is the header present?
13718 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
13719 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
13720 cat >conftest.$ac_ext <<_ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 #include <$ac_header>
13728 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13729 case "(($ac_try" in
13730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731 *) ac_try_echo=$ac_try;;
13733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13734 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13736 grep -v '^ *+' conftest.er1 >conftest.err
13738 cat conftest.err >&5
13739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13740 (exit $ac_status); } >/dev/null && {
13741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13742 test ! -s conftest.err
13744 ac_header_preproc=yes
13746 echo "$as_me: failed program was
:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13749 ac_header_preproc=no
13752 rm -f conftest.err conftest.$ac_ext
13753 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13754 echo "${ECHO_T}$ac_header_preproc" >&6; }
13756 # So? What about this header?
13757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13759 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
13760 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13761 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
13762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
13763 ac_header_preproc=yes
13766 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
13767 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
13768 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
13769 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
13770 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
13771 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
13772 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
13773 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
13774 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
13775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
13776 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
13777 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
13781 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13782 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13783 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13784 echo $ECHO_N "(cached
) $ECHO_C" >&6
13786 eval "$as_ac_Header=\
$ac_header_preproc"
13788 ac_res=`eval echo '${'$as_ac_Header'}'`
13789 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13790 echo "${ECHO_T}$ac_res" >&6; }
13793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13794 cat >>confdefs.h <<_ACEOF
13795 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
13804 # Not found. Did the user explicitly ask for it?
13806 { echo "$as_me:$LINENO: result
: not found
" >&5
13807 echo "${ECHO_T}not found
" >&6; }
13808 if test "$want_libcrypto" = yes; then
13809 { { echo "$as_me:$LINENO: error
: SSLeay not found
" >&5
13810 echo "$as_me: error
: SSLeay not found
" >&2;}
13811 { (exit 1); exit 1; }; }
13816 if test "$missing_includes" = "yes"; then
13817 CPPFLAGS="$CPPFLAGS -I\$
(srcdir
)/missing
"
13818 V_INCLS="$V_INCLS -I\$
(srcdir
)/missing
"
13830 # Find a good install program. We prefer a C program (faster),
13831 # so one script is as good as another. But avoid the broken or
13832 # incompatible versions:
13833 # SysV /etc/install, /usr/sbin/install
13834 # SunOS /usr/etc/install
13835 # IRIX /sbin/install
13837 # AmigaOS /C/install, which installs bootblocks on floppy discs
13838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
13841 # OS/2's system install, which has a completely different semantic
13842 # ./install, which can be erroneously created by make from ./install.sh.
13843 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
13844 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
13845 if test -z "$INSTALL"; then
13846 if test "${ac_cv_path_install+set}" = set; then
13847 echo $ECHO_N "(cached
) $ECHO_C" >&6
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13853 test -z "$as_dir" && as_dir=.
13854 # Account for people who put trailing slashes in PATH elements.
13856 ./ | .// | /cC/* | \
13857 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13858 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13861 # OSF1 and SCO ODT 3.0 have their own names for install.
13862 # Don't use installbsd from OSF since it installs stuff as root
13864 for ac_prog in ginstall scoinst install; do
13865 for ac_exec_ext in '' $ac_executable_extensions; do
13866 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13867 if test $ac_prog = install &&
13868 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13869 # AIX install. It has an incompatible calling convention.
13871 elif test $ac_prog = install &&
13872 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13873 # program-specific install script used by HP pwplus--don't use.
13876 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13889 if test "${ac_cv_path_install+set}" = set; then
13890 INSTALL=$ac_cv_path_install
13892 # As a last resort, use the slow shell script. Don't cache a
13893 # value for INSTALL within a source directory, because that will
13894 # break other packages using the cache if that directory is
13895 # removed, or if the value is a relative name.
13896 INSTALL=$ac_install_sh
13899 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
13900 echo "${ECHO_T}$INSTALL" >&6; }
13902 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13903 # It thinks the first close brace ends the variable substitution.
13904 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13906 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13908 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13911 ac_config_headers="$ac_config_headers config.h
"
13914 ac_config_commands="$ac_config_commands default-1
"
13916 ac_config_files="$ac_config_files Makefile tcpdump
.1"
13918 cat >confcache <<\_ACEOF
13919 # This file is a shell script that caches the results of configure
13920 # tests run on this system so they can be shared between configure
13921 # scripts and configure runs, see configure's option --config-cache.
13922 # It is not useful on other systems. If it contains results you don't
13923 # want to keep, you may remove or edit it.
13925 # config.status only pays attention to the cache file if you give it
13926 # the --recheck option to rerun configure.
13928 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13929 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13930 # following values.
13934 # The following way of writing the cache mishandles newlines in values,
13935 # but we know of no workaround that is simple, portable, and efficient.
13936 # So, we kill variables containing newlines.
13937 # Ultrix sh set writes to stderr and can't be redirected directly,
13938 # and sets the high bit in the cache file unless we assign to the vars.
13940 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13941 eval ac_val=\$$ac_var
13945 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
13946 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
13949 _ | IFS | as_nl) ;; #(
13950 *) $as_unset $ac_var ;;
13956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13957 *${as_nl}ac_space=\ *)
13958 # `set' does not quote correctly, so add quotes (double-quote
13959 # substitution turns \\\\ into \\, and sed turns \\ into \).
13962 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
13965 # `set' quotes correctly as required by POSIX, so do not add quotes.
13966 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
13975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13980 if test -w "$cache_file"; then
13981 test "x
$cache_file" != "x
/dev
/null
" &&
13982 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
13983 echo "$as_me: updating cache
$cache_file" >&6;}
13984 cat confcache >$cache_file
13986 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
13987 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
13992 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
13993 # Let make expand exec_prefix.
13994 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
13996 DEFS=-DHAVE_CONFIG_H
14000 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
14001 # 1. Remove the extension, and $U if already installed.
14002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14003 ac_i=`echo "$ac_i" | sed "$ac_script"`
14004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14005 # will be set to the directory where LIBOBJS objects are built.
14006 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
14007 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
14009 LIBOBJS=$ac_libobjs
14011 LTLIBOBJS=$ac_ltlibobjs
14015 : ${CONFIG_STATUS=./config.status}
14016 ac_clean_files_save=$ac_clean_files
14017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14018 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
14019 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
14020 cat >$CONFIG_STATUS <<_ACEOF
14022 # Generated by $as_me.
14023 # Run this file to recreate the current configuration.
14024 # Compiler output produced by configure, useful for debugging
14025 # configure, is in config.log if it exists.
14028 ac_cs_recheck=false
14030 SHELL=\${CONFIG_SHELL-$SHELL}
14033 cat >>$CONFIG_STATUS <<\_ACEOF
14034 ## --------------------- ##
14035 ## M4sh Initialization. ##
14036 ## --------------------- ##
14038 # Be more Bourne compatible
14039 DUALCASE=1; export DUALCASE # for MKS sh
14040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14043 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14044 # is contrary to our usage. Disable this feature.
14045 alias -g '${1+"$@"}'='"$@
"'
14046 setopt NO_GLOB_SUBST
14048 case `(set -o) 2>/dev/null` in
14049 *posix*) set -o posix ;;
14058 # Avoid depending upon Character Ranges.
14059 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14060 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14061 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14062 as_cr_digits='0123456789'
14063 as_cr_alnum=$as_cr_Letters$as_cr_digits
14065 # The user is always right.
14066 if test "${PATH_SEPARATOR+set}" != set; then
14067 echo "#! /bin/sh" >conf$$.sh
14068 echo "exit 0" >>conf$$.sh
14070 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14078 # Support unset when possible.
14079 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
14087 # We need space, tab and new line, in precisely that order. Quoting is
14088 # there to prevent editors from complaining about space-tab.
14089 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14090 # splitting by setting IFS to empty value.)
14095 # Find who we are. Look in the path if we contain no directory separator.
14097 *[\\/]* ) as_myself
=$0 ;;
14098 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14099 for as_dir
in $PATH
14102 test -z "$as_dir" && as_dir
=.
14103 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
14109 # We did not find ourselves, most probably we were run as `sh COMMAND'
14110 # in which case we are not to be found in the path.
14111 if test "x$as_myself" = x
; then
14114 if test ! -f "$as_myself"; then
14115 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14116 { (exit 1); exit 1; }
14119 # Work around bugs in pre-3.0 UWIN ksh.
14120 for as_var
in ENV MAIL MAILPATH
14121 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14129 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14130 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14131 LC_TELEPHONE LC_TIME
14133 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14134 eval $as_var=C
; export $as_var
14136 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14140 # Required to use basename.
14141 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14142 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14148 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14149 as_basename
=basename
14155 # Name of the executable.
14156 as_me
=`$as_basename -- "$0" ||
14157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14158 X"$0" : 'X\(//\)$' \| \
14159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14161 sed '/^.*\/\([^/][^/]*\)\/*$/{
14180 as_lineno_1
=$LINENO
14181 as_lineno_2
=$LINENO
14182 test "x$as_lineno_1" != "x$as_lineno_2" &&
14183 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
14185 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14186 # uniformly replaced by the line number. The first 'sed' inserts a
14187 # line-number line after each line using $LINENO; the second 'sed'
14188 # does the real work. The second script uses 'N' to pair each
14189 # line-number line with the line containing $LINENO, and appends
14190 # trailing '-' during substitution so that $LINENO is not a special
14191 # case at line end.
14192 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14193 # scripts with optimization help from Paolo Bonzini. Blame Lee
14194 # E. McMahon (1931-1989) for sed's syntax. :-)
14206 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14209 ' >$as_me.lineno
&&
14210 chmod +x
"$as_me.lineno" ||
14211 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14212 { (exit 1); exit 1; }; }
14214 # Don't try to exec as it changes $[0], causing all sort of problems
14215 # (the dirname of $[0] is not the place where we might find the
14216 # original and so on. Autoconf is especially sensitive to this).
14217 .
"./$as_me.lineno"
14218 # Exit status is that of the last command.
14223 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14229 ECHO_C
= ECHO_N
= ECHO_T
=
14230 case `echo -n x` in
14232 case `echo 'x\c'` in
14233 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14240 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14241 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14247 rm -f conf$$ conf$$.exe conf$$.
file
14248 if test -d conf$$.dir
; then
14249 rm -f conf$$.dir
/conf$$.
file
14255 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14257 # ... but there are two gotchas:
14258 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14259 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14260 # In both cases, we have to default to `cp -p'.
14261 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14263 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14268 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14269 rmdir conf$$.dir
2>/dev
/null
14271 if mkdir
-p .
2>/dev
/null
; then
14274 test -d .
/-p && rmdir .
/-p
14278 if test -x / >/dev
/null
2>&1; then
14279 as_test_x
='test -x'
14281 if ls -dL / >/dev
/null
2>&1; then
14288 if test -d "$1"; then
14294 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14295 ???[sx]*):;;*)false;;esac;fi
14299 as_executable_p
=$as_test_x
14301 # Sed expression to map a string onto a valid CPP name.
14302 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14304 # Sed expression to map a string onto a valid variable name.
14305 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14310 # Save the log message, to keep $[0] and so on meaningful, and to
14311 # report actual input values of CONFIG_FILES etc. instead of their
14312 # values after options handling.
14314 This file was extended by $as_me, which was
14315 generated by GNU Autoconf 2.61. Invocation command line was
14317 CONFIG_FILES = $CONFIG_FILES
14318 CONFIG_HEADERS = $CONFIG_HEADERS
14319 CONFIG_LINKS = $CONFIG_LINKS
14320 CONFIG_COMMANDS = $CONFIG_COMMANDS
14323 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14328 cat >>$CONFIG_STATUS <<_ACEOF
14329 # Files that config.status was made for.
14330 config_files="$ac_config_files"
14331 config_headers="$ac_config_headers"
14332 config_commands="$ac_config_commands"
14336 cat >>$CONFIG_STATUS <<\_ACEOF
14338 \`$as_me' instantiates files from templates according to the
14339 current configuration.
14341 Usage: $0 [OPTIONS] [FILE]...
14343 -h, --help print this help, then exit
14344 -V, --version print version number and configuration settings, then exit
14345 -q, --quiet do not print progress messages
14346 -d, --debug don't remove temporary files
14347 --recheck update $as_me by reconfiguring in the same conditions
14348 --file=FILE[:TEMPLATE]
14349 instantiate the configuration file FILE
14350 --header=FILE[:TEMPLATE]
14351 instantiate the configuration header FILE
14353 Configuration files:
14356 Configuration headers:
14359 Configuration commands:
14362 Report bugs to <bug-autoconf@gnu.org>."
14365 cat >>$CONFIG_STATUS <<_ACEOF
14368 configured by $0, generated by GNU Autoconf 2.61,
14369 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14371 Copyright (C) 2006 Free Software Foundation, Inc.
14372 This config.status script is free software; the Free Software Foundation
14373 gives unlimited permission to copy, distribute and modify it."
14380 cat >>$CONFIG_STATUS <<\_ACEOF
14381 # If no file are specified by the user, then we need to provide default
14382 # value. By we need to know if files were specified by the user.
14388 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14389 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14400 # Handling of the options.
14401 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14403 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14404 echo "$ac_cs_version"; exit ;;
14405 --debug |
--debu |
--deb |
--de |
--d |
-d )
14407 --file |
--fil |
--fi |
--f )
14409 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14410 ac_need_defaults
=false
;;
14411 --header |
--heade |
--head |
--hea )
14413 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14414 ac_need_defaults
=false
;;
14416 # Conflict between --help and --header
14417 { echo "$as_me: error: ambiguous option: $1
14418 Try \`$0 --help' for more information." >&2
14419 { (exit 1); exit 1; }; };;
14420 --help |
--hel |
-h )
14421 echo "$ac_cs_usage"; exit ;;
14422 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14423 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14426 # This is an error.
14427 -*) { echo "$as_me: error: unrecognized option: $1
14428 Try \`$0 --help' for more information." >&2
14429 { (exit 1); exit 1; }; } ;;
14431 *) ac_config_targets
="$ac_config_targets $1"
14432 ac_need_defaults
=false
;;
14438 ac_configure_extra_args
=
14440 if $ac_cs_silent; then
14442 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14446 cat >>$CONFIG_STATUS <<_ACEOF
14447 if \$ac_cs_recheck; then
14448 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14449 CONFIG_SHELL=$SHELL
14450 export CONFIG_SHELL
14451 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14455 cat >>$CONFIG_STATUS <<\_ACEOF
14459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14460 ## Running $as_me. ##
14466 cat >>$CONFIG_STATUS <<_ACEOF
14474 cat >>$CONFIG_STATUS <<\_ACEOF
14476 # Handling of arguments.
14477 for ac_config_target
in $ac_config_targets
14479 case $ac_config_target in
14480 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
14481 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14482 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14483 "tcpdump.1") CONFIG_FILES
="$CONFIG_FILES tcpdump.1" ;;
14485 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14486 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14487 { (exit 1); exit 1; }; };;
14492 # If the user did not use the arguments to specify the items to instantiate,
14493 # then the envvar interface is used. Set only those that are not.
14494 # We use the long form for the default assignment because of an extremely
14495 # bizarre bug on SunOS 4.1.3.
14496 if $ac_need_defaults; then
14497 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14499 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14502 # Have a temporary directory for convenience. Make it in the build tree
14503 # simply because there is no reason against having it here, and in addition,
14504 # creating and moving files from /tmp can sometimes cause problems.
14505 # Hook for its removal unless debugging.
14506 # Note that there is a small window in which the directory will not be cleaned:
14507 # after its creation but before its name has been assigned to `$tmp'.
14511 trap 'exit_status=$?
14512 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14514 trap '{ (exit 1); exit 1; }' 1 2 13 15
14516 # Create a (secure) tmp directory for tmp files.
14519 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14520 test -n "$tmp" && test -d "$tmp"
14523 tmp
=.
/conf$$
-$RANDOM
14524 (umask 077 && mkdir
"$tmp")
14527 echo "$me: cannot create a temporary directory in ." >&2
14528 { (exit 1); exit 1; }
14532 # Set up the sed scripts for CONFIG_FILES section.
14535 # No need to generate the scripts if there are no CONFIG_FILES.
14536 # This happens for instance when ./config.status config.h
14537 if test -n "$CONFIG_FILES"; then
14544 for ac_last_try
in false false false false false
:; do
14545 cat >conf$
$subs.
sed <<_ACEOF
14546 SHELL!$SHELL$ac_delim
14547 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14548 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14549 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14550 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14551 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14552 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14553 exec_prefix!$exec_prefix$ac_delim
14554 prefix!$prefix$ac_delim
14555 program_transform_name!$program_transform_name$ac_delim
14556 bindir!$bindir$ac_delim
14557 sbindir!$sbindir$ac_delim
14558 libexecdir!$libexecdir$ac_delim
14559 datarootdir!$datarootdir$ac_delim
14560 datadir!$datadir$ac_delim
14561 sysconfdir!$sysconfdir$ac_delim
14562 sharedstatedir!$sharedstatedir$ac_delim
14563 localstatedir!$localstatedir$ac_delim
14564 includedir!$includedir$ac_delim
14565 oldincludedir!$oldincludedir$ac_delim
14566 docdir!$docdir$ac_delim
14567 infodir!$infodir$ac_delim
14568 htmldir!$htmldir$ac_delim
14569 dvidir!$dvidir$ac_delim
14570 pdfdir!$pdfdir$ac_delim
14571 psdir!$psdir$ac_delim
14572 libdir!$libdir$ac_delim
14573 localedir!$localedir$ac_delim
14574 mandir!$mandir$ac_delim
14575 DEFS!$DEFS$ac_delim
14576 ECHO_C!$ECHO_C$ac_delim
14577 ECHO_N!$ECHO_N$ac_delim
14578 ECHO_T!$ECHO_T$ac_delim
14579 LIBS!$LIBS$ac_delim
14580 build_alias!$build_alias$ac_delim
14581 host_alias!$host_alias$ac_delim
14582 target_alias!$target_alias$ac_delim
14583 build!$build$ac_delim
14584 build_cpu!$build_cpu$ac_delim
14585 build_vendor!$build_vendor$ac_delim
14586 build_os!$build_os$ac_delim
14587 host!$host$ac_delim
14588 host_cpu!$host_cpu$ac_delim
14589 host_vendor!$host_vendor$ac_delim
14590 host_os!$host_os$ac_delim
14591 SHLICC2!$SHLICC2$ac_delim
14593 CFLAGS!$CFLAGS$ac_delim
14594 LDFLAGS!$LDFLAGS$ac_delim
14595 CPPFLAGS!$CPPFLAGS$ac_delim
14596 ac_ct_CC!$ac_ct_CC$ac_delim
14597 EXEEXT!$EXEEXT$ac_delim
14598 OBJEXT!$OBJEXT$ac_delim
14600 GREP!$GREP$ac_delim
14601 EGREP!$EGREP$ac_delim
14602 LIBOBJS!$LIBOBJS$ac_delim
14603 RANLIB!$RANLIB$ac_delim
14604 V_CCOPT!$V_CCOPT$ac_delim
14605 V_DEFS!$V_DEFS$ac_delim
14606 V_GROUP!$V_GROUP$ac_delim
14607 V_INCLS!$V_INCLS$ac_delim
14608 V_PCAPDEP!$V_PCAPDEP$ac_delim
14609 LOCALSRC!$LOCALSRC$ac_delim
14610 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
14611 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
14612 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14613 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14614 INSTALL_DATA!$INSTALL_DATA$ac_delim
14615 LTLIBOBJS!$LTLIBOBJS$ac_delim
14618 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
14620 elif $ac_last_try; then
14621 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14622 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14623 { (exit 1); exit 1; }; }
14625 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
14629 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14630 if test -n "$ac_eof"; then
14631 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
14632 ac_eof
=`expr $ac_eof + 1`
14635 cat >>$CONFIG_STATUS <<_ACEOF
14636 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14640 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14641 s/^/s,@/; s/!/@,|#_!!_#|/
14644 s/'"$ac_delim"'$/,g/; t
14646 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14647 ' >>$CONFIG_STATUS <conf$
$subs.
sed
14648 rm -f conf$
$subs.
sed
14649 cat >>$CONFIG_STATUS <<_ACEOF
14656 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14657 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14658 # trailing colons and then remove the whole line if VPATH becomes empty
14659 # (actually we leave an empty line to preserve line numbers).
14660 if test "x$srcdir" = x.
; then
14661 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14662 s/:*\$(srcdir):*/:/
14663 s/:*\${srcdir}:*/:/
14665 s/^\([^=]*=[ ]*\):*/\1/
14671 cat >>$CONFIG_STATUS <<\_ACEOF
14672 fi # test -n "$CONFIG_FILES"
14675 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
14678 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14680 case $ac_mode$ac_tag in
14682 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14683 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14684 { (exit 1); exit 1; }; };;
14685 :[FH
]-) ac_tag
=-:-;;
14686 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14703 -) ac_f
="$tmp/stdin";;
14704 *) # Look for the file first in the build tree, then in the source tree
14705 # (if the path is not absolute). The absolute path cannot be DOS-style,
14706 # because $ac_f cannot contain `:'.
14710 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14712 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14713 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14714 { (exit 1); exit 1; }; };;
14716 ac_file_inputs
="$ac_file_inputs $ac_f"
14719 # Let's still pretend it is `configure' which instantiates (i.e., don't
14720 # use $as_me), people would be surprised to read:
14721 # /* config.h. Generated by config.status. */
14722 configure_input
="Generated from "`IFS=:
14723 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14724 if test x
"$ac_file" != x-
; then
14725 configure_input
="$ac_file. $configure_input"
14726 { echo "$as_me:$LINENO: creating $ac_file" >&5
14727 echo "$as_me: creating $ac_file" >&6;}
14731 *:-:* |
*:-) cat >"$tmp/stdin";;
14736 ac_dir
=`$as_dirname -- "$ac_file" ||
14737 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14738 X"$ac_file" : 'X\(//\)[^/]' \| \
14739 X"$ac_file" : 'X\(//\)$' \| \
14740 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14746 /^X\(\/\/\)[^/].*/{
14761 -*) as_dir
=.
/$as_dir;;
14763 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
14767 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14768 *) as_qdir
=$as_dir;;
14770 as_dirs
="'$as_qdir' $as_dirs"
14771 as_dir
=`$as_dirname -- "$as_dir" ||
14772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14773 X"$as_dir" : 'X\(//\)[^/]' \| \
14774 X"$as_dir" : 'X\(//\)$' \| \
14775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14781 /^X\(\/\/\)[^/].*/{
14794 test -d "$as_dir" && break
14796 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14797 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14798 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14799 { (exit 1); exit 1; }; }; }
14803 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14805 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14806 # A ".." for each directory in $ac_dir_suffix.
14807 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14808 case $ac_top_builddir_sub in
14809 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14810 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14813 ac_abs_top_builddir
=$ac_pwd
14814 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14815 # for backward compatibility:
14816 ac_top_builddir
=$ac_top_build_prefix
14819 .
) # We are building in place.
14821 ac_top_srcdir
=$ac_top_builddir_sub
14822 ac_abs_top_srcdir
=$ac_pwd ;;
14823 [\\/]* | ?
:[\\/]* ) # Absolute name.
14824 ac_srcdir
=$srcdir$ac_dir_suffix;
14825 ac_top_srcdir
=$srcdir
14826 ac_abs_top_srcdir
=$srcdir ;;
14827 *) # Relative name.
14828 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14829 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14830 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14832 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14842 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14843 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14847 cat >>$CONFIG_STATUS <<\_ACEOF
14848 # If the template does not know about datarootdir, expand it.
14849 # FIXME: This hack should be removed a few years after 2.60.
14850 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14852 case `sed -n '/datarootdir/ {
14861 ' $ac_file_inputs` in
14862 *datarootdir
*) ac_datarootdir_seen
=yes;;
14863 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14864 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14865 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14867 cat >>$CONFIG_STATUS <<_ACEOF
14868 ac_datarootdir_hack='
14869 s&@datadir@&$datadir&g
14870 s&@docdir@&$docdir&g
14871 s&@infodir@&$infodir&g
14872 s&@localedir@&$localedir&g
14873 s&@mandir@&$mandir&g
14874 s&\\\${datarootdir}&$datarootdir&g' ;;
14878 # Neutralize VPATH when `$srcdir' = `.'.
14879 # Shell code in configure.ac might set extrasub.
14880 # FIXME: do we really want to maintain this feature?
14881 cat >>$CONFIG_STATUS <<_ACEOF
14885 cat >>$CONFIG_STATUS <<\_ACEOF
14887 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14888 s
&@configure_input@
&$configure_input&;t t
14889 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14890 s
&@srcdir@
&$ac_srcdir&;t t
14891 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14892 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14893 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14894 s
&@builddir@
&$ac_builddir&;t t
14895 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14896 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14897 s
&@INSTALL@
&$ac_INSTALL&;t t
14898 $ac_datarootdir_hack
14899 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
14901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14902 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14904 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14905 which seems to be undefined. Please make sure it is defined." >&5
14906 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14907 which seems to be undefined. Please make sure it is defined." >&2;}
14911 -) cat "$tmp/out"; rm -f "$tmp/out";;
14912 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14921 # Transform confdefs.h into a sed script `conftest.defines', that
14922 # substitutes the proper values into config.h.in to produce config.h.
14923 rm -f conftest.defines conftest.
tail
14924 # First, append a space to every undef/define line, to ease matching.
14925 echo 's/$/ /' >conftest.defines
14926 # Then, protect against being on the right side of a sed subst, or in
14927 # an unquoted here document, in config.status. If some macros were
14928 # called several times there might be several #defines for the same
14929 # symbol, which is useless. But do not sort them, since the last
14930 # AC_DEFINE must be honored.
14931 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
14932 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14933 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14934 # PARAMS is the parameter list in the macro definition--in most cases, it's
14935 # just an empty string.
14936 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14937 ac_dB
='\\)[ (].*,\\1define\\2'
14945 s/^[ ]*#[ ]*define[ ][ ]*//
14950 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14951 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14952 ' >>conftest.defines
14954 # Remove the space that was appended to ease matching.
14955 # Then replace #undef with comments. This is necessary, for
14956 # example, in the case of _POSIX_SOURCE, which is predefined and required
14957 # on some systems where configure will not decide to define it.
14958 # (The regexp can be short, since the line contains either #define or #undef.)
14960 s,^[ #]*u.*,/* & */,' >>conftest.defines
14962 # Break up conftest.defines:
14963 ac_max_sed_lines
=50
14965 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14966 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14967 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14969 ac_in
='$ac_file_inputs'
14970 ac_out
='"$tmp/out1"'
14971 ac_nxt
='"$tmp/out2"'
14975 # Write a here document:
14976 cat >>$CONFIG_STATUS <<_ACEOF
14977 # First, check the format of the line:
14978 cat >"\$tmp/defines.sed" <<\\CEOF
14979 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14980 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14984 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
14986 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14987 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
14988 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
14989 grep . conftest.
tail >/dev
/null ||
break
14990 rm -f conftest.defines
14991 mv conftest.
tail conftest.defines
14993 rm -f conftest.defines conftest.
tail
14995 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14996 cat >>$CONFIG_STATUS <<\_ACEOF
14997 if test x
"$ac_file" != x-
; then
14998 echo "/* $configure_input */" >"$tmp/config.h"
14999 cat "$ac_result" >>"$tmp/config.h"
15000 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
15001 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15002 echo "$as_me: $ac_file is unchanged" >&6;}
15005 mv "$tmp/config.h" $ac_file
15008 echo "/* $configure_input */"
15014 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15015 echo "$as_me: executing $ac_file commands" >&6;}
15020 case $ac_file$ac_mode in
15021 "default-1":C
) if test -f .devel
; then
15022 echo timestamp
> stamp-h
15023 cat Makefile-devel-adds
>> Makefile
15031 { (exit 0); exit 0; }
15033 chmod +x
$CONFIG_STATUS
15034 ac_clean_files
=$ac_clean_files_save
15037 # configure is writing to config.log, and then calls config.status.
15038 # config.status does its own redirection, appending to config.log.
15039 # Unfortunately, on DOS this fails, as config.log is still kept open
15040 # by configure, so config.status won't be able to write to it; its
15041 # output is simply discarded. So we exec the FD to /dev/null,
15042 # effectively closing config.log, so it can be properly (re)opened and
15043 # appended to by config.status. When coming back to configure, we
15044 # need to make the FD available again.
15045 if test "$no_create" != yes; then
15047 ac_config_status_args
=
15048 test "$silent" = yes &&
15049 ac_config_status_args
="$ac_config_status_args --quiet"
15051 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15053 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15054 # would make configure fail if this is the last instruction.
15055 $ac_cs_success ||
{ (exit 1); exit 1; }