2 # From configure.in Revision: 1.196.2.6 .
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
686 ac_precious_vars='build_alias
697 # Initialize some variables set by options.
699 ac_init_version=false
700 # The variables have the same names as the options, with
701 # dashes changed to underlines.
709 program_transform_name=s,x,x,
717 # Installation directory options.
718 # These are left unexpanded so users can "make install exec_prefix=/foo"
719 # and all the variables that are supposed to be based on exec_prefix
720 # by default will actually change.
721 # Use braces instead of parens because sh, perl, etc. also accept them.
722 # (The list follows the same order as the GNU Coding Standards.)
723 bindir='${exec_prefix}/bin'
724 sbindir='${exec_prefix}/sbin'
725 libexecdir='${exec_prefix}/libexec'
726 datarootdir='${prefix}/share'
727 datadir='${datarootdir}'
728 sysconfdir='${prefix}/etc'
729 sharedstatedir='${prefix}/com'
730 localstatedir='${prefix}/var'
731 includedir='${prefix}/include'
732 oldincludedir='/usr/include'
733 docdir='${datarootdir}/doc/${PACKAGE}'
734 infodir='${datarootdir}/info'
739 libdir='${exec_prefix}/lib'
740 localedir='${datarootdir}/locale'
741 mandir='${datarootdir}/man'
747 # If the previous option needs an argument, assign it.
748 if test -n "$ac_prev"; then
749 eval $ac_prev=\$ac_option
755 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759 # Accept the important Cygnus configure options, so we can diagnose typos.
761 case $ac_dashdash$ac_option in
765 -bindir | --bindir | --bindi | --bind | --bin | --bi)
767 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
770 -build | --build | --buil | --bui | --bu)
771 ac_prev=build_alias ;;
772 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
773 build_alias=$ac_optarg ;;
775 -cache-file | --cache-file | --cache-fil | --cache-fi \
776 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
777 ac_prev=cache_file ;;
778 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
779 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
780 cache_file=$ac_optarg ;;
783 cache_file=config.cache ;;
785 -datadir | --datadir | --datadi | --datad)
787 -datadir=* | --datadir=* | --datadi=* | --datad=*)
788 datadir=$ac_optarg ;;
790 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
791 | --dataroo | --dataro | --datar)
792 ac_prev=datarootdir ;;
793 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
794 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
795 datarootdir=$ac_optarg ;;
797 -disable-* | --disable-*)
798 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
799 # Reject names that are not valid shell variable names.
800 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
802 { (exit 1); exit 1; }; }
803 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
804 eval enable_$ac_feature=no ;;
806 -docdir | --docdir | --docdi | --doc | --do)
808 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
811 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
813 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
816 -enable-* | --enable-*)
817 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
821 { (exit 1); exit 1; }; }
822 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
823 eval enable_$ac_feature=\$ac_optarg ;;
825 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
826 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
827 | --exec | --exe | --ex)
828 ac_prev=exec_prefix ;;
829 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
830 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
831 | --exec=* | --exe=* | --ex=*)
832 exec_prefix=$ac_optarg ;;
834 -gas | --gas | --ga | --g)
835 # Obsolete; use --with-gas.
838 -help | --help | --hel | --he | -h)
840 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
841 ac_init_help=recursive ;;
842 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
843 ac_init_help=short ;;
845 -host | --host | --hos | --ho)
846 ac_prev=host_alias ;;
847 -host=* | --host=* | --hos=* | --ho=*)
848 host_alias=$ac_optarg ;;
850 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
852 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
854 htmldir=$ac_optarg ;;
856 -includedir | --includedir | --includedi | --included | --include \
857 | --includ | --inclu | --incl | --inc)
858 ac_prev=includedir ;;
859 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
860 | --includ=* | --inclu=* | --incl=* | --inc=*)
861 includedir=$ac_optarg ;;
863 -infodir | --infodir | --infodi | --infod | --info | --inf)
865 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
866 infodir=$ac_optarg ;;
868 -libdir | --libdir | --libdi | --libd)
870 -libdir=* | --libdir=* | --libdi=* | --libd=*)
873 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
874 | --libexe | --libex | --libe)
875 ac_prev=libexecdir ;;
876 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
877 | --libexe=* | --libex=* | --libe=*)
878 libexecdir=$ac_optarg ;;
880 -localedir | --localedir | --localedi | --localed | --locale)
882 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
883 localedir=$ac_optarg ;;
885 -localstatedir | --localstatedir | --localstatedi | --localstated \
886 | --localstate | --localstat | --localsta | --localst | --locals)
887 ac_prev=localstatedir ;;
888 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
889 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
890 localstatedir=$ac_optarg ;;
892 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
894 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
898 # Obsolete; use --without-fp.
901 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
902 | --no-cr | --no-c | -n)
905 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
906 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
909 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
910 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
911 | --oldin | --oldi | --old | --ol | --o)
912 ac_prev=oldincludedir ;;
913 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
914 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
915 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
916 oldincludedir=$ac_optarg ;;
918 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
920 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
923 -program-prefix | --program-prefix | --program-prefi | --program-pref \
924 | --program-pre | --program-pr | --program-p)
925 ac_prev=program_prefix ;;
926 -program-prefix=* | --program-prefix=* | --program-prefi=* \
927 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
928 program_prefix=$ac_optarg ;;
930 -program-suffix | --program-suffix | --program-suffi | --program-suff \
931 | --program-suf | --program-su | --program-s)
932 ac_prev=program_suffix ;;
933 -program-suffix=* | --program-suffix=* | --program-suffi=* \
934 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
935 program_suffix=$ac_optarg ;;
937 -program-transform-name | --program-transform-name \
938 | --program-transform-nam | --program-transform-na \
939 | --program-transform-n | --program-transform- \
940 | --program-transform | --program-transfor \
941 | --program-transfo | --program-transf \
942 | --program-trans | --program-tran \
943 | --progr-tra | --program-tr | --program-t)
944 ac_prev=program_transform_name ;;
945 -program-transform-name=* | --program-transform-name=* \
946 | --program-transform-nam=* | --program-transform-na=* \
947 | --program-transform-n=* | --program-transform-=* \
948 | --program-transform=* | --program-transfor=* \
949 | --program-transfo=* | --program-transf=* \
950 | --program-trans=* | --program-tran=* \
951 | --progr-tra=* | --program-tr=* | --program-t=*)
952 program_transform_name=$ac_optarg ;;
954 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
956 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
959 -psdir | --psdir | --psdi | --psd | --ps)
961 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
965 | -silent | --silent | --silen | --sile | --sil)
968 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
970 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
972 sbindir=$ac_optarg ;;
974 -sharedstatedir | --sharedstatedir | --sharedstatedi \
975 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
976 | --sharedst | --shareds | --shared | --share | --shar \
978 ac_prev=sharedstatedir ;;
979 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
980 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
981 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
983 sharedstatedir=$ac_optarg ;;
985 -site | --site | --sit)
987 -site=* | --site=* | --sit=*)
990 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
992 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
995 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
996 | --syscon | --sysco | --sysc | --sys | --sy)
997 ac_prev=sysconfdir ;;
998 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
999 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1000 sysconfdir=$ac_optarg ;;
1002 -target | --target | --targe | --targ | --tar | --ta | --t)
1003 ac_prev=target_alias ;;
1004 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1005 target_alias=$ac_optarg ;;
1007 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1010 -version | --version | --versio | --versi | --vers | -V)
1011 ac_init_version=: ;;
1014 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid package name: $ac_package" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1020 eval with_$ac_package=\$ac_optarg ;;
1022 -without-* | --without-*)
1023 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 { echo "$as_me: error: invalid package name: $ac_package" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1029 eval with_$ac_package=no ;;
1032 # Obsolete; use --with-x.
1035 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1036 | --x-incl | --x-inc | --x-in | --x-i)
1037 ac_prev=x_includes ;;
1038 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1039 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1040 x_includes=$ac_optarg ;;
1042 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1043 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1044 ac_prev=x_libraries ;;
1045 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1046 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1047 x_libraries=$ac_optarg ;;
1049 -*) { echo "$as_me: error: unrecognized option: $ac_option
1050 Try \`$0 --help' for more information." >&2
1051 { (exit 1); exit 1; }; }
1055 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1059 { (exit 1); exit 1; }; }
1060 eval $ac_envvar=\$ac_optarg
1061 export $ac_envvar ;;
1064 # FIXME: should be removed in autoconf 3.0.
1065 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1066 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1068 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1074 if test -n "$ac_prev"; then
1075 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1076 { echo "$as_me: error: missing argument to $ac_option" >&2
1077 { (exit 1); exit 1; }; }
1080 # Be sure to have absolute directory names.
1081 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1082 datadir sysconfdir sharedstatedir localstatedir includedir \
1083 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1084 libdir localedir mandir
1086 eval ac_val=\$$ac_var
1088 [\\/$]* | ?:[\\/]* ) continue;;
1089 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1091 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1092 { (exit 1); exit 1; }; }
1095 # There might be people who depend on the old broken behavior: `$host'
1096 # used to hold the argument of --host etc.
1097 # FIXME: To remove some day.
1100 target=$target_alias
1102 # FIXME: To remove some day.
1103 if test "x$host_alias" != x; then
1104 if test "x$build_alias" = x; then
1105 cross_compiling=maybe
1106 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1107 If a cross compiler is detected then cross compile mode will be used." >&2
1108 elif test "x$build_alias" != "x$host_alias"; then
1114 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1116 test "$silent" = yes && exec 6>/dev/null
1119 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1120 ac_ls_di=`ls -di .` &&
1121 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1122 { echo "$as_me: error: Working directory cannot be determined" >&2
1123 { (exit 1); exit 1; }; }
1124 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1125 { echo "$as_me: error: pwd does not report name of working directory" >&2
1126 { (exit 1); exit 1; }; }
1129 # Find the source files, if location was not specified.
1130 if test -z "$srcdir"; then
1131 ac_srcdir_defaulted=yes
1132 # Try the directory containing this script, then the parent directory.
1133 ac_confdir=`$as_dirname -- "$0" ||
1134 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1135 X"$0" : 'X\(//\)[^/]' \| \
1136 X"$0" : 'X\(//\)$' \| \
1137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1157 if test ! -r "$srcdir/$ac_unique_file"; then
1161 ac_srcdir_defaulted=no
1163 if test ! -r "$srcdir/$ac_unique_file"; then
1164 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1165 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1166 { (exit 1); exit 1; }; }
1168 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1170 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1171 { (exit 1); exit 1; }; }
1173 # When building in place, set srcdir=.
1174 if test "$ac_abs_confdir" = "$ac_pwd"; then
1177 # Remove unnecessary trailing slashes from srcdir.
1178 # Double slashes in file names in object file debugging info
1179 # mess up M-x gdb in Emacs.
1181 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1183 for ac_var in $ac_precious_vars; do
1184 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1185 eval ac_env_${ac_var}_value=\$${ac_var}
1186 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1187 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1191 # Report the --help message.
1193 if test "$ac_init_help" = "long"; then
1194 # Omit some internal or obsolete options to make the list less imposing.
1195 # This message is too long to be a string in the A/UX 3.1 sh.
1197 \`configure' configures this package to adapt to many kinds of systems.
1199 Usage: $0 [OPTION]... [VAR=VALUE]...
1201 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1202 VAR=VALUE. See below for descriptions of some of the useful variables.
1204 Defaults for the options are specified in brackets.
1207 -h, --help display this help and exit
1208 --help=short display options specific to this package
1209 --help=recursive display the short help of all the included packages
1210 -V, --version display version information and exit
1211 -q, --quiet, --silent do not print \`checking...' messages
1212 --cache-file=FILE cache test results in FILE [disabled]
1213 -C, --config-cache alias for \`--cache-file=config.cache'
1214 -n, --no-create do not create output files
1215 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1217 Installation directories:
1218 --prefix=PREFIX install architecture-independent files in PREFIX
1219 [$ac_default_prefix]
1220 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1223 By default, \`make install' will install all the files in
1224 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1225 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1226 for instance \`--prefix=\$HOME'.
1228 For better control, use the options below.
1230 Fine tuning of the installation directories:
1231 --bindir=DIR user executables [EPREFIX/bin]
1232 --sbindir=DIR system admin executables [EPREFIX/sbin]
1233 --libexecdir=DIR program executables [EPREFIX/libexec]
1234 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1235 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1236 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1237 --libdir=DIR object code libraries [EPREFIX/lib]
1238 --includedir=DIR C header files [PREFIX/include]
1239 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1240 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1241 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1242 --infodir=DIR info documentation [DATAROOTDIR/info]
1243 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1244 --mandir=DIR man documentation [DATAROOTDIR/man]
1245 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1246 --htmldir=DIR html documentation [DOCDIR]
1247 --dvidir=DIR dvi documentation [DOCDIR]
1248 --pdfdir=DIR pdf documentation [DOCDIR]
1249 --psdir=DIR ps documentation [DOCDIR]
1255 --build=BUILD configure for building on BUILD [guessed]
1256 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1260 if test -n "$ac_init_help"; then
1265 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1266 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1267 --enable-smb enable possibly-buggy SMB printer default=yes
1268 --disable-smb disable possibly-buggy SMB printer
1269 --enable-ipv6 enable ipv6 (with ipv4) support
1270 --disable-ipv6 disable ipv6 support
1273 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1274 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1275 --without-gcc don't use gcc
1276 --with-user=USERNAME drop privileges by default to USERNAME
1277 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1278 --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if
1279 supplied). [default=yes, if available]
1281 Some influential environment variables:
1282 CC C compiler command
1283 CFLAGS C compiler flags
1284 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1285 nonstandard directory <lib dir>
1286 LIBS libraries to pass to the linker, e.g. -l<library>
1287 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1288 you have headers in a nonstandard directory <include dir>
1291 Use these variables to override the choices made by `configure' or to help
1292 it to find libraries and programs with nonstandard names/locations.
1298 if test "$ac_init_help" = "recursive"; then
1299 # If there are subdirs, report their specific --help.
1300 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1301 test -d "$ac_dir" || continue
1305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1307 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1308 # A ".." for each directory in $ac_dir_suffix.
1309 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1310 case $ac_top_builddir_sub in
1311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1315 ac_abs_top_builddir=$ac_pwd
1316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1317 # for backward compatibility:
1318 ac_top_builddir=$ac_top_build_prefix
1321 .) # We are building in place.
1323 ac_top_srcdir=$ac_top_builddir_sub
1324 ac_abs_top_srcdir=$ac_pwd ;;
1325 [\\/]* | ?:[\\/]* ) # Absolute name.
1326 ac_srcdir=$srcdir$ac_dir_suffix;
1327 ac_top_srcdir=$srcdir
1328 ac_abs_top_srcdir=$srcdir ;;
1330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1331 ac_top_srcdir=$ac_top_build_prefix$srcdir
1332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1336 cd "$ac_dir" || { ac_status=$?; continue; }
1337 # Check for guested configure.
1338 if test -f "$ac_srcdir/configure.gnu"; then
1340 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1341 elif test -f "$ac_srcdir/configure"; then
1343 $SHELL "$ac_srcdir/configure" --help=recursive
1345 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1347 cd "$ac_pwd" || { ac_status=$?; break; }
1351 test -n "$ac_init_help" && exit $ac_status
1352 if $ac_init_version; then
1355 generated by GNU Autoconf 2.61
1357 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1358 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1359 This configure script is free software; the Free Software Foundation
1360 gives unlimited permission to copy, distribute and modify it.
1364 cat >config.log <<_ACEOF
1365 This file contains any messages produced by compilers while
1366 running configure, to aid debugging if configure makes a mistake.
1368 It was created by $as_me, which was
1369 generated by GNU Autoconf 2.61. Invocation command line was
1381 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1382 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1383 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1384 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1385 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1387 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1388 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1390 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1391 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1392 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1393 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1394 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1395 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1396 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404 test -z "$as_dir" && as_dir=.
1405 echo "PATH: $as_dir"
1421 # Keep a trace of the command line.
1422 # Strip out --no-create and --no-recursion so they do not pile up.
1423 # Strip out --silent because we don't want to record it for future runs.
1424 # Also quote any args containing shell meta-characters.
1425 # Make two passes to allow for proper duplicate-argument suppression.
1429 ac_must_keep_next=false
1435 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1437 | -silent | --silent | --silen | --sile | --sil)
1440 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1443 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1445 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1446 if test $ac_must_keep_next = true; then
1447 ac_must_keep_next=false # Got value, back to normal.
1450 *=* | --config-cache | -C | -disable-* | --disable-* \
1451 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1452 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1453 | -with-* | --with-* | -without-* | --without-* | --x)
1454 case "$ac_configure_args0 " in
1455 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1458 -* ) ac_must_keep_next=true ;;
1461 ac_configure_args="$ac_configure_args '$ac_arg'"
1466 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1467 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1469 # When interrupted or exit'd, cleanup temporary files, and complete
1470 # config.log. We remove comments because anyway the quotes in there
1471 # would cause problems or look ugly.
1472 # WARNING: Use '\'' to represent an apostrophe within the trap.
1473 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1474 trap 'exit_status=$?
1475 # Save into config.log some information that might help in debugging.
1480 ## ---------------- ##
1481 ## Cache variables. ##
1482 ## ---------------- ##
1485 # The following way of writing the cache mishandles newlines in values,
1487 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1488 eval ac_val=\$$ac_var
1492 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1493 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1496 _ | IFS | as_nl) ;; #(
1497 *) $as_unset $ac_var ;;
1502 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1503 *${as_nl}ac_space=\ *)
1505 "s/'\''/'\''\\\\'\'''\''/g;
1506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1509 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1517 ## ----------------- ##
1518 ## Output variables. ##
1519 ## ----------------- ##
1522 for ac_var in $ac_subst_vars
1524 eval ac_val=\$$ac_var
1526 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1528 echo "$ac_var='\''$ac_val'\''"
1532 if test -n "$ac_subst_files"; then
1534 ## ------------------- ##
1535 ## File substitutions. ##
1536 ## ------------------- ##
1539 for ac_var in $ac_subst_files
1541 eval ac_val=\$$ac_var
1543 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1545 echo "$ac_var='\''$ac_val'\''"
1550 if test -s confdefs.h; then
1560 test "$ac_signal" != 0 &&
1561 echo "$as_me: caught signal $ac_signal"
1562 echo "$as_me: exit $exit_status"
1564 rm -f core *.core core.conftest.* &&
1565 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1568 for ac_signal in 1 2 13 15; do
1569 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1573 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1574 rm -f -r conftest* confdefs.h
1576 # Predefined preprocessor variables.
1578 cat >>confdefs.h <<_ACEOF
1579 #define PACKAGE_NAME "$PACKAGE_NAME"
1583 cat >>confdefs.h <<_ACEOF
1584 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1588 cat >>confdefs.h <<_ACEOF
1589 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE_STRING "$PACKAGE_STRING"
1598 cat >>confdefs.h <<_ACEOF
1599 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1603 # Let the site file select an alternate cache file if it wants to.
1604 # Prefer explicitly selected file to automatically selected ones.
1605 if test -n "$CONFIG_SITE"; then
1606 set x "$CONFIG_SITE"
1607 elif test "x$prefix" != xNONE; then
1608 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1610 set x "$ac_default_prefix/share/config.site" \
1611 "$ac_default_prefix/etc/config.site"
1616 if test -r "$ac_site_file"; then
1617 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1618 echo "$as_me: loading site script $ac_site_file" >&6;}
1619 sed 's/^/| /' "$ac_site_file" >&5
1624 if test -r "$cache_file"; then
1625 # Some versions of bash will fail to source /dev/null (special
1626 # files actually), so we avoid doing that.
1627 if test -f "$cache_file"; then
1628 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1629 echo "$as_me: loading cache $cache_file" >&6;}
1631 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1632 *) . "./$cache_file";;
1636 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1637 echo "$as_me: creating cache $cache_file" >&6;}
1641 # Check that the precious variables saved in the cache have kept the same
1643 ac_cache_corrupted=false
1644 for ac_var in $ac_precious_vars; do
1645 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1646 eval ac_new_set=\$ac_env_${ac_var}_set
1647 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1648 eval ac_new_val=\$ac_env_${ac_var}_value
1649 case $ac_old_set,$ac_new_set in
1651 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1652 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1653 ac_cache_corrupted=: ;;
1655 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1656 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1657 ac_cache_corrupted=: ;;
1660 if test "x$ac_old_val" != "x$ac_new_val"; then
1661 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1662 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1663 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1664 echo "$as_me: former value: $ac_old_val" >&2;}
1665 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1666 echo "$as_me: current value: $ac_new_val" >&2;}
1667 ac_cache_corrupted=:
1670 # Pass precious variables to config.status.
1671 if test "$ac_new_set" = set; then
1673 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1674 *) ac_arg=$ac_var=$ac_new_val ;;
1676 case " $ac_configure_args " in
1677 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1678 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1682 if $ac_cache_corrupted; then
1683 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1684 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1685 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1686 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1687 { (exit 1); exit 1; }; }
1707 ac_cpp='$CPP $CPPFLAGS'
1708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1715 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1716 if test -f "$ac_dir/install-sh"; then
1718 ac_install_sh="$ac_aux_dir/install-sh -c"
1720 elif test -f "$ac_dir/install.sh"; then
1722 ac_install_sh="$ac_aux_dir/install.sh -c"
1724 elif test -f "$ac_dir/shtool"; then
1726 ac_install_sh="$ac_aux_dir/shtool install -c"
1730 if test -z "$ac_aux_dir"; then
1731 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1732 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1733 { (exit 1); exit 1; }; }
1736 # These three variables are undocumented and unsupported,
1737 # and are intended to be withdrawn in a future Autoconf release.
1738 # They can cause serious problems if a builder's source tree is in a directory
1739 # whose full name contains unusual characters.
1740 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1741 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1742 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1745 # Make sure we can run config.sub.
1746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1747 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1748 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1749 { (exit 1); exit 1; }; }
1751 { echo "$as_me:$LINENO: checking build system type" >&5
1752 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1753 if test "${ac_cv_build+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 ac_build_alias=$build_alias
1757 test "x$ac_build_alias" = x &&
1758 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1759 test "x$ac_build_alias" = x &&
1760 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1761 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1762 { (exit 1); exit 1; }; }
1763 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1764 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1765 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1766 { (exit 1); exit 1; }; }
1769 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1770 echo "${ECHO_T}$ac_cv_build" >&6; }
1771 case $ac_cv_build in
1773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1774 echo "$as_me: error: invalid value of canonical build" >&2;}
1775 { (exit 1); exit 1; }; };;
1778 ac_save_IFS=$IFS; IFS='-'
1784 # Remember, the first character of IFS is used to create $*,
1785 # except with old shells:
1788 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1791 { echo "$as_me:$LINENO: checking host system type" >&5
1792 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1793 if test "${ac_cv_host+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if test "x$host_alias" = x; then
1797 ac_cv_host=$ac_cv_build
1799 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1800 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1801 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1802 { (exit 1); exit 1; }; }
1806 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1807 echo "${ECHO_T}$ac_cv_host" >&6; }
1810 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1811 echo "$as_me: error: invalid value of canonical host" >&2;}
1812 { (exit 1); exit 1; }; };;
1815 ac_save_IFS=$IFS; IFS='-'
1821 # Remember, the first character of IFS is used to create $*,
1822 # except with old shells:
1825 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1834 # Check whether --with-gcc was given.
1835 if test "${with_gcc+set}" = set; then
1841 if test "${srcdir}" != "." ; then
1842 V_INCLS="-I\$(srcdir)"
1844 if test "${CFLAGS+set}" = set; then
1845 LBL_CFLAGS="$CFLAGS"
1847 if test -z "$CC" ; then
1851 # Extract the first word of "shlicc2", so it can be a program name with args.
1852 set dummy shlicc2; ac_word=$2
1853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1855 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 if test -n "$SHLICC2"; then
1859 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1868 ac_cv_prog_SHLICC2="yes"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1879 SHLICC2=$ac_cv_prog_SHLICC2
1880 if test -n "$SHLICC2"; then
1881 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1882 echo "${ECHO_T}$SHLICC2" >&6; }
1884 { echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6; }
1889 if test $SHLICC2 = yes ; then
1896 if test -z "$CC" -a "$with_gcc" = no ; then
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 if test -n "$ac_tool_prefix"; then
1906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 if test -n "$CC"; then
1935 { echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6; }
1938 { echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6; }
1944 if test -z "$ac_cv_prog_CC"; then
1946 # Extract the first word of "gcc", so it can be a program name with args.
1947 set dummy gcc; ac_word=$2
1948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 if test -n "$ac_ct_CC"; then
1954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1963 ac_cv_prog_ac_ct_CC="gcc"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6; }
1978 { echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6; }
1982 if test "x$ac_ct_CC" = x; then
1985 case $cross_compiling:$ac_tool_warned in
1987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1988 whose name does not start with the host triplet. If you think this
1989 configuration is useful to you, please write to autoconf@gnu.org." >&5
1990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1991 whose name does not start with the host triplet. If you think this
1992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1993 ac_tool_warned=yes ;;
2001 if test -z "$CC"; then
2002 if test -n "$ac_tool_prefix"; then
2003 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}cc; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$CC"; then
2011 ac_cv_prog_CC="$CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_CC="${ac_tool_prefix}cc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 if test -n "$CC"; then
2032 { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2042 if test -z "$CC"; then
2043 # Extract the first word of "cc", so it can be a program name with args.
2044 set dummy cc; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2062 ac_prog_rejected=yes
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 if test $ac_prog_rejected = yes; then
2074 # We found a bogon in the path, so make sure we never use it.
2075 set dummy $ac_cv_prog_CC
2077 if test $# != 0; then
2078 # We chose a different compiler from the bogus one.
2079 # However, it has the same basename, so the bogon will be chosen
2080 # first if we set CC to just the basename; use the full file name.
2082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2088 if test -n "$CC"; then
2089 { echo "$as_me:$LINENO: result: $CC" >&5
2090 echo "${ECHO_T}$CC" >&6; }
2092 { echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6; }
2098 if test -z "$CC"; then
2099 if test -n "$ac_tool_prefix"; then
2100 for ac_prog in cl.exe
2102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2106 if test "${ac_cv_prog_CC+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 if test -n "$CC"; then
2110 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 if test -n "$CC"; then
2131 { echo "$as_me:$LINENO: result: $CC" >&5
2132 echo "${ECHO_T}$CC" >&6; }
2134 { echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6; }
2139 test -n "$CC" && break
2142 if test -z "$CC"; then
2144 for ac_prog in cl.exe
2146 # Extract the first word of "$ac_prog", so it can be a program name with args.
2147 set dummy $ac_prog; ac_word=$2
2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 if test -n "$ac_ct_CC"; then
2154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 ac_cv_prog_ac_ct_CC="$ac_prog"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2174 if test -n "$ac_ct_CC"; then
2175 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2176 echo "${ECHO_T}$ac_ct_CC" >&6; }
2178 { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2183 test -n "$ac_ct_CC" && break
2186 if test "x$ac_ct_CC" = x; then
2189 case $cross_compiling:$ac_tool_warned in
2191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2192 whose name does not start with the host triplet. If you think this
2193 configuration is useful to you, please write to autoconf@gnu.org." >&5
2194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2195 whose name does not start with the host triplet. If you think this
2196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2197 ac_tool_warned=yes ;;
2206 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: no acceptable C compiler found in \$PATH
2209 See \`config.log' for more details." >&2;}
2210 { (exit 1); exit 1; }; }
2212 # Provide some information about the compiler.
2213 echo "$as_me:$LINENO: checking for C compiler version" >&5
2214 ac_compiler=`set X $ac_compile; echo $2`
2215 { (ac_try="$ac_compiler --version >&5"
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221 (eval "$ac_compiler --version >&5") 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }
2225 { (ac_try="$ac_compiler -v >&5"
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231 (eval "$ac_compiler -v >&5") 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }
2235 { (ac_try="$ac_compiler -V >&5"
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241 (eval "$ac_compiler -V >&5") 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }
2246 cat >conftest.$ac_ext <<_ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2261 ac_clean_files_save=$ac_clean_files
2262 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2263 # Try to create an executable without -o first, disregard a.out.
2264 # It will help us diagnose broken compilers, and finding out an intuition
2266 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2267 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2268 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2270 # List of possible output files, starting from the most likely.
2271 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2272 # only as a last resort. b.out is created by i960 compilers.
2273 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2275 # The IRIX 6 linker writes into existing files which may not be
2276 # executable, retaining their permissions. Remove them first so a
2277 # subsequent execution test works.
2279 for ac_file in $ac_files
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2288 if { (ac_try="$ac_link_default"
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294 (eval "$ac_link_default") 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2299 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2300 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2301 # so that the user can short-circuit this test for compilers unknown to
2303 for ac_file in $ac_files ''
2305 test -f "$ac_file" || continue
2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2310 # We found the default executable, but exeext='' is most
2314 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2318 # We set ac_cv_exeext here because the later test for it is not
2319 # safe: cross compilers may not add the suffix if given an `-o'
2320 # argument, so we may need to know it at that point already.
2321 # Even if this section looks crufty: it has the advantage of
2328 test "$ac_cv_exeext" = no && ac_cv_exeext=
2334 { echo "$as_me:$LINENO: result: $ac_file" >&5
2335 echo "${ECHO_T}$ac_file" >&6; }
2336 if test -z "$ac_file"; then
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&2;}
2344 { (exit 77); exit 77; }; }
2347 ac_exeext=$ac_cv_exeext
2349 # Check that the compiler produces executables we can run. If not, either
2350 # the compiler is broken, or we cross compile.
2351 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2352 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2353 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2354 # If not cross compiling, check that we can run a simple program.
2355 if test "$cross_compiling" != yes; then
2356 if { ac_try='./$ac_file'
2357 { (case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362 (eval "$ac_try") 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2368 if test "$cross_compiling" = maybe; then
2371 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2372 If you meant to cross compile, use \`--host'.
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot run C compiled programs.
2375 If you meant to cross compile, use \`--host'.
2376 See \`config.log' for more details." >&2;}
2377 { (exit 1); exit 1; }; }
2381 { echo "$as_me:$LINENO: result: yes" >&5
2382 echo "${ECHO_T}yes" >&6; }
2384 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2385 ac_clean_files=$ac_clean_files_save
2386 # Check that the compiler produces executables we can run. If not, either
2387 # the compiler is broken, or we cross compile.
2388 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2389 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2390 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2391 echo "${ECHO_T}$cross_compiling" >&6; }
2393 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2394 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2395 if { (ac_try="$ac_link"
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_link") 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; then
2405 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2406 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2407 # work properly (i.e., refer to `conftest.exe'), while it won't with
2409 for ac_file in conftest.exe conftest conftest.*; do
2410 test -f "$ac_file" || continue
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2413 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2422 See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2426 rm -f conftest$ac_cv_exeext
2427 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2428 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2430 rm -f conftest.$ac_ext
2431 EXEEXT=$ac_cv_exeext
2433 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2434 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2435 if test "${ac_cv_objext+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 cat >conftest.$ac_ext <<_ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2453 rm -f conftest.o conftest.obj
2454 if { (ac_try="$ac_compile"
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; then
2464 for ac_file in conftest.o conftest.obj conftest.*; do
2465 test -f "$ac_file" || continue;
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2468 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2476 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2477 See \`config.log' for more details." >&5
2478 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2479 See \`config.log' for more details." >&2;}
2480 { (exit 1); exit 1; }; }
2483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2485 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2486 echo "${ECHO_T}$ac_cv_objext" >&6; }
2487 OBJEXT=$ac_cv_objext
2489 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2490 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2491 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.$ac_ext <<_ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2521 grep -v '^ *+' conftest.er1 >conftest.err
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } && {
2526 test -z "$ac_c_werror_flag" ||
2527 test ! -s conftest.err
2528 } && test -s conftest.$ac_objext; then
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2541 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2542 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2543 GCC=`test $ac_compiler_gnu = yes && echo yes`
2544 ac_test_CFLAGS=${CFLAGS+set}
2545 ac_save_CFLAGS=$CFLAGS
2546 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2547 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2548 if test "${ac_cv_prog_cc_g+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 ac_save_c_werror_flag=$ac_c_werror_flag
2552 ac_c_werror_flag=yes
2555 cat >conftest.$ac_ext <<_ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h. */
2570 rm -f conftest.$ac_objext
2571 if { (ac_try="$ac_compile"
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_compile") 2>conftest.er1
2579 grep -v '^ *+' conftest.er1 >conftest.err
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } && {
2584 test -z "$ac_c_werror_flag" ||
2585 test ! -s conftest.err
2586 } && test -s conftest.$ac_objext; then
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2593 cat >conftest.$ac_ext <<_ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2608 rm -f conftest.$ac_objext
2609 if { (ac_try="$ac_compile"
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compile") 2>conftest.er1
2617 grep -v '^ *+' conftest.er1 >conftest.err
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } && {
2622 test -z "$ac_c_werror_flag" ||
2623 test ! -s conftest.err
2624 } && test -s conftest.$ac_objext; then
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2630 ac_c_werror_flag=$ac_save_c_werror_flag
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (ac_try="$ac_compile"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compile") 2>conftest.er1
2656 grep -v '^ *+' conftest.er1 >conftest.err
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest.$ac_objext; then
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 ac_c_werror_flag=$ac_save_c_werror_flag
2681 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2682 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2683 if test "$ac_test_CFLAGS" = set; then
2684 CFLAGS=$ac_save_CFLAGS
2685 elif test $ac_cv_prog_cc_g = yes; then
2686 if test "$GCC" = yes; then
2692 if test "$GCC" = yes; then
2698 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2699 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2700 if test "${ac_cv_prog_cc_c89+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 ac_cv_prog_cc_c89=no
2705 cat >conftest.$ac_ext <<_ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2713 #include <sys/types.h>
2714 #include <sys/stat.h>
2715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2716 struct buf { int x; };
2717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2718 static char *e (p, i)
2724 static char *f (char * (*g) (char **, int), char **p, ...)
2729 s = g (p, va_arg (v,int));
2734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2735 function prototypes and stuff, but not '\xHH' hex character constants.
2736 These don't provoke an error unfortunately, instead are silently treated
2737 as 'x'. The following induces an error, until -std is added to get
2738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2739 array size at least. It's necessary to write '\x00'==0 to get something
2740 that's true only with -std. */
2741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2744 inside strings and character constants. */
2746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2763 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2765 CC="$ac_save_CC $ac_arg"
2766 rm -f conftest.$ac_objext
2767 if { (ac_try="$ac_compile"
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compile") 2>conftest.er1
2775 grep -v '^ *+' conftest.er1 >conftest.err
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } && {
2780 test -z "$ac_c_werror_flag" ||
2781 test ! -s conftest.err
2782 } && test -s conftest.$ac_objext; then
2783 ac_cv_prog_cc_c89=$ac_arg
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2791 rm -f core conftest.err conftest.$ac_objext
2792 test "x$ac_cv_prog_cc_c89" != "xno" && break
2794 rm -f conftest.$ac_ext
2799 case "x$ac_cv_prog_cc_c89" in
2801 { echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6; } ;;
2804 { echo "$as_me:$LINENO: result: unsupported" >&5
2805 echo "${ECHO_T}unsupported" >&6; } ;;
2807 CC="$CC $ac_cv_prog_cc_c89"
2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 if test "$GCC" = yes ; then
2820 if test "$SHLICC2" = yes ; then
2821 ac_cv_lbl_gcc_vers=2
2824 { echo "$as_me:$LINENO: checking gcc version" >&5
2825 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2826 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2830 sed -e '/^gcc version /!d' \
2831 -e 's/^gcc version //' \
2832 -e 's/ .*//' -e 's/^[^0-9]*//' \
2836 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2837 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2838 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2843 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2844 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2845 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 cat >conftest.$ac_ext <<_ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2855 #include <sys/types.h>
2859 int frob(int, char *)
2864 rm -f conftest.$ac_objext
2865 if { (ac_try="$ac_compile"
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 (eval "$ac_compile") 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } && {
2878 test -z "$ac_c_werror_flag" ||
2879 test ! -s conftest.err
2880 } && test -s conftest.$ac_objext; then
2881 ac_cv_lbl_cc_ansi_prototypes=yes
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2886 ac_cv_lbl_cc_ansi_prototypes=no
2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2893 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2894 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2898 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2899 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2900 savedcflags="$CFLAGS"
2901 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2902 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 cat >conftest.$ac_ext <<_ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2911 #include <sys/types.h>
2915 int frob(int, char *)
2920 rm -f conftest.$ac_objext
2921 if { (ac_try="$ac_compile"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compile") 2>conftest.er1
2929 grep -v '^ *+' conftest.er1 >conftest.err
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } && {
2934 test -z "$ac_c_werror_flag" ||
2935 test ! -s conftest.err
2936 } && test -s conftest.$ac_objext; then
2937 ac_cv_lbl_cc_hpux_cc_aa=yes
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2942 ac_cv_lbl_cc_hpux_cc_aa=no
2945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2949 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2950 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2951 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2952 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2953 { (exit 1); exit 1; }; }
2955 CFLAGS="$savedcflags"
2956 V_CCOPT="-Aa $V_CCOPT"
2957 cat >>confdefs.h <<\_ACEOF
2958 #define _HPUX_SOURCE 1
2964 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2965 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2966 { (exit 1); exit 1; }; }
2970 V_INCLS="$V_INCLS -I/usr/local/include"
2971 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2976 V_CCOPT="$V_CCOPT -xansi -signed -O"
2980 V_CCOPT="$V_CCOPT -std1 -O"
2984 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2985 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
2986 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 cat >conftest.$ac_ext <<_ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2995 #include <sys/types.h>
2999 struct a { int b; };
3000 void c(const struct a *)
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } && {
3019 test -z "$ac_c_werror_flag" ||
3020 test ! -s conftest.err
3021 } && test -s conftest.$ac_objext; then
3022 ac_cv_lbl_cc_const_proto=yes
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 ac_cv_lbl_cc_const_proto=no
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3034 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3035 if test $ac_cv_lbl_cc_const_proto = no ; then
3036 cat >>confdefs.h <<\_ACEOF
3045 { echo "$as_me:$LINENO: checking for inline" >&5
3046 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3047 if test "${ac_cv_lbl_inline+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 for ac_lbl_inline in inline __inline__ __inline
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3061 #define inline $ac_lbl_inline
3062 static inline struct iltest *foo(void);
3068 static inline struct iltest *
3071 static struct iltest xxx;
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3100 ac_lbl_cc_inline=yes
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 if test "$ac_lbl_cc_inline" = yes ; then
3113 if test "$ac_lbl_cc_inline" = yes ; then
3114 ac_cv_lbl_inline=$ac_lbl_inline
3118 if test ! -z "$ac_cv_lbl_inline" ; then
3119 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3120 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3122 { echo "$as_me:$LINENO: result: no" >&5
3123 echo "${ECHO_T}no" >&6; }
3126 cat >>confdefs.h <<_ACEOF
3127 #define inline $ac_cv_lbl_inline
3131 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3132 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3133 if test "${ac_cv___attribute__+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3146 static void foo(void) __attribute__ ((noreturn));
3155 main(int argc, char **argv)
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_compile") 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } && {
3175 test -z "$ac_c_werror_flag" ||
3176 test ! -s conftest.err
3177 } && test -s conftest.$ac_objext; then
3178 ac_cv___attribute__=yes
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 ac_cv___attribute__=no
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 if test "$ac_cv___attribute__" = "yes"; then
3191 cat >>confdefs.h <<\_ACEOF
3192 #define HAVE___ATTRIBUTE__ 1
3195 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3197 V_DEFS="$V_DEFS -D_U_=\"\""
3199 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3200 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3209 # On Suns, sometimes $CPP names a directory.
3210 if test -n "$CPP" && test -d "$CPP"; then
3213 if test -z "$CPP"; then
3214 if test "${ac_cv_prog_CPP+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 # Double quotes because CPP needs to be expanded
3218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3221 for ac_c_preproc_warn_flag in '' yes
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3236 # include <limits.h>
3238 # include <assert.h>
3242 if { (ac_try="$ac_cpp conftest.$ac_ext"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3250 grep -v '^ *+' conftest.er1 >conftest.err
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev/null && {
3255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3256 test ! -s conftest.err
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 # Broken: fails on valid input.
3267 rm -f conftest.err conftest.$ac_ext
3269 # OK, works on sane cases. Now check whether nonexistent headers
3270 # can be detected and how.
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #include <ac_nonexistent.h>
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null && {
3292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3293 test ! -s conftest.err
3295 # Broken: success on invalid input.
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 # Passes both tests.
3306 rm -f conftest.err conftest.$ac_ext
3309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3310 rm -f conftest.err conftest.$ac_ext
3311 if $ac_preproc_ok; then
3323 { echo "$as_me:$LINENO: result: $CPP" >&5
3324 echo "${ECHO_T}$CPP" >&6; }
3326 for ac_c_preproc_warn_flag in '' yes
3328 # Use a header file that comes with gcc, so configuring glibc
3329 # with a fresh cross-compiler works.
3330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3331 # <limits.h> exists even on freestanding compilers.
3332 # On the NeXT, cc -E runs the code through the compiler's parser,
3333 # not just through cpp. "Syntax error" is here to catch this case.
3334 cat >conftest.$ac_ext <<_ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3341 # include <limits.h>
3343 # include <assert.h>
3347 if { (ac_try="$ac_cpp conftest.$ac_ext"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } >/dev/null && {
3360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3361 test ! -s conftest.err
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 # Broken: fails on valid input.
3372 rm -f conftest.err conftest.$ac_ext
3374 # OK, works on sane cases. Now check whether nonexistent headers
3375 # can be detected and how.
3376 cat >conftest.$ac_ext <<_ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 #include <ac_nonexistent.h>
3384 if { (ac_try="$ac_cpp conftest.$ac_ext"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } >/dev/null && {
3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3400 # Broken: success on invalid input.
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 # Passes both tests.
3411 rm -f conftest.err conftest.$ac_ext
3414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415 rm -f conftest.err conftest.$ac_ext
3416 if $ac_preproc_ok; then
3419 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3420 See \`config.log' for more details." >&5
3421 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3422 See \`config.log' for more details." >&2;}
3423 { (exit 1); exit 1; }; }
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3434 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3435 if test "${ac_cv_path_GREP+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 # Extract the first word of "grep ggrep" to use in msg output
3439 if test -z "$GREP"; then
3440 set dummy grep ggrep; ac_prog_name=$2
3441 if test "${ac_cv_path_GREP+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 ac_path_GREP_found=false
3445 # Loop through the user's path and test for each of PROGNAME-LIST
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3450 test -z "$as_dir" && as_dir=.
3451 for ac_prog in grep ggrep; do
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3454 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3455 # Check for GNU ac_path_GREP and select it if it is found.
3456 # Check for GNU $ac_path_GREP
3457 case `"$ac_path_GREP" --version 2>&1` in
3459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3462 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3465 cat "conftest.in" "conftest.in" >"conftest.tmp"
3466 mv "conftest.tmp" "conftest.in"
3467 cp "conftest.in" "conftest.nl"
3468 echo 'GREP' >> "conftest.nl"
3469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3471 ac_count=`expr $ac_count + 1`
3472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3473 # Best one so far, save it but keep looking for a better one
3474 ac_cv_path_GREP="$ac_path_GREP"
3475 ac_path_GREP_max=$ac_count
3477 # 10*(2^10) chars as input seems more than enough
3478 test $ac_count -gt 10 && break
3480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3484 $ac_path_GREP_found && break 3
3494 GREP="$ac_cv_path_GREP"
3495 if test -z "$GREP"; then
3496 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3497 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3498 { (exit 1); exit 1; }; }
3502 ac_cv_path_GREP=$GREP
3507 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3508 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3509 GREP="$ac_cv_path_GREP"
3512 { echo "$as_me:$LINENO: checking for egrep" >&5
3513 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3514 if test "${ac_cv_path_EGREP+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3518 then ac_cv_path_EGREP="$GREP -E"
3520 # Extract the first word of "egrep" to use in msg output
3521 if test -z "$EGREP"; then
3522 set dummy egrep; ac_prog_name=$2
3523 if test "${ac_cv_path_EGREP+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 ac_path_EGREP_found=false
3527 # Loop through the user's path and test for each of PROGNAME-LIST
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3532 test -z "$as_dir" && as_dir=.
3533 for ac_prog in egrep; do
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3536 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3537 # Check for GNU ac_path_EGREP and select it if it is found.
3538 # Check for GNU $ac_path_EGREP
3539 case `"$ac_path_EGREP" --version 2>&1` in
3541 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3544 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3547 cat "conftest.in" "conftest.in" >"conftest.tmp"
3548 mv "conftest.tmp" "conftest.in"
3549 cp "conftest.in" "conftest.nl"
3550 echo 'EGREP' >> "conftest.nl"
3551 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3553 ac_count=`expr $ac_count + 1`
3554 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3555 # Best one so far, save it but keep looking for a better one
3556 ac_cv_path_EGREP="$ac_path_EGREP"
3557 ac_path_EGREP_max=$ac_count
3559 # 10*(2^10) chars as input seems more than enough
3560 test $ac_count -gt 10 && break
3562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3566 $ac_path_EGREP_found && break 3
3576 EGREP="$ac_cv_path_EGREP"
3577 if test -z "$EGREP"; then
3578 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3579 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3580 { (exit 1); exit 1; }; }
3584 ac_cv_path_EGREP=$EGREP
3590 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3591 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3592 EGREP="$ac_cv_path_EGREP"
3595 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3596 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3597 if test "${ac_cv_header_stdc+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3619 rm -f conftest.$ac_objext
3620 if { (ac_try="$ac_compile"
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_compile") 2>conftest.er1
3628 grep -v '^ *+' conftest.er1 >conftest.err
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } && {
3633 test -z "$ac_c_werror_flag" ||
3634 test ! -s conftest.err
3635 } && test -s conftest.$ac_objext; then
3636 ac_cv_header_stdc=yes
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 ac_cv_header_stdc=no
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 if test $ac_cv_header_stdc = yes; then
3647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3648 cat >conftest.$ac_ext <<_ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3658 $EGREP "memchr" >/dev/null 2>&1; then
3661 ac_cv_header_stdc=no
3667 if test $ac_cv_header_stdc = yes; then
3668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3679 $EGREP "free" >/dev/null 2>&1; then
3682 ac_cv_header_stdc=no
3688 if test $ac_cv_header_stdc = yes; then
3689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3690 if test "$cross_compiling" = yes; then
3693 cat >conftest.$ac_ext <<_ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3701 #if ((' ' & 0x0FF) == 0x020)
3702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3705 # define ISLOWER(c) \
3706 (('a' <= (c) && (c) <= 'i') \
3707 || ('j' <= (c) && (c) <= 'r') \
3708 || ('s' <= (c) && (c) <= 'z'))
3709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3717 for (i = 0; i < 256; i++)
3718 if (XOR (islower (i), ISLOWER (i))
3719 || toupper (i) != TOUPPER (i))
3724 rm -f conftest$ac_exeext
3725 if { (ac_try="$ac_link"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_link") 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3735 { (case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_try") 2>&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3746 echo "$as_me: program exited with status $ac_status" >&5
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3751 ac_cv_header_stdc=no
3753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3759 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3760 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3761 if test $ac_cv_header_stdc = yes; then
3763 cat >>confdefs.h <<\_ACEOF
3764 #define STDC_HEADERS 1
3769 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3779 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3780 inttypes.h stdint.h unistd.h
3782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 cat >conftest.$ac_ext <<_ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3794 $ac_includes_default
3796 #include <$ac_header>
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_compile") 2>conftest.er1
3807 grep -v '^ *+' conftest.er1 >conftest.err
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } && {
3812 test -z "$ac_c_werror_flag" ||
3813 test ! -s conftest.err
3814 } && test -s conftest.$ac_objext; then
3815 eval "$as_ac_Header=yes"
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 eval "$as_ac_Header=no"
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 ac_res=`eval echo '${'$as_ac_Header'}'`
3826 { echo "$as_me:$LINENO: result: $ac_res" >&5
3827 echo "${ECHO_T}$ac_res" >&6; }
3828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3829 cat >>confdefs.h <<_ACEOF
3830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3841 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 ac_res=`eval echo '${'$as_ac_Header'}'`
3851 { echo "$as_me:$LINENO: result: $ac_res" >&5
3852 echo "${ECHO_T}$ac_res" >&6; }
3854 # Is the header compilable?
3855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3857 cat >conftest.$ac_ext <<_ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 $ac_includes_default
3864 #include <$ac_header>
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3875 grep -v '^ *+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest.$ac_objext; then
3883 ac_header_compiler=yes
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 ac_header_compiler=no
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3893 echo "${ECHO_T}$ac_header_compiler" >&6; }
3895 # Is the header present?
3896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 #include <$ac_header>
3906 if { (ac_try="$ac_cpp conftest.$ac_ext"
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3914 grep -v '^ *+' conftest.er1 >conftest.err
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } >/dev/null && {
3919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3922 ac_header_preproc=yes
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 ac_header_preproc=no
3930 rm -f conftest.err conftest.$ac_ext
3931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3932 echo "${ECHO_T}$ac_header_preproc" >&6; }
3934 # So? What about this header?
3935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3941 ac_header_preproc=yes
3944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 eval "$as_ac_Header=\$ac_header_preproc"
3966 ac_res=`eval echo '${'$as_ac_Header'}'`
3967 { echo "$as_me:$LINENO: result: $ac_res" >&5
3968 echo "${ECHO_T}$ac_res" >&6; }
3971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3972 cat >>confdefs.h <<_ACEOF
3973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3981 for ac_header in net/pfvar.h
3983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 cat >conftest.$ac_ext <<_ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 #include <sys/types.h>
3996 #include <sys/socket.h>
3999 #include <$ac_header>
4001 rm -f conftest.$ac_objext
4002 if { (ac_try="$ac_compile"
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_compile") 2>conftest.er1
4010 grep -v '^ *+' conftest.er1 >conftest.err
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && {
4015 test -z "$ac_c_werror_flag" ||
4016 test ! -s conftest.err
4017 } && test -s conftest.$ac_objext; then
4018 eval "$as_ac_Header=yes"
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 eval "$as_ac_Header=no"
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 ac_res=`eval echo '${'$as_ac_Header'}'`
4029 { echo "$as_me:$LINENO: result: $ac_res" >&5
4030 echo "${ECHO_T}$ac_res" >&6; }
4031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4032 cat >>confdefs.h <<_ACEOF
4033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4040 if test "$ac_cv_header_net_pfvar_h" = yes; then
4041 LOCALSRC="print-pflog.c $LOCALSRC"
4044 for ac_header in netinet/if_ether.h
4046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <sys/types.h>
4059 #include <sys/socket.h>
4061 #include <$ac_header>
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_c_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4080 eval "$as_ac_Header=yes"
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 eval "$as_ac_Header=no"
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_res=`eval echo '${'$as_ac_Header'}'`
4091 { echo "$as_me:$LINENO: result: $ac_res" >&5
4092 echo "${ECHO_T}$ac_res" >&6; }
4093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4094 cat >>confdefs.h <<_ACEOF
4095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4102 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4104 # The simple test didn't work.
4105 # Do we need to include <net/if.h> first?
4106 # Unset ac_cv_header_netinet_if_ether_h so we don't
4107 # treat the previous failure as a cached value and
4108 # suppress the next test.
4110 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4111 echo "$as_me: Rechecking with some additional includes" >&6;}
4112 unset ac_cv_header_netinet_if_ether_h
4114 for ac_header in netinet/if_ether.h
4116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 cat >conftest.$ac_ext <<_ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4128 #include <sys/types.h>
4129 #include <sys/socket.h>
4130 #include <netinet/in.h>
4135 #include <$ac_header>
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_compile") 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && {
4151 test -z "$ac_c_werror_flag" ||
4152 test ! -s conftest.err
4153 } && test -s conftest.$ac_objext; then
4154 eval "$as_ac_Header=yes"
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 eval "$as_ac_Header=no"
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_res=`eval echo '${'$as_ac_Header'}'`
4165 { echo "$as_me:$LINENO: result: $ac_res" >&5
4166 echo "${ECHO_T}$ac_res" >&6; }
4167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4168 cat >>confdefs.h <<_ACEOF
4169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4178 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4179 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4180 if test "${ac_cv_header_time+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 cat >conftest.$ac_ext <<_ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 #include <sys/types.h>
4190 #include <sys/time.h>
4196 if ((struct tm *) 0)
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && {
4216 test -z "$ac_c_werror_flag" ||
4217 test ! -s conftest.err
4218 } && test -s conftest.$ac_objext; then
4219 ac_cv_header_time=yes
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_cv_header_time=no
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4230 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4231 if test $ac_cv_header_time = yes; then
4233 cat >>confdefs.h <<\_ACEOF
4234 #define TIME_WITH_SYS_TIME 1
4243 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4244 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4245 if test "$cross_compiling" = yes; then
4246 if test "${ac_cv_linux_vers+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 ac_cv_linux_vers=unknown
4253 if test "${ac_cv_linux_vers+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 ac_cv_linux_vers=`uname -r 2>&1 | \
4257 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4261 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4262 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4263 if test $ac_cv_linux_vers = unknown ; then
4264 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4265 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4266 { (exit 1); exit 1; }; }
4268 if test $ac_cv_linux_vers -lt 2 ; then
4269 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4270 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4271 { (exit 1); exit 1; }; }
4281 for ac_header in smi.h
4283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 ac_res=`eval echo '${'$as_ac_Header'}'`
4291 { echo "$as_me:$LINENO: result: $ac_res" >&5
4292 echo "${ECHO_T}$ac_res" >&6; }
4294 # Is the header compilable?
4295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4304 #include <$ac_header>
4306 rm -f conftest.$ac_objext
4307 if { (ac_try="$ac_compile"
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_compile") 2>conftest.er1
4315 grep -v '^ *+' conftest.er1 >conftest.err
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && {
4320 test -z "$ac_c_werror_flag" ||
4321 test ! -s conftest.err
4322 } && test -s conftest.$ac_objext; then
4323 ac_header_compiler=yes
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 ac_header_compiler=no
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4333 echo "${ECHO_T}$ac_header_compiler" >&6; }
4335 # Is the header present?
4336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #include <$ac_header>
4346 if { (ac_try="$ac_cpp conftest.$ac_ext"
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4354 grep -v '^ *+' conftest.er1 >conftest.err
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } >/dev/null && {
4359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4360 test ! -s conftest.err
4362 ac_header_preproc=yes
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 ac_header_preproc=no
4370 rm -f conftest.err conftest.$ac_ext
4371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4372 echo "${ECHO_T}$ac_header_preproc" >&6; }
4374 # So? What about this header?
4375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4381 ac_header_preproc=yes
4384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 eval "$as_ac_Header=\$ac_header_preproc"
4406 ac_res=`eval echo '${'$as_ac_Header'}'`
4407 { echo "$as_me:$LINENO: result: $ac_res" >&5
4408 echo "${ECHO_T}$ac_res" >&6; }
4411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412 cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4421 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4422 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4423 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 ac_check_lib_save_LIBS=$LIBS
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4435 /* Override any GCC internal prototype to avoid an error.
4436 Use char because int might match the return type of a GCC
4437 builtin and then its argument prototype would still apply. */
4450 rm -f conftest.$ac_objext conftest$ac_exeext
4451 if { (ac_try="$ac_link"
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_link") 2>conftest.er1
4459 grep -v '^ *+' conftest.er1 >conftest.err
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } && {
4464 test -z "$ac_c_werror_flag" ||
4465 test ! -s conftest.err
4466 } && test -s conftest$ac_exeext &&
4467 $as_test_x conftest$ac_exeext; then
4468 ac_cv_lib_smi_smiInit=yes
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 ac_cv_lib_smi_smiInit=no
4476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4477 conftest$ac_exeext conftest.$ac_ext
4478 LIBS=$ac_check_lib_save_LIBS
4480 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4481 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4482 if test $ac_cv_lib_smi_smiInit = yes; then
4483 cat >>confdefs.h <<_ACEOF
4484 #define HAVE_LIBSMI 1
4491 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4493 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4494 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4495 if test "$cross_compiling" = yes; then
4496 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4497 echo "${ECHO_T}not when cross-compiling" >&6; }
4501 cat >conftest.$ac_ext <<_ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 /* libsmi available check */
4511 int current, revision, age, n;
4512 const int required = 2;
4515 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4517 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4520 if (required < current - age || required > current)
4526 rm -f conftest$ac_exeext
4527 if { (ac_try="$ac_link"
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_link") 2>&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4537 { (case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_try") 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 { echo "$as_me:$LINENO: result: yes" >&5
4547 echo "${ECHO_T}yes" >&6; }
4548 cat >>confdefs.h <<\_ACEOF
4554 echo "$as_me: program exited with status $ac_status" >&5
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4560 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4561 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4562 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4563 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4564 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4565 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4566 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4567 echo "${ECHO_T}no - too old" >&6; } ;;
4568 *) { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; } ;;
4573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4579 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4580 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4581 # Check whether --enable-smb was given.
4582 if test "${enable_smb+set}" = set; then
4583 enableval=$enable_smb;
4588 case "$enableval" in
4589 yes) { echo "$as_me:$LINENO: result: yes" >&5
4590 echo "${ECHO_T}yes" >&6; }
4591 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4592 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4593 cat >>confdefs.h <<\_ACEOF
4594 #define TCPDUMP_DO_SMB 1
4597 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4599 *) { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4605 # Check whether --with-user was given.
4606 if test "${with_user+set}" = set; then
4610 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4611 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4612 if test ! -z "$with_user" ; then
4613 cat >>confdefs.h <<_ACEOF
4614 #define WITH_USER "$withval"
4617 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4618 echo "${ECHO_T}to \"$withval\"" >&6; }
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4625 # Check whether --with-chroot was given.
4626 if test "${with_chroot+set}" = set; then
4627 withval=$with_chroot;
4630 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4631 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4632 if test ! -z "$with_chroot" ; then
4633 cat >>confdefs.h <<_ACEOF
4634 #define WITH_CHROOT "$withval"
4637 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4638 echo "${ECHO_T}to \"$withval\"" >&6; }
4640 { echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6; }
4644 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4645 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4646 # Check whether --enable-ipv6 was given.
4647 if test "${enable_ipv6+set}" = set; then
4648 enableval=$enable_ipv6; case "$enableval" in
4649 yes) { echo "$as_me:$LINENO: result: yes" >&5
4650 echo "${ECHO_T}yes" >&6; }
4651 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"
4652 cat >>confdefs.h <<\_ACEOF
4659 { echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6; }
4665 if test "$cross_compiling" = yes; then
4666 { echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6; }
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 /* AF_INET6 available check */
4678 #include <sys/types.h>
4679 #include <sys/socket.h>
4682 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4689 rm -f conftest$ac_exeext
4690 if { (ac_try="$ac_link"
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696 (eval "$ac_link") 2>&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4700 { (case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705 (eval "$ac_try") 2>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 { echo "$as_me:$LINENO: result: yes" >&5
4710 echo "${ECHO_T}yes" >&6; }
4711 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"
4712 cat >>confdefs.h <<\_ACEOF
4718 echo "$as_me: program exited with status $ac_status" >&5
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4723 { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4738 if test "$ipv6" = "yes"; then
4739 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4740 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4741 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4744 cat >conftest.$ac_ext <<_ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #include <netinet/in.h>
4751 #ifdef IPV6_INRIA_VERSION
4755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4756 $EGREP "yes" >/dev/null 2>&1; then
4758 CFLAGS="-DINET6 $CFLAGS"
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 #include <netinet/in.h>
4775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776 $EGREP "yes" >/dev/null 2>&1; then
4779 ipv6libdir=/usr/local/v6/lib;
4781 CFLAGS="-DINET6 $CFLAGS"
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #include <features.h>
4794 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 $EGREP "yes" >/dev/null 2>&1; then
4801 CFLAGS="-DINET6 $CFLAGS"
4807 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4810 ipv6libdir=/usr/inet6/lib
4812 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #include <sys/param.h>
4823 #ifdef _TOSHIBA_INET6
4827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4828 $EGREP "yes" >/dev/null 2>&1; then
4831 ipv6libdir=/usr/local/v6/lib;
4832 CFLAGS="-DINET6 $CFLAGS"
4838 cat >conftest.$ac_ext <<_ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4844 #include </usr/local/v6/include/sys/v6config.h>
4849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4850 $EGREP "yes" >/dev/null 2>&1; then
4853 ipv6libdir=/usr/local/v6/lib;
4854 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <sys/param.h>
4867 #ifdef _ZETA_MINAMI_INET6
4871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4872 $EGREP "yes" >/dev/null 2>&1; then
4875 ipv6libdir=/usr/local/v6/lib;
4876 CFLAGS="-DINET6 $CFLAGS"
4882 if test "$ipv6type" != "unknown"; then
4886 { echo "$as_me:$LINENO: result: $ipv6type" >&5
4887 echo "${ECHO_T}$ipv6type" >&6; }
4890 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4891 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4892 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4893 echo "You have $ipv6lib library, using it"
4895 if test "$ipv6trylibc" = "yes"; then
4896 echo "You do not have $ipv6lib library, using libc"
4898 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4899 echo "You need to fetch lib$ipv6lib.a from appropriate"
4900 echo 'ipv6 kit and compile beforehand.'
4907 if test "$ipv6" = "yes"; then
4909 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4910 # function in libc; there are "ngetaddrinfo()" and
4911 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4912 # "getaddrinfo" to be either "ngetaddrinfo" or
4913 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4914 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4916 # So this test doesn't work on Tru64 5.1, and possibly
4917 # on other 5.x releases. This causes the configure
4918 # script to become confused, and results in libpcap
4919 # being unbuildable.
4921 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4922 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
4923 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 ac_func_search_save_LIBS=$LIBS
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 /* Override any GCC internal prototype to avoid an error.
4935 Use char because int might match the return type of a GCC
4936 builtin and then its argument prototype would still apply. */
4940 char getaddrinfo ();
4944 return getaddrinfo ();
4949 for ac_lib in '' socket; do
4950 if test -z "$ac_lib"; then
4951 ac_res="none required"
4954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (ac_try="$ac_link"
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_link") 2>conftest.er1
4965 grep -v '^ *+' conftest.er1 >conftest.err
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } && {
4970 test -z "$ac_c_werror_flag" ||
4971 test ! -s conftest.err
4972 } && test -s conftest$ac_exeext &&
4973 $as_test_x conftest$ac_exeext; then
4974 ac_cv_search_getaddrinfo=$ac_res
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4984 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4988 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4991 ac_cv_search_getaddrinfo=no
4994 LIBS=$ac_func_search_save_LIBS
4996 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4997 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
4998 ac_res=$ac_cv_search_getaddrinfo
4999 if test "$ac_res" != no; then
5000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5001 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5002 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5003 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 if test "$cross_compiling" = yes; then
5007 td_cv_buggygetaddrinfo=yes
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 #include <sys/types.h>
5019 #include <sys/socket.h>
5020 #include <netinet/in.h>
5024 int passive, gaierr, inet4 = 0, inet6 = 0;
5025 struct addrinfo hints, *ai, *aitop;
5026 char straddr[INET6_ADDRSTRLEN], strport[16];
5028 for (passive = 0; passive <= 1; passive++) {
5029 memset(&hints, 0, sizeof(hints));
5030 hints.ai_family = AF_UNSPEC;
5031 hints.ai_flags = passive ? AI_PASSIVE : 0;
5032 hints.ai_socktype = SOCK_STREAM;
5033 hints.ai_protocol = IPPROTO_TCP;
5034 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5035 (void)gai_strerror(gaierr);
5038 for (ai = aitop; ai; ai = ai->ai_next) {
5039 if (ai->ai_addr == NULL ||
5040 ai->ai_addrlen == 0 ||
5041 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5042 straddr, sizeof(straddr), strport, sizeof(strport),
5043 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5046 switch (ai->ai_family) {
5048 if (strcmp(strport, "54321") != 0) {
5052 if (strcmp(straddr, "0.0.0.0") != 0) {
5056 if (strcmp(straddr, "127.0.0.1") != 0) {
5063 if (strcmp(strport, "54321") != 0) {
5067 if (strcmp(straddr, "::") != 0) {
5071 if (strcmp(straddr, "::1") != 0) {
5088 /* another family support? */
5094 /* supported family should be 2, unsupported family should be 0 */
5095 if (!(inet4 == 0 || inet4 == 2))
5097 if (!(inet6 == 0 || inet6 == 2))
5101 freeaddrinfo(aitop);
5106 freeaddrinfo(aitop);
5111 rm -f conftest$ac_exeext
5112 if { (ac_try="$ac_link"
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_link") 2>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5122 { (case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_try") 2>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 td_cv_buggygetaddrinfo=no
5133 echo "$as_me: program exited with status $ac_status" >&5
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5138 td_cv_buggygetaddrinfo=yes
5140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5146 if test "$td_cv_buggygetaddrinfo" = no; then
5147 { echo "$as_me:$LINENO: result: good" >&5
5148 echo "${ECHO_T}good" >&6; }
5150 { echo "$as_me:$LINENO: result: buggy" >&5
5151 echo "${ECHO_T}buggy" >&6; }
5154 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5156 # XXX - it doesn't appear that "ipv6type" can ever be
5157 # set to "linux". Should this be testing for
5158 # "linux-glibc", or for that *or* "linux-libinet6"?
5159 # If the latter, note that "linux-libinet6" is also
5160 # the type given to some non-Linux OSes.
5162 if test "$ipv6type" != "linux"; then
5163 echo 'Fatal: You must get working getaddrinfo() function.'
5164 echo ' or you can specify "--disable-ipv6"'.
5167 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5168 echo ' Better upgrade your system library to newest version'
5169 echo ' of GNU C library (aka glibc).'
5177 for ac_func in getaddrinfo getnameinfo
5179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 cat >conftest.$ac_ext <<_ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5193 #define $ac_func innocuous_$ac_func
5195 /* System header to define __stub macros and hopefully few prototypes,
5196 which can conflict with char $ac_func (); below.
5197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198 <limits.h> exists even on freestanding compilers. */
5201 # include <limits.h>
5203 # include <assert.h>
5208 /* Override any GCC internal prototype to avoid an error.
5209 Use char because int might match the return type of a GCC
5210 builtin and then its argument prototype would still apply. */
5215 /* The GNU C library defines this for functions which it implements
5216 to always fail with ENOSYS. Some functions are actually named
5217 something starting with __ and the normal name is an alias. */
5218 #if defined __stub_$ac_func || defined __stub___$ac_func
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (ac_try="$ac_link"
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_link") 2>conftest.er1
5239 grep -v '^ *+' conftest.er1 >conftest.err
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } && {
5244 test -z "$ac_c_werror_flag" ||
5245 test ! -s conftest.err
5246 } && test -s conftest$ac_exeext &&
5247 $as_test_x conftest$ac_exeext; then
5248 eval "$as_ac_var=yes"
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 eval "$as_ac_var=no"
5256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5257 conftest$ac_exeext conftest.$ac_ext
5259 ac_res=`eval echo '${'$as_ac_var'}'`
5260 { echo "$as_me:$LINENO: result: $ac_res" >&5
5261 echo "${ECHO_T}$ac_res" >&6; }
5262 if test `eval echo '${'$as_ac_var'}'` = yes; then
5263 cat >>confdefs.h <<_ACEOF
5264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5268 case " $LIBOBJS " in
5269 *" $ac_func.$ac_objext "* ) ;;
5270 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5280 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5281 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5282 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 cat >conftest.$ac_ext <<_ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 #include <netdnet/dnetdb.h>
5294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5295 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5296 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5298 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5303 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5304 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5305 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5306 cat >>confdefs.h <<\_ACEOF
5307 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5312 { echo "$as_me:$LINENO: checking for char" >&5
5313 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5314 if test "${ac_cv_type_char+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 cat >conftest.$ac_ext <<_ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 $ac_includes_default
5324 typedef char ac__type_new_;
5328 if ((ac__type_new_ *) 0)
5330 if (sizeof (ac__type_new_))
5336 rm -f conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compile") 2>conftest.er1
5345 grep -v '^ *+' conftest.er1 >conftest.err
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } && {
5350 test -z "$ac_c_werror_flag" ||
5351 test ! -s conftest.err
5352 } && test -s conftest.$ac_objext; then
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5364 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5366 # The cast to long int works around a bug in the HP C Compiler
5367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5369 # This bug is HP SR number 8606223364.
5370 { echo "$as_me:$LINENO: checking size of char" >&5
5371 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5372 if test "${ac_cv_sizeof_char+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 if test "$cross_compiling" = yes; then
5376 # Depending upon the size, compute the lo and hi bounds.
5377 cat >conftest.$ac_ext <<_ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 $ac_includes_default
5384 typedef char ac__type_sizeof_;
5388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5395 rm -f conftest.$ac_objext
5396 if { (ac_try="$ac_compile"
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5404 grep -v '^ *+' conftest.er1 >conftest.err
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5414 cat >conftest.$ac_ext <<_ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 $ac_includes_default
5421 typedef char ac__type_sizeof_;
5425 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5432 rm -f conftest.$ac_objext
5433 if { (ac_try="$ac_compile"
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5441 grep -v '^ *+' conftest.er1 >conftest.err
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && {
5446 test -z "$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
5449 ac_hi=$ac_mid; break
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5454 ac_lo=`expr $ac_mid + 1`
5455 if test $ac_lo -le $ac_mid; then
5459 ac_mid=`expr 2 '*' $ac_mid + 1`
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5475 typedef char ac__type_sizeof_;
5479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 $ac_includes_default
5512 typedef char ac__type_sizeof_;
5516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5532 grep -v '^ *+' conftest.er1 >conftest.err
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_c_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5540 ac_lo=$ac_mid; break
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_hi=`expr '(' $ac_mid ')' - 1`
5546 if test $ac_mid -le $ac_hi; then
5550 ac_mid=`expr 2 '*' $ac_mid`
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 # Binary search between lo and hi bounds.
5567 while test "x$ac_lo" != "x$ac_hi"; do
5568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5569 cat >conftest.$ac_ext <<_ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 $ac_includes_default
5576 typedef char ac__type_sizeof_;
5580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ac_lo=`expr '(' $ac_mid ')' + 1`
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 ?*) ac_cv_sizeof_char=$ac_lo;;
5616 '') if test "$ac_cv_type_char" = yes; then
5617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5618 See \`config.log' for more details." >&5
5619 echo "$as_me: error: cannot compute sizeof (char)
5620 See \`config.log' for more details." >&2;}
5621 { (exit 77); exit 77; }; }
5627 cat >conftest.$ac_ext <<_ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 $ac_includes_default
5634 typedef char ac__type_sizeof_;
5635 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5636 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5643 FILE *f = fopen ("conftest.val", "w");
5646 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5648 long int i = longval ();
5649 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5651 fprintf (f, "%ld\n", i);
5655 unsigned long int i = ulongval ();
5656 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5658 fprintf (f, "%lu\n", i);
5660 return ferror (f) || fclose (f) != 0;
5666 rm -f conftest$ac_exeext
5667 if { (ac_try="$ac_link"
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_link") 2>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5677 { (case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_try") 2>&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_sizeof_char=`cat conftest.val`
5688 echo "$as_me: program exited with status $ac_status" >&5
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5693 if test "$ac_cv_type_char" = yes; then
5694 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5695 See \`config.log' for more details." >&5
5696 echo "$as_me: error: cannot compute sizeof (char)
5697 See \`config.log' for more details." >&2;}
5698 { (exit 77); exit 77; }; }
5703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5707 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5708 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5712 cat >>confdefs.h <<_ACEOF
5713 #define SIZEOF_CHAR $ac_cv_sizeof_char
5717 { echo "$as_me:$LINENO: checking for short" >&5
5718 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5719 if test "${ac_cv_type_short+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 cat >conftest.$ac_ext <<_ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 $ac_includes_default
5729 typedef short ac__type_new_;
5733 if ((ac__type_new_ *) 0)
5735 if (sizeof (ac__type_new_))
5741 rm -f conftest.$ac_objext
5742 if { (ac_try="$ac_compile"
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_compile") 2>conftest.er1
5750 grep -v '^ *+' conftest.er1 >conftest.err
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } && {
5755 test -z "$ac_c_werror_flag" ||
5756 test ! -s conftest.err
5757 } && test -s conftest.$ac_objext; then
5758 ac_cv_type_short=yes
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5769 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5771 # The cast to long int works around a bug in the HP C Compiler
5772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774 # This bug is HP SR number 8606223364.
5775 { echo "$as_me:$LINENO: checking size of short" >&5
5776 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5777 if test "${ac_cv_sizeof_short+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 if test "$cross_compiling" = yes; then
5781 # Depending upon the size, compute the lo and hi bounds.
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5789 typedef short ac__type_sizeof_;
5793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5809 grep -v '^ *+' conftest.er1 >conftest.err
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5819 cat >conftest.$ac_ext <<_ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 $ac_includes_default
5826 typedef short ac__type_sizeof_;
5830 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5837 rm -f conftest.$ac_objext
5838 if { (ac_try="$ac_compile"
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_compile") 2>conftest.er1
5846 grep -v '^ *+' conftest.er1 >conftest.err
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && {
5851 test -z "$ac_c_werror_flag" ||
5852 test ! -s conftest.err
5853 } && test -s conftest.$ac_objext; then
5854 ac_hi=$ac_mid; break
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 ac_lo=`expr $ac_mid + 1`
5860 if test $ac_lo -le $ac_mid; then
5864 ac_mid=`expr 2 '*' $ac_mid + 1`
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873 cat >conftest.$ac_ext <<_ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 $ac_includes_default
5880 typedef short ac__type_sizeof_;
5884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5891 rm -f conftest.$ac_objext
5892 if { (ac_try="$ac_compile"
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_c_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest.$ac_objext; then
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5917 typedef short ac__type_sizeof_;
5921 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5928 rm -f conftest.$ac_objext
5929 if { (ac_try="$ac_compile"
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_compile") 2>conftest.er1
5937 grep -v '^ *+' conftest.er1 >conftest.err
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && {
5942 test -z "$ac_c_werror_flag" ||
5943 test ! -s conftest.err
5944 } && test -s conftest.$ac_objext; then
5945 ac_lo=$ac_mid; break
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5950 ac_hi=`expr '(' $ac_mid ')' - 1`
5951 if test $ac_mid -le $ac_hi; then
5955 ac_mid=`expr 2 '*' $ac_mid`
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 # Binary search between lo and hi bounds.
5972 while test "x$ac_lo" != "x$ac_hi"; do
5973 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5974 cat >conftest.$ac_ext <<_ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 $ac_includes_default
5981 typedef short ac__type_sizeof_;
5985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_compile") 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest.$ac_objext; then
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_lo=`expr '(' $ac_mid ')' + 1`
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ?*) ac_cv_sizeof_short=$ac_lo;;
6021 '') if test "$ac_cv_type_short" = yes; then
6022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6023 See \`config.log' for more details." >&5
6024 echo "$as_me: error: cannot compute sizeof (short)
6025 See \`config.log' for more details." >&2;}
6026 { (exit 77); exit 77; }; }
6028 ac_cv_sizeof_short=0
6032 cat >conftest.$ac_ext <<_ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 $ac_includes_default
6039 typedef short ac__type_sizeof_;
6040 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6041 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6048 FILE *f = fopen ("conftest.val", "w");
6051 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6053 long int i = longval ();
6054 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6056 fprintf (f, "%ld\n", i);
6060 unsigned long int i = ulongval ();
6061 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6063 fprintf (f, "%lu\n", i);
6065 return ferror (f) || fclose (f) != 0;
6071 rm -f conftest$ac_exeext
6072 if { (ac_try="$ac_link"
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_link") 2>&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6082 { (case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_try") 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_sizeof_short=`cat conftest.val`
6093 echo "$as_me: program exited with status $ac_status" >&5
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6098 if test "$ac_cv_type_short" = yes; then
6099 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6100 See \`config.log' for more details." >&5
6101 echo "$as_me: error: cannot compute sizeof (short)
6102 See \`config.log' for more details." >&2;}
6103 { (exit 77); exit 77; }; }
6105 ac_cv_sizeof_short=0
6108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6112 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6113 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6117 cat >>confdefs.h <<_ACEOF
6118 #define SIZEOF_SHORT $ac_cv_sizeof_short
6122 { echo "$as_me:$LINENO: checking for int" >&5
6123 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6124 if test "${ac_cv_type_int+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 $ac_includes_default
6134 typedef int ac__type_new_;
6138 if ((ac__type_new_ *) 0)
6140 if (sizeof (ac__type_new_))
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6155 grep -v '^ *+' conftest.er1 >conftest.err
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.$ac_objext; then
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6174 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6176 # The cast to long int works around a bug in the HP C Compiler
6177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6179 # This bug is HP SR number 8606223364.
6180 { echo "$as_me:$LINENO: checking size of int" >&5
6181 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6182 if test "${ac_cv_sizeof_int+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 if test "$cross_compiling" = yes; then
6186 # Depending upon the size, compute the lo and hi bounds.
6187 cat >conftest.$ac_ext <<_ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 $ac_includes_default
6194 typedef int ac__type_sizeof_;
6198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6205 rm -f conftest.$ac_objext
6206 if { (ac_try="$ac_compile"
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_objext; then
6224 cat >conftest.$ac_ext <<_ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 $ac_includes_default
6231 typedef int ac__type_sizeof_;
6235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6242 rm -f conftest.$ac_objext
6243 if { (ac_try="$ac_compile"
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compile") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && {
6256 test -z "$ac_c_werror_flag" ||
6257 test ! -s conftest.err
6258 } && test -s conftest.$ac_objext; then
6259 ac_hi=$ac_mid; break
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ac_lo=`expr $ac_mid + 1`
6265 if test $ac_lo -le $ac_mid; then
6269 ac_mid=`expr 2 '*' $ac_mid + 1`
6272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 $ac_includes_default
6285 typedef int ac__type_sizeof_;
6289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_compile") 2>conftest.er1
6305 grep -v '^ *+' conftest.er1 >conftest.err
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } && {
6310 test -z "$ac_c_werror_flag" ||
6311 test ! -s conftest.err
6312 } && test -s conftest.$ac_objext; then
6315 cat >conftest.$ac_ext <<_ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 $ac_includes_default
6322 typedef int ac__type_sizeof_;
6326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6333 rm -f conftest.$ac_objext
6334 if { (ac_try="$ac_compile"
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_compile") 2>conftest.er1
6342 grep -v '^ *+' conftest.er1 >conftest.err
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } && {
6347 test -z "$ac_c_werror_flag" ||
6348 test ! -s conftest.err
6349 } && test -s conftest.$ac_objext; then
6350 ac_lo=$ac_mid; break
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6355 ac_hi=`expr '(' $ac_mid ')' - 1`
6356 if test $ac_mid -le $ac_hi; then
6360 ac_mid=`expr 2 '*' $ac_mid`
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 # Binary search between lo and hi bounds.
6377 while test "x$ac_lo" != "x$ac_hi"; do
6378 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6379 cat >conftest.$ac_ext <<_ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 $ac_includes_default
6386 typedef int ac__type_sizeof_;
6390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6406 grep -v '^ *+' conftest.er1 >conftest.err
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_lo=`expr '(' $ac_mid ')' + 1`
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 ?*) ac_cv_sizeof_int=$ac_lo;;
6426 '') if test "$ac_cv_type_int" = yes; then
6427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6428 See \`config.log' for more details." >&5
6429 echo "$as_me: error: cannot compute sizeof (int)
6430 See \`config.log' for more details." >&2;}
6431 { (exit 77); exit 77; }; }
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 $ac_includes_default
6444 typedef int ac__type_sizeof_;
6445 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6446 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6453 FILE *f = fopen ("conftest.val", "w");
6456 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6458 long int i = longval ();
6459 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6461 fprintf (f, "%ld\n", i);
6465 unsigned long int i = ulongval ();
6466 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6468 fprintf (f, "%lu\n", i);
6470 return ferror (f) || fclose (f) != 0;
6476 rm -f conftest$ac_exeext
6477 if { (ac_try="$ac_link"
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_link") 2>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_sizeof_int=`cat conftest.val`
6498 echo "$as_me: program exited with status $ac_status" >&5
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6503 if test "$ac_cv_type_int" = yes; then
6504 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6505 See \`config.log' for more details." >&5
6506 echo "$as_me: error: cannot compute sizeof (int)
6507 See \`config.log' for more details." >&2;}
6508 { (exit 77); exit 77; }; }
6513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6517 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6518 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6522 cat >>confdefs.h <<_ACEOF
6523 #define SIZEOF_INT $ac_cv_sizeof_int
6527 { echo "$as_me:$LINENO: checking for long" >&5
6528 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6529 if test "${ac_cv_type_long+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 cat >conftest.$ac_ext <<_ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 $ac_includes_default
6539 typedef long ac__type_new_;
6543 if ((ac__type_new_ *) 0)
6545 if (sizeof (ac__type_new_))
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6560 grep -v '^ *+' conftest.er1 >conftest.err
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6579 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6581 # The cast to long int works around a bug in the HP C Compiler
6582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6584 # This bug is HP SR number 8606223364.
6585 { echo "$as_me:$LINENO: checking size of long" >&5
6586 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6587 if test "${ac_cv_sizeof_long+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 if test "$cross_compiling" = yes; then
6591 # Depending upon the size, compute the lo and hi bounds.
6592 cat >conftest.$ac_ext <<_ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 $ac_includes_default
6599 typedef long ac__type_sizeof_;
6603 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6610 rm -f conftest.$ac_objext
6611 if { (ac_try="$ac_compile"
6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617 (eval "$ac_compile") 2>conftest.er1
6619 grep -v '^ *+' conftest.er1 >conftest.err
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } && {
6624 test -z "$ac_c_werror_flag" ||
6625 test ! -s conftest.err
6626 } && test -s conftest.$ac_objext; then
6629 cat >conftest.$ac_ext <<_ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6636 typedef long ac__type_sizeof_;
6640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6647 rm -f conftest.$ac_objext
6648 if { (ac_try="$ac_compile"
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_compile") 2>conftest.er1
6656 grep -v '^ *+' conftest.er1 >conftest.err
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest.$ac_objext; then
6664 ac_hi=$ac_mid; break
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6669 ac_lo=`expr $ac_mid + 1`
6670 if test $ac_lo -le $ac_mid; then
6674 ac_mid=`expr 2 '*' $ac_mid + 1`
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6683 cat >conftest.$ac_ext <<_ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 $ac_includes_default
6690 typedef long ac__type_sizeof_;
6694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6701 rm -f conftest.$ac_objext
6702 if { (ac_try="$ac_compile"
6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705 *) ac_try_echo=$ac_try;;
6707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6708 (eval "$ac_compile") 2>conftest.er1
6710 grep -v '^ *+' conftest.er1 >conftest.err
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && {
6715 test -z "$ac_c_werror_flag" ||
6716 test ! -s conftest.err
6717 } && test -s conftest.$ac_objext; then
6720 cat >conftest.$ac_ext <<_ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6726 $ac_includes_default
6727 typedef long ac__type_sizeof_;
6731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6738 rm -f conftest.$ac_objext
6739 if { (ac_try="$ac_compile"
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6745 (eval "$ac_compile") 2>conftest.er1
6747 grep -v '^ *+' conftest.er1 >conftest.err
6749 cat conftest.err >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } && {
6752 test -z "$ac_c_werror_flag" ||
6753 test ! -s conftest.err
6754 } && test -s conftest.$ac_objext; then
6755 ac_lo=$ac_mid; break
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6760 ac_hi=`expr '(' $ac_mid ')' - 1`
6761 if test $ac_mid -le $ac_hi; then
6765 ac_mid=`expr 2 '*' $ac_mid`
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 # Binary search between lo and hi bounds.
6782 while test "x$ac_lo" != "x$ac_hi"; do
6783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6784 cat >conftest.$ac_ext <<_ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 $ac_includes_default
6791 typedef long ac__type_sizeof_;
6795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6802 rm -f conftest.$ac_objext
6803 if { (ac_try="$ac_compile"
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_compile") 2>conftest.er1
6811 grep -v '^ *+' conftest.er1 >conftest.err
6813 cat conftest.err >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest.$ac_objext; then
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 ac_lo=`expr '(' $ac_mid ')' + 1`
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 ?*) ac_cv_sizeof_long=$ac_lo;;
6831 '') if test "$ac_cv_type_long" = yes; then
6832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6833 See \`config.log' for more details." >&5
6834 echo "$as_me: error: cannot compute sizeof (long)
6835 See \`config.log' for more details." >&2;}
6836 { (exit 77); exit 77; }; }
6842 cat >conftest.$ac_ext <<_ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 $ac_includes_default
6849 typedef long ac__type_sizeof_;
6850 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6851 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6858 FILE *f = fopen ("conftest.val", "w");
6861 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6863 long int i = longval ();
6864 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6866 fprintf (f, "%ld\n", i);
6870 unsigned long int i = ulongval ();
6871 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6873 fprintf (f, "%lu\n", i);
6875 return ferror (f) || fclose (f) != 0;
6881 rm -f conftest$ac_exeext
6882 if { (ac_try="$ac_link"
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_link") 2>&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6892 { (case "(($ac_try" in
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897 (eval "$ac_try") 2>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_sizeof_long=`cat conftest.val`
6903 echo "$as_me: program exited with status $ac_status" >&5
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6908 if test "$ac_cv_type_long" = yes; then
6909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6910 See \`config.log' for more details." >&5
6911 echo "$as_me: error: cannot compute sizeof (long)
6912 See \`config.log' for more details." >&2;}
6913 { (exit 77); exit 77; }; }
6918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6922 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6923 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6927 cat >>confdefs.h <<_ACEOF
6928 #define SIZEOF_LONG $ac_cv_sizeof_long
6932 { echo "$as_me:$LINENO: checking for long long" >&5
6933 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6934 if test "${ac_cv_type_long_long+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 cat >conftest.$ac_ext <<_ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6943 $ac_includes_default
6944 typedef long long ac__type_new_;
6948 if ((ac__type_new_ *) 0)
6950 if (sizeof (ac__type_new_))
6956 rm -f conftest.$ac_objext
6957 if { (ac_try="$ac_compile"
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_compile") 2>conftest.er1
6965 grep -v '^ *+' conftest.er1 >conftest.err
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } && {
6970 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest.$ac_objext; then
6973 ac_cv_type_long_long=yes
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6978 ac_cv_type_long_long=no
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6984 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6986 # The cast to long int works around a bug in the HP C Compiler
6987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6989 # This bug is HP SR number 8606223364.
6990 { echo "$as_me:$LINENO: checking size of long long" >&5
6991 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6992 if test "${ac_cv_sizeof_long_long+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 if test "$cross_compiling" = yes; then
6996 # Depending upon the size, compute the lo and hi bounds.
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 $ac_includes_default
7004 typedef long long ac__type_sizeof_;
7008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7015 rm -f conftest.$ac_objext
7016 if { (ac_try="$ac_compile"
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022 (eval "$ac_compile") 2>conftest.er1
7024 grep -v '^ *+' conftest.er1 >conftest.err
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && {
7029 test -z "$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 } && test -s conftest.$ac_objext; then
7034 cat >conftest.$ac_ext <<_ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 $ac_includes_default
7041 typedef long long ac__type_sizeof_;
7045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059 (eval "$ac_compile") 2>conftest.er1
7061 grep -v '^ *+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && {
7066 test -z "$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest.$ac_objext; then
7069 ac_hi=$ac_mid; break
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7074 ac_lo=`expr $ac_mid + 1`
7075 if test $ac_lo -le $ac_mid; then
7079 ac_mid=`expr 2 '*' $ac_mid + 1`
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7088 cat >conftest.$ac_ext <<_ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 typedef long long ac__type_sizeof_;
7099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7106 rm -f conftest.$ac_objext
7107 if { (ac_try="$ac_compile"
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113 (eval "$ac_compile") 2>conftest.er1
7115 grep -v '^ *+' conftest.er1 >conftest.err
7117 cat conftest.err >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } && {
7120 test -z "$ac_c_werror_flag" ||
7121 test ! -s conftest.err
7122 } && test -s conftest.$ac_objext; then
7125 cat >conftest.$ac_ext <<_ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7131 $ac_includes_default
7132 typedef long long ac__type_sizeof_;
7136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7152 grep -v '^ *+' conftest.er1 >conftest.err
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7160 ac_lo=$ac_mid; break
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_hi=`expr '(' $ac_mid ')' - 1`
7166 if test $ac_mid -le $ac_hi; then
7170 ac_mid=`expr 2 '*' $ac_mid`
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186 # Binary search between lo and hi bounds.
7187 while test "x$ac_lo" != "x$ac_hi"; do
7188 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7189 cat >conftest.$ac_ext <<_ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195 $ac_includes_default
7196 typedef long long ac__type_sizeof_;
7200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7207 rm -f conftest.$ac_objext
7208 if { (ac_try="$ac_compile"
7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211 *) ac_try_echo=$ac_try;;
7213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7214 (eval "$ac_compile") 2>conftest.er1
7216 grep -v '^ *+' conftest.er1 >conftest.err
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } && {
7221 test -z "$ac_c_werror_flag" ||
7222 test ! -s conftest.err
7223 } && test -s conftest.$ac_objext; then
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7229 ac_lo=`expr '(' $ac_mid ')' + 1`
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7236 '') if test "$ac_cv_type_long_long" = yes; then
7237 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7238 See \`config.log' for more details." >&5
7239 echo "$as_me: error: cannot compute sizeof (long long)
7240 See \`config.log' for more details." >&2;}
7241 { (exit 77); exit 77; }; }
7243 ac_cv_sizeof_long_long=0
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7254 typedef long long ac__type_sizeof_;
7255 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7256 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7263 FILE *f = fopen ("conftest.val", "w");
7266 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7268 long int i = longval ();
7269 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7271 fprintf (f, "%ld\n", i);
7275 unsigned long int i = ulongval ();
7276 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7278 fprintf (f, "%lu\n", i);
7280 return ferror (f) || fclose (f) != 0;
7286 rm -f conftest$ac_exeext
7287 if { (ac_try="$ac_link"
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_link") 2>&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7297 { (case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_try") 2>&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7306 ac_cv_sizeof_long_long=`cat conftest.val`
7308 echo "$as_me: program exited with status $ac_status" >&5
7309 echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7313 if test "$ac_cv_type_long_long" = yes; then
7314 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7315 See \`config.log' for more details." >&5
7316 echo "$as_me: error: cannot compute sizeof (long long)
7317 See \`config.log' for more details." >&2;}
7318 { (exit 77); exit 77; }; }
7320 ac_cv_sizeof_long_long=0
7323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7327 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7328 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7332 cat >>confdefs.h <<_ACEOF
7333 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7340 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7341 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7342 if test "${ac_cv_addrinfo+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 cat >conftest.$ac_ext <<_ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7361 rm -f conftest.$ac_objext
7362 if { (ac_try="$ac_compile"
7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_compile") 2>conftest.er1
7370 grep -v '^ *+' conftest.er1 >conftest.err
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest.$ac_objext; then
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7390 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7391 if test $ac_cv_addrinfo = yes; then
7392 cat >>confdefs.h <<\_ACEOF
7393 #define HAVE_ADDRINFO 1
7397 cat >>confdefs.h <<\_ACEOF
7398 #define NEED_ADDRINFO_H 1
7403 if test "$ac_cv_addrinfo" = no; then
7404 missing_includes=yes
7408 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7409 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7410 if test "${ac_cv_maxserv+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425 $EGREP "yes" >/dev/null 2>&1; then
7434 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7435 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7436 if test $ac_cv_maxserv != yes; then
7437 cat >>confdefs.h <<\_ACEOF
7438 #define NEED_ADDRINFO_H 1
7443 if test "$ac_cv_maxserv" = no; then
7444 missing_includes=yes
7448 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7449 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7450 if test "${ac_cv_namereqd+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7465 $EGREP "yes" >/dev/null 2>&1; then
7474 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7475 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7476 if test $ac_cv_namereqd != yes; then
7477 cat >>confdefs.h <<\_ACEOF
7478 #define NEED_ADDRINFO_H 1
7483 if test "$ac_cv_namereqd" = no; then
7484 missing_includes=yes
7488 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7489 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7490 if test "${ac_cv_sa_storage+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 cat >conftest.$ac_ext <<_ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7500 # include <sys/types.h>
7501 # include <sys/socket.h>
7505 struct sockaddr_storage s
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_compile") 2>conftest.er1
7519 grep -v '^ *+' conftest.er1 >conftest.err
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } && {
7524 test -z "$ac_c_werror_flag" ||
7525 test ! -s conftest.err
7526 } && test -s conftest.$ac_objext; then
7527 ac_cv_sa_storage=yes
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7539 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7540 if test $ac_cv_sa_storage = yes; then
7541 cat >>confdefs.h <<\_ACEOF
7542 #define HAVE_SOCKADDR_STORAGE 1
7547 if test "$ac_cv_sa_storage" = no; then
7548 missing_includes=yes
7553 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7554 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7555 if test "${ac_cv_inaddrsz+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7565 # include <arpa/nameser.h>
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_compile") 2>conftest.er1
7583 grep -v '^ *+' conftest.er1 >conftest.err
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest.$ac_objext; then
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7603 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7604 if test $ac_cv_inaddrsz = yes; then
7605 cat >>confdefs.h <<\_ACEOF
7606 #define HAVE_INADDRSZ 1
7612 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7613 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7614 if test "${ac_cv_in6addrsz+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 cat >conftest.$ac_ext <<_ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7624 # include <arpa/nameser.h>
7633 rm -f conftest.$ac_objext
7634 if { (ac_try="$ac_compile"
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_compile") 2>conftest.er1
7642 grep -v '^ *+' conftest.er1 >conftest.err
7644 cat conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } && {
7647 test -z "$ac_c_werror_flag" ||
7648 test ! -s conftest.err
7649 } && test -s conftest.$ac_objext; then
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7662 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7663 if test $ac_cv_in6addrsz = yes; then
7664 cat >>confdefs.h <<\_ACEOF
7665 #define HAVE_IN6ADDRSZ 1
7672 if test "$ac_cv_addrsz" = no; then
7673 missing_includes=yes
7677 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7678 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7679 if test "${ac_cv_res_inet6+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 cat >conftest.$ac_ext <<_ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7689 # include <sys/types.h>
7690 # include <netinet/in.h>
7691 # include <resolv.h>
7695 int a = RES_USE_INET6
7700 rm -f conftest.$ac_objext
7701 if { (ac_try="$ac_compile"
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7709 grep -v '^ *+' conftest.er1 >conftest.err
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7729 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7730 if test $ac_cv_res_inet6 = yes; then
7731 cat >>confdefs.h <<\_ACEOF
7732 #define HAVE_RES_USE_INET6 1
7737 if test "$ac_cv_res_inet6" = no; then
7738 missing_includes=yes
7742 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7743 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7744 if test "${ac_cv_res_state_ext+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 cat >conftest.$ac_ext <<_ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7754 # include <sys/types.h>
7755 # include <netinet/in.h>
7756 # include <netinet6/in6.h>
7757 # include <resolv.h>
7761 struct __res_state_ext e
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_compile") 2>conftest.er1
7775 grep -v '^ *+' conftest.er1 >conftest.err
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } && {
7780 test -z "$ac_c_werror_flag" ||
7781 test ! -s conftest.err
7782 } && test -s conftest.$ac_objext; then
7783 ac_cv_res_state_ext=yes
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7788 ac_cv_res_state_ext=no
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7795 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7796 if test $ac_cv_res_state_ext = yes; then
7797 cat >>confdefs.h <<\_ACEOF
7798 #define HAVE_RES_STATE_EXT 1
7803 if test "$ac_cv_res_state_ext" = no; then
7804 missing_includes=yes
7808 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7809 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7810 if test "${ac_cv_res_state+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7820 # include <sys/types.h>
7821 # include <netinet/in.h>
7822 # include <netinet6/in6.h>
7823 # include <resolv.h>
7827 struct __res_state e; e.nsort = 0
7832 rm -f conftest.$ac_objext
7833 if { (ac_try="$ac_compile"
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_compile") 2>conftest.er1
7841 grep -v '^ *+' conftest.er1 >conftest.err
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } && {
7846 test -z "$ac_c_werror_flag" ||
7847 test ! -s conftest.err
7848 } && test -s conftest.$ac_objext; then
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7861 echo "${ECHO_T}$ac_cv_res_state" >&6; }
7862 if test $ac_cv_res_state = yes; then
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_NEW_RES_STATE 1
7877 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 cat >conftest.$ac_ext <<_ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7893 #define $ac_func innocuous_$ac_func
7895 /* System header to define __stub macros and hopefully few prototypes,
7896 which can conflict with char $ac_func (); below.
7897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7898 <limits.h> exists even on freestanding compilers. */
7901 # include <limits.h>
7903 # include <assert.h>
7908 /* Override any GCC internal prototype to avoid an error.
7909 Use char because int might match the return type of a GCC
7910 builtin and then its argument prototype would still apply. */
7915 /* The GNU C library defines this for functions which it implements
7916 to always fail with ENOSYS. Some functions are actually named
7917 something starting with __ and the normal name is an alias. */
7918 #if defined __stub_$ac_func || defined __stub___$ac_func
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (ac_try="$ac_link"
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_link") 2>conftest.er1
7939 grep -v '^ *+' conftest.er1 >conftest.err
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest$ac_exeext &&
7947 $as_test_x conftest$ac_exeext; then
7948 eval "$as_ac_var=yes"
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 eval "$as_ac_var=no"
7956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7957 conftest$ac_exeext conftest.$ac_ext
7959 ac_res=`eval echo '${'$as_ac_var'}'`
7960 { echo "$as_me:$LINENO: result: $ac_res" >&5
7961 echo "${ECHO_T}$ac_res" >&6; }
7962 if test `eval echo '${'$as_ac_var'}'` = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7968 case " $LIBOBJS " in
7969 *" $ac_func.$ac_objext "* ) ;;
7970 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7979 for ac_func in strftime
7981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7995 #define $ac_func innocuous_$ac_func
7997 /* System header to define __stub macros and hopefully few prototypes,
7998 which can conflict with char $ac_func (); below.
7999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8000 <limits.h> exists even on freestanding compilers. */
8003 # include <limits.h>
8005 # include <assert.h>
8010 /* Override any GCC internal prototype to avoid an error.
8011 Use char because int might match the return type of a GCC
8012 builtin and then its argument prototype would still apply. */
8017 /* The GNU C library defines this for functions which it implements
8018 to always fail with ENOSYS. Some functions are actually named
8019 something starting with __ and the normal name is an alias. */
8020 #if defined __stub_$ac_func || defined __stub___$ac_func
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (ac_try="$ac_link"
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_link") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest$ac_exeext &&
8049 $as_test_x conftest$ac_exeext; then
8050 eval "$as_ac_var=yes"
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8055 eval "$as_ac_var=no"
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059 conftest$ac_exeext conftest.$ac_ext
8061 ac_res=`eval echo '${'$as_ac_var'}'`
8062 { echo "$as_me:$LINENO: result: $ac_res" >&5
8063 echo "${ECHO_T}$ac_res" >&6; }
8064 if test `eval echo '${'$as_ac_var'}'` = yes; then
8065 cat >>confdefs.h <<_ACEOF
8066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8074 for ac_func in setlinebuf alarm
8076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8090 #define $ac_func innocuous_$ac_func
8092 /* System header to define __stub macros and hopefully few prototypes,
8093 which can conflict with char $ac_func (); below.
8094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8095 <limits.h> exists even on freestanding compilers. */
8098 # include <limits.h>
8100 # include <assert.h>
8105 /* Override any GCC internal prototype to avoid an error.
8106 Use char because int might match the return type of a GCC
8107 builtin and then its argument prototype would still apply. */
8112 /* The GNU C library defines this for functions which it implements
8113 to always fail with ENOSYS. Some functions are actually named
8114 something starting with __ and the normal name is an alias. */
8115 #if defined __stub_$ac_func || defined __stub___$ac_func
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (ac_try="$ac_link"
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_link") 2>conftest.er1
8136 grep -v '^ *+' conftest.er1 >conftest.err
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest$ac_exeext &&
8144 $as_test_x conftest$ac_exeext; then
8145 eval "$as_ac_var=yes"
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 eval "$as_ac_var=no"
8153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8154 conftest$ac_exeext conftest.$ac_ext
8156 ac_res=`eval echo '${'$as_ac_var'}'`
8157 { echo "$as_me:$LINENO: result: $ac_res" >&5
8158 echo "${ECHO_T}$ac_res" >&6; }
8159 if test `eval echo '${'$as_ac_var'}'` = yes; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8171 for ac_func in vsnprintf snprintf
8173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8187 #define $ac_func innocuous_$ac_func
8189 /* System header to define __stub macros and hopefully few prototypes,
8190 which can conflict with char $ac_func (); below.
8191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8192 <limits.h> exists even on freestanding compilers. */
8195 # include <limits.h>
8197 # include <assert.h>
8202 /* Override any GCC internal prototype to avoid an error.
8203 Use char because int might match the return type of a GCC
8204 builtin and then its argument prototype would still apply. */
8209 /* The GNU C library defines this for functions which it implements
8210 to always fail with ENOSYS. Some functions are actually named
8211 something starting with __ and the normal name is an alias. */
8212 #if defined __stub_$ac_func || defined __stub___$ac_func
8224 rm -f conftest.$ac_objext conftest$ac_exeext
8225 if { (ac_try="$ac_link"
8227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228 *) ac_try_echo=$ac_try;;
8230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8231 (eval "$ac_link") 2>conftest.er1
8233 grep -v '^ *+' conftest.er1 >conftest.err
8235 cat conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } && {
8238 test -z "$ac_c_werror_flag" ||
8239 test ! -s conftest.err
8240 } && test -s conftest$ac_exeext &&
8241 $as_test_x conftest$ac_exeext; then
8242 eval "$as_ac_var=yes"
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8247 eval "$as_ac_var=no"
8250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8251 conftest$ac_exeext conftest.$ac_ext
8253 ac_res=`eval echo '${'$as_ac_var'}'`
8254 { echo "$as_me:$LINENO: result: $ac_res" >&5
8255 echo "${ECHO_T}$ac_res" >&6; }
8256 if test `eval echo '${'$as_ac_var'}'` = yes; then
8257 cat >>confdefs.h <<_ACEOF
8258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8266 if test $needsnprintf = yes; then
8267 case " $LIBOBJS " in
8268 *" snprintf.$ac_objext "* ) ;;
8269 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8276 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8277 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8278 if test "${ac_cv_type_signal+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 #include <sys/types.h>
8293 return *(signal (0, 0)) (0) == 1;
8298 rm -f conftest.$ac_objext
8299 if { (ac_try="$ac_compile"
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_compile") 2>conftest.er1
8307 grep -v '^ *+' conftest.er1 >conftest.err
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && {
8312 test -z "$ac_c_werror_flag" ||
8313 test ! -s conftest.err
8314 } && test -s conftest.$ac_objext; then
8315 ac_cv_type_signal=int
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 ac_cv_type_signal=void
8323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8326 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8328 cat >>confdefs.h <<_ACEOF
8329 #define RETSIGTYPE $ac_cv_type_signal
8333 if test "$ac_cv_type_signal" = void ; then
8334 cat >>confdefs.h <<\_ACEOF
8339 cat >>confdefs.h <<\_ACEOF
8340 #define RETSIGVAL (0)
8347 cat >>confdefs.h <<\_ACEOF
8348 #define _BSD_SIGNALS 1
8355 for ac_func in sigaction
8357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 cat >conftest.$ac_ext <<_ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8371 #define $ac_func innocuous_$ac_func
8373 /* System header to define __stub macros and hopefully few prototypes,
8374 which can conflict with char $ac_func (); below.
8375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8376 <limits.h> exists even on freestanding compilers. */
8379 # include <limits.h>
8381 # include <assert.h>
8386 /* Override any GCC internal prototype to avoid an error.
8387 Use char because int might match the return type of a GCC
8388 builtin and then its argument prototype would still apply. */
8393 /* The GNU C library defines this for functions which it implements
8394 to always fail with ENOSYS. Some functions are actually named
8395 something starting with __ and the normal name is an alias. */
8396 #if defined __stub_$ac_func || defined __stub___$ac_func
8408 rm -f conftest.$ac_objext conftest$ac_exeext
8409 if { (ac_try="$ac_link"
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_link") 2>conftest.er1
8417 grep -v '^ *+' conftest.er1 >conftest.err
8419 cat conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest$ac_exeext &&
8425 $as_test_x conftest$ac_exeext; then
8426 eval "$as_ac_var=yes"
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 eval "$as_ac_var=no"
8434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8435 conftest$ac_exeext conftest.$ac_ext
8437 ac_res=`eval echo '${'$as_ac_var'}'`
8438 { echo "$as_me:$LINENO: result: $ac_res" >&5
8439 echo "${ECHO_T}$ac_res" >&6; }
8440 if test `eval echo '${'$as_ac_var'}'` = yes; then
8441 cat >>confdefs.h <<_ACEOF
8442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8448 if test $ac_cv_func_sigaction = no ; then
8450 for ac_func in sigset
8452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 cat >conftest.$ac_ext <<_ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8466 #define $ac_func innocuous_$ac_func
8468 /* System header to define __stub macros and hopefully few prototypes,
8469 which can conflict with char $ac_func (); below.
8470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8471 <limits.h> exists even on freestanding compilers. */
8474 # include <limits.h>
8476 # include <assert.h>
8481 /* Override any GCC internal prototype to avoid an error.
8482 Use char because int might match the return type of a GCC
8483 builtin and then its argument prototype would still apply. */
8488 /* The GNU C library defines this for functions which it implements
8489 to always fail with ENOSYS. Some functions are actually named
8490 something starting with __ and the normal name is an alias. */
8491 #if defined __stub_$ac_func || defined __stub___$ac_func
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (ac_try="$ac_link"
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_link") 2>conftest.er1
8512 grep -v '^ *+' conftest.er1 >conftest.err
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && {
8517 test -z "$ac_c_werror_flag" ||
8518 test ! -s conftest.err
8519 } && test -s conftest$ac_exeext &&
8520 $as_test_x conftest$ac_exeext; then
8521 eval "$as_ac_var=yes"
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 eval "$as_ac_var=no"
8529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8530 conftest$ac_exeext conftest.$ac_ext
8532 ac_res=`eval echo '${'$as_ac_var'}'`
8533 { echo "$as_me:$LINENO: result: $ac_res" >&5
8534 echo "${ECHO_T}$ac_res" >&6; }
8535 if test `eval echo '${'$as_ac_var'}'` = yes; then
8536 cat >>confdefs.h <<_ACEOF
8537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8547 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8548 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8549 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 ac_func_search_save_LIBS=$LIBS
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8560 /* Override any GCC internal prototype to avoid an error.
8561 Use char because int might match the return type of a GCC
8562 builtin and then its argument prototype would still apply. */
8570 return dnet_htoa ();
8575 for ac_lib in '' dnet; do
8576 if test -z "$ac_lib"; then
8577 ac_res="none required"
8580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8582 rm -f conftest.$ac_objext conftest$ac_exeext
8583 if { (ac_try="$ac_link"
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_link") 2>conftest.er1
8591 grep -v '^ *+' conftest.er1 >conftest.err
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest$ac_exeext &&
8599 $as_test_x conftest$ac_exeext; then
8600 ac_cv_search_dnet_htoa=$ac_res
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8610 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8614 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8617 ac_cv_search_dnet_htoa=no
8620 LIBS=$ac_func_search_save_LIBS
8622 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8623 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8624 ac_res=$ac_cv_search_dnet_htoa
8625 if test "$ac_res" != no; then
8626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8627 cat >>confdefs.h <<\_ACEOF
8628 #define HAVE_DNET_HTOA 1
8635 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8636 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8637 if test "${ac_cv_lib_rpc_main+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 ac_check_lib_save_LIBS=$LIBS
8642 cat >conftest.$ac_ext <<_ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (ac_try="$ac_link"
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665 (eval "$ac_link") 2>conftest.er1
8667 grep -v '^ *+' conftest.er1 >conftest.err
8669 cat conftest.err >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && {
8672 test -z "$ac_c_werror_flag" ||
8673 test ! -s conftest.err
8674 } && test -s conftest$ac_exeext &&
8675 $as_test_x conftest$ac_exeext; then
8676 ac_cv_lib_rpc_main=yes
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 ac_cv_lib_rpc_main=no
8684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8685 conftest$ac_exeext conftest.$ac_ext
8686 LIBS=$ac_check_lib_save_LIBS
8688 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8689 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8690 if test $ac_cv_lib_rpc_main = yes; then
8691 cat >>confdefs.h <<_ACEOF
8692 #define HAVE_LIBRPC 1
8699 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8700 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8701 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 ac_func_search_save_LIBS=$LIBS
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8712 /* Override any GCC internal prototype to avoid an error.
8713 Use char because int might match the return type of a GCC
8714 builtin and then its argument prototype would still apply. */
8718 char getrpcbynumber ();
8722 return getrpcbynumber ();
8727 for ac_lib in '' nsl; do
8728 if test -z "$ac_lib"; then
8729 ac_res="none required"
8732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8734 rm -f conftest.$ac_objext conftest$ac_exeext
8735 if { (ac_try="$ac_link"
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_link") 2>conftest.er1
8743 grep -v '^ *+' conftest.er1 >conftest.err
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } && {
8748 test -z "$ac_c_werror_flag" ||
8749 test ! -s conftest.err
8750 } && test -s conftest$ac_exeext &&
8751 $as_test_x conftest$ac_exeext; then
8752 ac_cv_search_getrpcbynumber=$ac_res
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8762 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8766 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8769 ac_cv_search_getrpcbynumber=no
8772 LIBS=$ac_func_search_save_LIBS
8774 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8775 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8776 ac_res=$ac_cv_search_getrpcbynumber
8777 if test "$ac_res" != no; then
8778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8779 cat >>confdefs.h <<\_ACEOF
8780 #define HAVE_GETRPCBYNUMBER 1
8788 # Most operating systems have gethostbyname() in the default searched
8789 # libraries (i.e. libc):
8790 # Some OSes (eg. Solaris) place it in libnsl
8791 # Some strange OSes (SINIX) have it in libsocket:
8792 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8793 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8794 if test "${ac_cv_search_gethostbyname+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 ac_func_search_save_LIBS=$LIBS
8798 cat >conftest.$ac_ext <<_ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8805 /* Override any GCC internal prototype to avoid an error.
8806 Use char because int might match the return type of a GCC
8807 builtin and then its argument prototype would still apply. */
8811 char gethostbyname ();
8815 return gethostbyname ();
8820 for ac_lib in '' nsl socket resolv; do
8821 if test -z "$ac_lib"; then
8822 ac_res="none required"
8825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8827 rm -f conftest.$ac_objext conftest$ac_exeext
8828 if { (ac_try="$ac_link"
8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_link") 2>conftest.er1
8836 grep -v '^ *+' conftest.er1 >conftest.err
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } && {
8841 test -z "$ac_c_werror_flag" ||
8842 test ! -s conftest.err
8843 } && test -s conftest$ac_exeext &&
8844 $as_test_x conftest$ac_exeext; then
8845 ac_cv_search_gethostbyname=$ac_res
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8855 if test "${ac_cv_search_gethostbyname+set}" = set; then
8859 if test "${ac_cv_search_gethostbyname+set}" = set; then
8862 ac_cv_search_gethostbyname=no
8865 LIBS=$ac_func_search_save_LIBS
8867 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8868 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8869 ac_res=$ac_cv_search_gethostbyname
8870 if test "$ac_res" != no; then
8871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8875 # Unfortunately libsocket sometimes depends on libnsl and
8876 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8877 if test "$ac_cv_search_gethostbyname" = "no"
8879 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8880 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
8881 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 ac_check_lib_save_LIBS=$LIBS
8885 LIBS="-lsocket -lnsl $LIBS"
8886 cat >conftest.$ac_ext <<_ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8893 /* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
8899 char gethostbyname ();
8903 return gethostbyname ();
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (ac_try="$ac_link"
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_link") 2>conftest.er1
8917 grep -v '^ *+' conftest.er1 >conftest.err
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && {
8922 test -z "$ac_c_werror_flag" ||
8923 test ! -s conftest.err
8924 } && test -s conftest$ac_exeext &&
8925 $as_test_x conftest$ac_exeext; then
8926 ac_cv_lib_socket_gethostbyname=yes
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 ac_cv_lib_socket_gethostbyname=no
8934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8935 conftest$ac_exeext conftest.$ac_ext
8936 LIBS=$ac_check_lib_save_LIBS
8938 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8939 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
8940 if test $ac_cv_lib_socket_gethostbyname = yes; then
8941 LIBS="-lsocket -lnsl $LIBS"
8945 { echo "$as_me:$LINENO: checking for library containing socket" >&5
8946 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
8947 if test "${ac_cv_search_socket+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 ac_func_search_save_LIBS=$LIBS
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8958 /* Override any GCC internal prototype to avoid an error.
8959 Use char because int might match the return type of a GCC
8960 builtin and then its argument prototype would still apply. */
8973 for ac_lib in '' socket; do
8974 if test -z "$ac_lib"; then
8975 ac_res="none required"
8978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (ac_try="$ac_link"
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_link") 2>conftest.er1
8989 grep -v '^ *+' conftest.er1 >conftest.err
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } && {
8994 test -z "$ac_c_werror_flag" ||
8995 test ! -s conftest.err
8996 } && test -s conftest$ac_exeext &&
8997 $as_test_x conftest$ac_exeext; then
8998 ac_cv_search_socket=$ac_res
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9008 if test "${ac_cv_search_socket+set}" = set; then
9012 if test "${ac_cv_search_socket+set}" = set; then
9015 ac_cv_search_socket=no
9018 LIBS=$ac_func_search_save_LIBS
9020 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9021 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9022 ac_res=$ac_cv_search_socket
9023 if test "$ac_res" != no; then
9024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9027 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9028 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9029 if test "${ac_cv_lib_socket_socket+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 ac_check_lib_save_LIBS=$LIBS
9033 LIBS="-lsocket -lnsl $LIBS"
9034 cat >conftest.$ac_ext <<_ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9041 /* Override any GCC internal prototype to avoid an error.
9042 Use char because int might match the return type of a GCC
9043 builtin and then its argument prototype would still apply. */
9056 rm -f conftest.$ac_objext conftest$ac_exeext
9057 if { (ac_try="$ac_link"
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_link") 2>conftest.er1
9065 grep -v '^ *+' conftest.er1 >conftest.err
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && {
9070 test -z "$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9072 } && test -s conftest$ac_exeext &&
9073 $as_test_x conftest$ac_exeext; then
9074 ac_cv_lib_socket_socket=yes
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 ac_cv_lib_socket_socket=no
9082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9083 conftest$ac_exeext conftest.$ac_ext
9084 LIBS=$ac_check_lib_save_LIBS
9086 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9087 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9088 if test $ac_cv_lib_socket_socket = yes; then
9089 LIBS="-lsocket -lnsl $LIBS"
9094 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9095 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9096 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9097 if test "${ac_cv_search_putmsg+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 ac_func_search_save_LIBS=$LIBS
9101 cat >conftest.$ac_ext <<_ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9108 /* Override any GCC internal prototype to avoid an error.
9109 Use char because int might match the return type of a GCC
9110 builtin and then its argument prototype would still apply. */
9123 for ac_lib in '' str; do
9124 if test -z "$ac_lib"; then
9125 ac_res="none required"
9128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9130 rm -f conftest.$ac_objext conftest$ac_exeext
9131 if { (ac_try="$ac_link"
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_link") 2>conftest.er1
9139 grep -v '^ *+' conftest.er1 >conftest.err
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest$ac_exeext &&
9147 $as_test_x conftest$ac_exeext; then
9148 ac_cv_search_putmsg=$ac_res
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9158 if test "${ac_cv_search_putmsg+set}" = set; then
9162 if test "${ac_cv_search_putmsg+set}" = set; then
9165 ac_cv_search_putmsg=no
9168 LIBS=$ac_func_search_save_LIBS
9170 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9171 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9172 ac_res=$ac_cv_search_putmsg
9173 if test "$ac_res" != no; then
9174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9181 pfopen=/usr/examples/packetfilter/pfopen.c
9182 if test -f $pfopen ; then
9184 for ac_func in pfopen
9186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9200 #define $ac_func innocuous_$ac_func
9202 /* System header to define __stub macros and hopefully few prototypes,
9203 which can conflict with char $ac_func (); below.
9204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9205 <limits.h> exists even on freestanding compilers. */
9208 # include <limits.h>
9210 # include <assert.h>
9215 /* Override any GCC internal prototype to avoid an error.
9216 Use char because int might match the return type of a GCC
9217 builtin and then its argument prototype would still apply. */
9222 /* The GNU C library defines this for functions which it implements
9223 to always fail with ENOSYS. Some functions are actually named
9224 something starting with __ and the normal name is an alias. */
9225 #if defined __stub_$ac_func || defined __stub___$ac_func
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (ac_try="$ac_link"
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_link") 2>conftest.er1
9246 grep -v '^ *+' conftest.er1 >conftest.err
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest$ac_exeext &&
9254 $as_test_x conftest$ac_exeext; then
9255 eval "$as_ac_var=yes"
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 eval "$as_ac_var=no"
9263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9264 conftest$ac_exeext conftest.$ac_ext
9266 ac_res=`eval echo '${'$as_ac_var'}'`
9267 { echo "$as_me:$LINENO: result: $ac_res" >&5
9268 echo "${ECHO_T}$ac_res" >&6; }
9269 if test `eval echo '${'$as_ac_var'}'` = yes; then
9270 cat >>confdefs.h <<_ACEOF
9271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9277 if test $ac_cv_func_pfopen = "no" ; then
9278 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9279 echo "${ECHO_T}Using $pfopen" >&6; }
9280 LIBS="$LIBS $pfopen"
9283 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9284 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9287 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9288 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9289 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9290 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9291 if test $lastdir = $basedir ; then
9295 if test -r $dir/libpcap.a ; then
9296 libpcap=$dir/libpcap.a
9300 if test $libpcap = FAIL ; then
9301 { echo "$as_me:$LINENO: result: not found" >&5
9302 echo "${ECHO_T}not found" >&6; }
9303 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9304 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9305 if test "${ac_cv_lib_pcap_main+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 ac_check_lib_save_LIBS=$LIBS
9310 cat >conftest.$ac_ext <<_ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (ac_try="$ac_link"
9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9333 (eval "$ac_link") 2>conftest.er1
9335 grep -v '^ *+' conftest.er1 >conftest.err
9337 cat conftest.err >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } && {
9340 test -z "$ac_c_werror_flag" ||
9341 test ! -s conftest.err
9342 } && test -s conftest$ac_exeext &&
9343 $as_test_x conftest$ac_exeext; then
9344 ac_cv_lib_pcap_main=yes
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9349 ac_cv_lib_pcap_main=no
9352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9353 conftest$ac_exeext conftest.$ac_ext
9354 LIBS=$ac_check_lib_save_LIBS
9356 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9357 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9358 if test $ac_cv_lib_pcap_main = yes; then
9362 if test $libpcap = FAIL ; then
9363 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9364 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9365 { (exit 1); exit 1; }; }
9367 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9368 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9369 if test \( ! -r /usr/local/include/pcap.h \) -a \
9370 \( ! -r /usr/include/pcap.h \); then
9371 if test -r /usr/local/include/pcap/pcap.h; then
9372 d="/usr/local/include/pcap"
9373 elif test -r /usr/include/pcap/pcap.h; then
9374 d="/usr/include/pcap"
9377 if test -z "$d" ; then
9378 { echo "$as_me:$LINENO: result: not found" >&5
9379 echo "${ECHO_T}not found" >&6; }
9381 V_INCLS="-I$d $V_INCLS"
9382 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9383 echo "${ECHO_T}found -- -I$d added" >&6; }
9387 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9388 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9389 if test -r $d/pcap.h; then
9390 V_INCLS="-I$d $V_INCLS"
9391 elif test -r $places/pcap.h; then
9392 V_INCLS="-I$places $V_INCLS"
9394 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9395 echo "$as_me: error: cannot find pcap.h" >&2;}
9396 { (exit see INSTALL); exit see INSTALL; }; }
9398 { echo "$as_me:$LINENO: result: $libpcap" >&5
9399 echo "${ECHO_T}$libpcap" >&6; }
9401 LIBS="$libpcap $LIBS"
9405 pseexe="/lib/pse.exp"
9406 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9407 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9408 if test -f $pseexe ; then
9409 { echo "$as_me:$LINENO: result: yes" >&5
9410 echo "${ECHO_T}yes" >&6; }
9411 LIBS="$LIBS -I:$pseexe"
9414 # We need "-lodm" and "-lcfg", as libpcap requires them on
9415 # AIX, and we just build a static libpcap.a and thus can't
9416 # arrange that when you link with libpcap you automatically
9417 # link with those libraries.
9419 LIBS="$LIBS -lodm -lcfg"
9423 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9424 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9425 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 cat >conftest.$ac_ext <<_ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9436 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9438 /* System header to define __stub macros and hopefully few prototypes,
9439 which can conflict with char pcap_list_datalinks (); below.
9440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9441 <limits.h> exists even on freestanding compilers. */
9444 # include <limits.h>
9446 # include <assert.h>
9449 #undef pcap_list_datalinks
9451 /* Override any GCC internal prototype to avoid an error.
9452 Use char because int might match the return type of a GCC
9453 builtin and then its argument prototype would still apply. */
9457 char pcap_list_datalinks ();
9458 /* The GNU C library defines this for functions which it implements
9459 to always fail with ENOSYS. Some functions are actually named
9460 something starting with __ and the normal name is an alias. */
9461 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9468 return pcap_list_datalinks ();
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_link") 2>conftest.er1
9482 grep -v '^ *+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && {
9487 test -z "$ac_c_werror_flag" ||
9488 test ! -s conftest.err
9489 } && test -s conftest$ac_exeext &&
9490 $as_test_x conftest$ac_exeext; then
9491 ac_cv_func_pcap_list_datalinks=yes
9493 echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9496 ac_cv_func_pcap_list_datalinks=no
9499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9500 conftest$ac_exeext conftest.$ac_ext
9502 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9503 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9504 if test $ac_cv_func_pcap_list_datalinks = yes; then
9505 cat >>confdefs.h <<\_ACEOF
9506 #define HAVE_PCAP_LIST_DATALINKS 1
9511 case " $LIBOBJS " in
9512 *" datalinks.$ac_objext "* ) ;;
9513 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9520 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9521 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9522 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 cat >conftest.$ac_ext <<_ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9533 #define pcap_set_datalink innocuous_pcap_set_datalink
9535 /* System header to define __stub macros and hopefully few prototypes,
9536 which can conflict with char pcap_set_datalink (); below.
9537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9538 <limits.h> exists even on freestanding compilers. */
9541 # include <limits.h>
9543 # include <assert.h>
9546 #undef pcap_set_datalink
9548 /* Override any GCC internal prototype to avoid an error.
9549 Use char because int might match the return type of a GCC
9550 builtin and then its argument prototype would still apply. */
9554 char pcap_set_datalink ();
9555 /* The GNU C library defines this for functions which it implements
9556 to always fail with ENOSYS. Some functions are actually named
9557 something starting with __ and the normal name is an alias. */
9558 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9565 return pcap_set_datalink ();
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (ac_try="$ac_link"
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_link") 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest$ac_exeext &&
9587 $as_test_x conftest$ac_exeext; then
9588 ac_cv_func_pcap_set_datalink=yes
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_cv_func_pcap_set_datalink=no
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597 conftest$ac_exeext conftest.$ac_ext
9599 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9600 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9601 if test $ac_cv_func_pcap_set_datalink = yes; then
9602 cat >>confdefs.h <<\_ACEOF
9603 #define HAVE_PCAP_SET_DATALINK 1
9608 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9609 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9610 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9621 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9623 /* System header to define __stub macros and hopefully few prototypes,
9624 which can conflict with char pcap_datalink_name_to_val (); below.
9625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9626 <limits.h> exists even on freestanding compilers. */
9629 # include <limits.h>
9631 # include <assert.h>
9634 #undef pcap_datalink_name_to_val
9636 /* Override any GCC internal prototype to avoid an error.
9637 Use char because int might match the return type of a GCC
9638 builtin and then its argument prototype would still apply. */
9642 char pcap_datalink_name_to_val ();
9643 /* The GNU C library defines this for functions which it implements
9644 to always fail with ENOSYS. Some functions are actually named
9645 something starting with __ and the normal name is an alias. */
9646 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9653 return pcap_datalink_name_to_val ();
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest$ac_exeext &&
9675 $as_test_x conftest$ac_exeext; then
9676 ac_cv_func_pcap_datalink_name_to_val=yes
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_func_pcap_datalink_name_to_val=no
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685 conftest$ac_exeext conftest.$ac_ext
9687 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9688 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9689 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9691 cat >>confdefs.h <<\_ACEOF
9692 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9695 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9696 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9697 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9708 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9710 /* System header to define __stub macros and hopefully few prototypes,
9711 which can conflict with char pcap_datalink_val_to_description (); below.
9712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9713 <limits.h> exists even on freestanding compilers. */
9716 # include <limits.h>
9718 # include <assert.h>
9721 #undef pcap_datalink_val_to_description
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9729 char pcap_datalink_val_to_description ();
9730 /* The GNU C library defines this for functions which it implements
9731 to always fail with ENOSYS. Some functions are actually named
9732 something starting with __ and the normal name is an alias. */
9733 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
9740 return pcap_datalink_val_to_description ();
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_link") 2>conftest.er1
9754 grep -v '^ *+' conftest.er1 >conftest.err
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && {
9759 test -z "$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 } && test -s conftest$ac_exeext &&
9762 $as_test_x conftest$ac_exeext; then
9763 ac_cv_func_pcap_datalink_val_to_description=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_func_pcap_datalink_val_to_description=no
9771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9772 conftest$ac_exeext conftest.$ac_ext
9774 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9775 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
9776 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9777 cat >>confdefs.h <<\_ACEOF
9778 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9783 case " $LIBOBJS " in
9784 *" dlnames.$ac_objext "* ) ;;
9785 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9795 case " $LIBOBJS " in
9796 *" dlnames.$ac_objext "* ) ;;
9797 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9806 for ac_func in pcap_breakloop
9808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9822 #define $ac_func innocuous_$ac_func
9824 /* System header to define __stub macros and hopefully few prototypes,
9825 which can conflict with char $ac_func (); below.
9826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9827 <limits.h> exists even on freestanding compilers. */
9830 # include <limits.h>
9832 # include <assert.h>
9837 /* Override any GCC internal prototype to avoid an error.
9838 Use char because int might match the return type of a GCC
9839 builtin and then its argument prototype would still apply. */
9844 /* The GNU C library defines this for functions which it implements
9845 to always fail with ENOSYS. Some functions are actually named
9846 something starting with __ and the normal name is an alias. */
9847 #if defined __stub_$ac_func || defined __stub___$ac_func
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_link") 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest$ac_exeext &&
9876 $as_test_x conftest$ac_exeext; then
9877 eval "$as_ac_var=yes"
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 eval "$as_ac_var=no"
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886 conftest$ac_exeext conftest.$ac_ext
9888 ac_res=`eval echo '${'$as_ac_var'}'`
9889 { echo "$as_me:$LINENO: result: $ac_res" >&5
9890 echo "${ECHO_T}$ac_res" >&6; }
9891 if test `eval echo '${'$as_ac_var'}'` = yes; then
9892 cat >>confdefs.h <<_ACEOF
9893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9900 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9901 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
9902 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9913 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9915 /* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char pcap_dump_ftell (); below.
9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918 <limits.h> exists even on freestanding compilers. */
9921 # include <limits.h>
9923 # include <assert.h>
9926 #undef pcap_dump_ftell
9928 /* Override any GCC internal prototype to avoid an error.
9929 Use char because int might match the return type of a GCC
9930 builtin and then its argument prototype would still apply. */
9934 char pcap_dump_ftell ();
9935 /* The GNU C library defines this for functions which it implements
9936 to always fail with ENOSYS. Some functions are actually named
9937 something starting with __ and the normal name is an alias. */
9938 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
9945 return pcap_dump_ftell ();
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } && {
9964 test -z "$ac_c_werror_flag" ||
9965 test ! -s conftest.err
9966 } && test -s conftest$ac_exeext &&
9967 $as_test_x conftest$ac_exeext; then
9968 ac_cv_func_pcap_dump_ftell=yes
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_cv_func_pcap_dump_ftell=no
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977 conftest$ac_exeext conftest.$ac_ext
9979 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9980 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
9981 if test $ac_cv_func_pcap_dump_ftell = yes; then
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_PCAP_DUMP_FTELL 1
9988 case " $LIBOBJS " in
9989 *" pcap_dump_ftell.$ac_objext "* ) ;;
9990 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
10000 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10001 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10003 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10004 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10005 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10006 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10007 # it does not ship with a libc symbol "inet_ntop()", it ships with
10008 # "_inet_ntop()", and has a #define macro in one of the system headers
10011 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10012 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10013 cat >conftest.$ac_ext <<_ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10019 #include <sys/types.h>
10020 #include <sys/socket.h>
10021 #include <netinet/in.h>
10022 #include <arpa/inet.h>
10026 char src[4], dst[128];
10027 inet_ntop(AF_INET, src, dst, sizeof(dst));
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (ac_try="$ac_link"
10034 case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_link") 2>conftest.er1
10041 grep -v '^ *+' conftest.er1 >conftest.err
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && {
10046 test -z "$ac_c_werror_flag" ||
10047 test ! -s conftest.err
10048 } && test -s conftest$ac_exeext &&
10049 $as_test_x conftest$ac_exeext; then
10050 { echo "$as_me:$LINENO: result: yes" >&5
10051 echo "${ECHO_T}yes" >&6; }
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 { echo "$as_me:$LINENO: result: no" >&5
10057 echo "${ECHO_T}no" >&6; }
10058 case " $LIBOBJS " in
10059 *" inet_ntop.$ac_objext "* ) ;;
10060 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10067 conftest$ac_exeext conftest.$ac_ext
10068 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10069 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10070 cat >conftest.$ac_ext <<_ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10076 #include <sys/types.h>
10077 #include <sys/socket.h>
10078 #include <netinet/in.h>
10079 #include <arpa/inet.h>
10083 char src[128], dst[4];
10084 inet_pton(AF_INET, src, dst);
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (ac_try="$ac_link"
10091 case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_link") 2>conftest.er1
10098 grep -v '^ *+' conftest.er1 >conftest.err
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } && {
10103 test -z "$ac_c_werror_flag" ||
10104 test ! -s conftest.err
10105 } && test -s conftest$ac_exeext &&
10106 $as_test_x conftest$ac_exeext; then
10107 { echo "$as_me:$LINENO: result: yes" >&5
10108 echo "${ECHO_T}yes" >&6; }
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 { echo "$as_me:$LINENO: result: no" >&5
10114 echo "${ECHO_T}no" >&6; }
10115 case " $LIBOBJS " in
10116 *" inet_pton.$ac_objext "* ) ;;
10117 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124 conftest$ac_exeext conftest.$ac_ext
10125 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10126 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 #include <sys/types.h>
10134 #include <netinet/in.h>
10135 #include <arpa/inet.h>
10140 struct in_addr dst;
10141 inet_aton(src, &dst);
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (ac_try="$ac_link"
10148 case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_link") 2>conftest.er1
10155 grep -v '^ *+' conftest.er1 >conftest.err
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } && {
10160 test -z "$ac_c_werror_flag" ||
10161 test ! -s conftest.err
10162 } && test -s conftest$ac_exeext &&
10163 $as_test_x conftest$ac_exeext; then
10164 { echo "$as_me:$LINENO: result: yes" >&5
10165 echo "${ECHO_T}yes" >&6; }
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 { echo "$as_me:$LINENO: result: no" >&5
10171 echo "${ECHO_T}no" >&6; }
10172 case " $LIBOBJS " in
10173 *" inet_aton.$ac_objext "* ) ;;
10174 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10181 conftest$ac_exeext conftest.$ac_ext
10184 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10186 # You are in a twisty little maze of UN*Xes, all different.
10187 # Some might not have ether_ntohost().
10188 # Some might have it, but not declare it in any header file.
10189 # Some might have it, but declare it in <netinet/if_ether.h>.
10190 # Some might have it, but declare it in <netinet/ether.h>
10191 # (And some might have it but document it as something declared in
10192 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10194 # Before you is a C compiler.
10197 for ac_func in ether_ntohost
10199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10213 #define $ac_func innocuous_$ac_func
10215 /* System header to define __stub macros and hopefully few prototypes,
10216 which can conflict with char $ac_func (); below.
10217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10218 <limits.h> exists even on freestanding compilers. */
10221 # include <limits.h>
10223 # include <assert.h>
10228 /* Override any GCC internal prototype to avoid an error.
10229 Use char because int might match the return type of a GCC
10230 builtin and then its argument prototype would still apply. */
10235 /* The GNU C library defines this for functions which it implements
10236 to always fail with ENOSYS. Some functions are actually named
10237 something starting with __ and the normal name is an alias. */
10238 #if defined __stub_$ac_func || defined __stub___$ac_func
10245 return $ac_func ();
10250 rm -f conftest.$ac_objext conftest$ac_exeext
10251 if { (ac_try="$ac_link"
10252 case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_link") 2>conftest.er1
10259 grep -v '^ *+' conftest.er1 >conftest.err
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && {
10264 test -z "$ac_c_werror_flag" ||
10265 test ! -s conftest.err
10266 } && test -s conftest$ac_exeext &&
10267 $as_test_x conftest$ac_exeext; then
10268 eval "$as_ac_var=yes"
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10273 eval "$as_ac_var=no"
10276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10277 conftest$ac_exeext conftest.$ac_ext
10279 ac_res=`eval echo '${'$as_ac_var'}'`
10280 { echo "$as_me:$LINENO: result: $ac_res" >&5
10281 echo "${ECHO_T}$ac_res" >&6; }
10282 if test `eval echo '${'$as_ac_var'}'` = yes; then
10283 cat >>confdefs.h <<_ACEOF
10284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10287 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10288 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10289 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 if test "$cross_compiling" = yes; then
10294 ac_cv_buggy_ether_ntohost="not while cross-compiling"
10296 cat >conftest.$ac_ext <<_ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10304 #include <sys/types.h>
10305 #include <sys/param.h>
10306 #include <sys/socket.h>
10309 main(int argc, char **argv)
10311 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10312 char name[MAXHOSTNAMELEN];
10314 ether_ntohost(name, (struct ether_addr *)ea);
10319 rm -f conftest$ac_exeext
10320 if { (ac_try="$ac_link"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_buggy_ether_ntohost=no
10341 echo "$as_me: program exited with status $ac_status" >&5
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ( exit $ac_status )
10346 ac_cv_buggy_ether_ntohost=yes
10348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10353 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10354 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10355 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10356 cat >>confdefs.h <<\_ACEOF
10357 #define USE_ETHER_NTOHOST 1
10365 if test "$ac_cv_func_ether_ntohost" = yes -a \
10366 "$ac_cv_buggy_ether_ntohost" = "no"; then
10368 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10370 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10372 # Yes. Does it declare ether_ntohost()?
10374 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10375 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10376 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10386 #include <sys/types.h>
10387 #include <sys/socket.h>
10388 #include <netinet/in.h>
10389 #include <arpa/inet.h>
10392 #include <net/if.h>
10393 #include <netinet/if_ether.h>
10399 #ifndef ether_ntohost
10400 (void) ether_ntohost;
10407 rm -f conftest.$ac_objext
10408 if { (ac_try="$ac_compile"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_compile") 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest.$ac_objext; then
10424 ac_cv_have_decl_ether_ntohost=yes
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_cv_have_decl_ether_ntohost=no
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10435 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10436 if test $ac_cv_have_decl_ether_ntohost = yes; then
10439 cat >>confdefs.h <<\_ACEOF
10440 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10448 # Did that succeed?
10450 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10452 # No, how about <netinet/ether.h>, as on Linux?
10455 for ac_header in netinet/ether.h
10457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 ac_res=`eval echo '${'$as_ac_Header'}'`
10465 { echo "$as_me:$LINENO: result: $ac_res" >&5
10466 echo "${ECHO_T}$ac_res" >&6; }
10468 # Is the header compilable?
10469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 $ac_includes_default
10478 #include <$ac_header>
10480 rm -f conftest.$ac_objext
10481 if { (ac_try="$ac_compile"
10482 case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_compile") 2>conftest.er1
10489 grep -v '^ *+' conftest.er1 >conftest.err
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest.$ac_objext; then
10497 ac_header_compiler=yes
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 ac_header_compiler=no
10505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10507 echo "${ECHO_T}$ac_header_compiler" >&6; }
10509 # Is the header present?
10510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10512 cat >conftest.$ac_ext <<_ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10518 #include <$ac_header>
10520 if { (ac_try="$ac_cpp conftest.$ac_ext"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10528 grep -v '^ *+' conftest.er1 >conftest.err
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } >/dev/null && {
10533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10536 ac_header_preproc=yes
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10541 ac_header_preproc=no
10544 rm -f conftest.err conftest.$ac_ext
10545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10546 echo "${ECHO_T}$ac_header_preproc" >&6; }
10548 # So? What about this header?
10549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10555 ac_header_preproc=yes
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 eval "$as_ac_Header=\$ac_header_preproc"
10580 ac_res=`eval echo '${'$as_ac_Header'}'`
10581 { echo "$as_me:$LINENO: result: $ac_res" >&5
10582 echo "${ECHO_T}$ac_res" >&6; }
10585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10586 cat >>confdefs.h <<_ACEOF
10587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10594 if test "$ac_cv_header_netinet_ether_h" = yes; then
10596 # We have it - does it declare ether_ntohost()?
10597 # Unset ac_cv_have_decl_ether_ntohost so we don't
10598 # treat the previous failure as a cached value and
10599 # suppress the next test.
10601 unset ac_cv_have_decl_ether_ntohost
10602 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10603 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10604 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10614 #include <netinet/ether.h>
10620 #ifndef ether_ntohost
10621 (void) ether_ntohost;
10628 rm -f conftest.$ac_objext
10629 if { (ac_try="$ac_compile"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_compile") 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } && {
10642 test -z "$ac_c_werror_flag" ||
10643 test ! -s conftest.err
10644 } && test -s conftest.$ac_objext; then
10645 ac_cv_have_decl_ether_ntohost=yes
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10650 ac_cv_have_decl_ether_ntohost=no
10653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10656 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10657 if test $ac_cv_have_decl_ether_ntohost = yes; then
10660 cat >>confdefs.h <<\_ACEOF
10661 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10670 # Is ether_ntohost() declared?
10672 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10674 # No, we'll have to declare it ourselves.
10675 # Do we have "struct ether_addr"?
10677 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10678 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10679 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10689 #include <sys/types.h>
10690 #include <sys/socket.h>
10691 #include <netinet/in.h>
10692 #include <arpa/inet.h>
10695 #include <net/if.h>
10696 #include <netinet/if_ether.h>
10699 typedef struct ether_addr ac__type_new_;
10703 if ((ac__type_new_ *) 0)
10705 if (sizeof (ac__type_new_))
10711 rm -f conftest.$ac_objext
10712 if { (ac_try="$ac_compile"
10713 case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_compile") 2>conftest.er1
10720 grep -v '^ *+' conftest.er1 >conftest.err
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest.$ac_objext; then
10728 ac_cv_type_struct_ether_addr=yes
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 ac_cv_type_struct_ether_addr=no
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10739 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
10740 if test $ac_cv_type_struct_ether_addr = yes; then
10742 cat >>confdefs.h <<_ACEOF
10743 #define HAVE_STRUCT_ETHER_ADDR 1
10750 cat >>confdefs.h <<\_ACEOF
10751 #define HAVE_DECL_ETHER_NTOHOST 0
10756 cat >>confdefs.h <<\_ACEOF
10757 #define HAVE_DECL_ETHER_NTOHOST 1
10763 # libdlpi is needed for Solaris 11 and later.
10764 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
10765 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
10766 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 ac_check_lib_save_LIBS=$LIBS
10770 LIBS="-ldlpi -L/lib $LIBS"
10771 cat >conftest.$ac_ext <<_ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10778 /* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10788 return dlpi_walk ();
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (ac_try="$ac_link"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_link") 2>conftest.er1
10802 grep -v '^ *+' conftest.er1 >conftest.err
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest$ac_exeext &&
10810 $as_test_x conftest$ac_exeext; then
10811 ac_cv_lib_dlpi_dlpi_walk=yes
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 ac_cv_lib_dlpi_dlpi_walk=no
10819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10820 conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
10824 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
10825 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
10826 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
10831 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10832 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
10833 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10843 # include <sys/types.h>
10844 # include <sys/socket.h>
10848 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
10855 case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_compile") 2>conftest.er1
10862 grep -v '^ *+' conftest.er1 >conftest.err
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } && {
10867 test -z "$ac_c_werror_flag" ||
10868 test ! -s conftest.err
10869 } && test -s conftest.$ac_objext; then
10870 ac_cv_sockaddr_has_sa_len=yes
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 ac_cv_sockaddr_has_sa_len=no
10878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10882 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
10883 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10884 cat >>confdefs.h <<\_ACEOF
10885 #define HAVE_SOCKADDR_SA_LEN 1
10890 if test "$ac_cv_sockaddr_has_sa_len" = no; then
10891 missing_includes=yes
10895 # Do we have the new open API? Check for pcap_create, and assume that,
10896 # if we do, we also have pcap_activate() and the other new routines.
10898 for ac_func in pcap_create
10900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 cat >conftest.$ac_ext <<_ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10914 #define $ac_func innocuous_$ac_func
10916 /* System header to define __stub macros and hopefully few prototypes,
10917 which can conflict with char $ac_func (); below.
10918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10919 <limits.h> exists even on freestanding compilers. */
10922 # include <limits.h>
10924 # include <assert.h>
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10936 /* The GNU C library defines this for functions which it implements
10937 to always fail with ENOSYS. Some functions are actually named
10938 something starting with __ and the normal name is an alias. */
10939 #if defined __stub_$ac_func || defined __stub___$ac_func
10946 return $ac_func ();
10951 rm -f conftest.$ac_objext conftest$ac_exeext
10952 if { (ac_try="$ac_link"
10953 case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_link") 2>conftest.er1
10960 grep -v '^ *+' conftest.er1 >conftest.err
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } && {
10965 test -z "$ac_c_werror_flag" ||
10966 test ! -s conftest.err
10967 } && test -s conftest$ac_exeext &&
10968 $as_test_x conftest$ac_exeext; then
10969 eval "$as_ac_var=yes"
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 eval "$as_ac_var=no"
10977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10978 conftest$ac_exeext conftest.$ac_ext
10980 ac_res=`eval echo '${'$as_ac_var'}'`
10981 { echo "$as_me:$LINENO: result: $ac_res" >&5
10982 echo "${ECHO_T}$ac_res" >&6; }
10983 if test `eval echo '${'$as_ac_var'}'` = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10995 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
10997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 cat >conftest.$ac_ext <<_ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11011 #define $ac_func innocuous_$ac_func
11013 /* System header to define __stub macros and hopefully few prototypes,
11014 which can conflict with char $ac_func (); below.
11015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11016 <limits.h> exists even on freestanding compilers. */
11019 # include <limits.h>
11021 # include <assert.h>
11026 /* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11033 /* The GNU C library defines this for functions which it implements
11034 to always fail with ENOSYS. Some functions are actually named
11035 something starting with __ and the normal name is an alias. */
11036 #if defined __stub_$ac_func || defined __stub___$ac_func
11043 return $ac_func ();
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (ac_try="$ac_link"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_link") 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext &&
11065 $as_test_x conftest$ac_exeext; then
11066 eval "$as_ac_var=yes"
11068 echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 eval "$as_ac_var=no"
11074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075 conftest$ac_exeext conftest.$ac_ext
11077 ac_res=`eval echo '${'$as_ac_var'}'`
11078 { echo "$as_me:$LINENO: result: $ac_res" >&5
11079 echo "${ECHO_T}$ac_res" >&6; }
11080 if test `eval echo '${'$as_ac_var'}'` = yes; then
11081 cat >>confdefs.h <<_ACEOF
11082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11088 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11089 savedppflags="$CPPLAGS"
11090 CPPFLAGS="$CPPFLAGS $V_INCLS"
11091 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11092 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11093 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11104 typedef pcap_if_t ac__type_new_;
11108 if ((ac__type_new_ *) 0)
11110 if (sizeof (ac__type_new_))
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest.$ac_objext; then
11133 ac_cv_type_pcap_if_t=yes
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 ac_cv_type_pcap_if_t=no
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11144 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11145 if test $ac_cv_type_pcap_if_t = yes; then
11147 cat >>confdefs.h <<_ACEOF
11148 #define HAVE_PCAP_IF_T 1
11154 CPPFLAGS="$savedcppflags"
11157 if test $ac_cv_func_pcap_lib_version = "no" ; then
11158 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11159 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11160 cat >conftest.$ac_ext <<_ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11171 extern char pcap_version[];
11173 return (int)pcap_version;
11179 rm -f conftest.$ac_objext conftest$ac_exeext
11180 if { (ac_try="$ac_link"
11181 case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_link") 2>conftest.er1
11188 grep -v '^ *+' conftest.er1 >conftest.err
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } && {
11193 test -z "$ac_c_werror_flag" ||
11194 test ! -s conftest.err
11195 } && test -s conftest$ac_exeext &&
11196 $as_test_x conftest$ac_exeext; then
11197 ac_lbl_cv_pcap_version_defined=yes
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_lbl_cv_pcap_version_defined=no
11205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11206 conftest$ac_exeext conftest.$ac_ext
11207 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11208 { echo "$as_me:$LINENO: result: yes" >&5
11209 echo "${ECHO_T}yes" >&6; }
11210 cat >>confdefs.h <<\_ACEOF
11211 #define HAVE_PCAP_VERSION 1
11215 { echo "$as_me:$LINENO: result: no" >&5
11216 echo "${ECHO_T}no" >&6; }
11219 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11220 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11232 extern int pcap_debug;
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (ac_try="$ac_link"
11242 case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_link") 2>conftest.er1
11249 grep -v '^ *+' conftest.er1 >conftest.err
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && {
11254 test -z "$ac_c_werror_flag" ||
11255 test ! -s conftest.err
11256 } && test -s conftest$ac_exeext &&
11257 $as_test_x conftest$ac_exeext; then
11258 ac_lbl_cv_pcap_debug_defined=yes
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11263 ac_lbl_cv_pcap_debug_defined=no
11266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11267 conftest$ac_exeext conftest.$ac_ext
11268 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11269 { echo "$as_me:$LINENO: result: yes" >&5
11270 echo "${ECHO_T}yes" >&6; }
11271 cat >>confdefs.h <<\_ACEOF
11272 #define HAVE_PCAP_DEBUG 1
11276 { echo "$as_me:$LINENO: result: no" >&5
11277 echo "${ECHO_T}no" >&6; }
11279 # OK, what about "yydebug"?
11281 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11282 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11283 cat >conftest.$ac_ext <<_ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11294 extern int yydebug;
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (ac_try="$ac_link"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_link") 2>conftest.er1
11311 grep -v '^ *+' conftest.er1 >conftest.err
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && {
11316 test -z "$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest$ac_exeext &&
11319 $as_test_x conftest$ac_exeext; then
11320 ac_lbl_cv_yydebug_defined=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_lbl_cv_yydebug_defined=no
11328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11329 conftest$ac_exeext conftest.$ac_ext
11330 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11331 { echo "$as_me:$LINENO: result: yes" >&5
11332 echo "${ECHO_T}yes" >&6; }
11333 cat >>confdefs.h <<\_ACEOF
11334 #define HAVE_YYDEBUG 1
11338 { echo "$as_me:$LINENO: result: no" >&5
11339 echo "${ECHO_T}no" >&6; }
11343 for ac_func in bpf_dump
11345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 cat >conftest.$ac_ext <<_ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11359 #define $ac_func innocuous_$ac_func
11361 /* System header to define __stub macros and hopefully few prototypes,
11362 which can conflict with char $ac_func (); below.
11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364 <limits.h> exists even on freestanding compilers. */
11367 # include <limits.h>
11369 # include <assert.h>
11374 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined __stub_$ac_func || defined __stub___$ac_func
11391 return $ac_func ();
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_link") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest$ac_exeext &&
11413 $as_test_x conftest$ac_exeext; then
11414 eval "$as_ac_var=yes"
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11419 eval "$as_ac_var=no"
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423 conftest$ac_exeext conftest.$ac_ext
11425 ac_res=`eval echo '${'$as_ac_var'}'`
11426 { echo "$as_me:$LINENO: result: $ac_res" >&5
11427 echo "${ECHO_T}$ac_res" >&6; }
11428 if test `eval echo '${'$as_ac_var'}'` = yes; then
11429 cat >>confdefs.h <<_ACEOF
11430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11434 case " $LIBOBJS " in
11435 *" $ac_func.$ac_objext "* ) ;;
11436 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11445 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11451 cat >>confdefs.h <<\_ACEOF
11470 if test -f /dev/bpf0 ; then
11475 # Check for some headers introduced in later versions of libpcap
11476 # and used by some printers.
11478 savedcppflags="$CPPFLAGS"
11479 CPPFLAGS="$CPPFLAGS $V_INCLS"
11481 for ac_header in pcap/bluetooth.h
11483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 ac_res=`eval echo '${'$as_ac_Header'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11494 # Is the header compilable?
11495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_includes_default
11504 #include <$ac_header>
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_compile") 2>conftest.er1
11515 grep -v '^ *+' conftest.er1 >conftest.err
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } && {
11520 test -z "$ac_c_werror_flag" ||
11521 test ! -s conftest.err
11522 } && test -s conftest.$ac_objext; then
11523 ac_header_compiler=yes
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ac_header_compiler=no
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11533 echo "${ECHO_T}$ac_header_compiler" >&6; }
11535 # Is the header present?
11536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11538 cat >conftest.$ac_ext <<_ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 #include <$ac_header>
11546 if { (ac_try="$ac_cpp conftest.$ac_ext"
11547 case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11554 grep -v '^ *+' conftest.er1 >conftest.err
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } >/dev/null && {
11559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11560 test ! -s conftest.err
11562 ac_header_preproc=yes
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11567 ac_header_preproc=no
11570 rm -f conftest.err conftest.$ac_ext
11571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11572 echo "${ECHO_T}$ac_header_preproc" >&6; }
11574 # So? What about this header?
11575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11581 ac_header_preproc=yes
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 eval "$as_ac_Header=\$ac_header_preproc"
11606 ac_res=`eval echo '${'$as_ac_Header'}'`
11607 { echo "$as_me:$LINENO: result: $ac_res" >&5
11608 echo "${ECHO_T}$ac_res" >&6; }
11611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11612 cat >>confdefs.h <<_ACEOF
11613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11620 CPPFLAGS="$savedcppflags"
11623 for ac_header in sys/bitypes.h
11625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 ac_res=`eval echo '${'$as_ac_Header'}'`
11633 { echo "$as_me:$LINENO: result: $ac_res" >&5
11634 echo "${ECHO_T}$ac_res" >&6; }
11636 # Is the header compilable?
11637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11639 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 $ac_includes_default
11646 #include <$ac_header>
11648 rm -f conftest.$ac_objext
11649 if { (ac_try="$ac_compile"
11650 case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_compile") 2>conftest.er1
11657 grep -v '^ *+' conftest.er1 >conftest.err
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } && {
11662 test -z "$ac_c_werror_flag" ||
11663 test ! -s conftest.err
11664 } && test -s conftest.$ac_objext; then
11665 ac_header_compiler=yes
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 ac_header_compiler=no
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11675 echo "${ECHO_T}$ac_header_compiler" >&6; }
11677 # Is the header present?
11678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 #include <$ac_header>
11688 if { (ac_try="$ac_cpp conftest.$ac_ext"
11689 case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11696 grep -v '^ *+' conftest.er1 >conftest.err
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } >/dev/null && {
11701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11702 test ! -s conftest.err
11704 ac_header_preproc=yes
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_header_preproc=no
11712 rm -f conftest.err conftest.$ac_ext
11713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11714 echo "${ECHO_T}$ac_header_preproc" >&6; }
11716 # So? What about this header?
11717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11723 ac_header_preproc=yes
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 eval "$as_ac_Header=\$ac_header_preproc"
11748 ac_res=`eval echo '${'$as_ac_Header'}'`
11749 { echo "$as_me:$LINENO: result: $ac_res" >&5
11750 echo "${ECHO_T}$ac_res" >&6; }
11753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11754 cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11763 { echo "$as_me:$LINENO: checking for int8_t" >&5
11764 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
11765 if test "${ac_cv_type_int8_t+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 cat >conftest.$ac_ext <<_ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 $ac_includes_default
11775 typedef int8_t ac__type_new_;
11779 if ((ac__type_new_ *) 0)
11781 if (sizeof (ac__type_new_))
11787 rm -f conftest.$ac_objext
11788 if { (ac_try="$ac_compile"
11789 case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_compile") 2>conftest.er1
11796 grep -v '^ *+' conftest.er1 >conftest.err
11798 cat conftest.err >&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } && {
11801 test -z "$ac_c_werror_flag" ||
11802 test ! -s conftest.err
11803 } && test -s conftest.$ac_objext; then
11804 ac_cv_type_int8_t=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_cv_type_int8_t=no
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11814 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11815 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
11816 if test $ac_cv_type_int8_t = yes; then
11820 cat >>confdefs.h <<\_ACEOF
11821 #define int8_t signed char
11826 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
11827 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
11828 if test "${ac_cv_type_u_int8_t+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 cat >conftest.$ac_ext <<_ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 $ac_includes_default
11838 #ifdef HAVE_SYS_BITYPES_H
11839 #include <sys/bitypes.h>
11842 typedef u_int8_t ac__type_new_;
11846 if ((ac__type_new_ *) 0)
11848 if (sizeof (ac__type_new_))
11854 rm -f conftest.$ac_objext
11855 if { (ac_try="$ac_compile"
11856 case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_compile") 2>conftest.er1
11863 grep -v '^ *+' conftest.er1 >conftest.err
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } && {
11868 test -z "$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 } && test -s conftest.$ac_objext; then
11871 ac_cv_type_u_int8_t=yes
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11876 ac_cv_type_u_int8_t=no
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11882 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
11883 if test $ac_cv_type_u_int8_t = yes; then
11887 cat >>confdefs.h <<\_ACEOF
11888 #define u_int8_t unsigned char
11893 { echo "$as_me:$LINENO: checking for int16_t" >&5
11894 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
11895 if test "${ac_cv_type_int16_t+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 cat >conftest.$ac_ext <<_ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 $ac_includes_default
11905 typedef int16_t ac__type_new_;
11909 if ((ac__type_new_ *) 0)
11911 if (sizeof (ac__type_new_))
11917 rm -f conftest.$ac_objext
11918 if { (ac_try="$ac_compile"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_cv_type_int16_t=yes
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_type_int16_t=no
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11945 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
11946 if test $ac_cv_type_int16_t = yes; then
11950 cat >>confdefs.h <<\_ACEOF
11951 #define int16_t short
11956 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
11957 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
11958 if test "${ac_cv_type_u_int16_t+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 cat >conftest.$ac_ext <<_ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 $ac_includes_default
11968 #ifdef HAVE_SYS_BITYPES_H
11969 #include <sys/bitypes.h>
11972 typedef u_int16_t ac__type_new_;
11976 if ((ac__type_new_ *) 0)
11978 if (sizeof (ac__type_new_))
11984 rm -f conftest.$ac_objext
11985 if { (ac_try="$ac_compile"
11986 case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_compile") 2>conftest.er1
11993 grep -v '^ *+' conftest.er1 >conftest.err
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } && {
11998 test -z "$ac_c_werror_flag" ||
11999 test ! -s conftest.err
12000 } && test -s conftest.$ac_objext; then
12001 ac_cv_type_u_int16_t=yes
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 ac_cv_type_u_int16_t=no
12009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12012 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12013 if test $ac_cv_type_u_int16_t = yes; then
12017 cat >>confdefs.h <<\_ACEOF
12018 #define u_int16_t unsigned short
12023 { echo "$as_me:$LINENO: checking for int32_t" >&5
12024 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12025 if test "${ac_cv_type_int32_t+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 cat >conftest.$ac_ext <<_ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 $ac_includes_default
12035 typedef int32_t ac__type_new_;
12039 if ((ac__type_new_ *) 0)
12041 if (sizeof (ac__type_new_))
12047 rm -f conftest.$ac_objext
12048 if { (ac_try="$ac_compile"
12049 case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054 (eval "$ac_compile") 2>conftest.er1
12056 grep -v '^ *+' conftest.er1 >conftest.err
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } && {
12061 test -z "$ac_c_werror_flag" ||
12062 test ! -s conftest.err
12063 } && test -s conftest.$ac_objext; then
12064 ac_cv_type_int32_t=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_cv_type_int32_t=no
12072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12075 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12076 if test $ac_cv_type_int32_t = yes; then
12080 cat >>confdefs.h <<\_ACEOF
12081 #define int32_t int
12086 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12087 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12088 if test "${ac_cv_type_u_int32_t+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 cat >conftest.$ac_ext <<_ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 $ac_includes_default
12098 #ifdef HAVE_SYS_BITYPES_H
12099 #include <sys/bitypes.h>
12102 typedef u_int32_t ac__type_new_;
12106 if ((ac__type_new_ *) 0)
12108 if (sizeof (ac__type_new_))
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12123 grep -v '^ *+' conftest.er1 >conftest.err
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
12131 ac_cv_type_u_int32_t=yes
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 ac_cv_type_u_int32_t=no
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12142 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12143 if test $ac_cv_type_u_int32_t = yes; then
12147 cat >>confdefs.h <<\_ACEOF
12148 #define u_int32_t unsigned int
12153 { echo "$as_me:$LINENO: checking for int64_t" >&5
12154 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12155 if test "${ac_cv_type_int64_t+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 cat >conftest.$ac_ext <<_ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164 $ac_includes_default
12165 typedef int64_t ac__type_new_;
12169 if ((ac__type_new_ *) 0)
12171 if (sizeof (ac__type_new_))
12177 rm -f conftest.$ac_objext
12178 if { (ac_try="$ac_compile"
12179 case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_compile") 2>conftest.er1
12186 grep -v '^ *+' conftest.er1 >conftest.err
12188 cat conftest.err >&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } && {
12191 test -z "$ac_c_werror_flag" ||
12192 test ! -s conftest.err
12193 } && test -s conftest.$ac_objext; then
12194 ac_cv_type_int64_t=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_cv_type_int64_t=no
12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12205 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12206 if test $ac_cv_type_int64_t = yes; then
12210 cat >>confdefs.h <<\_ACEOF
12211 #define int64_t long long
12216 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12217 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12218 if test "${ac_cv_type_u_int64_t+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227 $ac_includes_default
12228 #ifdef HAVE_SYS_BITYPES_H
12229 #include <sys/bitypes.h>
12232 typedef u_int64_t ac__type_new_;
12236 if ((ac__type_new_ *) 0)
12238 if (sizeof (ac__type_new_))
12244 rm -f conftest.$ac_objext
12245 if { (ac_try="$ac_compile"
12246 case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_compile") 2>conftest.er1
12253 grep -v '^ *+' conftest.er1 >conftest.err
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } && {
12258 test -z "$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 } && test -s conftest.$ac_objext; then
12261 ac_cv_type_u_int64_t=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_cv_type_u_int64_t=no
12269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12272 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12273 if test $ac_cv_type_u_int64_t = yes; then
12277 cat >>confdefs.h <<\_ACEOF
12278 #define u_int64_t unsigned long long
12285 # We can't just check for <inttypes.h> - some systems have one that
12286 # doesn't define all the PRI[doxu]64 macros.
12289 for ac_header in inttypes.h
12291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 ac_res=`eval echo '${'$as_ac_Header'}'`
12299 { echo "$as_me:$LINENO: result: $ac_res" >&5
12300 echo "${ECHO_T}$ac_res" >&6; }
12302 # Is the header compilable?
12303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12305 cat >conftest.$ac_ext <<_ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 $ac_includes_default
12312 #include <$ac_header>
12314 rm -f conftest.$ac_objext
12315 if { (ac_try="$ac_compile"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_compile") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest.$ac_objext; then
12331 ac_header_compiler=yes
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_header_compiler=no
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12341 echo "${ECHO_T}$ac_header_compiler" >&6; }
12343 # Is the header present?
12344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include <$ac_header>
12354 if { (ac_try="$ac_cpp conftest.$ac_ext"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12362 grep -v '^ *+' conftest.er1 >conftest.err
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } >/dev/null && {
12367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12370 ac_header_preproc=yes
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ac_header_preproc=no
12378 rm -f conftest.err conftest.$ac_ext
12379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12380 echo "${ECHO_T}$ac_header_preproc" >&6; }
12382 # So? What about this header?
12383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12389 ac_header_preproc=yes
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 eval "$as_ac_Header=\$ac_header_preproc"
12414 ac_res=`eval echo '${'$as_ac_Header'}'`
12415 { echo "$as_me:$LINENO: result: $ac_res" >&5
12416 echo "${ECHO_T}$ac_res" >&6; }
12419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12420 cat >>confdefs.h <<_ACEOF
12421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12425 # OK, we have inttypes.h, but does it define those macros?
12427 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12428 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12429 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12437 #include <inttypes.h>
12439 #include <sys/types.h>
12440 #ifdef HAVE_SYS_BITYPES_H
12441 #include <sys/bitypes.h>
12446 printf("%" PRId64 "\n", (u_int64_t)1);
12447 printf("%" PRIo64 "\n", (u_int64_t)1);
12448 printf("%" PRIx64 "\n", (u_int64_t)1);
12449 printf("%" PRIu64 "\n", (u_int64_t)1);
12454 rm -f conftest.$ac_objext
12455 if { (ac_try="$ac_compile"
12456 case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_compile") 2>conftest.er1
12463 grep -v '^ *+' conftest.er1 >conftest.err
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } && {
12468 test -z "$ac_c_werror_flag" ||
12469 test ! -s conftest.err
12470 } && test -s conftest.$ac_objext; then
12472 { echo "$as_me:$LINENO: result: yes" >&5
12473 echo "${ECHO_T}yes" >&6; }
12474 ac_lbl_inttypes_h_defines_formats=yes
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12481 { echo "$as_me:$LINENO: result: no" >&5
12482 echo "${ECHO_T}no" >&6; }
12483 ac_lbl_inttypes_h_defines_formats=no
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 # We don't have inttypes.h, so it obviously can't define those
12495 ac_lbl_inttypes_h_defines_formats=no
12501 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12503 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12504 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12505 if test "$cross_compiling" = yes; then
12506 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12507 See \`config.log' for more details." >&5
12508 echo "$as_me: error: cannot run test program while cross compiling
12509 See \`config.log' for more details." >&2;}
12510 { (exit 1); exit 1; }; }
12512 cat >conftest.$ac_ext <<_ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12520 # ifdef HAVE_INTTYPES_H
12521 #include <inttypes.h>
12523 # ifdef HAVE_SYS_BITYPES_H
12524 #include <sys/bitypes.h>
12527 #include <sys/types.h>
12533 sprintf(strbuf, "%016lx", t << 32);
12534 if (strcmp(strbuf, "0000000100000000") == 0)
12542 rm -f conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12563 cat >>confdefs.h <<\_ACEOF
12564 #define PRId64 "ld"
12567 cat >>confdefs.h <<\_ACEOF
12568 #define PRIo64 "lo"
12571 cat >>confdefs.h <<\_ACEOF
12572 #define PRIx64 "lx"
12575 cat >>confdefs.h <<\_ACEOF
12576 #define PRIu64 "lu"
12579 { echo "$as_me:$LINENO: result: yes" >&5
12580 echo "${ECHO_T}yes" >&6; }
12583 echo "$as_me: program exited with status $ac_status" >&5
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12587 ( exit $ac_status )
12589 { echo "$as_me:$LINENO: result: no" >&5
12590 echo "${ECHO_T}no" >&6; }
12593 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12594 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
12595 if test "$cross_compiling" = yes; then
12596 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12597 See \`config.log' for more details." >&5
12598 echo "$as_me: error: cannot run test program while cross compiling
12599 See \`config.log' for more details." >&2;}
12600 { (exit 1); exit 1; }; }
12602 cat >conftest.$ac_ext <<_ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12610 # ifdef HAVE_INTTYPES_H
12611 #include <inttypes.h>
12613 # ifdef HAVE_SYS_BITYPES_H
12614 #include <sys/bitypes.h>
12617 #include <sys/types.h>
12623 sprintf(strbuf, "%016llx", t << 32);
12624 if (strcmp(strbuf, "0000000100000000") == 0)
12632 rm -f conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_link") 2>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12653 cat >>confdefs.h <<\_ACEOF
12654 #define PRId64 "lld"
12657 cat >>confdefs.h <<\_ACEOF
12658 #define PRIo64 "llo"
12661 cat >>confdefs.h <<\_ACEOF
12662 #define PRIx64 "llx"
12665 cat >>confdefs.h <<\_ACEOF
12666 #define PRIu64 "llu"
12669 { echo "$as_me:$LINENO: result: yes" >&5
12670 echo "${ECHO_T}yes" >&6; }
12673 echo "$as_me: program exited with status $ac_status" >&5
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12677 ( exit $ac_status )
12679 { echo "$as_me:$LINENO: result: no" >&5
12680 echo "${ECHO_T}no" >&6; }
12683 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12684 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12685 if test "$cross_compiling" = yes; then
12686 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12687 See \`config.log' for more details." >&5
12688 echo "$as_me: error: cannot run test program while cross compiling
12689 See \`config.log' for more details." >&2;}
12690 { (exit 1); exit 1; }; }
12692 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12700 # ifdef HAVE_INTTYPES_H
12701 #include <inttypes.h>
12703 # ifdef HAVE_SYS_BITYPES_H
12704 #include <sys/bitypes.h>
12707 #include <sys/types.h>
12713 sprintf(strbuf, "%016Lx", t << 32);
12714 if (strcmp(strbuf, "0000000100000000") == 0)
12722 rm -f conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12733 { (case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_try") 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12743 cat >>confdefs.h <<\_ACEOF
12744 #define PRId64 "Ld"
12747 cat >>confdefs.h <<\_ACEOF
12748 #define PRIo64 "Lo"
12751 cat >>confdefs.h <<\_ACEOF
12752 #define PRIx64 "Lx"
12755 cat >>confdefs.h <<\_ACEOF
12756 #define PRIu64 "Lu"
12759 { echo "$as_me:$LINENO: result: yes" >&5
12760 echo "${ECHO_T}yes" >&6; }
12763 echo "$as_me: program exited with status $ac_status" >&5
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 ( exit $ac_status )
12769 { echo "$as_me:$LINENO: result: no" >&5
12770 echo "${ECHO_T}no" >&6; }
12773 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12774 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
12775 if test "$cross_compiling" = yes; then
12776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12777 See \`config.log' for more details." >&5
12778 echo "$as_me: error: cannot run test program while cross compiling
12779 See \`config.log' for more details." >&2;}
12780 { (exit 1); exit 1; }; }
12782 cat >conftest.$ac_ext <<_ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12790 # ifdef HAVE_INTTYPES_H
12791 #include <inttypes.h>
12793 # ifdef HAVE_SYS_BITYPES_H
12794 #include <sys/bitypes.h>
12797 #include <sys/types.h>
12803 sprintf(strbuf, "%016qx", t << 32);
12804 if (strcmp(strbuf, "0000000100000000") == 0)
12812 rm -f conftest$ac_exeext
12813 if { (ac_try="$ac_link"
12814 case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_link") 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12823 { (case "(($ac_try" in
12824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825 *) ac_try_echo=$ac_try;;
12827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828 (eval "$ac_try") 2>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12833 cat >>confdefs.h <<\_ACEOF
12834 #define PRId64 "qd"
12837 cat >>confdefs.h <<\_ACEOF
12838 #define PRIo64 "qo"
12841 cat >>confdefs.h <<\_ACEOF
12842 #define PRIx64 "qx"
12845 cat >>confdefs.h <<\_ACEOF
12846 #define PRIu64 "qu"
12849 { echo "$as_me:$LINENO: result: yes" >&5
12850 echo "${ECHO_T}yes" >&6; }
12853 echo "$as_me: program exited with status $ac_status" >&5
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ( exit $ac_status )
12859 { echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6; }
12862 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12863 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12864 { (exit 1); exit 1; }; }
12868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12899 if test -n "$ac_tool_prefix"; then
12900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12904 if test "${ac_cv_prog_RANLIB+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 if test -n "$RANLIB"; then
12908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911 for as_dir in $PATH
12914 test -z "$as_dir" && as_dir=.
12915 for ac_exec_ext in '' $ac_executable_extensions; do
12916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12927 RANLIB=$ac_cv_prog_RANLIB
12928 if test -n "$RANLIB"; then
12929 { echo "$as_me:$LINENO: result: $RANLIB" >&5
12930 echo "${ECHO_T}$RANLIB" >&6; }
12932 { echo "$as_me:$LINENO: result: no" >&5
12933 echo "${ECHO_T}no" >&6; }
12938 if test -z "$ac_cv_prog_RANLIB"; then
12939 ac_ct_RANLIB=$RANLIB
12940 # Extract the first word of "ranlib", so it can be a program name with args.
12941 set dummy ranlib; ac_word=$2
12942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 if test -n "$ac_ct_RANLIB"; then
12948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12954 test -z "$as_dir" && as_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
12956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12957 ac_cv_prog_ac_ct_RANLIB="ranlib"
12958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12968 if test -n "$ac_ct_RANLIB"; then
12969 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12970 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
12972 { echo "$as_me:$LINENO: result: no" >&5
12973 echo "${ECHO_T}no" >&6; }
12976 if test "x$ac_ct_RANLIB" = x; then
12979 case $cross_compiling:$ac_tool_warned in
12981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12982 whose name does not start with the host triplet. If you think this
12983 configuration is useful to you, please write to autoconf@gnu.org." >&5
12984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12985 whose name does not start with the host triplet. If you think this
12986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12987 ac_tool_warned=yes ;;
12989 RANLIB=$ac_ct_RANLIB
12992 RANLIB="$ac_cv_prog_RANLIB"
12997 if test "${LBL_CFLAGS+set}" = set; then
12998 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13000 if test -f .devel ; then
13001 if test "$GCC" = yes ; then
13002 if test "${LBL_CFLAGS+set}" != set; then
13003 if test "$ac_cv_prog_cc_g" = yes ; then
13004 V_CCOPT="-g $V_CCOPT"
13006 V_CCOPT="$V_CCOPT -Wall"
13007 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13008 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13015 V_CCOPT="$V_CCOPT -n32"
13022 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13023 name="lbl/os-$os.h"
13024 if test -f $name ; then
13025 ln -s $name os-proto.h
13026 cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_OS_PROTO_H 1
13031 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
13032 echo "$as_me: WARNING: can't find $name" >&2;}
13036 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
13037 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
13038 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13041 cat >conftest.$ac_ext <<_ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13048 # include <sys/types.h>
13049 # include <sys/socket.h>
13053 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13058 rm -f conftest.$ac_objext
13059 if { (ac_try="$ac_compile"
13060 case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_compile") 2>conftest.er1
13067 grep -v '^ *+' conftest.er1 >conftest.err
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } && {
13072 test -z "$ac_c_werror_flag" ||
13073 test ! -s conftest.err
13074 } && test -s conftest.$ac_objext; then
13075 ac_cv_lbl_sockaddr_has_sa_len=yes
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 ac_cv_lbl_sockaddr_has_sa_len=no
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13087 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13088 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13089 cat >>confdefs.h <<\_ACEOF
13090 #define HAVE_SOCKADDR_SA_LEN 1
13095 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
13096 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
13097 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 case "$host_cpu" in
13103 # These are CPU types where:
13105 # the CPU faults on an unaligned access, but at least some
13106 # OSes that support that CPU catch the fault and simulate
13107 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13108 # the simulation is slow, so we don't want to use it;
13110 # the CPU, I infer (from the old
13112 # XXX: should also check that they don't do weird things (like on arm)
13114 # comment) doesn't fault on unaligned accesses, but doesn't
13115 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13117 # for whatever reason, the test program doesn't work
13118 # (this has been claimed to be the case for several of those
13119 # CPUs - I don't know what the problem is; the problem
13120 # was reported as "the test program dumps core" for SuperH,
13121 # but that's what the test program is *supposed* to do -
13122 # it dumps core before it writes anything, so the test
13123 # for an empty output file should find an empty output
13124 # file and conclude that unaligned accesses don't work).
13126 # This run-time test won't work if you're cross-compiling, so
13127 # in order to support cross-compiling for a particular CPU,
13128 # we have to wire in the list of CPU types anyway, as far as
13129 # I know, so perhaps we should just have a set of CPUs on
13130 # which we know it doesn't work, a set of CPUs on which we
13131 # know it does work, and have the script just fail on other
13132 # cpu types and update it when such a failure occurs.
13134 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13135 ac_cv_lbl_unaligned_fail=yes
13139 cat >conftest.c <<EOF
13140 # include <sys/types.h>
13141 # include <sys/wait.h>
13142 # include <stdio.h>
13143 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13148 /* avoid "core dumped" message */
13154 pid = waitpid(pid, &status, 0);
13157 exit(!WIFEXITED(status));
13160 i = *(unsigned int *)&a[1];
13165 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13166 conftest.c $LIBS >/dev/null 2>&1
13167 if test ! -x conftest ; then
13168 ac_cv_lbl_unaligned_fail=yes
13170 ./conftest >conftest.out
13171 if test ! -s conftest.out ; then
13172 ac_cv_lbl_unaligned_fail=yes
13174 ac_cv_lbl_unaligned_fail=no
13177 rm -f conftest* core core.conftest
13182 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13183 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13184 if test $ac_cv_lbl_unaligned_fail = yes ; then
13185 cat >>confdefs.h <<\_ACEOF
13186 #define LBL_ALIGN 1
13192 { echo "$as_me:$LINENO: checking for h_errno" >&5
13193 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
13194 if test "${ac_cv_var_h_errno+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 cat >conftest.$ac_ext <<_ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13204 # include <sys/types.h>
13205 # include <netdb.h>
13214 rm -f conftest.$ac_objext
13215 if { (ac_try="$ac_compile"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_compile") 2>conftest.er1
13223 grep -v '^ *+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } && {
13228 test -z "$ac_c_werror_flag" ||
13229 test ! -s conftest.err
13230 } && test -s conftest.$ac_objext; then
13231 ac_cv_var_h_errno=yes
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ac_cv_var_h_errno=no
13239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13243 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13244 if test "$ac_cv_var_h_errno" = "yes"; then
13245 cat >>confdefs.h <<\_ACEOF
13246 #define HAVE_H_ERRNO 1
13253 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13254 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
13255 # Specify location for both includes and libraries.
13256 want_libcrypto=youmama
13258 # Check whether --with-crypto was given.
13259 if test "${with_crypto+set}" = set; then
13260 withval=$with_crypto;
13261 if test $withval = no
13264 { echo "$as_me:$LINENO: result: no" >&5
13265 echo "${ECHO_T}no" >&6; }
13266 elif test $withval = yes
13269 { echo "$as_me:$LINENO: result: yes" >&5
13270 echo "${ECHO_T}yes" >&6; }
13273 { echo "$as_me:$LINENO: result: yes" >&5
13274 echo "${ECHO_T}yes" >&6; }
13275 crypto_dir=$withval
13281 # Use libcrypto if it's present, otherwise don't.
13283 want_libcrypto=ifavailable
13284 { echo "$as_me:$LINENO: result: yes, if available" >&5
13285 echo "${ECHO_T}yes, if available" >&6; }
13289 if test "$want_libcrypto" != "no"; then
13290 ac_cv_ssleay_path=no
13292 if test "x$crypto_dir" = x; then
13294 # Location not specified; check the default locations.
13296 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13297 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
13298 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13299 if test "x${host_alias}" != x; then
13300 dirs="/usr/${host_alias} $dirs"
13302 for dir in $dirs; do
13305 # XXX - is there a better way to check if a given library is
13306 # in a given directory than checking each of the possible
13307 # shared library suffixes?
13309 # Are there any other suffixes we need to look for? Do we
13310 # have to worry about ".so.{version}"?
13312 # Or should we just look for "libcrypto.*"?
13314 if test -d "$dir/lib" -a \( -f "$dir/lib/libcrypto.a" -o \
13315 -f "$dir/lib/libcrypto.so" -o \
13316 -f "$dir/lib/libcrypto.sl" -o \
13317 -f "$dir/lib/libcrypto.dylib" \); then
13318 ac_cv_ssleay_path="$dir"
13322 # Make sure we have the headers as well.
13324 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13325 incdir="-I$dir/include"
13329 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13332 ac_cv_ssleay_path=no
13336 if test "$ac_cv_ssleay_path" != no; then
13337 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13338 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13341 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13342 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
13345 # XXX - is there a better way to check if a given library is
13346 # in a given directory than checking each of the possible
13347 # shared library suffixes?
13349 # Are there any other suffixes we need to look for? Do we
13350 # have to worry about ".so.{version}"?
13352 # Or should we just look for "libcrypto.*"?
13354 if test -d "$crypto_dir/lib" -a \( -f "$crypto_dir/lib/libcrypto.a" -o \
13355 -f "$crypto_dir/lib/libcrypto.so" -o \
13356 -f "$crypto_dir/lib/libcrypto.sl" -o \
13357 -f "$crypto_dir/lib/libcrypto.dylib" \); then
13358 ac_cv_ssleay_path="$crypto_dir"
13362 # Make sure we have the headers as well.
13364 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13365 incdir="-I$crypto_dir/include"
13368 if test "$ac_cv_ssleay_path" != no; then
13369 { echo "$as_me:$LINENO: result: found" >&5
13370 echo "${ECHO_T}found" >&6; }
13373 if test "$ac_cv_ssleay_path" != no; then
13374 V_INCLS="$V_INCLS $incdir"
13375 LDFLAGS="-L$dir/lib $LDFLAGS"
13376 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13377 LIBS="$LIBS -lRSAglue"
13379 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13380 LIBS="$LIBS -lrsaref"
13383 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13384 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
13385 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 ac_check_lib_save_LIBS=$LIBS
13389 LIBS="-lcrypto $LIBS"
13390 cat >conftest.$ac_ext <<_ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13397 /* Override any GCC internal prototype to avoid an error.
13398 Use char because int might match the return type of a GCC
13399 builtin and then its argument prototype would still apply. */
13403 char DES_cbc_encrypt ();
13407 return DES_cbc_encrypt ();
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } && {
13426 test -z "$ac_c_werror_flag" ||
13427 test ! -s conftest.err
13428 } && test -s conftest$ac_exeext &&
13429 $as_test_x conftest$ac_exeext; then
13430 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13432 echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13435 ac_cv_lib_crypto_DES_cbc_encrypt=no
13438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13439 conftest$ac_exeext conftest.$ac_ext
13440 LIBS=$ac_check_lib_save_LIBS
13442 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13443 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13444 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13445 cat >>confdefs.h <<_ACEOF
13446 #define HAVE_LIBCRYPTO 1
13449 LIBS="-lcrypto $LIBS"
13454 CPPFLAGS="$CPPFLAGS $V_INCLS"
13456 for ac_header in openssl/evp.h
13458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 ac_res=`eval echo '${'$as_ac_Header'}'`
13466 { echo "$as_me:$LINENO: result: $ac_res" >&5
13467 echo "${ECHO_T}$ac_res" >&6; }
13469 # Is the header compilable?
13470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13472 cat >conftest.$ac_ext <<_ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 $ac_includes_default
13479 #include <$ac_header>
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
13490 grep -v '^ *+' conftest.er1 >conftest.err
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
13498 ac_header_compiler=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_compiler=no
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13508 echo "${ECHO_T}$ac_header_compiler" >&6; }
13510 # Is the header present?
13511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13513 cat >conftest.$ac_ext <<_ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 #include <$ac_header>
13521 if { (ac_try="$ac_cpp conftest.$ac_ext"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13529 grep -v '^ *+' conftest.er1 >conftest.err
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } >/dev/null && {
13534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13535 test ! -s conftest.err
13537 ac_header_preproc=yes
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_header_preproc=no
13545 rm -f conftest.err conftest.$ac_ext
13546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6; }
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc=yes
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 eval "$as_ac_Header=\$ac_header_preproc"
13581 ac_res=`eval echo '${'$as_ac_Header'}'`
13582 { echo "$as_me:$LINENO: result: $ac_res" >&5
13583 echo "${ECHO_T}$ac_res" >&6; }
13586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13587 cat >>confdefs.h <<_ACEOF
13588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13597 # Not found. Did the user explicitly ask for it?
13599 { echo "$as_me:$LINENO: result: not found" >&5
13600 echo "${ECHO_T}not found" >&6; }
13601 if test "$want_libcrypto" = yes; then
13602 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
13603 echo "$as_me: error: SSLeay not found" >&2;}
13604 { (exit 1); exit 1; }; }
13609 if test "$missing_includes" = "yes"; then
13610 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
13611 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
13621 # Find a good install program. We prefer a C program (faster),
13622 # so one script is as good as another. But avoid the broken or
13623 # incompatible versions:
13624 # SysV /etc/install, /usr/sbin/install
13625 # SunOS /usr/etc/install
13626 # IRIX /sbin/install
13628 # AmigaOS /C/install, which installs bootblocks on floppy discs
13629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13632 # OS/2's system install, which has a completely different semantic
13633 # ./install, which can be erroneously created by make from ./install.sh.
13634 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13635 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
13636 if test -z "$INSTALL"; then
13637 if test "${ac_cv_path_install+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in $PATH
13644 test -z "$as_dir" && as_dir=.
13645 # Account for people who put trailing slashes in PATH elements.
13647 ./ | .// | /cC/* | \
13648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13649 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13652 # OSF1 and SCO ODT 3.0 have their own names for install.
13653 # Don't use installbsd from OSF since it installs stuff as root
13655 for ac_prog in ginstall scoinst install; do
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13658 if test $ac_prog = install &&
13659 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13660 # AIX install. It has an incompatible calling convention.
13662 elif test $ac_prog = install &&
13663 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13664 # program-specific install script used by HP pwplus--don't use.
13667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13680 if test "${ac_cv_path_install+set}" = set; then
13681 INSTALL=$ac_cv_path_install
13683 # As a last resort, use the slow shell script. Don't cache a
13684 # value for INSTALL within a source directory, because that will
13685 # break other packages using the cache if that directory is
13686 # removed, or if the value is a relative name.
13687 INSTALL=$ac_install_sh
13690 { echo "$as_me:$LINENO: result: $INSTALL" >&5
13691 echo "${ECHO_T}$INSTALL" >&6; }
13693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13694 # It thinks the first close brace ends the variable substitution.
13695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13702 ac_config_headers="$ac_config_headers config.h"
13705 ac_config_commands="$ac_config_commands default-1"
13707 ac_config_files="$ac_config_files Makefile"
13709 cat >confcache <<\_ACEOF
13710 # This file is a shell script that caches the results of configure
13711 # tests run on this system so they can be shared between configure
13712 # scripts and configure runs, see configure's option --config-cache.
13713 # It is not useful on other systems. If it contains results you don't
13714 # want to keep, you may remove or edit it.
13716 # config.status only pays attention to the cache file if you give it
13717 # the --recheck option to rerun configure.
13719 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13720 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13721 # following values.
13725 # The following way of writing the cache mishandles newlines in values,
13726 # but we know of no workaround that is simple, portable, and efficient.
13727 # So, we kill variables containing newlines.
13728 # Ultrix sh set writes to stderr and can't be redirected directly,
13729 # and sets the high bit in the cache file unless we assign to the vars.
13731 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13732 eval ac_val=\$$ac_var
13736 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13737 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13740 _ | IFS | as_nl) ;; #(
13741 *) $as_unset $ac_var ;;
13747 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13748 *${as_nl}ac_space=\ *)
13749 # `set' does not quote correctly, so add quotes (double-quote
13750 # substitution turns \\\\ into \\, and sed turns \\ into \).
13753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13756 # `set' quotes correctly as required by POSIX, so do not add quotes.
13757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13768 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13770 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13771 if test -w "$cache_file"; then
13772 test "x$cache_file" != "x/dev/null" &&
13773 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13774 echo "$as_me: updating cache $cache_file" >&6;}
13775 cat confcache >$cache_file
13777 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13778 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13783 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13784 # Let make expand exec_prefix.
13785 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13787 DEFS=-DHAVE_CONFIG_H
13791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13792 # 1. Remove the extension, and $U if already installed.
13793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13794 ac_i=`echo "$ac_i" | sed "$ac_script"`
13795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13796 # will be set to the directory where LIBOBJS objects are built.
13797 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13798 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13800 LIBOBJS=$ac_libobjs
13802 LTLIBOBJS=$ac_ltlibobjs
13806 : ${CONFIG_STATUS=./config.status}
13807 ac_clean_files_save=$ac_clean_files
13808 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13809 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13810 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13811 cat >$CONFIG_STATUS <<_ACEOF
13813 # Generated by $as_me.
13814 # Run this file to recreate the current configuration.
13815 # Compiler output produced by configure, useful for debugging
13816 # configure, is in config.log if it exists.
13819 ac_cs_recheck=false
13821 SHELL=\${CONFIG_SHELL-$SHELL}
13824 cat >>$CONFIG_STATUS <<\_ACEOF
13825 ## --------------------- ##
13826 ## M4sh Initialization. ##
13827 ## --------------------- ##
13829 # Be more Bourne compatible
13830 DUALCASE=1; export DUALCASE # for MKS sh
13831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13834 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13835 # is contrary to our usage. Disable this feature.
13836 alias -g '${1+"$@"}'='"$@"'
13837 setopt NO_GLOB_SUBST
13839 case `(set -o) 2>/dev/null` in
13840 *posix*) set -o posix ;;
13849 # Avoid depending upon Character Ranges.
13850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13853 as_cr_digits='0123456789'
13854 as_cr_alnum=$as_cr_Letters$as_cr_digits
13856 # The user is always right.
13857 if test "${PATH_SEPARATOR+set}" != set; then
13858 echo "#! /bin/sh" >conf$$.sh
13859 echo "exit 0" >>conf$$.sh
13861 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13869 # Support unset when possible.
13870 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13878 # We need space, tab and new line, in precisely that order. Quoting is
13879 # there to prevent editors from complaining about space-tab.
13880 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13881 # splitting by setting IFS to empty value.)
13886 # Find who we are. Look in the path if we contain no directory separator.
13888 *[\\/]* ) as_myself=$0 ;;
13889 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890 for as_dir in $PATH
13893 test -z "$as_dir" && as_dir=.
13894 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13900 # We did not find ourselves, most probably we were run as `sh COMMAND'
13901 # in which case we are not to be found in the path.
13902 if test "x$as_myself" = x; then
13905 if test ! -f "$as_myself"; then
13906 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13907 { (exit 1); exit 1; }
13910 # Work around bugs in pre-3.0 UWIN ksh.
13911 for as_var in ENV MAIL MAILPATH
13912 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13920 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13921 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13922 LC_TELEPHONE LC_TIME
13924 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13925 eval $as_var=C; export $as_var
13927 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13931 # Required to use basename.
13932 if expr a : '\(a\)' >/dev/null 2>&1 &&
13933 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13939 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13940 as_basename=basename
13946 # Name of the executable.
13947 as_me=`$as_basename -- "$0" ||
13948 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13949 X"$0" : 'X\(//\)$' \| \
13950 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13952 sed '/^.*\/\([^/][^/]*\)\/*$/{
13971 as_lineno_1=$LINENO
13972 as_lineno_2=$LINENO
13973 test "x$as_lineno_1" != "x$as_lineno_2" &&
13974 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13976 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13977 # uniformly replaced by the line number. The first 'sed' inserts a
13978 # line-number line after each line using $LINENO; the second 'sed'
13979 # does the real work. The second script uses 'N' to pair each
13980 # line-number line with the line containing $LINENO, and appends
13981 # trailing '-' during substitution so that $LINENO is not a special
13982 # case at line end.
13983 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13984 # scripts with optimization help from Paolo Bonzini. Blame Lee
13985 # E. McMahon (1931-1989) for sed's syntax. :-)
13997 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14000 ' >$as_me.lineno &&
14001 chmod +x "$as_me.lineno" ||
14002 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14003 { (exit 1); exit 1; }; }
14005 # Don't try to exec as it changes $[0], causing all sort of problems
14006 # (the dirname of $[0] is not the place where we might find the
14007 # original and so on. Autoconf is especially sensitive to this).
14008 . "./$as_me.lineno"
14009 # Exit status is that of the last command.
14014 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14020 ECHO_C= ECHO_N= ECHO_T=
14021 case `echo -n x` in
14023 case `echo 'x\c'` in
14024 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14031 if expr a : '\(a\)' >/dev/null 2>&1 &&
14032 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14038 rm -f conf$$ conf$$.exe conf$$.file
14039 if test -d conf$$.dir; then
14040 rm -f conf$$.dir/conf$$.file
14046 if ln -s conf$$.file conf$$ 2>/dev/null; then
14048 # ... but there are two gotchas:
14049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14051 # In both cases, we have to default to `cp -p'.
14052 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14054 elif ln conf$$.file conf$$ 2>/dev/null; then
14059 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14060 rmdir conf$$.dir 2>/dev/null
14062 if mkdir -p . 2>/dev/null; then
14065 test -d ./-p && rmdir ./-p
14069 if test -x / >/dev/null 2>&1; then
14070 as_test_x='test -x'
14072 if ls -dL / >/dev/null 2>&1; then
14079 if test -d "$1"; then
14085 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14086 ???[sx]*):;;*)false;;esac;fi
14090 as_executable_p=$as_test_x
14092 # Sed expression to map a string onto a valid CPP name.
14093 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14095 # Sed expression to map a string onto a valid variable name.
14096 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14101 # Save the log message, to keep $[0] and so on meaningful, and to
14102 # report actual input values of CONFIG_FILES etc. instead of their
14103 # values after options handling.
14105 This file was extended by $as_me, which was
14106 generated by GNU Autoconf 2.61. Invocation command line was
14108 CONFIG_FILES = $CONFIG_FILES
14109 CONFIG_HEADERS = $CONFIG_HEADERS
14110 CONFIG_LINKS = $CONFIG_LINKS
14111 CONFIG_COMMANDS = $CONFIG_COMMANDS
14114 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14119 cat >>$CONFIG_STATUS <<_ACEOF
14120 # Files that config.status was made for.
14121 config_files="$ac_config_files"
14122 config_headers="$ac_config_headers"
14123 config_commands="$ac_config_commands"
14127 cat >>$CONFIG_STATUS <<\_ACEOF
14129 \`$as_me' instantiates files from templates according to the
14130 current configuration.
14132 Usage: $0 [OPTIONS] [FILE]...
14134 -h, --help print this help, then exit
14135 -V, --version print version number and configuration settings, then exit
14136 -q, --quiet do not print progress messages
14137 -d, --debug don't remove temporary files
14138 --recheck update $as_me by reconfiguring in the same conditions
14139 --file=FILE[:TEMPLATE]
14140 instantiate the configuration file FILE
14141 --header=FILE[:TEMPLATE]
14142 instantiate the configuration header FILE
14144 Configuration files:
14147 Configuration headers:
14150 Configuration commands:
14153 Report bugs to <bug-autoconf@gnu.org>."
14156 cat >>$CONFIG_STATUS <<_ACEOF
14159 configured by $0, generated by GNU Autoconf 2.61,
14160 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14162 Copyright (C) 2006 Free Software Foundation, Inc.
14163 This config.status script is free software; the Free Software Foundation
14164 gives unlimited permission to copy, distribute and modify it."
14171 cat >>$CONFIG_STATUS <<\_ACEOF
14172 # If no file are specified by the user, then we need to provide default
14173 # value. By we need to know if files were specified by the user.
14179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14180 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14191 # Handling of the options.
14192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14195 echo "$ac_cs_version"; exit ;;
14196 --debug | --debu | --deb | --de | --d | -d )
14198 --file | --fil | --fi | --f )
14200 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14201 ac_need_defaults=false;;
14202 --header | --heade | --head | --hea )
14204 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14205 ac_need_defaults=false;;
14207 # Conflict between --help and --header
14208 { echo "$as_me: error: ambiguous option: $1
14209 Try \`$0 --help' for more information." >&2
14210 { (exit 1); exit 1; }; };;
14211 --help | --hel | -h )
14212 echo "$ac_cs_usage"; exit ;;
14213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14217 # This is an error.
14218 -*) { echo "$as_me: error: unrecognized option: $1
14219 Try \`$0 --help' for more information." >&2
14220 { (exit 1); exit 1; }; } ;;
14222 *) ac_config_targets="$ac_config_targets $1"
14223 ac_need_defaults=false ;;
14229 ac_configure_extra_args=
14231 if $ac_cs_silent; then
14233 ac_configure_extra_args="$ac_configure_extra_args --silent"
14237 cat >>$CONFIG_STATUS <<_ACEOF
14238 if \$ac_cs_recheck; then
14239 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14240 CONFIG_SHELL=$SHELL
14241 export CONFIG_SHELL
14242 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14246 cat >>$CONFIG_STATUS <<\_ACEOF
14250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14251 ## Running $as_me. ##
14257 cat >>$CONFIG_STATUS <<_ACEOF
14265 cat >>$CONFIG_STATUS <<\_ACEOF
14267 # Handling of arguments.
14268 for ac_config_target in $ac_config_targets
14270 case $ac_config_target in
14271 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14272 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14273 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14275 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14276 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14277 { (exit 1); exit 1; }; };;
14282 # If the user did not use the arguments to specify the items to instantiate,
14283 # then the envvar interface is used. Set only those that are not.
14284 # We use the long form for the default assignment because of an extremely
14285 # bizarre bug on SunOS 4.1.3.
14286 if $ac_need_defaults; then
14287 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14288 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14289 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14292 # Have a temporary directory for convenience. Make it in the build tree
14293 # simply because there is no reason against having it here, and in addition,
14294 # creating and moving files from /tmp can sometimes cause problems.
14295 # Hook for its removal unless debugging.
14296 # Note that there is a small window in which the directory will not be cleaned:
14297 # after its creation but before its name has been assigned to `$tmp'.
14301 trap 'exit_status=$?
14302 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14304 trap '{ (exit 1); exit 1; }' 1 2 13 15
14306 # Create a (secure) tmp directory for tmp files.
14309 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14310 test -n "$tmp" && test -d "$tmp"
14313 tmp=./conf$$-$RANDOM
14314 (umask 077 && mkdir "$tmp")
14317 echo "$me: cannot create a temporary directory in ." >&2
14318 { (exit 1); exit 1; }
14322 # Set up the sed scripts for CONFIG_FILES section.
14325 # No need to generate the scripts if there are no CONFIG_FILES.
14326 # This happens for instance when ./config.status config.h
14327 if test -n "$CONFIG_FILES"; then
14334 for ac_last_try in false false false false false :; do
14335 cat >conf$$subs.sed <<_ACEOF
14336 SHELL!$SHELL$ac_delim
14337 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14338 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14339 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14340 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14341 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14342 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14343 exec_prefix!$exec_prefix$ac_delim
14344 prefix!$prefix$ac_delim
14345 program_transform_name!$program_transform_name$ac_delim
14346 bindir!$bindir$ac_delim
14347 sbindir!$sbindir$ac_delim
14348 libexecdir!$libexecdir$ac_delim
14349 datarootdir!$datarootdir$ac_delim
14350 datadir!$datadir$ac_delim
14351 sysconfdir!$sysconfdir$ac_delim
14352 sharedstatedir!$sharedstatedir$ac_delim
14353 localstatedir!$localstatedir$ac_delim
14354 includedir!$includedir$ac_delim
14355 oldincludedir!$oldincludedir$ac_delim
14356 docdir!$docdir$ac_delim
14357 infodir!$infodir$ac_delim
14358 htmldir!$htmldir$ac_delim
14359 dvidir!$dvidir$ac_delim
14360 pdfdir!$pdfdir$ac_delim
14361 psdir!$psdir$ac_delim
14362 libdir!$libdir$ac_delim
14363 localedir!$localedir$ac_delim
14364 mandir!$mandir$ac_delim
14365 DEFS!$DEFS$ac_delim
14366 ECHO_C!$ECHO_C$ac_delim
14367 ECHO_N!$ECHO_N$ac_delim
14368 ECHO_T!$ECHO_T$ac_delim
14369 LIBS!$LIBS$ac_delim
14370 build_alias!$build_alias$ac_delim
14371 host_alias!$host_alias$ac_delim
14372 target_alias!$target_alias$ac_delim
14373 build!$build$ac_delim
14374 build_cpu!$build_cpu$ac_delim
14375 build_vendor!$build_vendor$ac_delim
14376 build_os!$build_os$ac_delim
14377 host!$host$ac_delim
14378 host_cpu!$host_cpu$ac_delim
14379 host_vendor!$host_vendor$ac_delim
14380 host_os!$host_os$ac_delim
14381 SHLICC2!$SHLICC2$ac_delim
14383 CFLAGS!$CFLAGS$ac_delim
14384 LDFLAGS!$LDFLAGS$ac_delim
14385 CPPFLAGS!$CPPFLAGS$ac_delim
14386 ac_ct_CC!$ac_ct_CC$ac_delim
14387 EXEEXT!$EXEEXT$ac_delim
14388 OBJEXT!$OBJEXT$ac_delim
14390 GREP!$GREP$ac_delim
14391 EGREP!$EGREP$ac_delim
14392 LIBOBJS!$LIBOBJS$ac_delim
14393 RANLIB!$RANLIB$ac_delim
14394 V_CCOPT!$V_CCOPT$ac_delim
14395 V_DEFS!$V_DEFS$ac_delim
14396 V_GROUP!$V_GROUP$ac_delim
14397 V_INCLS!$V_INCLS$ac_delim
14398 V_PCAPDEP!$V_PCAPDEP$ac_delim
14399 LOCALSRC!$LOCALSRC$ac_delim
14400 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14401 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14402 INSTALL_DATA!$INSTALL_DATA$ac_delim
14403 LTLIBOBJS!$LTLIBOBJS$ac_delim
14406 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
14408 elif $ac_last_try; then
14409 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14410 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14411 { (exit 1); exit 1; }; }
14413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14417 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14418 if test -n "$ac_eof"; then
14419 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14420 ac_eof=`expr $ac_eof + 1`
14423 cat >>$CONFIG_STATUS <<_ACEOF
14424 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14428 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14429 s/^/s,@/; s/!/@,|#_!!_#|/
14432 s/'"$ac_delim"'$/,g/; t
14434 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14435 ' >>$CONFIG_STATUS <conf$$subs.sed
14436 rm -f conf$$subs.sed
14437 cat >>$CONFIG_STATUS <<_ACEOF
14444 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14445 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14446 # trailing colons and then remove the whole line if VPATH becomes empty
14447 # (actually we leave an empty line to preserve line numbers).
14448 if test "x$srcdir" = x.; then
14449 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14450 s/:*\$(srcdir):*/:/
14451 s/:*\${srcdir}:*/:/
14453 s/^\([^=]*=[ ]*\):*/\1/
14459 cat >>$CONFIG_STATUS <<\_ACEOF
14460 fi # test -n "$CONFIG_FILES"
14463 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14466 :[FHLC]) ac_mode=$ac_tag; continue;;
14468 case $ac_mode$ac_tag in
14470 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14471 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14472 { (exit 1); exit 1; }; };;
14473 :[FH]-) ac_tag=-:-;;
14474 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14491 -) ac_f="$tmp/stdin";;
14492 *) # Look for the file first in the build tree, then in the source tree
14493 # (if the path is not absolute). The absolute path cannot be DOS-style,
14494 # because $ac_f cannot contain `:'.
14498 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14500 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14501 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14502 { (exit 1); exit 1; }; };;
14504 ac_file_inputs="$ac_file_inputs $ac_f"
14507 # Let's still pretend it is `configure' which instantiates (i.e., don't
14508 # use $as_me), people would be surprised to read:
14509 # /* config.h. Generated by config.status. */
14510 configure_input="Generated from "`IFS=:
14511 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14512 if test x"$ac_file" != x-; then
14513 configure_input="$ac_file. $configure_input"
14514 { echo "$as_me:$LINENO: creating $ac_file" >&5
14515 echo "$as_me: creating $ac_file" >&6;}
14519 *:-:* | *:-) cat >"$tmp/stdin";;
14524 ac_dir=`$as_dirname -- "$ac_file" ||
14525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14526 X"$ac_file" : 'X\(//\)[^/]' \| \
14527 X"$ac_file" : 'X\(//\)$' \| \
14528 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14534 /^X\(\/\/\)[^/].*/{
14549 -*) as_dir=./$as_dir;;
14551 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14555 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14556 *) as_qdir=$as_dir;;
14558 as_dirs="'$as_qdir' $as_dirs"
14559 as_dir=`$as_dirname -- "$as_dir" ||
14560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14561 X"$as_dir" : 'X\(//\)[^/]' \| \
14562 X"$as_dir" : 'X\(//\)$' \| \
14563 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14569 /^X\(\/\/\)[^/].*/{
14582 test -d "$as_dir" && break
14584 test -z "$as_dirs" || eval "mkdir $as_dirs"
14585 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14586 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14587 { (exit 1); exit 1; }; }; }
14591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14593 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14594 # A ".." for each directory in $ac_dir_suffix.
14595 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14596 case $ac_top_builddir_sub in
14597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14601 ac_abs_top_builddir=$ac_pwd
14602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14603 # for backward compatibility:
14604 ac_top_builddir=$ac_top_build_prefix
14607 .) # We are building in place.
14609 ac_top_srcdir=$ac_top_builddir_sub
14610 ac_abs_top_srcdir=$ac_pwd ;;
14611 [\\/]* | ?:[\\/]* ) # Absolute name.
14612 ac_srcdir=$srcdir$ac_dir_suffix;
14613 ac_top_srcdir=$srcdir
14614 ac_abs_top_srcdir=$srcdir ;;
14615 *) # Relative name.
14616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14617 ac_top_srcdir=$ac_top_build_prefix$srcdir
14618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14630 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14631 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14635 cat >>$CONFIG_STATUS <<\_ACEOF
14636 # If the template does not know about datarootdir, expand it.
14637 # FIXME: This hack should be removed a few years after 2.60.
14638 ac_datarootdir_hack=; ac_datarootdir_seen=
14640 case `sed -n '/datarootdir/ {
14649 ' $ac_file_inputs` in
14650 *datarootdir*) ac_datarootdir_seen=yes;;
14651 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14652 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14653 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14655 cat >>$CONFIG_STATUS <<_ACEOF
14656 ac_datarootdir_hack='
14657 s&@datadir@&$datadir&g
14658 s&@docdir@&$docdir&g
14659 s&@infodir@&$infodir&g
14660 s&@localedir@&$localedir&g
14661 s&@mandir@&$mandir&g
14662 s&\\\${datarootdir}&$datarootdir&g' ;;
14666 # Neutralize VPATH when `$srcdir' = `.'.
14667 # Shell code in configure.ac might set extrasub.
14668 # FIXME: do we really want to maintain this feature?
14669 cat >>$CONFIG_STATUS <<_ACEOF
14673 cat >>$CONFIG_STATUS <<\_ACEOF
14675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14676 s&@configure_input@&$configure_input&;t t
14677 s&@top_builddir@&$ac_top_builddir_sub&;t t
14678 s&@srcdir@&$ac_srcdir&;t t
14679 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14680 s&@top_srcdir@&$ac_top_srcdir&;t t
14681 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14682 s&@builddir@&$ac_builddir&;t t
14683 s&@abs_builddir@&$ac_abs_builddir&;t t
14684 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14685 s&@INSTALL@&$ac_INSTALL&;t t
14686 $ac_datarootdir_hack
14687 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14689 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14690 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14691 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14692 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14693 which seems to be undefined. Please make sure it is defined." >&5
14694 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14695 which seems to be undefined. Please make sure it is defined." >&2;}
14699 -) cat "$tmp/out"; rm -f "$tmp/out";;
14700 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14709 # Transform confdefs.h into a sed script `conftest.defines', that
14710 # substitutes the proper values into config.h.in to produce config.h.
14711 rm -f conftest.defines conftest.tail
14712 # First, append a space to every undef/define line, to ease matching.
14713 echo 's/$/ /' >conftest.defines
14714 # Then, protect against being on the right side of a sed subst, or in
14715 # an unquoted here document, in config.status. If some macros were
14716 # called several times there might be several #defines for the same
14717 # symbol, which is useless. But do not sort them, since the last
14718 # AC_DEFINE must be honored.
14719 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14720 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14721 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14722 # PARAMS is the parameter list in the macro definition--in most cases, it's
14723 # just an empty string.
14724 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14725 ac_dB='\\)[ (].*,\\1define\\2'
14733 s/^[ ]*#[ ]*define[ ][ ]*//
14738 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14739 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14740 ' >>conftest.defines
14742 # Remove the space that was appended to ease matching.
14743 # Then replace #undef with comments. This is necessary, for
14744 # example, in the case of _POSIX_SOURCE, which is predefined and required
14745 # on some systems where configure will not decide to define it.
14746 # (The regexp can be short, since the line contains either #define or #undef.)
14748 s,^[ #]*u.*,/* & */,' >>conftest.defines
14750 # Break up conftest.defines:
14751 ac_max_sed_lines=50
14753 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14754 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14755 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14757 ac_in='$ac_file_inputs'
14758 ac_out='"$tmp/out1"'
14759 ac_nxt='"$tmp/out2"'
14763 # Write a here document:
14764 cat >>$CONFIG_STATUS <<_ACEOF
14765 # First, check the format of the line:
14766 cat >"\$tmp/defines.sed" <<\\CEOF
14767 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14768 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14772 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14774 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14775 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14776 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14777 grep . conftest.tail >/dev/null || break
14778 rm -f conftest.defines
14779 mv conftest.tail conftest.defines
14781 rm -f conftest.defines conftest.tail
14783 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14784 cat >>$CONFIG_STATUS <<\_ACEOF
14785 if test x"$ac_file" != x-; then
14786 echo "/* $configure_input */" >"$tmp/config.h"
14787 cat "$ac_result" >>"$tmp/config.h"
14788 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14789 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14790 echo "$as_me: $ac_file is unchanged" >&6;}
14793 mv "$tmp/config.h" $ac_file
14796 echo "/* $configure_input */"
14802 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14803 echo "$as_me: executing $ac_file commands" >&6;}
14808 case $ac_file$ac_mode in
14809 "default-1":C) if test -f .devel; then
14810 echo timestamp > stamp-h
14811 cat Makefile-devel-adds >> Makefile
14819 { (exit 0); exit 0; }
14821 chmod +x $CONFIG_STATUS
14822 ac_clean_files=$ac_clean_files_save
14825 # configure is writing to config.log, and then calls config.status.
14826 # config.status does its own redirection, appending to config.log.
14827 # Unfortunately, on DOS this fails, as config.log is still kept open
14828 # by configure, so config.status won't be able to write to it; its
14829 # output is simply discarded. So we exec the FD to /dev/null,
14830 # effectively closing config.log, so it can be properly (re)opened and
14831 # appended to by config.status. When coming back to configure, we
14832 # need to make the FD available again.
14833 if test "$no_create" != yes; then
14835 ac_config_status_args=
14836 test "$silent" = yes &&
14837 ac_config_status_args="$ac_config_status_args --quiet"
14839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14842 # would make configure fail if this is the last instruction.
14843 $ac_cs_success || { (exit 1); exit 1; }