2 # From configure.ac Revision: 1.367 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60 for OpenSSH Portable.
6 # Report bugs to <openssh-unix-dev@mindrot.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
69 # Find who we are. Look in the path if we contain no directory separator.
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
160 if test $as_have_required = yes && (eval ":
170 as_func_ret_success () {
173 as_func_ret_failure () {
178 if as_func_success; then
182 echo as_func_success failed.
185 if as_func_failure; then
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
199 echo as_func_ret_failure succeeded.
202 if (set x; as_func_ret_success y && test x = \"\$1\" ); then
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
256 CONFIG_SHELL=$as_shell
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
283 as_func_ret_success () {
286 as_func_ret_failure () {
291 if as_func_success; then
295 echo as_func_success failed.
298 if as_func_failure; then
300 echo as_func_failure succeeded.
303 if as_func_ret_success; then
307 echo as_func_ret_success failed.
310 if as_func_ret_failure; then
312 echo as_func_ret_failure succeeded.
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 echo positional parameters were not saved.
322 test $exitcode = 0) || { (exit 1); exit 1; }
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
372 as_func_ret_success () {
375 as_func_ret_failure () {
380 if as_func_success; then
384 echo as_func_success failed.
387 if as_func_failure; then
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
401 echo as_func_ret_failure succeeded.
404 if (set x; as_func_ret_success y && test x = \"\$1\" ); then
408 echo positional parameters were not saved.
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 ECHO_C= ECHO_N= ECHO_T=
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
514 test -d ./-p && rmdir ./-p
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 exec 7<&0 </dev/null 6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix=/usr/local
552 ac_config_libobj_dir=.
558 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Identity of this package.
561 PACKAGE_NAME='OpenSSH'
562 PACKAGE_TARNAME='openssh'
563 PACKAGE_VERSION='Portable'
564 PACKAGE_STRING='OpenSSH Portable'
565 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
567 ac_unique_file="ssh.c"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
572 # include <sys/types.h>
575 # include <sys/stat.h>
586 # if !STDC_HEADERS && HAVE_MEMORY_H
592 # include <strings.h>
595 # include <inttypes.h>
613 program_transform_name
675 MAKE_PACKAGE_SUPPORTED
677 LOGIN_PROGRAM_FALLBACK
684 INSTALL_SSH_RAND_HELPER
702 INSTALL_SSH_PRNG_CMDS
717 ac_precious_vars='build_alias
727 # Initialize some variables set by options.
729 ac_init_version=false
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
739 program_transform_name=s,x,x,
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764 infodir='${datarootdir}/info'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
785 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789 # Accept the important Cygnus configure options, so we can diagnose typos.
791 case $ac_dashdash$ac_option in
795 -bindir | --bindir | --bindi | --bind | --bin | --bi)
797 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
800 -build | --build | --buil | --bui | --bu)
801 ac_prev=build_alias ;;
802 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803 build_alias=$ac_optarg ;;
805 -cache-file | --cache-file | --cache-fil | --cache-fi \
806 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807 ac_prev=cache_file ;;
808 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810 cache_file=$ac_optarg ;;
813 cache_file=config.cache ;;
815 -datadir | --datadir | --datadi | --datad)
817 -datadir=* | --datadir=* | --datadi=* | --datad=*)
818 datadir=$ac_optarg ;;
820 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821 | --dataroo | --dataro | --datar)
822 ac_prev=datarootdir ;;
823 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825 datarootdir=$ac_optarg ;;
827 -disable-* | --disable-*)
828 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
831 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832 { (exit 1); exit 1; }; }
833 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
834 eval enable_$ac_feature=no ;;
836 -docdir | --docdir | --docdi | --doc | --do)
838 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846 -enable-* | --enable-*)
847 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
850 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
851 { (exit 1); exit 1; }; }
852 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
853 eval enable_$ac_feature=\$ac_optarg ;;
855 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857 | --exec | --exe | --ex)
858 ac_prev=exec_prefix ;;
859 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861 | --exec=* | --exe=* | --ex=*)
862 exec_prefix=$ac_optarg ;;
864 -gas | --gas | --ga | --g)
865 # Obsolete; use --with-gas.
868 -help | --help | --hel | --he | -h)
870 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871 ac_init_help=recursive ;;
872 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873 ac_init_help=short ;;
875 -host | --host | --hos | --ho)
876 ac_prev=host_alias ;;
877 -host=* | --host=* | --hos=* | --ho=*)
878 host_alias=$ac_optarg ;;
880 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
882 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
884 htmldir=$ac_optarg ;;
886 -includedir | --includedir | --includedi | --included | --include \
887 | --includ | --inclu | --incl | --inc)
888 ac_prev=includedir ;;
889 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890 | --includ=* | --inclu=* | --incl=* | --inc=*)
891 includedir=$ac_optarg ;;
893 -infodir | --infodir | --infodi | --infod | --info | --inf)
895 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896 infodir=$ac_optarg ;;
898 -libdir | --libdir | --libdi | --libd)
900 -libdir=* | --libdir=* | --libdi=* | --libd=*)
903 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904 | --libexe | --libex | --libe)
905 ac_prev=libexecdir ;;
906 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907 | --libexe=* | --libex=* | --libe=*)
908 libexecdir=$ac_optarg ;;
910 -localedir | --localedir | --localedi | --localed | --locale)
912 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913 localedir=$ac_optarg ;;
915 -localstatedir | --localstatedir | --localstatedi | --localstated \
916 | --localstate | --localstat | --localsta | --localst | --locals)
917 ac_prev=localstatedir ;;
918 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920 localstatedir=$ac_optarg ;;
922 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
924 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
928 # Obsolete; use --without-fp.
931 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932 | --no-cr | --no-c | -n)
935 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
939 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941 | --oldin | --oldi | --old | --ol | --o)
942 ac_prev=oldincludedir ;;
943 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946 oldincludedir=$ac_optarg ;;
948 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
950 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
953 -program-prefix | --program-prefix | --program-prefi | --program-pref \
954 | --program-pre | --program-pr | --program-p)
955 ac_prev=program_prefix ;;
956 -program-prefix=* | --program-prefix=* | --program-prefi=* \
957 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958 program_prefix=$ac_optarg ;;
960 -program-suffix | --program-suffix | --program-suffi | --program-suff \
961 | --program-suf | --program-su | --program-s)
962 ac_prev=program_suffix ;;
963 -program-suffix=* | --program-suffix=* | --program-suffi=* \
964 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965 program_suffix=$ac_optarg ;;
967 -program-transform-name | --program-transform-name \
968 | --program-transform-nam | --program-transform-na \
969 | --program-transform-n | --program-transform- \
970 | --program-transform | --program-transfor \
971 | --program-transfo | --program-transf \
972 | --program-trans | --program-tran \
973 | --progr-tra | --program-tr | --program-t)
974 ac_prev=program_transform_name ;;
975 -program-transform-name=* | --program-transform-name=* \
976 | --program-transform-nam=* | --program-transform-na=* \
977 | --program-transform-n=* | --program-transform-=* \
978 | --program-transform=* | --program-transfor=* \
979 | --program-transfo=* | --program-transf=* \
980 | --program-trans=* | --program-tran=* \
981 | --progr-tra=* | --program-tr=* | --program-t=*)
982 program_transform_name=$ac_optarg ;;
984 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
986 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
989 -psdir | --psdir | --psdi | --psd | --ps)
991 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995 | -silent | --silent | --silen | --sile | --sil)
998 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1000 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1002 sbindir=$ac_optarg ;;
1004 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006 | --sharedst | --shareds | --shared | --share | --shar \
1008 ac_prev=sharedstatedir ;;
1009 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1013 sharedstatedir=$ac_optarg ;;
1015 -site | --site | --sit)
1017 -site=* | --site=* | --sit=*)
1020 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1022 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023 srcdir=$ac_optarg ;;
1025 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026 | --syscon | --sysco | --sysc | --sys | --sy)
1027 ac_prev=sysconfdir ;;
1028 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030 sysconfdir=$ac_optarg ;;
1032 -target | --target | --targe | --targ | --tar | --ta | --t)
1033 ac_prev=target_alias ;;
1034 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035 target_alias=$ac_optarg ;;
1037 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1040 -version | --version | --versio | --versi | --vers | -V)
1041 ac_init_version=: ;;
1044 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid package name: $ac_package" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_package=`echo $ac_package| sed 's/-/_/g'`
1050 eval with_$ac_package=\$ac_optarg ;;
1052 -without-* | --without-*)
1053 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_package=`echo $ac_package | sed 's/-/_/g'`
1059 eval with_$ac_package=no ;;
1062 # Obsolete; use --with-x.
1065 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066 | --x-incl | --x-inc | --x-in | --x-i)
1067 ac_prev=x_includes ;;
1068 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070 x_includes=$ac_optarg ;;
1072 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074 ac_prev=x_libraries ;;
1075 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077 x_libraries=$ac_optarg ;;
1079 -*) { echo "$as_me: error: unrecognized option: $ac_option
1080 Try \`$0 --help' for more information." >&2
1081 { (exit 1); exit 1; }; }
1085 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1089 { (exit 1); exit 1; }; }
1090 eval $ac_envvar=\$ac_optarg
1091 export $ac_envvar ;;
1094 # FIXME: should be removed in autoconf 3.0.
1095 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1104 if test -n "$ac_prev"; then
1105 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106 { echo "$as_me: error: missing argument to $ac_option" >&2
1107 { (exit 1); exit 1; }; }
1110 # Be sure to have absolute directory names.
1111 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1112 datadir sysconfdir sharedstatedir localstatedir includedir \
1113 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1114 libdir localedir mandir
1116 eval ac_val=\$$ac_var
1118 [\\/$]* | ?:[\\/]* ) continue;;
1119 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1121 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1122 { (exit 1); exit 1; }; }
1125 # There might be people who depend on the old broken behavior: `$host'
1126 # used to hold the argument of --host etc.
1127 # FIXME: To remove some day.
1130 target=$target_alias
1132 # FIXME: To remove some day.
1133 if test "x$host_alias" != x; then
1134 if test "x$build_alias" = x; then
1135 cross_compiling=maybe
1136 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1137 If a cross compiler is detected then cross compile mode will be used." >&2
1138 elif test "x$build_alias" != "x$host_alias"; then
1144 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1146 test "$silent" = yes && exec 6>/dev/null
1149 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1150 ac_ls_di=`ls -di .` &&
1151 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1152 { echo "$as_me: error: Working directory cannot be determined" >&2
1153 { (exit 1); exit 1; }; }
1154 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155 { echo "$as_me: error: pwd does not report name of working directory" >&2
1156 { (exit 1); exit 1; }; }
1159 # Find the source files, if location was not specified.
1160 if test -z "$srcdir"; then
1161 ac_srcdir_defaulted=yes
1162 # Try the directory containing this script, then the parent directory.
1163 ac_confdir=`$as_dirname -- "$0" ||
1164 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165 X"$0" : 'X\(//\)[^/]' \| \
1166 X"$0" : 'X\(//\)$' \| \
1167 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 if test ! -r "$srcdir/$ac_unique_file"; then
1191 ac_srcdir_defaulted=no
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1196 { (exit 1); exit 1; }; }
1198 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1200 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1201 { (exit 1); exit 1; }; }
1203 # When building in place, set srcdir=.
1204 if test "$ac_abs_confdir" = "$ac_pwd"; then
1207 # Remove unnecessary trailing slashes from srcdir.
1208 # Double slashes in file names in object file debugging info
1209 # mess up M-x gdb in Emacs.
1211 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1213 for ac_var in $ac_precious_vars; do
1214 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_env_${ac_var}_value=\$${ac_var}
1216 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1221 # Report the --help message.
1223 if test "$ac_init_help" = "long"; then
1224 # Omit some internal or obsolete options to make the list less imposing.
1225 # This message is too long to be a string in the A/UX 3.1 sh.
1227 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1229 Usage: $0 [OPTION]... [VAR=VALUE]...
1231 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232 VAR=VALUE. See below for descriptions of some of the useful variables.
1234 Defaults for the options are specified in brackets.
1237 -h, --help display this help and exit
1238 --help=short display options specific to this package
1239 --help=recursive display the short help of all the included packages
1240 -V, --version display version information and exit
1241 -q, --quiet, --silent do not print \`checking...' messages
1242 --cache-file=FILE cache test results in FILE [disabled]
1243 -C, --config-cache alias for \`--cache-file=config.cache'
1244 -n, --no-create do not create output files
1245 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1247 Installation directories:
1248 --prefix=PREFIX install architecture-independent files in PREFIX
1249 [$ac_default_prefix]
1250 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1253 By default, \`make install' will install all the files in
1254 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1255 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256 for instance \`--prefix=\$HOME'.
1258 For better control, use the options below.
1260 Fine tuning of the installation directories:
1261 --bindir=DIR user executables [EPREFIX/bin]
1262 --sbindir=DIR system admin executables [EPREFIX/sbin]
1263 --libexecdir=DIR program executables [EPREFIX/libexec]
1264 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1265 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1266 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1267 --libdir=DIR object code libraries [EPREFIX/lib]
1268 --includedir=DIR C header files [PREFIX/include]
1269 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1270 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1271 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1272 --infodir=DIR info documentation [DATAROOTDIR/info]
1273 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1274 --mandir=DIR man documentation [DATAROOTDIR/man]
1275 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1276 --htmldir=DIR html documentation [DOCDIR]
1277 --dvidir=DIR dvi documentation [DOCDIR]
1278 --pdfdir=DIR pdf documentation [DOCDIR]
1279 --psdir=DIR ps documentation [DOCDIR]
1285 --build=BUILD configure for building on BUILD [guessed]
1286 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1290 if test -n "$ac_init_help"; then
1291 case $ac_init_help in
1292 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1297 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1298 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1299 --disable-largefile omit support for large files
1300 --disable-strip Disable calling strip(1) on install
1301 --disable-etc-default-login Disable using PATH from /etc/default/login no
1302 --disable-lastlog disable use of lastlog even if detected no
1303 --disable-utmp disable use of utmp even if detected no
1304 --disable-utmpx disable use of utmpx even if detected no
1305 --disable-wtmp disable use of wtmp even if detected no
1306 --disable-wtmpx disable use of wtmpx even if detected no
1307 --disable-libutil disable use of libutil (login() etc.) no
1308 --disable-pututline disable use of pututline() etc. (uwtmp) no
1309 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1312 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1313 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1314 --without-rpath Disable auto-added -R linker paths
1315 --with-solaris-contracts Enable Solaris process contracts (experimental)
1316 --with-osfsia Enable Digital Unix SIA
1317 --with-cflags Specify additional flags to pass to compiler
1318 --with-cppflags Specify additional flags to pass to preprocessor
1319 --with-ldflags Specify additional flags to pass to linker
1320 --with-libs Specify additional libraries to link with
1321 --with-Werror Build main code with -Werror
1322 --with-zlib=PATH Use zlib in PATH
1323 --without-zlib-version-check Disable zlib version check
1324 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1325 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1326 --with-libedit[=PATH] Enable libedit support for sftp
1327 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1328 --with-ssl-dir=PATH Specify path to OpenSSL installation
1329 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1330 --with-pam Enable PAM support
1331 --with-rand-helper Use subprocess to gather strong randomness
1332 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1333 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1334 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1335 --with-privsep-user=user Specify non-privileged user for privilege separation
1336 --with-sectok Enable smartcard support using libsectok
1337 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1338 --with-selinux Enable SELinux support
1339 --with-kerberos5=PATH Enable Kerberos 5 support
1340 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1341 --with-xauth=PATH Specify path to xauth program
1342 --with-mantype=man|cat|doc Set man page type
1343 --with-md5-passwords Enable use of MD5 passwords
1344 --without-shadow Disable shadow password support
1345 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1346 --with-default-path= Specify default \$PATH environment for server
1347 --with-superuser-path= Specify different path for super-user
1348 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1349 --with-bsd-auth Enable BSD auth support
1350 --with-pid-dir=PATH Specify location of ssh.pid file
1351 --with-lastlog=FILE|DIR specify lastlog location common locations
1353 Some influential environment variables:
1354 CC C compiler command
1355 CFLAGS C compiler flags
1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1357 nonstandard directory <lib dir>
1358 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1359 you have headers in a nonstandard directory <include dir>
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1365 Report bugs to <openssh-unix-dev@mindrot.org>.
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" || continue
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1393 .) # We are building in place.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1426 OpenSSH configure Portable
1427 generated by GNU Autoconf 2.60
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1436 cat >config.log <<_ACEOF
1437 This file contains any messages produced by compilers while
1438 running configure, to aid debugging if configure makes a mistake.
1440 It was created by OpenSSH $as_me Portable, which was
1441 generated by GNU Autoconf 2.60. Invocation command line was
1453 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1454 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1455 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1456 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1457 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1459 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1460 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1462 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1463 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1465 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1466 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1467 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1468 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 test -z "$as_dir" && as_dir=.
1477 echo "PATH: $as_dir"
1493 # Keep a trace of the command line.
1494 # Strip out --no-create and --no-recursion so they do not pile up.
1495 # Strip out --silent because we don't want to record it for future runs.
1496 # Also quote any args containing shell meta-characters.
1497 # Make two passes to allow for proper duplicate-argument suppression.
1501 ac_must_keep_next=false
1507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509 | -silent | --silent | --silen | --sile | --sil)
1512 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1515 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1517 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518 if test $ac_must_keep_next = true; then
1519 ac_must_keep_next=false # Got value, back to normal.
1522 *=* | --config-cache | -C | -disable-* | --disable-* \
1523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525 | -with-* | --with-* | -without-* | --without-* | --x)
1526 case "$ac_configure_args0 " in
1527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1530 -* ) ac_must_keep_next=true ;;
1533 ac_configure_args="$ac_configure_args '$ac_arg'"
1538 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1541 # When interrupted or exit'd, cleanup temporary files, and complete
1542 # config.log. We remove comments because anyway the quotes in there
1543 # would cause problems or look ugly.
1544 # WARNING: Use '\'' to represent an apostrophe within the trap.
1545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546 trap 'exit_status=$?
1547 # Save into config.log some information that might help in debugging.
1552 ## ---------------- ##
1553 ## Cache variables. ##
1554 ## ---------------- ##
1557 # The following way of writing the cache mishandles newlines in values,
1559 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1560 eval ac_val=\$$ac_var
1564 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1568 _ | IFS | as_nl) ;; #(
1569 *) $as_unset $ac_var ;;
1574 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1575 *${as_nl}ac_space=\ *)
1577 "s/'\''/'\''\\\\'\'''\''/g;
1578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1589 ## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##
1594 for ac_var in $ac_subst_vars
1596 eval ac_val=\$$ac_var
1598 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 echo "$ac_var='\''$ac_val'\''"
1604 if test -n "$ac_subst_files"; then
1606 ## ------------------- ##
1607 ## File substitutions. ##
1608 ## ------------------- ##
1611 for ac_var in $ac_subst_files
1613 eval ac_val=\$$ac_var
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 echo "$ac_var='\''$ac_val'\''"
1622 if test -s confdefs.h; then
1632 test "$ac_signal" != 0 &&
1633 echo "$as_me: caught signal $ac_signal"
1634 echo "$as_me: exit $exit_status"
1636 rm -f core *.core core.conftest.* &&
1637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1640 for ac_signal in 1 2 13 15; do
1641 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1648 # Predefined preprocessor variables.
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_NAME "$PACKAGE_NAME"
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_STRING "$PACKAGE_STRING"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1675 # Let the site file select an alternate cache file if it wants to.
1676 # Prefer explicitly selected file to automatically selected ones.
1677 if test -n "$CONFIG_SITE"; then
1678 set x "$CONFIG_SITE"
1679 elif test "x$prefix" != xNONE; then
1680 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1682 set x "$ac_default_prefix/share/config.site" \
1683 "$ac_default_prefix/etc/config.site"
1688 if test -r "$ac_site_file"; then
1689 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690 echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1696 if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701 echo "$as_me: loading cache $cache_file" >&6;}
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1708 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709 echo "$as_me: creating cache $cache_file" >&6;}
1713 # Check that the precious variables saved in the cache have kept the same
1715 ac_cache_corrupted=false
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718 eval ac_new_set=\$ac_env_${ac_var}_set
1719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720 eval ac_new_val=\$ac_env_${ac_var}_value
1721 case $ac_old_set,$ac_new_set in
1723 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1724 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1727 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1728 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1732 if test "x$ac_old_val" != "x$ac_new_val"; then
1733 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1734 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1735 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1736 echo "$as_me: former value: $ac_old_val" >&2;}
1737 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1738 echo "$as_me: current value: $ac_new_val" >&2;}
1739 ac_cache_corrupted=:
1742 # Pass precious variables to config.status.
1743 if test "$ac_new_set" = set; then
1745 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 *) ac_arg=$ac_var=$ac_new_val ;;
1748 case " $ac_configure_args " in
1749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1750 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754 if $ac_cache_corrupted; then
1755 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1756 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1757 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1758 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1759 { (exit 1); exit 1; }; }
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1796 ac_config_headers="$ac_config_headers config.h"
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 if test -n "$ac_tool_prefix"; then
1804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1805 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1808 if test "${ac_cv_prog_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 if test -n "$CC"; then
1812 ac_cv_prog_CC="$CC" # Let the user override the test.
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1821 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 if test -n "$CC"; then
1833 { echo "$as_me:$LINENO: result: $CC" >&5
1834 echo "${ECHO_T}$CC" >&6; }
1836 { echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6; }
1842 if test -z "$ac_cv_prog_CC"; then
1844 # Extract the first word of "gcc", so it can be a program name with args.
1845 set dummy gcc; ac_word=$2
1846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test -n "$ac_ct_CC"; then
1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1861 ac_cv_prog_ac_ct_CC="gcc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872 if test -n "$ac_ct_CC"; then
1873 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874 echo "${ECHO_T}$ac_ct_CC" >&6; }
1876 { echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6; }
1880 if test "x$ac_ct_CC" = x; then
1883 case $cross_compiling:$ac_tool_warned in
1885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1886 whose name does not start with the host triplet. If you think this
1887 configuration is useful to you, please write to autoconf@gnu.org." >&5
1888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1889 whose name does not start with the host triplet. If you think this
1890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1891 ac_tool_warned=yes ;;
1899 if test -z "$CC"; then
1900 if test -n "$ac_tool_prefix"; then
1901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1902 set dummy ${ac_tool_prefix}cc; ac_word=$2
1903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1905 if test "${ac_cv_prog_CC+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1918 ac_cv_prog_CC="${ac_tool_prefix}cc"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 if test -n "$CC"; then
1930 { echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6; }
1933 { echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6; }
1940 if test -z "$CC"; then
1941 # Extract the first word of "cc", so it can be a program name with args.
1942 set dummy cc; ac_word=$2
1943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1945 if test "${ac_cv_prog_CC+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 if test -n "$CC"; then
1949 ac_cv_prog_CC="$CC" # Let the user override the test.
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1960 ac_prog_rejected=yes
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 if test $ac_prog_rejected = yes; then
1972 # We found a bogon in the path, so make sure we never use it.
1973 set dummy $ac_cv_prog_CC
1975 if test $# != 0; then
1976 # We chose a different compiler from the bogus one.
1977 # However, it has the same basename, so the bogon will be chosen
1978 # first if we set CC to just the basename; use the full file name.
1980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1986 if test -n "$CC"; then
1987 { echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6; }
1990 { echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6; }
1996 if test -z "$CC"; then
1997 if test -n "$ac_tool_prefix"; then
1998 for ac_prog in cl.exe
2000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2004 if test "${ac_cv_prog_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$CC"; then
2008 ac_cv_prog_CC="$CC" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 if test -n "$CC"; then
2029 { echo "$as_me:$LINENO: result: $CC" >&5
2030 echo "${ECHO_T}$CC" >&6; }
2032 { echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6; }
2037 test -n "$CC" && break
2040 if test -z "$CC"; then
2042 for ac_prog in cl.exe
2044 # Extract the first word of "$ac_prog", so it can be a program name with args.
2045 set dummy $ac_prog; ac_word=$2
2046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2061 ac_cv_prog_ac_ct_CC="$ac_prog"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072 if test -n "$ac_ct_CC"; then
2073 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074 echo "${ECHO_T}$ac_ct_CC" >&6; }
2076 { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2081 test -n "$ac_ct_CC" && break
2084 if test "x$ac_ct_CC" = x; then
2087 case $cross_compiling:$ac_tool_warned in
2089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2090 whose name does not start with the host triplet. If you think this
2091 configuration is useful to you, please write to autoconf@gnu.org." >&5
2092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet. If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2095 ac_tool_warned=yes ;;
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO: checking for C compiler version" >&5
2112 ac_compiler=`set X $ac_compile; echo $2`
2113 { (ac_try="$ac_compiler --version >&5"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler --version >&5") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123 { (ac_try="$ac_compiler -v >&5"
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129 (eval "$ac_compiler -v >&5") 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133 { (ac_try="$ac_compiler -V >&5"
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139 (eval "$ac_compiler -V >&5") 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2164 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 # List of possible output files, starting from the most likely.
2169 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2170 # only as a last resort. b.out is created by i960 compilers.
2171 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2173 # The IRIX 6 linker writes into existing files which may not be
2174 # executable, retaining their permissions. Remove them first so a
2175 # subsequent execution test works.
2177 for ac_file in $ac_files
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2186 if { (ac_try="$ac_link_default"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_link_default") 2>&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; then
2196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2198 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2199 # so that the user can short-circuit this test for compilers unknown to
2201 for ac_file in $ac_files
2203 test -f "$ac_file" || continue
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2208 # We found the default executable, but exeext='' is most
2212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 # We set ac_cv_exeext here because the later test for it is not
2217 # safe: cross compilers may not add the suffix if given an `-o'
2218 # argument, so we may need to know it at that point already.
2219 # Even if this section looks crufty: it has the advantage of
2226 test "$ac_cv_exeext" = no && ac_cv_exeext=
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2232 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: C compiler cannot create executables
2235 See \`config.log' for more details." >&2;}
2236 { (exit 77); exit 77; }; }
2239 ac_exeext=$ac_cv_exeext
2240 { echo "$as_me:$LINENO: result: $ac_file" >&5
2241 echo "${ECHO_T}$ac_file" >&6; }
2243 # Check that the compiler produces executables we can run. If not, either
2244 # the compiler is broken, or we cross compile.
2245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2248 # If not cross compiling, check that we can run a simple program.
2249 if test "$cross_compiling" != yes; then
2250 if { ac_try='./$ac_file'
2251 { (case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256 (eval "$ac_try") 2>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2262 if test "$cross_compiling" = maybe; then
2265 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2279 ac_clean_files=$ac_clean_files_save
2280 # Check that the compiler produces executables we can run. If not, either
2281 # the compiler is broken, or we cross compile.
2282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2285 echo "${ECHO_T}$cross_compiling" >&6; }
2287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2289 if { (ac_try="$ac_link"
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295 (eval "$ac_link") 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2301 # work properly (i.e., refer to `conftest.exe'), while it won't with
2303 for ac_file in conftest.exe conftest conftest.*; do
2304 test -f "$ac_file" || continue
2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2320 rm -f conftest$ac_cv_exeext
2321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2329 if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.$ac_ext <<_ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2347 rm -f conftest.o conftest.obj
2348 if { (ac_try="$ac_compile"
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compile") 2>&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; then
2358 for ac_file in conftest.o conftest.obj conftest.*; do
2359 test -f "$ac_file" || continue;
2361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2373 See \`config.log' for more details." >&2;}
2374 { (exit 1); exit 1; }; }
2377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2380 echo "${ECHO_T}$ac_cv_objext" >&6; }
2381 OBJEXT=$ac_cv_objext
2383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 cat >conftest.$ac_ext <<_ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2406 rm -f conftest.$ac_objext
2407 if { (ac_try="$ac_compile"
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_compile") 2>conftest.er1
2415 grep -v '^ *+' conftest.er1 >conftest.err
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2421 { (case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_try") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_try") 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2452 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2453 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2454 GCC=`test $ac_compiler_gnu = yes && echo yes`
2455 ac_test_CFLAGS=${CFLAGS+set}
2456 ac_save_CFLAGS=$CFLAGS
2457 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_cc_g+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 ac_save_c_werror_flag=$ac_c_werror_flag
2463 ac_c_werror_flag=yes
2466 cat >conftest.$ac_ext <<_ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2481 rm -f conftest.$ac_objext
2482 if { (ac_try="$ac_compile"
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_compile") 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_try") 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2536 rm -f conftest.$ac_objext
2537 if { (ac_try="$ac_compile"
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_compile") 2>conftest.er1
2545 grep -v '^ *+' conftest.er1 >conftest.err
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551 { (case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_try") 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 ac_c_werror_flag=$ac_save_c_werror_flag
2577 cat >conftest.$ac_ext <<_ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2592 rm -f conftest.$ac_objext
2593 if { (ac_try="$ac_compile"
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_compile") 2>conftest.er1
2601 grep -v '^ *+' conftest.er1 >conftest.err
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607 { (case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612 (eval "$ac_try") 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_try") 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_c_werror_flag=$ac_save_c_werror_flag
2643 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2654 if test "$GCC" = yes; then
2660 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2661 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2662 if test "${ac_cv_prog_cc_c89+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 ac_cv_prog_cc_c89=no
2667 cat >conftest.$ac_ext <<_ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2691 s = g (p, va_arg (v,int));
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
2699 as 'x'. The following induces an error, until -std is added to get
2700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
2702 that's true only with -std. */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2706 inside strings and character constants. */
2708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2710 int test (int i, double x);
2711 struct s1 {int (*f) (int a);};
2712 struct s2 {int (*f) (double a);};
2713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2719 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 CC="$ac_save_CC $ac_arg"
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2737 grep -v '^ *+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2743 { (case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_try") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_try") 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_cv_prog_cc_c89=$ac_arg
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f core conftest.err conftest.$ac_objext
2771 test "x$ac_cv_prog_cc_c89" != "xno" && break
2773 rm -f conftest.$ac_ext
2778 case "x$ac_cv_prog_cc_c89" in
2780 { echo "$as_me:$LINENO: result: none needed" >&5
2781 echo "${ECHO_T}none needed" >&6; } ;;
2783 { echo "$as_me:$LINENO: result: unsupported" >&5
2784 echo "${ECHO_T}unsupported" >&6; } ;;
2786 CC="$CC $ac_cv_prog_cc_c89"
2787 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2800 if test -f "$ac_dir/install-sh"; then
2802 ac_install_sh="$ac_aux_dir/install-sh -c"
2804 elif test -f "$ac_dir/install.sh"; then
2806 ac_install_sh="$ac_aux_dir/install.sh -c"
2808 elif test -f "$ac_dir/shtool"; then
2810 ac_install_sh="$ac_aux_dir/shtool install -c"
2814 if test -z "$ac_aux_dir"; then
2815 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2816 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2817 { (exit 1); exit 1; }; }
2820 # These three variables are undocumented and unsupported,
2821 # and are intended to be withdrawn in a future Autoconf release.
2822 # They can cause serious problems if a builder's source tree is in a directory
2823 # whose full name contains unusual characters.
2824 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2825 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2826 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2829 # Make sure we can run config.sub.
2830 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2831 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2832 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2833 { (exit 1); exit 1; }; }
2835 { echo "$as_me:$LINENO: checking build system type" >&5
2836 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2837 if test "${ac_cv_build+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 ac_build_alias=$build_alias
2841 test "x$ac_build_alias" = x &&
2842 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2843 test "x$ac_build_alias" = x &&
2844 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2845 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2846 { (exit 1); exit 1; }; }
2847 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2848 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2849 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2850 { (exit 1); exit 1; }; }
2853 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2854 echo "${ECHO_T}$ac_cv_build" >&6; }
2855 case $ac_cv_build in
2857 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2858 echo "$as_me: error: invalid value of canonical build" >&2;}
2859 { (exit 1); exit 1; }; };;
2862 ac_save_IFS=$IFS; IFS='-'
2868 # Remember, the first character of IFS is used to create $*,
2869 # except with old shells:
2872 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2875 { echo "$as_me:$LINENO: checking host system type" >&5
2876 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2877 if test "${ac_cv_host+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test "x$host_alias" = x; then
2881 ac_cv_host=$ac_cv_build
2883 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2884 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2885 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2886 { (exit 1); exit 1; }; }
2890 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2891 echo "${ECHO_T}$ac_cv_host" >&6; }
2894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2895 echo "$as_me: error: invalid value of canonical host" >&2;}
2896 { (exit 1); exit 1; }; };;
2899 ac_save_IFS=$IFS; IFS='-'
2905 # Remember, the first character of IFS is used to create $*,
2906 # except with old shells:
2909 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2919 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2920 # On Suns, sometimes $CPP names a directory.
2921 if test -n "$CPP" && test -d "$CPP"; then
2924 if test -z "$CPP"; then
2925 if test "${ac_cv_prog_CPP+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 # Double quotes because CPP needs to be expanded
2929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2932 for ac_c_preproc_warn_flag in '' yes
2934 # Use a header file that comes with gcc, so configuring glibc
2935 # with a fresh cross-compiler works.
2936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 # <limits.h> exists even on freestanding compilers.
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp. "Syntax error" is here to catch this case.
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2947 # include <limits.h>
2949 # include <assert.h>
2953 if { (ac_try="$ac_cpp conftest.$ac_ext"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2961 grep -v '^ *+' conftest.er1 >conftest.err
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } >/dev/null; then
2966 if test -s conftest.err; then
2967 ac_cpp_err=$ac_c_preproc_warn_flag
2968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2975 if test -z "$ac_cpp_err"; then
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2981 # Broken: fails on valid input.
2985 rm -f conftest.err conftest.$ac_ext
2987 # OK, works on sane cases. Now check whether nonexistent headers
2988 # can be detected and how.
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 <ac_nonexistent.h>
2997 if { (ac_try="$ac_cpp conftest.$ac_ext"
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3005 grep -v '^ *+' conftest.er1 >conftest.err
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null; then
3010 if test -s conftest.err; then
3011 ac_cpp_err=$ac_c_preproc_warn_flag
3012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3019 if test -z "$ac_cpp_err"; then
3020 # Broken: success on invalid input.
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 # Passes both tests.
3031 rm -f conftest.err conftest.$ac_ext
3034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035 rm -f conftest.err conftest.$ac_ext
3036 if $ac_preproc_ok; then
3048 { echo "$as_me:$LINENO: result: $CPP" >&5
3049 echo "${ECHO_T}$CPP" >&6; }
3051 for ac_c_preproc_warn_flag in '' yes
3053 # Use a header file that comes with gcc, so configuring glibc
3054 # with a fresh cross-compiler works.
3055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056 # <limits.h> exists even on freestanding compilers.
3057 # On the NeXT, cc -E runs the code through the compiler's parser,
3058 # not just through cpp. "Syntax error" is here to catch this case.
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3066 # include <limits.h>
3068 # include <assert.h>
3072 if { (ac_try="$ac_cpp conftest.$ac_ext"
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3080 grep -v '^ *+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } >/dev/null; then
3085 if test -s conftest.err; then
3086 ac_cpp_err=$ac_c_preproc_warn_flag
3087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094 if test -z "$ac_cpp_err"; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 # Broken: fails on valid input.
3104 rm -f conftest.err conftest.$ac_ext
3106 # OK, works on sane cases. Now check whether nonexistent headers
3107 # can be detected and how.
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3114 #include <ac_nonexistent.h>
3116 if { (ac_try="$ac_cpp conftest.$ac_ext"
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3124 grep -v '^ *+' conftest.er1 >conftest.err
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null; then
3129 if test -s conftest.err; then
3130 ac_cpp_err=$ac_c_preproc_warn_flag
3131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3138 if test -z "$ac_cpp_err"; then
3139 # Broken: success on invalid input.
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 # Passes both tests.
3150 rm -f conftest.err conftest.$ac_ext
3153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3154 rm -f conftest.err conftest.$ac_ext
3155 if $ac_preproc_ok; then
3158 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." >&5
3160 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3161 See \`config.log' for more details." >&2;}
3162 { (exit 1); exit 1; }; }
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3173 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3174 if test "${ac_cv_path_GREP+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 # Extract the first word of "grep ggrep" to use in msg output
3178 if test -z "$GREP"; then
3179 set dummy grep ggrep; ac_prog_name=$2
3180 if test "${ac_cv_path_GREP+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 ac_path_GREP_found=false
3184 # Loop through the user's path and test for each of PROGNAME-LIST
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3189 test -z "$as_dir" && as_dir=.
3190 for ac_prog in grep ggrep; do
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3193 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3194 # Check for GNU ac_path_GREP and select it if it is found.
3195 # Check for GNU $ac_path_GREP
3196 case `"$ac_path_GREP" --version 2>&1` in
3198 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3201 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3204 cat "conftest.in" "conftest.in" >"conftest.tmp"
3205 mv "conftest.tmp" "conftest.in"
3206 cp "conftest.in" "conftest.nl"
3207 echo 'GREP' >> "conftest.nl"
3208 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3210 ac_count=`expr $ac_count + 1`
3211 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3212 # Best one so far, save it but keep looking for a better one
3213 ac_cv_path_GREP="$ac_path_GREP"
3214 ac_path_GREP_max=$ac_count
3216 # 10*(2^10) chars as input seems more than enough
3217 test $ac_count -gt 10 && break
3219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3223 $ac_path_GREP_found && break 3
3233 GREP="$ac_cv_path_GREP"
3234 if test -z "$GREP"; then
3235 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3236 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3237 { (exit 1); exit 1; }; }
3241 ac_cv_path_GREP=$GREP
3246 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3247 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3248 GREP="$ac_cv_path_GREP"
3251 { echo "$as_me:$LINENO: checking for egrep" >&5
3252 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3253 if test "${ac_cv_path_EGREP+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3257 then ac_cv_path_EGREP="$GREP -E"
3259 # Extract the first word of "egrep" to use in msg output
3260 if test -z "$EGREP"; then
3261 set dummy egrep; ac_prog_name=$2
3262 if test "${ac_cv_path_EGREP+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 ac_path_EGREP_found=false
3266 # Loop through the user's path and test for each of PROGNAME-LIST
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3271 test -z "$as_dir" && as_dir=.
3272 for ac_prog in egrep; do
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3275 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3276 # Check for GNU ac_path_EGREP and select it if it is found.
3277 # Check for GNU $ac_path_EGREP
3278 case `"$ac_path_EGREP" --version 2>&1` in
3280 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3283 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3286 cat "conftest.in" "conftest.in" >"conftest.tmp"
3287 mv "conftest.tmp" "conftest.in"
3288 cp "conftest.in" "conftest.nl"
3289 echo 'EGREP' >> "conftest.nl"
3290 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3292 ac_count=`expr $ac_count + 1`
3293 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3294 # Best one so far, save it but keep looking for a better one
3295 ac_cv_path_EGREP="$ac_path_EGREP"
3296 ac_path_EGREP_max=$ac_count
3298 # 10*(2^10) chars as input seems more than enough
3299 test $ac_count -gt 10 && break
3301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3305 $ac_path_EGREP_found && break 3
3315 EGREP="$ac_cv_path_EGREP"
3316 if test -z "$EGREP"; then
3317 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3318 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3319 { (exit 1); exit 1; }; }
3323 ac_cv_path_EGREP=$EGREP
3329 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3330 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3331 EGREP="$ac_cv_path_EGREP"
3334 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3335 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3336 if test "${ac_cv_header_stdc+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 cat >conftest.$ac_ext <<_ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3358 rm -f conftest.$ac_objext
3359 if { (ac_try="$ac_compile"
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_compile") 2>conftest.er1
3367 grep -v '^ *+' conftest.er1 >conftest.err
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3373 { (case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_try") 2>&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest.$ac_objext'
3383 { (case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_try") 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_header_stdc=yes
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 ac_cv_header_stdc=no
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 if test $ac_cv_header_stdc = yes; then
3403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 $EGREP "memchr" >/dev/null 2>&1; then
3417 ac_cv_header_stdc=no
3423 if test $ac_cv_header_stdc = yes; then
3424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3425 cat >conftest.$ac_ext <<_ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3435 $EGREP "free" >/dev/null 2>&1; then
3438 ac_cv_header_stdc=no
3444 if test $ac_cv_header_stdc = yes; then
3445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3446 if test "$cross_compiling" = yes; then
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3457 #if ((' ' & 0x0FF) == 0x020)
3458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3461 # define ISLOWER(c) \
3462 (('a' <= (c) && (c) <= 'i') \
3463 || ('j' <= (c) && (c) <= 'r') \
3464 || ('s' <= (c) && (c) <= 'z'))
3465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3473 for (i = 0; i < 256; i++)
3474 if (XOR (islower (i), ISLOWER (i))
3475 || toupper (i) != TOUPPER (i))
3480 rm -f conftest$ac_exeext
3481 if { (ac_try="$ac_link"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_link") 2>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3491 { (case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_try") 2>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3502 echo "$as_me: program exited with status $ac_status" >&5
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3507 ac_cv_header_stdc=no
3509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3515 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3516 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3517 if test $ac_cv_header_stdc = yes; then
3519 cat >>confdefs.h <<\_ACEOF
3520 #define STDC_HEADERS 1
3525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3535 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3536 inttypes.h stdint.h unistd.h
3538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 $ac_includes_default
3552 #include <$ac_header>
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3569 { (case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_try") 2>&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_try") 2>&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 eval "$as_ac_Header=yes"
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 eval "$as_ac_Header=no"
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_res=`eval echo '${'$as_ac_Header'}'`
3599 { echo "$as_me:$LINENO: result: $ac_res" >&5
3600 echo "${ECHO_T}$ac_res" >&6; }
3601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602 cat >>confdefs.h <<_ACEOF
3603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3611 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3612 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3613 if test "${ac_cv_c_bigendian+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 # See if sys/param.h defines the BYTE_ORDER macro.
3617 cat >conftest.$ac_ext <<_ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include <sys/types.h>
3624 #include <sys/param.h>
3629 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3637 rm -f conftest.$ac_objext
3638 if { (ac_try="$ac_compile"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_compile") 2>conftest.er1
3646 grep -v '^ *+' conftest.er1 >conftest.err
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3652 { (case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_try") 2>&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_try") 2>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 # It does; now see whether it defined to BIG_ENDIAN or not.
3672 cat >conftest.$ac_ext <<_ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3678 #include <sys/types.h>
3679 #include <sys/param.h>
3684 #if BYTE_ORDER != BIG_ENDIAN
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_compile") 2>conftest.er1
3701 grep -v '^ *+' conftest.er1 >conftest.err
3703 cat conftest.err >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3707 { (case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712 (eval "$ac_try") 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_try") 2>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_cv_c_bigendian=yes
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 ac_cv_c_bigendian=no
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 # It does not; compile a test program.
3740 if test "$cross_compiling" = yes; then
3741 # try to guess the endianness by grepping values into an object file
3742 ac_cv_c_bigendian=unknown
3743 cat >conftest.$ac_ext <<_ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3750 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3751 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3752 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3753 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3754 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3758 _ascii (); _ebcdic ();
3763 rm -f conftest.$ac_objext
3764 if { (ac_try="$ac_compile"
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770 (eval "$ac_compile") 2>conftest.er1
3772 grep -v '^ *+' conftest.er1 >conftest.err
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3778 { (case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3783 (eval "$ac_try") 2>&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest.$ac_objext'
3788 { (case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_try") 2>&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3798 ac_cv_c_bigendian=yes
3800 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3801 if test "$ac_cv_c_bigendian" = unknown; then
3802 ac_cv_c_bigendian=no
3804 # finding both strings is unlikely to happen, but who knows?
3805 ac_cv_c_bigendian=unknown
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 $ac_includes_default
3828 /* Are we little or big endian? From Harbison&Steele. */
3832 char c[sizeof (long int)];
3835 return u.c[sizeof (long int) - 1] == 1;
3841 rm -f conftest$ac_exeext
3842 if { (ac_try="$ac_link"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_link") 2>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 ac_cv_c_bigendian=no
3863 echo "$as_me: program exited with status $ac_status" >&5
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3868 ac_cv_c_bigendian=yes
3870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3879 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3880 case $ac_cv_c_bigendian in
3883 cat >>confdefs.h <<\_ACEOF
3884 #define WORDS_BIGENDIAN 1
3890 { { echo "$as_me:$LINENO: error: unknown endianness
3891 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3892 echo "$as_me: error: unknown endianness
3893 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3894 { (exit 1); exit 1; }; } ;;
3898 # Checks for programs.
3899 for ac_prog in gawk mawk nawk awk
3901 # Extract the first word of "$ac_prog", so it can be a program name with args.
3902 set dummy $ac_prog; ac_word=$2
3903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3905 if test "${ac_cv_prog_AWK+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 if test -n "$AWK"; then
3909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 ac_cv_prog_AWK="$ac_prog"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 if test -n "$AWK"; then
3930 { echo "$as_me:$LINENO: result: $AWK" >&5
3931 echo "${ECHO_T}$AWK" >&6; }
3933 { echo "$as_me:$LINENO: result: no" >&5
3934 echo "${ECHO_T}no" >&6; }
3938 test -n "$AWK" && break
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3947 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3948 # On Suns, sometimes $CPP names a directory.
3949 if test -n "$CPP" && test -d "$CPP"; then
3952 if test -z "$CPP"; then
3953 if test "${ac_cv_prog_CPP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 # Double quotes because CPP needs to be expanded
3957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3960 for ac_c_preproc_warn_flag in '' yes
3962 # Use a header file that comes with gcc, so configuring glibc
3963 # with a fresh cross-compiler works.
3964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3965 # <limits.h> exists even on freestanding compilers.
3966 # On the NeXT, cc -E runs the code through the compiler's parser,
3967 # not just through cpp. "Syntax error" is here to catch this case.
3968 cat >conftest.$ac_ext <<_ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3975 # include <limits.h>
3977 # include <assert.h>
3981 if { (ac_try="$ac_cpp conftest.$ac_ext"
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } >/dev/null; then
3994 if test -s conftest.err; then
3995 ac_cpp_err=$ac_c_preproc_warn_flag
3996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4003 if test -z "$ac_cpp_err"; then
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 # Broken: fails on valid input.
4013 rm -f conftest.err conftest.$ac_ext
4015 # OK, works on sane cases. Now check whether nonexistent headers
4016 # can be detected and how.
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 #include <ac_nonexistent.h>
4025 if { (ac_try="$ac_cpp conftest.$ac_ext"
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } >/dev/null; then
4038 if test -s conftest.err; then
4039 ac_cpp_err=$ac_c_preproc_warn_flag
4040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4047 if test -z "$ac_cpp_err"; then
4048 # Broken: success on invalid input.
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 # Passes both tests.
4059 rm -f conftest.err conftest.$ac_ext
4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063 rm -f conftest.err conftest.$ac_ext
4064 if $ac_preproc_ok; then
4076 { echo "$as_me:$LINENO: result: $CPP" >&5
4077 echo "${ECHO_T}$CPP" >&6; }
4079 for ac_c_preproc_warn_flag in '' yes
4081 # Use a header file that comes with gcc, so configuring glibc
4082 # with a fresh cross-compiler works.
4083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084 # <limits.h> exists even on freestanding compilers.
4085 # On the NeXT, cc -E runs the code through the compiler's parser,
4086 # not just through cpp. "Syntax error" is here to catch this case.
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4094 # include <limits.h>
4096 # include <assert.h>
4100 if { (ac_try="$ac_cpp conftest.$ac_ext"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev/null; then
4113 if test -s conftest.err; then
4114 ac_cpp_err=$ac_c_preproc_warn_flag
4115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4122 if test -z "$ac_cpp_err"; then
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4128 # Broken: fails on valid input.
4132 rm -f conftest.err conftest.$ac_ext
4134 # OK, works on sane cases. Now check whether nonexistent headers
4135 # can be detected and how.
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <ac_nonexistent.h>
4144 if { (ac_try="$ac_cpp conftest.$ac_ext"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4152 grep -v '^ *+' conftest.er1 >conftest.err
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } >/dev/null; then
4157 if test -s conftest.err; then
4158 ac_cpp_err=$ac_c_preproc_warn_flag
4159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4166 if test -z "$ac_cpp_err"; then
4167 # Broken: success on invalid input.
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 # Passes both tests.
4178 rm -f conftest.err conftest.$ac_ext
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.err conftest.$ac_ext
4183 if $ac_preproc_ok; then
4186 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4187 See \`config.log' for more details." >&5
4188 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4189 See \`config.log' for more details." >&2;}
4190 { (exit 1); exit 1; }; }
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199 if test -n "$ac_tool_prefix"; then
4200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4201 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204 if test "${ac_cv_prog_RANLIB+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 if test -n "$RANLIB"; then
4208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 RANLIB=$ac_cv_prog_RANLIB
4228 if test -n "$RANLIB"; then
4229 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4230 echo "${ECHO_T}$RANLIB" >&6; }
4232 { echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6; }
4238 if test -z "$ac_cv_prog_RANLIB"; then
4239 ac_ct_RANLIB=$RANLIB
4240 # Extract the first word of "ranlib", so it can be a program name with args.
4241 set dummy ranlib; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 if test -n "$ac_ct_RANLIB"; then
4248 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_ac_ct_RANLIB="ranlib"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4268 if test -n "$ac_ct_RANLIB"; then
4269 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4270 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4272 { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4276 if test "x$ac_ct_RANLIB" = x; then
4279 case $cross_compiling:$ac_tool_warned in
4281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4282 whose name does not start with the host triplet. If you think this
4283 configuration is useful to you, please write to autoconf@gnu.org." >&5
4284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4285 whose name does not start with the host triplet. If you think this
4286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4287 ac_tool_warned=yes ;;
4289 RANLIB=$ac_ct_RANLIB
4292 RANLIB="$ac_cv_prog_RANLIB"
4295 # Find a good install program. We prefer a C program (faster),
4296 # so one script is as good as another. But avoid the broken or
4297 # incompatible versions:
4298 # SysV /etc/install, /usr/sbin/install
4299 # SunOS /usr/etc/install
4300 # IRIX /sbin/install
4302 # AmigaOS /C/install, which installs bootblocks on floppy discs
4303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4306 # OS/2's system install, which has a completely different semantic
4307 # ./install, which can be erroneously created by make from ./install.sh.
4308 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4309 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4310 if test -z "$INSTALL"; then
4311 if test "${ac_cv_path_install+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir=.
4319 # Account for people who put trailing slashes in PATH elements.
4321 ./ | .// | /cC/* | \
4322 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4323 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4326 # OSF1 and SCO ODT 3.0 have their own names for install.
4327 # Don't use installbsd from OSF since it installs stuff as root
4329 for ac_prog in ginstall scoinst install; do
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4332 if test $ac_prog = install &&
4333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4334 # AIX install. It has an incompatible calling convention.
4336 elif test $ac_prog = install &&
4337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4338 # program-specific install script used by HP pwplus--don't use.
4341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4354 if test "${ac_cv_path_install+set}" = set; then
4355 INSTALL=$ac_cv_path_install
4357 # As a last resort, use the slow shell script. Don't cache a
4358 # value for INSTALL within a source directory, because that will
4359 # break other packages using the cache if that directory is
4360 # removed, or if the value is a relative name.
4361 INSTALL=$ac_install_sh
4364 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4365 echo "${ECHO_T}$INSTALL" >&6; }
4367 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4368 # It thinks the first close brace ends the variable substitution.
4369 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4371 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4373 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4375 { echo "$as_me:$LINENO: checking for egrep" >&5
4376 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4377 if test "${ac_cv_path_EGREP+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4381 then ac_cv_path_EGREP="$GREP -E"
4383 # Extract the first word of "egrep" to use in msg output
4384 if test -z "$EGREP"; then
4385 set dummy egrep; ac_prog_name=$2
4386 if test "${ac_cv_path_EGREP+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 ac_path_EGREP_found=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395 test -z "$as_dir" && as_dir=.
4396 for ac_prog in egrep; do
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4399 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4400 # Check for GNU ac_path_EGREP and select it if it is found.
4401 # Check for GNU $ac_path_EGREP
4402 case `"$ac_path_EGREP" --version 2>&1` in
4404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4407 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 echo 'EGREP' >> "conftest.nl"
4414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416 ac_count=`expr $ac_count + 1`
4417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_EGREP="$ac_path_EGREP"
4420 ac_path_EGREP_max=$ac_count
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429 $ac_path_EGREP_found && break 3
4439 EGREP="$ac_cv_path_EGREP"
4440 if test -z "$EGREP"; then
4441 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4442 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4443 { (exit 1); exit 1; }; }
4447 ac_cv_path_EGREP=$EGREP
4453 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4454 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4455 EGREP="$ac_cv_path_EGREP"
4458 # Extract the first word of "ar", so it can be a program name with args.
4459 set dummy ar; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_path_AR+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 if test -n "$AR"; then
4490 { echo "$as_me:$LINENO: result: $AR" >&5
4491 echo "${ECHO_T}$AR" >&6; }
4493 { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4498 # Extract the first word of "cat", so it can be a program name with args.
4499 set dummy cat; ac_word=$2
4500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4502 if test "${ac_cv_path_CAT+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 if test -n "$CAT"; then
4530 { echo "$as_me:$LINENO: result: $CAT" >&5
4531 echo "${ECHO_T}$CAT" >&6; }
4533 { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4538 # Extract the first word of "kill", so it can be a program name with args.
4539 set dummy kill; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_path_KILL+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 KILL=$ac_cv_path_KILL
4569 if test -n "$KILL"; then
4570 { echo "$as_me:$LINENO: result: $KILL" >&5
4571 echo "${ECHO_T}$KILL" >&6; }
4573 { echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6; }
4578 for ac_prog in perl5 perl
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_path_PERL+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 PERL=$ac_cv_path_PERL
4611 if test -n "$PERL"; then
4612 { echo "$as_me:$LINENO: result: $PERL" >&5
4613 echo "${ECHO_T}$PERL" >&6; }
4615 { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4620 test -n "$PERL" && break
4623 # Extract the first word of "sed", so it can be a program name with args.
4624 set dummy sed; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_path_SED+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 if test -n "$SED"; then
4655 { echo "$as_me:$LINENO: result: $SED" >&5
4656 echo "${ECHO_T}$SED" >&6; }
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4664 # Extract the first word of "ent", so it can be a program name with args.
4665 set dummy ent; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_path_ENT+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 if test -n "$ENT"; then
4696 { echo "$as_me:$LINENO: result: $ENT" >&5
4697 echo "${ECHO_T}$ENT" >&6; }
4699 { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4705 # Extract the first word of "bash", so it can be a program name with args.
4706 set dummy bash; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 case $TEST_MINUS_S_SH in
4714 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4736 if test -n "$TEST_MINUS_S_SH"; then
4737 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4738 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4740 { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4745 # Extract the first word of "ksh", so it can be a program name with args.
4746 set dummy ksh; ac_word=$2
4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 case $TEST_MINUS_S_SH in
4754 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4776 if test -n "$TEST_MINUS_S_SH"; then
4777 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4778 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4780 { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4785 # Extract the first word of "sh", so it can be a program name with args.
4786 set dummy sh; ac_word=$2
4787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 case $TEST_MINUS_S_SH in
4794 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4816 if test -n "$TEST_MINUS_S_SH"; then
4817 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4818 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4825 # Extract the first word of "sh", so it can be a program name with args.
4826 set dummy sh; ac_word=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_path_SH+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 if test -n "$SH"; then
4857 { echo "$as_me:$LINENO: result: $SH" >&5
4858 echo "${ECHO_T}$SH" >&6; }
4860 { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4868 # Extract the first word of "groupadd", so it can be a program name with args.
4869 set dummy groupadd; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 case $PATH_GROUPADD_PROG in
4877 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4899 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4900 if test -n "$PATH_GROUPADD_PROG"; then
4901 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4902 echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4904 { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4909 # Extract the first word of "useradd", so it can be a program name with args.
4910 set dummy useradd; ac_word=$2
4911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913 if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 case $PATH_USERADD_PROG in
4918 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4940 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4941 if test -n "$PATH_USERADD_PROG"; then
4942 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4943 echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4945 { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4950 # Extract the first word of "pkgmk", so it can be a program name with args.
4951 set dummy pkgmk; ac_word=$2
4952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954 if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4958 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4978 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4979 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4980 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4981 echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4983 { echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6; }
4988 if test -x /sbin/sh; then
4989 STARTUP_SCRIPT_SHELL=/sbin/sh
4992 STARTUP_SCRIPT_SHELL=/bin/sh
4997 # Check whether --enable-largefile was given.
4998 if test "${enable_largefile+set}" = set; then
4999 enableval=$enable_largefile;
5002 if test "$enable_largefile" != no; then
5004 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5005 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5006 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 ac_cv_sys_largefile_CC=no
5010 if test "$GCC" != yes; then
5013 # IRIX 6.2 and later do not support large files by default,
5014 # so use the C compiler's -n32 option if that helps.
5015 cat >conftest.$ac_ext <<_ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 #include <sys/types.h>
5022 /* Check that off_t can represent 2**63 - 1 correctly.
5023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5024 since some C++ compilers masquerading as C compilers
5025 incorrectly reject 9223372036854775807. */
5026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5028 && LARGE_OFF_T % 2147483647 == 1)
5038 rm -f conftest.$ac_objext
5039 if { (ac_try="$ac_compile"
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>conftest.er1
5047 grep -v '^ *+' conftest.er1 >conftest.err
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } &&
5052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5053 { (case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_try") 2>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_try") 2>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5080 rm -f core conftest.err conftest.$ac_objext
5082 rm -f conftest.$ac_objext
5083 if { (ac_try="$ac_compile"
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_compile") 2>conftest.er1
5091 grep -v '^ *+' conftest.er1 >conftest.err
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5097 { (case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_try") 2>&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; } &&
5106 { ac_try='test -s conftest.$ac_objext'
5107 { (case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_try") 2>&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_sys_largefile_CC=' -n32'; break
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5124 rm -f core conftest.err conftest.$ac_objext
5128 rm -f conftest.$ac_ext
5131 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5132 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5133 if test "$ac_cv_sys_largefile_CC" != no; then
5134 CC=$CC$ac_cv_sys_largefile_CC
5137 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5138 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5139 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 ac_cv_sys_file_offset_bits=no
5144 cat >conftest.$ac_ext <<_ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 #include <sys/types.h>
5151 /* Check that off_t can represent 2**63 - 1 correctly.
5152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5153 since some C++ compilers masquerading as C compilers
5154 incorrectly reject 9223372036854775807. */
5155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5157 && LARGE_OFF_T % 2147483647 == 1)
5167 rm -f conftest.$ac_objext
5168 if { (ac_try="$ac_compile"
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_compile") 2>conftest.er1
5176 grep -v '^ *+' conftest.er1 >conftest.err
5178 cat conftest.err >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } &&
5181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5182 { (case "(($ac_try" in
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_try") 2>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; } &&
5191 { ac_try='test -s conftest.$ac_objext'
5192 { (case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_try") 2>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 cat >conftest.$ac_ext <<_ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 #define _FILE_OFFSET_BITS 64
5217 #include <sys/types.h>
5218 /* Check that off_t can represent 2**63 - 1 correctly.
5219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5220 since some C++ compilers masquerading as C compilers
5221 incorrectly reject 9223372036854775807. */
5222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5224 && LARGE_OFF_T % 2147483647 == 1)
5234 rm -f conftest.$ac_objext
5235 if { (ac_try="$ac_compile"
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_compile") 2>conftest.er1
5243 grep -v '^ *+' conftest.er1 >conftest.err
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } &&
5248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5249 { (case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_try") 2>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; } &&
5258 { ac_try='test -s conftest.$ac_objext'
5259 { (case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_try") 2>&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 ac_cv_sys_file_offset_bits=64; break
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5281 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5282 if test "$ac_cv_sys_file_offset_bits" != no; then
5284 cat >>confdefs.h <<_ACEOF
5285 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5290 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5291 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5292 if test "${ac_cv_sys_large_files+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 ac_cv_sys_large_files=no
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 #include <sys/types.h>
5304 /* Check that off_t can represent 2**63 - 1 correctly.
5305 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5306 since some C++ compilers masquerading as C compilers
5307 incorrectly reject 9223372036854775807. */
5308 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5310 && LARGE_OFF_T % 2147483647 == 1)
5320 rm -f conftest.$ac_objext
5321 if { (ac_try="$ac_compile"
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327 (eval "$ac_compile") 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5335 { (case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_try") 2>&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_try") 2>&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 cat >conftest.$ac_ext <<_ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #define _LARGE_FILES 1
5370 #include <sys/types.h>
5371 /* Check that off_t can represent 2**63 - 1 correctly.
5372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5373 since some C++ compilers masquerading as C compilers
5374 incorrectly reject 9223372036854775807. */
5375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5377 && LARGE_OFF_T % 2147483647 == 1)
5387 rm -f conftest.$ac_objext
5388 if { (ac_try="$ac_compile"
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_compile") 2>conftest.er1
5396 grep -v '^ *+' conftest.er1 >conftest.err
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5402 { (case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_try") 2>&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try='test -s conftest.$ac_objext'
5412 { (case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_try") 2>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 ac_cv_sys_large_files=1; break
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5434 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5435 if test "$ac_cv_sys_large_files" != no; then
5437 cat >>confdefs.h <<_ACEOF
5438 #define _LARGE_FILES $ac_cv_sys_large_files
5446 if test -z "$AR" ; then
5447 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5448 echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5449 { (exit 1); exit 1; }; }
5452 # Use LOGIN_PROGRAM from environment if possible
5453 if test ! -z "$LOGIN_PROGRAM" ; then
5455 cat >>confdefs.h <<_ACEOF
5456 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5461 # Extract the first word of "login", so it can be a program name with args.
5462 set dummy login; ac_word=$2
5463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5465 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 case $LOGIN_PROGRAM_FALLBACK in
5470 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5492 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5493 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5494 echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5496 { echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6; }
5501 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5502 cat >>confdefs.h <<_ACEOF
5503 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5509 # Extract the first word of "passwd", so it can be a program name with args.
5510 set dummy passwd; ac_word=$2
5511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5513 if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 case $PATH_PASSWD_PROG in
5518 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5528 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5540 if test -n "$PATH_PASSWD_PROG"; then
5541 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5542 echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5544 { echo "$as_me:$LINENO: result: no" >&5
5545 echo "${ECHO_T}no" >&6; }
5549 if test ! -z "$PATH_PASSWD_PROG" ; then
5551 cat >>confdefs.h <<_ACEOF
5552 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5557 if test -z "$LD" ; then
5562 { echo "$as_me:$LINENO: checking for inline" >&5
5563 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5564 if test "${ac_cv_c_inline+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 for ac_kw in inline __inline__ __inline; do
5569 cat >conftest.$ac_ext <<_ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5577 static $ac_kw foo_t static_foo () {return 0; }
5578 $ac_kw foo_t foo () {return 0; }
5582 rm -f conftest.$ac_objext
5583 if { (ac_try="$ac_compile"
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_compile") 2>conftest.er1
5591 grep -v '^ *+' conftest.er1 >conftest.err
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5597 { (case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_try") 2>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_c_inline=$ac_kw
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 test "$ac_cv_c_inline" != no && break
5629 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5630 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5633 case $ac_cv_c_inline in
5636 case $ac_cv_c_inline in
5638 *) ac_val=$ac_cv_c_inline;;
5640 cat >>confdefs.h <<_ACEOF
5642 #define inline $ac_val
5649 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5650 echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5651 if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5666 char *p = (char *) LLONG_MAX;
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5683 grep -v '^ *+' conftest.er1 >conftest.err
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5689 { (case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_try") 2>&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; } &&
5698 { ac_try='test -s conftest.$ac_objext'
5699 { (case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_try") 2>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_cv_have_decl_LLONG_MAX=yes
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 ac_cv_have_decl_LLONG_MAX=no
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5719 echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5720 if test $ac_cv_have_decl_LLONG_MAX = yes; then
5725 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5726 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5727 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5730 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5732 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5733 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;;
5737 if test -z "$have_llong_max"; then
5738 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5739 unset ac_cv_have_decl_LLONG_MAX
5740 saved_CFLAGS="$CFLAGS"
5741 CFLAGS="$CFLAGS -std=gnu99"
5742 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5743 echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5744 if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5760 char *p = (char *) LLONG_MAX;
5768 rm -f conftest.$ac_objext
5769 if { (ac_try="$ac_compile"
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compile") 2>conftest.er1
5777 grep -v '^ *+' conftest.er1 >conftest.err
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } &&
5782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5783 { (case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_try") 2>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest.$ac_objext'
5793 { (case "(($ac_try" in
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_try") 2>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 ac_cv_have_decl_LLONG_MAX=yes
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5807 ac_cv_have_decl_LLONG_MAX=no
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5813 echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5814 if test $ac_cv_have_decl_LLONG_MAX = yes; then
5817 CFLAGS="$saved_CFLAGS"
5824 # Check whether --with-rpath was given.
5825 if test "${with_rpath+set}" = set; then
5826 withval=$with_rpath;
5827 if test "x$withval" = "xno" ; then
5830 if test "x$withval" = "xyes" ; then
5838 # Messages for features tested for in target-specific section
5842 # Check for some target-specific stuff
5845 # Some versions of VAC won't allow macro redefinitions at
5846 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
5847 # particularly with older versions of vac or xlc.
5848 # It also throws errors about null macro argments, but these are
5850 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
5851 echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5859 #define testmacro foo
5860 #define testmacro bar
5861 int main(void) { exit(0); }
5864 rm -f conftest.$ac_objext
5865 if { (ac_try="$ac_compile"
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5879 { (case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_try") 2>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_try") 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 { echo "$as_me:$LINENO: result: yes" >&5
5899 echo "${ECHO_T}yes" >&6; }
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5906 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
5907 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
5908 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
5909 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
5917 echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
5918 if (test -z "$blibpath"); then
5919 blibpath="/usr/lib:/lib"
5921 saved_LDFLAGS="$LDFLAGS"
5922 if test "$GCC" = "yes"; then
5923 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
5925 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
5927 for tryflags in $flags ;do
5928 if (test -z "$blibflags"); then
5929 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (ac_try="$ac_link"
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_link") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1 >conftest.err
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5960 { (case "(($ac_try" in
5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_try") 2>&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest$ac_exeext'
5970 { (case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_try") 2>&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5987 rm -f core conftest.err conftest.$ac_objext \
5988 conftest$ac_exeext conftest.$ac_ext
5991 if (test -z "$blibflags"); then
5992 { echo "$as_me:$LINENO: result: not found" >&5
5993 echo "${ECHO_T}not found" >&6; }
5994 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
5995 echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
5996 { (exit 1); exit 1; }; }
5998 { echo "$as_me:$LINENO: result: $blibflags" >&5
5999 echo "${ECHO_T}$blibflags" >&6; }
6001 LDFLAGS="$saved_LDFLAGS"
6002 { echo "$as_me:$LINENO: checking for authenticate" >&5
6003 echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6004 if test "${ac_cv_func_authenticate+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 cat >conftest.$ac_ext <<_ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6015 #define authenticate innocuous_authenticate
6017 /* System header to define __stub macros and hopefully few prototypes,
6018 which can conflict with char authenticate (); below.
6019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6020 <limits.h> exists even on freestanding compilers. */
6023 # include <limits.h>
6025 # include <assert.h>
6030 /* Override any GCC internal prototype to avoid an error.
6031 Use char because int might match the return type of a GCC
6032 builtin and then its argument prototype would still apply. */
6036 char authenticate ();
6037 /* The GNU C library defines this for functions which it implements
6038 to always fail with ENOSYS. Some functions are actually named
6039 something starting with __ and the normal name is an alias. */
6040 #if defined __stub_authenticate || defined __stub___authenticate
6047 return authenticate ();
6052 rm -f conftest.$ac_objext conftest$ac_exeext
6053 if { (ac_try="$ac_link"
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059 (eval "$ac_link") 2>conftest.er1
6061 grep -v '^ *+' conftest.er1 >conftest.err
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6067 { (case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_try") 2>&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; } &&
6076 { ac_try='test -s conftest$ac_exeext'
6077 { (case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_try") 2>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6086 ac_cv_func_authenticate=yes
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 ac_cv_func_authenticate=no
6094 rm -f core conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext conftest.$ac_ext
6097 { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6098 echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6099 if test $ac_cv_func_authenticate = yes; then
6101 cat >>confdefs.h <<\_ACEOF
6102 #define WITH_AIXAUTHENTICATE 1
6106 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6107 echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6108 if test "${ac_cv_lib_s_authenticate+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 ac_check_lib_save_LIBS=$LIBS
6113 cat >conftest.$ac_ext <<_ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6120 /* Override any GCC internal prototype to avoid an error.
6121 Use char because int might match the return type of a GCC
6122 builtin and then its argument prototype would still apply. */
6126 char authenticate ();
6130 return authenticate ();
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (ac_try="$ac_link"
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_link") 2>conftest.er1
6144 grep -v '^ *+' conftest.er1 >conftest.err
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } &&
6149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6150 { (case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_try") 2>&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; } &&
6159 { ac_try='test -s conftest$ac_exeext'
6160 { (case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_try") 2>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_lib_s_authenticate=yes
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 ac_cv_lib_s_authenticate=no
6177 rm -f core conftest.err conftest.$ac_objext \
6178 conftest$ac_exeext conftest.$ac_ext
6179 LIBS=$ac_check_lib_save_LIBS
6181 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6182 echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6183 if test $ac_cv_lib_s_authenticate = yes; then
6184 cat >>confdefs.h <<\_ACEOF
6185 #define WITH_AIXAUTHENTICATE 1
6195 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6196 echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6197 if test "${ac_cv_have_decl_authenticate+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 cat >conftest.$ac_ext <<_ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 #include <usersec.h>
6211 #ifndef authenticate
6212 char *p = (char *) authenticate;
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6229 grep -v '^ *+' conftest.er1 >conftest.err
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
6234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6235 { (case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_try") 2>&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_try") 2>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_have_decl_authenticate=yes
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 ac_cv_have_decl_authenticate=no
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6265 echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6266 if test $ac_cv_have_decl_authenticate = yes; then
6268 cat >>confdefs.h <<_ACEOF
6269 #define HAVE_DECL_AUTHENTICATE 1
6274 cat >>confdefs.h <<_ACEOF
6275 #define HAVE_DECL_AUTHENTICATE 0
6280 { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6281 echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6282 if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 cat >conftest.$ac_ext <<_ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 #include <usersec.h>
6296 #ifndef loginrestrictions
6297 char *p = (char *) loginrestrictions;
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6314 grep -v '^ *+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_have_decl_loginrestrictions=yes
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 ac_cv_have_decl_loginrestrictions=no
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6350 echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6351 if test $ac_cv_have_decl_loginrestrictions = yes; then
6353 cat >>confdefs.h <<_ACEOF
6354 #define HAVE_DECL_LOGINRESTRICTIONS 1
6359 cat >>confdefs.h <<_ACEOF
6360 #define HAVE_DECL_LOGINRESTRICTIONS 0
6365 { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6366 echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6367 if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 cat >conftest.$ac_ext <<_ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 #include <usersec.h>
6381 #ifndef loginsuccess
6382 char *p = (char *) loginsuccess;
6390 rm -f conftest.$ac_objext
6391 if { (ac_try="$ac_compile"
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_try") 2>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_cv_have_decl_loginsuccess=yes
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 ac_cv_have_decl_loginsuccess=no
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6435 echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6436 if test $ac_cv_have_decl_loginsuccess = yes; then
6438 cat >>confdefs.h <<_ACEOF
6439 #define HAVE_DECL_LOGINSUCCESS 1
6444 cat >>confdefs.h <<_ACEOF
6445 #define HAVE_DECL_LOGINSUCCESS 0
6450 { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6451 echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6452 if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 cat >conftest.$ac_ext <<_ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 #include <usersec.h>
6466 #ifndef passwdexpired
6467 char *p = (char *) passwdexpired;
6475 rm -f conftest.$ac_objext
6476 if { (ac_try="$ac_compile"
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_compile") 2>conftest.er1
6484 grep -v '^ *+' conftest.er1 >conftest.err
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6490 { (case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_try") 2>&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest.$ac_objext'
6500 { (case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_try") 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_have_decl_passwdexpired=yes
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 ac_cv_have_decl_passwdexpired=no
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6520 echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6521 if test $ac_cv_have_decl_passwdexpired = yes; then
6523 cat >>confdefs.h <<_ACEOF
6524 #define HAVE_DECL_PASSWDEXPIRED 1
6529 cat >>confdefs.h <<_ACEOF
6530 #define HAVE_DECL_PASSWDEXPIRED 0
6535 { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6536 echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6537 if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #include <usersec.h>
6552 char *p = (char *) setauthdb;
6560 rm -f conftest.$ac_objext
6561 if { (ac_try="$ac_compile"
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_compile") 2>conftest.er1
6569 grep -v '^ *+' conftest.er1 >conftest.err
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6575 { (case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_try") 2>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; } &&
6584 { ac_try='test -s conftest.$ac_objext'
6585 { (case "(($ac_try" in
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590 (eval "$ac_try") 2>&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_have_decl_setauthdb=yes
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_cv_have_decl_setauthdb=no
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6605 echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6606 if test $ac_cv_have_decl_setauthdb = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define HAVE_DECL_SETAUTHDB 1
6614 cat >>confdefs.h <<_ACEOF
6615 #define HAVE_DECL_SETAUTHDB 0
6622 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6623 echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6624 if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 cat >conftest.$ac_ext <<_ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 #include <usersec.h>
6640 char *p = (char *) loginfailed;
6648 rm -f conftest.$ac_objext
6649 if { (ac_try="$ac_compile"
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_compile") 2>conftest.er1
6657 grep -v '^ *+' conftest.er1 >conftest.err
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6663 { (case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_try") 2>&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; } &&
6672 { ac_try='test -s conftest.$ac_objext'
6673 { (case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678 (eval "$ac_try") 2>&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_have_decl_loginfailed=yes
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6687 ac_cv_have_decl_loginfailed=no
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6693 echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6694 if test $ac_cv_have_decl_loginfailed = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697 #define HAVE_DECL_LOGINFAILED 1
6700 { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6701 echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6702 cat >conftest.$ac_ext <<_ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 #include <usersec.h>
6712 (void)loginfailed("user","host","tty",0);
6717 rm -f conftest.$ac_objext
6718 if { (ac_try="$ac_compile"
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_compile") 2>conftest.er1
6726 grep -v '^ *+' conftest.er1 >conftest.err
6728 cat conftest.err >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } &&
6731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6732 { (case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_try") 2>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest.$ac_objext'
6742 { (case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_try") 2>&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 { echo "$as_me:$LINENO: result: yes" >&5
6752 echo "${ECHO_T}yes" >&6; }
6754 cat >>confdefs.h <<\_ACEOF
6755 #define AIX_LOGINFAILED_4ARG 1
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 cat >>confdefs.h <<_ACEOF
6770 #define HAVE_DECL_LOGINFAILED 0
6778 for ac_func in setauthdb
6780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 cat >conftest.$ac_ext <<_ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6794 #define $ac_func innocuous_$ac_func
6796 /* System header to define __stub macros and hopefully few prototypes,
6797 which can conflict with char $ac_func (); below.
6798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6799 <limits.h> exists even on freestanding compilers. */
6802 # include <limits.h>
6804 # include <assert.h>
6809 /* Override any GCC internal prototype to avoid an error.
6810 Use char because int might match the return type of a GCC
6811 builtin and then its argument prototype would still apply. */
6816 /* The GNU C library defines this for functions which it implements
6817 to always fail with ENOSYS. Some functions are actually named
6818 something starting with __ and the normal name is an alias. */
6819 #if defined __stub_$ac_func || defined __stub___$ac_func
6831 rm -f conftest.$ac_objext conftest$ac_exeext
6832 if { (ac_try="$ac_link"
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_link") 2>conftest.er1
6840 grep -v '^ *+' conftest.er1 >conftest.err
6842 cat conftest.err >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6846 { (case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_try") 2>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; } &&
6855 { ac_try='test -s conftest$ac_exeext'
6856 { (case "(($ac_try" in
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861 (eval "$ac_try") 2>&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 eval "$as_ac_var=yes"
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 eval "$as_ac_var=no"
6873 rm -f core conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6876 ac_res=`eval echo '${'$as_ac_var'}'`
6877 { echo "$as_me:$LINENO: result: $ac_res" >&5
6878 echo "${ECHO_T}$ac_res" >&6; }
6879 if test `eval echo '${'$as_ac_var'}'` = yes; then
6880 cat >>confdefs.h <<_ACEOF
6881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6887 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
6888 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
6889 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 cat >conftest.$ac_ext <<_ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6906 char *p = (char *) F_CLOSEM;
6914 rm -f conftest.$ac_objext
6915 if { (ac_try="$ac_compile"
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_compile") 2>conftest.er1
6923 grep -v '^ *+' conftest.er1 >conftest.err
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6929 { (case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_try") 2>&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; } &&
6938 { ac_try='test -s conftest.$ac_objext'
6939 { (case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_try") 2>&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_have_decl_F_CLOSEM=yes
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6953 ac_cv_have_decl_F_CLOSEM=no
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
6959 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
6960 if test $ac_cv_have_decl_F_CLOSEM = yes; then
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_FCNTL_CLOSEM 1
6968 check_for_aix_broken_getaddrinfo=1
6970 cat >>confdefs.h <<\_ACEOF
6971 #define BROKEN_REALPATH 1
6975 cat >>confdefs.h <<\_ACEOF
6976 #define SETEUID_BREAKS_SETUID 1
6980 cat >>confdefs.h <<\_ACEOF
6981 #define BROKEN_SETREUID 1
6985 cat >>confdefs.h <<\_ACEOF
6986 #define BROKEN_SETREGID 1
6990 cat >>confdefs.h <<\_ACEOF
6991 #define DISABLE_LASTLOG 1
6995 cat >>confdefs.h <<\_ACEOF
6996 #define LOGIN_NEEDS_UTMPX 1
7000 cat >>confdefs.h <<\_ACEOF
7001 #define SPT_TYPE SPT_REUSEARGV
7005 cat >>confdefs.h <<\_ACEOF
7006 #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7010 cat >>confdefs.h <<\_ACEOF
7011 #define PTY_ZEROREAD 1
7016 check_for_libcrypt_later=1
7017 LIBS="$LIBS /usr/lib/textmode.o"
7019 cat >>confdefs.h <<\_ACEOF
7020 #define HAVE_CYGWIN 1
7024 cat >>confdefs.h <<\_ACEOF
7029 cat >>confdefs.h <<\_ACEOF
7030 #define DISABLE_SHADOW 1
7034 cat >>confdefs.h <<\_ACEOF
7035 #define IP_TOS_IS_BROKEN 1
7039 cat >>confdefs.h <<\_ACEOF
7040 #define NO_X11_UNIX_SOCKETS 1
7044 cat >>confdefs.h <<\_ACEOF
7045 #define NO_IPPORT_RESERVED_CONCEPT 1
7049 cat >>confdefs.h <<\_ACEOF
7050 #define DISABLE_FD_PASSING 1
7055 cat >>confdefs.h <<\_ACEOF
7056 #define IP_TOS_IS_BROKEN 1
7059 cat >>confdefs.h <<\_ACEOF
7060 #define SETEUID_BREAKS_SETUID 1
7063 cat >>confdefs.h <<\_ACEOF
7064 #define BROKEN_SETREUID 1
7067 cat >>confdefs.h <<\_ACEOF
7068 #define BROKEN_SETREGID 1
7073 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7074 echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7075 if test "$cross_compiling" = yes; then
7076 { echo "$as_me:$LINENO: result: assume it is working" >&5
7077 echo "${ECHO_T}assume it is working" >&6; }
7079 cat >conftest.$ac_ext <<_ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 #include <mach-o/dyld.h>
7086 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7092 rm -f conftest$ac_exeext
7093 if { (ac_try="$ac_link"
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_link") 2>&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7103 { (case "(($ac_try" in
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_try") 2>&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 { echo "$as_me:$LINENO: result: working" >&5
7113 echo "${ECHO_T}working" >&6; }
7115 echo "$as_me: program exited with status $ac_status" >&5
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7120 { echo "$as_me:$LINENO: result: buggy" >&5
7121 echo "${ECHO_T}buggy" >&6; }
7123 cat >>confdefs.h <<\_ACEOF
7124 #define BROKEN_GETADDRINFO 1
7128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7132 cat >>confdefs.h <<\_ACEOF
7133 #define SETEUID_BREAKS_SETUID 1
7136 cat >>confdefs.h <<\_ACEOF
7137 #define BROKEN_SETREUID 1
7140 cat >>confdefs.h <<\_ACEOF
7141 #define BROKEN_SETREGID 1
7145 cat >>confdefs.h <<_ACEOF
7146 #define BIND_8_COMPAT 1
7150 cat >>confdefs.h <<\_ACEOF
7151 #define SSH_TUN_FREEBSD 1
7155 cat >>confdefs.h <<\_ACEOF
7156 #define SSH_TUN_COMPAT_AF 1
7160 cat >>confdefs.h <<\_ACEOF
7161 #define SSH_TUN_PREPEND_AF 1
7166 SSHDLIBS="$SSHDLIBS -lcrypt"
7169 # first we define all of the options common to all HP-UX releases
7170 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7171 IPADDR_IN_DISPLAY=yes
7172 cat >>confdefs.h <<\_ACEOF
7177 cat >>confdefs.h <<\_ACEOF
7178 #define LOGIN_NO_ENDOPT 1
7181 cat >>confdefs.h <<\_ACEOF
7182 #define LOGIN_NEEDS_UTMPX 1
7186 cat >>confdefs.h <<\_ACEOF
7187 #define LOCKED_PASSWD_STRING "*"
7190 cat >>confdefs.h <<\_ACEOF
7191 #define SPT_TYPE SPT_PSTAT
7194 MAIL="/var/mail/username"
7197 { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7198 echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7199 if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 ac_check_lib_save_LIBS=$LIBS
7204 cat >conftest.$ac_ext <<_ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7211 /* Override any GCC internal prototype to avoid an error.
7212 Use char because int might match the return type of a GCC
7213 builtin and then its argument prototype would still apply. */
7226 rm -f conftest.$ac_objext conftest$ac_exeext
7227 if { (ac_try="$ac_link"
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_link") 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7241 { (case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_try") 2>&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; } &&
7250 { ac_try='test -s conftest$ac_exeext'
7251 { (case "(($ac_try" in
7252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253 *) ac_try_echo=$ac_try;;
7255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7256 (eval "$ac_try") 2>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7260 ac_cv_lib_xnet_t_error=yes
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 ac_cv_lib_xnet_t_error=no
7268 rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 LIBS=$ac_check_lib_save_LIBS
7272 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7273 echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7274 if test $ac_cv_lib_xnet_t_error = yes; then
7275 cat >>confdefs.h <<_ACEOF
7276 #define HAVE_LIBXNET 1
7282 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7283 echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7284 { (exit 1); exit 1; }; }
7288 # next, we define all of the options specific to major releases
7291 if test -z "$GCC"; then
7292 CFLAGS="$CFLAGS -Ae"
7297 cat >>confdefs.h <<\_ACEOF
7298 #define PAM_SUN_CODEBASE 1
7302 cat >>confdefs.h <<\_ACEOF
7303 #define DISABLE_UTMP 1
7307 cat >>confdefs.h <<\_ACEOF
7311 check_for_hpux_broken_getaddrinfo=1
7312 check_for_conflicting_getspnam=1
7316 # lastly, we define options specific to minor releases
7320 cat >>confdefs.h <<\_ACEOF
7321 #define HAVE_SECUREWARE 1
7324 disable_ptmx_check=yes
7325 LIBS="$LIBS -lsecpw"
7330 PATH="$PATH:/usr/etc"
7332 cat >>confdefs.h <<\_ACEOF
7333 #define BROKEN_INET_NTOA 1
7336 cat >>confdefs.h <<\_ACEOF
7337 #define SETEUID_BREAKS_SETUID 1
7340 cat >>confdefs.h <<\_ACEOF
7341 #define BROKEN_SETREUID 1
7344 cat >>confdefs.h <<\_ACEOF
7345 #define BROKEN_SETREGID 1
7349 cat >>confdefs.h <<\_ACEOF
7350 #define WITH_ABBREV_NO_TTY 1
7353 cat >>confdefs.h <<\_ACEOF
7354 #define LOCKED_PASSWD_STRING "*LK*"
7359 PATH="$PATH:/usr/etc"
7361 cat >>confdefs.h <<\_ACEOF
7362 #define WITH_IRIX_ARRAY 1
7366 cat >>confdefs.h <<\_ACEOF
7367 #define WITH_IRIX_PROJECT 1
7371 cat >>confdefs.h <<\_ACEOF
7372 #define WITH_IRIX_AUDIT 1
7375 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7376 echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7377 if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7388 #define jlimit_startjob innocuous_jlimit_startjob
7390 /* System header to define __stub macros and hopefully few prototypes,
7391 which can conflict with char jlimit_startjob (); below.
7392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7393 <limits.h> exists even on freestanding compilers. */
7396 # include <limits.h>
7398 # include <assert.h>
7401 #undef jlimit_startjob
7403 /* Override any GCC internal prototype to avoid an error.
7404 Use char because int might match the return type of a GCC
7405 builtin and then its argument prototype would still apply. */
7409 char jlimit_startjob ();
7410 /* The GNU C library defines this for functions which it implements
7411 to always fail with ENOSYS. Some functions are actually named
7412 something starting with __ and the normal name is an alias. */
7413 #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7420 return jlimit_startjob ();
7425 rm -f conftest.$ac_objext conftest$ac_exeext
7426 if { (ac_try="$ac_link"
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432 (eval "$ac_link") 2>conftest.er1
7434 grep -v '^ *+' conftest.er1 >conftest.err
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } &&
7439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7440 { (case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_try") 2>&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; } &&
7449 { ac_try='test -s conftest$ac_exeext'
7450 { (case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_try") 2>&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_func_jlimit_startjob=yes
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7464 ac_cv_func_jlimit_startjob=no
7467 rm -f core conftest.err conftest.$ac_objext \
7468 conftest$ac_exeext conftest.$ac_ext
7470 { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7471 echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7472 if test $ac_cv_func_jlimit_startjob = yes; then
7474 cat >>confdefs.h <<\_ACEOF
7475 #define WITH_IRIX_JOBS 1
7480 cat >>confdefs.h <<\_ACEOF
7481 #define BROKEN_INET_NTOA 1
7484 cat >>confdefs.h <<\_ACEOF
7485 #define SETEUID_BREAKS_SETUID 1
7488 cat >>confdefs.h <<\_ACEOF
7489 #define BROKEN_SETREUID 1
7492 cat >>confdefs.h <<\_ACEOF
7493 #define BROKEN_SETREGID 1
7497 cat >>confdefs.h <<\_ACEOF
7498 #define BROKEN_UPDWTMPX 1
7501 cat >>confdefs.h <<\_ACEOF
7502 #define WITH_ABBREV_NO_TTY 1
7505 cat >>confdefs.h <<\_ACEOF
7506 #define LOCKED_PASSWD_STRING "*LK*"
7512 check_for_libcrypt_later=1
7513 check_for_openpty_ctty_bug=1
7515 cat >>confdefs.h <<\_ACEOF
7516 #define DONT_TRY_OTHER_AF 1
7520 cat >>confdefs.h <<\_ACEOF
7521 #define PAM_TTY_KLUDGE 1
7525 cat >>confdefs.h <<\_ACEOF
7526 #define LOCKED_PASSWD_PREFIX "!"
7529 cat >>confdefs.h <<\_ACEOF
7530 #define SPT_TYPE SPT_REUSEARGV
7534 cat >>confdefs.h <<\_ACEOF
7535 #define LINK_OPNOTSUPP_ERRNO EPERM
7539 cat >>confdefs.h <<\_ACEOF
7540 #define _PATH_BTMP "/var/log/btmp"
7543 cat >>confdefs.h <<\_ACEOF
7547 inet6_default_4in6=yes
7551 cat >>confdefs.h <<\_ACEOF
7552 #define BROKEN_CMSG_TYPE 1
7557 # tun(4) forwarding compat code
7559 for ac_header in linux/if_tun.h
7561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 ac_res=`eval echo '${'$as_ac_Header'}'`
7569 { echo "$as_me:$LINENO: result: $ac_res" >&5
7570 echo "${ECHO_T}$ac_res" >&6; }
7572 # Is the header compilable?
7573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7575 cat >conftest.$ac_ext <<_ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7582 #include <$ac_header>
7584 rm -f conftest.$ac_objext
7585 if { (ac_try="$ac_compile"
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7593 grep -v '^ *+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7599 { (case "(($ac_try" in
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_try") 2>&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; } &&
7608 { ac_try='test -s conftest.$ac_objext'
7609 { (case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_try") 2>&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_header_compiler=yes
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7623 ac_header_compiler=no
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7628 echo "${ECHO_T}$ac_header_compiler" >&6; }
7630 # Is the header present?
7631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7633 cat >conftest.$ac_ext <<_ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 #include <$ac_header>
7641 if { (ac_try="$ac_cpp conftest.$ac_ext"
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7649 grep -v '^ *+' conftest.er1 >conftest.err
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } >/dev/null; then
7654 if test -s conftest.err; then
7655 ac_cpp_err=$ac_c_preproc_warn_flag
7656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7663 if test -z "$ac_cpp_err"; then
7664 ac_header_preproc=yes
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 ac_header_preproc=no
7672 rm -f conftest.err conftest.$ac_ext
7673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7674 echo "${ECHO_T}$ac_header_preproc" >&6; }
7676 # So? What about this header?
7677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7683 ac_header_preproc=yes
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7699 ## ------------------------------------------- ##
7700 ## Report this to openssh-unix-dev@mindrot.org ##
7701 ## ------------------------------------------- ##
7703 ) | sed "s/^/$as_me: WARNING: /" >&2
7706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 eval "$as_ac_Header=\$ac_header_preproc"
7713 ac_res=`eval echo '${'$as_ac_Header'}'`
7714 { echo "$as_me:$LINENO: result: $ac_res" >&5
7715 echo "${ECHO_T}$ac_res" >&6; }
7718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7719 cat >>confdefs.h <<_ACEOF
7720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7727 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7729 cat >>confdefs.h <<\_ACEOF
7730 #define SSH_TUN_LINUX 1
7734 cat >>confdefs.h <<\_ACEOF
7735 #define SSH_TUN_COMPAT_AF 1
7739 cat >>confdefs.h <<\_ACEOF
7740 #define SSH_TUN_PREPEND_AF 1
7745 mips-sony-bsd|mips-sony-newsos4)
7747 cat >>confdefs.h <<\_ACEOF
7748 #define NEED_SETPGRP 1
7754 check_for_libcrypt_before=1
7755 if test "x$withval" != "xno" ; then
7759 cat >>confdefs.h <<\_ACEOF
7760 #define SSH_TUN_FREEBSD 1
7763 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7764 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7765 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7766 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7770 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7772 # Is the header compilable?
7773 { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7774 echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7775 cat >conftest.$ac_ext <<_ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781 $ac_includes_default
7782 #include <net/if_tap.h>
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_compile") 2>conftest.er1
7793 grep -v '^ *+' conftest.er1 >conftest.err
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7799 { (case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_try") 2>&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; } &&
7808 { ac_try='test -s conftest.$ac_objext'
7809 { (case "(($ac_try" in
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_try") 2>&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818 ac_header_compiler=yes
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 ac_header_compiler=no
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7828 echo "${ECHO_T}$ac_header_compiler" >&6; }
7830 # Is the header present?
7831 { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7832 echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839 #include <net/if_tap.h>
7841 if { (ac_try="$ac_cpp conftest.$ac_ext"
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7849 grep -v '^ *+' conftest.er1 >conftest.err
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } >/dev/null; then
7854 if test -s conftest.err; then
7855 ac_cpp_err=$ac_c_preproc_warn_flag
7856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7863 if test -z "$ac_cpp_err"; then
7864 ac_header_preproc=yes
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 ac_header_preproc=no
7872 rm -f conftest.err conftest.$ac_ext
7873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874 echo "${ECHO_T}$ac_header_preproc" >&6; }
7876 # So? What about this header?
7877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7879 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7880 echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
7882 echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
7883 ac_header_preproc=yes
7886 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
7891 echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
7893 echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
7895 echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
7897 echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
7899 ## ------------------------------------------- ##
7900 ## Report this to openssh-unix-dev@mindrot.org ##
7901 ## ------------------------------------------- ##
7903 ) | sed "s/^/$as_me: WARNING: /" >&2
7906 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7907 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7908 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 ac_cv_header_net_if_tap_h=$ac_header_preproc
7913 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7914 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7917 if test $ac_cv_header_net_if_tap_h = yes; then
7921 cat >>confdefs.h <<\_ACEOF
7922 #define SSH_TUN_NO_L2 1
7929 cat >>confdefs.h <<\_ACEOF
7930 #define SSH_TUN_PREPEND_AF 1
7935 check_for_libcrypt_later=1
7937 cat >>confdefs.h <<\_ACEOF
7938 #define LOCKED_PASSWD_PREFIX "*LOCKED*"
7942 cat >>confdefs.h <<\_ACEOF
7943 #define SSH_TUN_FREEBSD 1
7946 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7947 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7948 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7949 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7953 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7955 # Is the header compilable?
7956 { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7957 echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 $ac_includes_default
7965 #include <net/if_tap.h>
7967 rm -f conftest.$ac_objext
7968 if { (ac_try="$ac_compile"
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_compile") 2>conftest.er1
7976 grep -v '^ *+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7982 { (case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_try") 2>&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try='test -s conftest.$ac_objext'
7992 { (case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_try") 2>&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 ac_header_compiler=yes
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8006 ac_header_compiler=no
8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8011 echo "${ECHO_T}$ac_header_compiler" >&6; }
8013 # Is the header present?
8014 { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8015 echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <net/if_tap.h>
8024 if { (ac_try="$ac_cpp conftest.$ac_ext"
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8032 grep -v '^ *+' conftest.er1 >conftest.err
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } >/dev/null; then
8037 if test -s conftest.err; then
8038 ac_cpp_err=$ac_c_preproc_warn_flag
8039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8046 if test -z "$ac_cpp_err"; then
8047 ac_header_preproc=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 ac_header_preproc=no
8055 rm -f conftest.err conftest.$ac_ext
8056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8057 echo "${ECHO_T}$ac_header_preproc" >&6; }
8059 # So? What about this header?
8060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8062 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8063 echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8064 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8065 echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8066 ac_header_preproc=yes
8069 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8070 echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8071 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8072 echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8073 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8074 echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8075 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8076 echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8077 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8078 echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8079 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8080 echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8082 ## ------------------------------------------- ##
8083 ## Report this to openssh-unix-dev@mindrot.org ##
8084 ## ------------------------------------------- ##
8086 ) | sed "s/^/$as_me: WARNING: /" >&2
8089 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8090 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8091 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 ac_cv_header_net_if_tap_h=$ac_header_preproc
8096 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8097 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8100 if test $ac_cv_header_net_if_tap_h = yes; then
8104 cat >>confdefs.h <<\_ACEOF
8105 #define SSH_TUN_NO_L2 1
8113 cat >>confdefs.h <<\_ACEOF
8114 #define SETEUID_BREAKS_SETUID 1
8117 cat >>confdefs.h <<\_ACEOF
8118 #define BROKEN_SETREUID 1
8121 cat >>confdefs.h <<\_ACEOF
8122 #define BROKEN_SETREGID 1
8127 conf_lastlog_location="/usr/adm/lastlog"
8128 conf_utmp_location=/etc/utmp
8129 conf_wtmp_location=/usr/adm/wtmp
8130 MAIL=/usr/spool/mail
8132 cat >>confdefs.h <<\_ACEOF
8136 cat >>confdefs.h <<\_ACEOF
8137 #define BROKEN_REALPATH 1
8140 cat >>confdefs.h <<\_ACEOF
8145 cat >>confdefs.h <<\_ACEOF
8146 #define BROKEN_SAVED_UIDS 1
8152 cat >>confdefs.h <<\_ACEOF
8153 #define HAVE_ATTRIBUTE__SENTINEL__ 1
8157 cat >>confdefs.h <<\_ACEOF
8158 #define HAVE_ATTRIBUTE__BOUNDED__ 1
8162 cat >>confdefs.h <<\_ACEOF
8163 #define SSH_TUN_OPENBSD 1
8167 cat >>confdefs.h <<\_ACEOF
8168 #define SYSLOG_R_SAFE_IN_SIGHAND 1
8173 if test "x$withval" != "xno" ; then
8176 cat >>confdefs.h <<\_ACEOF
8177 #define PAM_SUN_CODEBASE 1
8180 cat >>confdefs.h <<\_ACEOF
8181 #define LOGIN_NEEDS_UTMPX 1
8185 cat >>confdefs.h <<\_ACEOF
8186 #define LOGIN_NEEDS_TERM 1
8189 cat >>confdefs.h <<\_ACEOF
8190 #define PAM_TTY_KLUDGE 1
8194 cat >>confdefs.h <<\_ACEOF
8195 #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8198 cat >>confdefs.h <<\_ACEOF
8199 #define LOCKED_PASSWD_STRING "*LK*"
8202 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8204 cat >>confdefs.h <<\_ACEOF
8205 #define SSHD_ACQUIRES_CTTY 1
8209 cat >>confdefs.h <<\_ACEOF
8210 #define PASSWD_NEEDS_USERNAME 1
8213 external_path_file=/etc/default/login
8214 # hardwire lastlog location (can't detect it on some versions)
8215 conf_lastlog_location="/var/adm/lastlog"
8216 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8217 echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8218 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8219 if test "$sol2ver" -ge 8; then
8220 { echo "$as_me:$LINENO: result: yes" >&5
8221 echo "${ECHO_T}yes" >&6; }
8222 cat >>confdefs.h <<\_ACEOF
8223 #define DISABLE_UTMP 1
8227 cat >>confdefs.h <<\_ACEOF
8228 #define DISABLE_WTMP 1
8232 { echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6; }
8236 # Check whether --with-solaris-contracts was given.
8237 if test "${with_solaris_contracts+set}" = set; then
8238 withval=$with_solaris_contracts;
8239 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8240 echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8241 if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 ac_check_lib_save_LIBS=$LIBS
8245 LIBS="-lcontract $LIBS"
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8253 /* Override any GCC internal prototype to avoid an error.
8254 Use char because int might match the return type of a GCC
8255 builtin and then its argument prototype would still apply. */
8259 char ct_tmpl_activate ();
8263 return ct_tmpl_activate ();
8268 rm -f conftest.$ac_objext conftest$ac_exeext
8269 if { (ac_try="$ac_link"
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_link") 2>conftest.er1
8277 grep -v '^ *+' conftest.er1 >conftest.err
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8283 { (case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_try") 2>&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try='test -s conftest$ac_exeext'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_lib_contract_ct_tmpl_activate=yes
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_cv_lib_contract_ct_tmpl_activate=no
8310 rm -f core conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 LIBS=$ac_check_lib_save_LIBS
8314 { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8315 echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8316 if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8318 cat >>confdefs.h <<\_ACEOF
8319 #define USE_SOLARIS_PROCESS_CONTRACTS 1
8322 SSHDLIBS="$SSHDLIBS -lcontract"
8332 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8334 for ac_func in getpwanam
8336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 cat >conftest.$ac_ext <<_ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8350 #define $ac_func innocuous_$ac_func
8352 /* System header to define __stub macros and hopefully few prototypes,
8353 which can conflict with char $ac_func (); below.
8354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8355 <limits.h> exists even on freestanding compilers. */
8358 # include <limits.h>
8360 # include <assert.h>
8365 /* Override any GCC internal prototype to avoid an error.
8366 Use char because int might match the return type of a GCC
8367 builtin and then its argument prototype would still apply. */
8372 /* The GNU C library defines this for functions which it implements
8373 to always fail with ENOSYS. Some functions are actually named
8374 something starting with __ and the normal name is an alias. */
8375 #if defined __stub_$ac_func || defined __stub___$ac_func
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (ac_try="$ac_link"
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_link") 2>conftest.er1
8396 grep -v '^ *+' conftest.er1 >conftest.err
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8402 { (case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_try") 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest$ac_exeext'
8412 { (case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_try") 2>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 eval "$as_ac_var=yes"
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 eval "$as_ac_var=no"
8429 rm -f core conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext conftest.$ac_ext
8432 ac_res=`eval echo '${'$as_ac_var'}'`
8433 { echo "$as_me:$LINENO: result: $ac_res" >&5
8434 echo "${ECHO_T}$ac_res" >&6; }
8435 if test `eval echo '${'$as_ac_var'}'` = yes; then
8436 cat >>confdefs.h <<_ACEOF
8437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8443 cat >>confdefs.h <<\_ACEOF
8444 #define PAM_SUN_CODEBASE 1
8447 conf_utmp_location=/etc/utmp
8448 conf_wtmp_location=/var/adm/wtmp
8449 conf_lastlog_location=/var/adm/lastlog
8450 cat >>confdefs.h <<\_ACEOF
8457 cat >>confdefs.h <<\_ACEOF
8461 cat >>confdefs.h <<\_ACEOF
8462 #define SSHD_ACQUIRES_CTTY 1
8465 cat >>confdefs.h <<\_ACEOF
8466 #define SETEUID_BREAKS_SETUID 1
8469 cat >>confdefs.h <<\_ACEOF
8470 #define BROKEN_SETREUID 1
8473 cat >>confdefs.h <<\_ACEOF
8474 #define BROKEN_SETREGID 1
8479 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8481 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8482 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8483 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 ac_check_lib_save_LIBS=$LIBS
8488 cat >conftest.$ac_ext <<_ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8495 /* Override any GCC internal prototype to avoid an error.
8496 Use char because int might match the return type of a GCC
8497 builtin and then its argument prototype would still apply. */
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_link") 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_try") 2>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try='test -s conftest$ac_exeext'
8535 { (case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_try") 2>&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 ac_cv_lib_dl_dlsym=yes
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8549 ac_cv_lib_dl_dlsym=no
8552 rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8556 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8557 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8558 if test $ac_cv_lib_dl_dlsym = yes; then
8559 cat >>confdefs.h <<_ACEOF
8560 #define HAVE_LIBDL 1
8567 # -lresolv needs to be at the end of LIBS or DNS lookups break
8568 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8569 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8570 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 ac_check_lib_save_LIBS=$LIBS
8574 LIBS="-lresolv $LIBS"
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8582 /* Override any GCC internal prototype to avoid an error.
8583 Use char because int might match the return type of a GCC
8584 builtin and then its argument prototype would still apply. */
8592 return res_query ();
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (ac_try="$ac_link"
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_link") 2>conftest.er1
8606 grep -v '^ *+' conftest.er1 >conftest.err
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8612 { (case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_try") 2>&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest$ac_exeext'
8622 { (case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_try") 2>&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_lib_resolv_res_query=yes
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8636 ac_cv_lib_resolv_res_query=no
8639 rm -f core conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_lib_save_LIBS
8643 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8644 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8645 if test $ac_cv_lib_resolv_res_query = yes; then
8646 LIBS="$LIBS -lresolv"
8649 IPADDR_IN_DISPLAY=yes
8650 cat >>confdefs.h <<\_ACEOF
8654 cat >>confdefs.h <<\_ACEOF
8655 #define IP_TOS_IS_BROKEN 1
8658 cat >>confdefs.h <<\_ACEOF
8659 #define SETEUID_BREAKS_SETUID 1
8662 cat >>confdefs.h <<\_ACEOF
8663 #define BROKEN_SETREUID 1
8666 cat >>confdefs.h <<\_ACEOF
8667 #define BROKEN_SETREGID 1
8670 cat >>confdefs.h <<\_ACEOF
8671 #define SSHD_ACQUIRES_CTTY 1
8674 external_path_file=/etc/default/login
8675 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8676 # Attention: always take care to bind libsocket and libnsl before libc,
8677 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8679 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8681 cat >>confdefs.h <<\_ACEOF
8685 cat >>confdefs.h <<\_ACEOF
8686 #define SETEUID_BREAKS_SETUID 1
8689 cat >>confdefs.h <<\_ACEOF
8690 #define BROKEN_SETREUID 1
8693 cat >>confdefs.h <<\_ACEOF
8694 #define BROKEN_SETREGID 1
8698 cat >>confdefs.h <<\_ACEOF
8699 #define PASSWD_NEEDS_USERNAME 1
8702 cat >>confdefs.h <<\_ACEOF
8703 #define LOCKED_PASSWD_STRING "*LK*"
8707 # UnixWare 7.x, OpenUNIX 8
8709 check_for_libcrypt_later=1
8711 cat >>confdefs.h <<\_ACEOF
8712 #define UNIXWARE_LONG_PASSWORDS 1
8715 cat >>confdefs.h <<\_ACEOF
8719 cat >>confdefs.h <<\_ACEOF
8720 #define SETEUID_BREAKS_SETUID 1
8723 cat >>confdefs.h <<\_ACEOF
8724 #define BROKEN_SETREUID 1
8727 cat >>confdefs.h <<\_ACEOF
8728 #define BROKEN_SETREGID 1
8731 cat >>confdefs.h <<\_ACEOF
8732 #define PASSWD_NEEDS_USERNAME 1
8736 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8737 TEST_SHELL=/u95/bin/sh
8739 cat >>confdefs.h <<\_ACEOF
8740 #define BROKEN_LIBIAF 1
8743 cat >>confdefs.h <<\_ACEOF
8744 #define BROKEN_UPDWTMPX 1
8748 *) cat >>confdefs.h <<\_ACEOF
8749 #define LOCKED_PASSWD_STRING "*LK*"
8757 # SCO UNIX and OEM versions of SCO UNIX
8759 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
8760 echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
8761 { (exit 1); exit 1; }; }
8763 # SCO OpenServer 5.x
8765 if test -z "$GCC"; then
8766 CFLAGS="$CFLAGS -belf"
8768 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8770 cat >>confdefs.h <<\_ACEOF
8774 cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_SECUREWARE 1
8778 cat >>confdefs.h <<\_ACEOF
8779 #define DISABLE_SHADOW 1
8782 cat >>confdefs.h <<\_ACEOF
8783 #define DISABLE_FD_PASSING 1
8786 cat >>confdefs.h <<\_ACEOF
8787 #define SETEUID_BREAKS_SETUID 1
8790 cat >>confdefs.h <<\_ACEOF
8791 #define BROKEN_SETREUID 1
8794 cat >>confdefs.h <<\_ACEOF
8795 #define BROKEN_SETREGID 1
8798 cat >>confdefs.h <<\_ACEOF
8799 #define WITH_ABBREV_NO_TTY 1
8802 cat >>confdefs.h <<\_ACEOF
8803 #define BROKEN_UPDWTMPX 1
8806 cat >>confdefs.h <<\_ACEOF
8807 #define PASSWD_NEEDS_USERNAME 1
8812 for ac_func in getluid setluid
8814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8828 #define $ac_func innocuous_$ac_func
8830 /* System header to define __stub macros and hopefully few prototypes,
8831 which can conflict with char $ac_func (); below.
8832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833 <limits.h> exists even on freestanding compilers. */
8836 # include <limits.h>
8838 # include <assert.h>
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8850 /* The GNU C library defines this for functions which it implements
8851 to always fail with ENOSYS. Some functions are actually named
8852 something starting with __ and the normal name is an alias. */
8853 #if defined __stub_$ac_func || defined __stub___$ac_func
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (ac_try="$ac_link"
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_link") 2>conftest.er1
8874 grep -v '^ *+' conftest.er1 >conftest.err
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8880 { (case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_try") 2>&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try='test -s conftest$ac_exeext'
8890 { (case "(($ac_try" in
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_try") 2>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 eval "$as_ac_var=yes"
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8904 eval "$as_ac_var=no"
8907 rm -f core conftest.err conftest.$ac_objext \
8908 conftest$ac_exeext conftest.$ac_ext
8910 ac_res=`eval echo '${'$as_ac_var'}'`
8911 { echo "$as_me:$LINENO: result: $ac_res" >&5
8912 echo "${ECHO_T}$ac_res" >&6; }
8913 if test `eval echo '${'$as_ac_var'}'` = yes; then
8914 cat >>confdefs.h <<_ACEOF
8915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8926 cat >>confdefs.h <<\_ACEOF
8927 #define NO_SSH_LASTLOG 1
8930 cat >>confdefs.h <<\_ACEOF
8931 #define SETEUID_BREAKS_SETUID 1
8934 cat >>confdefs.h <<\_ACEOF
8935 #define BROKEN_SETREUID 1
8938 cat >>confdefs.h <<\_ACEOF
8939 #define BROKEN_SETREGID 1
8942 cat >>confdefs.h <<\_ACEOF
8946 cat >>confdefs.h <<\_ACEOF
8947 #define DISABLE_FD_PASSING 1
8951 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8955 cat >>confdefs.h <<\_ACEOF
8956 #define SETEUID_BREAKS_SETUID 1
8959 cat >>confdefs.h <<\_ACEOF
8960 #define BROKEN_SETREUID 1
8963 cat >>confdefs.h <<\_ACEOF
8964 #define BROKEN_SETREGID 1
8967 cat >>confdefs.h <<\_ACEOF
8968 #define WITH_ABBREV_NO_TTY 1
8971 cat >>confdefs.h <<\_ACEOF
8975 cat >>confdefs.h <<\_ACEOF
8976 #define DISABLE_FD_PASSING 1
8980 LIBS="$LIBS -lgen -lacid -ldb"
8984 cat >>confdefs.h <<\_ACEOF
8985 #define SETEUID_BREAKS_SETUID 1
8988 cat >>confdefs.h <<\_ACEOF
8989 #define BROKEN_SETREUID 1
8992 cat >>confdefs.h <<\_ACEOF
8993 #define BROKEN_SETREGID 1
8996 cat >>confdefs.h <<\_ACEOF
9000 cat >>confdefs.h <<\_ACEOF
9001 #define DISABLE_FD_PASSING 1
9004 cat >>confdefs.h <<\_ACEOF
9005 #define NO_SSH_LASTLOG 1
9008 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9009 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9013 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9014 echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9017 # Check whether --with-osfsia was given.
9018 if test "${with_osfsia+set}" = set; then
9019 withval=$with_osfsia;
9020 if test "x$withval" = "xno" ; then
9021 { echo "$as_me:$LINENO: result: disabled" >&5
9022 echo "${ECHO_T}disabled" >&6; }
9028 if test -z "$no_osfsia" ; then
9029 if test -f /etc/sia/matrix.conf; then
9030 { echo "$as_me:$LINENO: result: yes" >&5
9031 echo "${ECHO_T}yes" >&6; }
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_OSF_SIA 1
9038 cat >>confdefs.h <<\_ACEOF
9039 #define DISABLE_LOGIN 1
9042 cat >>confdefs.h <<\_ACEOF
9043 #define DISABLE_FD_PASSING 1
9046 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9049 { echo "$as_me:$LINENO: result: no" >&5
9050 echo "${ECHO_T}no" >&6; }
9052 cat >>confdefs.h <<\_ACEOF
9053 #define LOCKED_PASSWD_SUBSTR "Nologin"
9058 cat >>confdefs.h <<\_ACEOF
9059 #define BROKEN_GETADDRINFO 1
9062 cat >>confdefs.h <<\_ACEOF
9063 #define SETEUID_BREAKS_SETUID 1
9066 cat >>confdefs.h <<\_ACEOF
9067 #define BROKEN_SETREUID 1
9070 cat >>confdefs.h <<\_ACEOF
9071 #define BROKEN_SETREGID 1
9077 cat >>confdefs.h <<\_ACEOF
9081 cat >>confdefs.h <<\_ACEOF
9082 #define NO_X11_UNIX_SOCKETS 1
9086 cat >>confdefs.h <<\_ACEOF
9087 #define MISSING_NFDBITS 1
9091 cat >>confdefs.h <<\_ACEOF
9092 #define MISSING_HOWMANY 1
9096 cat >>confdefs.h <<\_ACEOF
9097 #define MISSING_FD_MASK 1
9100 cat >>confdefs.h <<\_ACEOF
9101 #define DISABLE_LASTLOG 1
9104 cat >>confdefs.h <<\_ACEOF
9105 #define SSHD_ACQUIRES_CTTY 1
9108 enable_etc_default_login=no # has incompatible /etc/default/login
9113 cat >>confdefs.h <<\_ACEOF
9114 #define BROKEN_GETGROUPS 1
9118 cat >>confdefs.h <<\_ACEOF
9119 #define BROKEN_MMAP 1
9122 cat >>confdefs.h <<\_ACEOF
9123 #define NEED_SETPGRP 1
9127 cat >>confdefs.h <<\_ACEOF
9128 #define HAVE_SYS_SYSLOG_H 1
9134 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9135 cat >>confdefs.h <<\_ACEOF
9136 #define MISSING_HOWMANY 1
9140 cat >>confdefs.h <<\_ACEOF
9141 #define BROKEN_SETVBUF 1
9147 # Allow user to specify flags
9149 # Check whether --with-cflags was given.
9150 if test "${with_cflags+set}" = set; then
9151 withval=$with_cflags;
9152 if test -n "$withval" && test "x$withval" != "xno" && \
9153 test "x${withval}" != "xyes"; then
9154 CFLAGS="$CFLAGS $withval"
9161 # Check whether --with-cppflags was given.
9162 if test "${with_cppflags+set}" = set; then
9163 withval=$with_cppflags;
9164 if test -n "$withval" && test "x$withval" != "xno" && \
9165 test "x${withval}" != "xyes"; then
9166 CPPFLAGS="$CPPFLAGS $withval"
9173 # Check whether --with-ldflags was given.
9174 if test "${with_ldflags+set}" = set; then
9175 withval=$with_ldflags;
9176 if test -n "$withval" && test "x$withval" != "xno" && \
9177 test "x${withval}" != "xyes"; then
9178 LDFLAGS="$LDFLAGS $withval"
9185 # Check whether --with-libs was given.
9186 if test "${with_libs+set}" = set; then
9188 if test -n "$withval" && test "x$withval" != "xno" && \
9189 test "x${withval}" != "xyes"; then
9190 LIBS="$LIBS $withval"
9197 # Check whether --with-Werror was given.
9198 if test "${with_Werror+set}" = set; then
9199 withval=$with_Werror;
9200 if test -n "$withval" && test "x$withval" != "xno"; then
9201 werror_flags="-Werror"
9202 if test "x${withval}" != "xyes"; then
9203 werror_flags="$withval"
9211 { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9212 echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
9213 if test "$cross_compiling" = yes; then
9214 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9215 echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9218 cat >conftest.$ac_ext <<_ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9226 int main(){exit(0);}
9229 rm -f conftest$ac_exeext
9230 if { (ac_try="$ac_link"
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_link") 2>&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9240 { (case "(($ac_try" in
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_try") 2>&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 { echo "$as_me:$LINENO: result: yes" >&5
9250 echo "${ECHO_T}yes" >&6; }
9252 echo "$as_me: program exited with status $ac_status" >&5
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9258 { echo "$as_me:$LINENO: result: no" >&5
9259 echo "${ECHO_T}no" >&6; }
9260 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9261 echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9262 { (exit 1); exit 1; }; }
9265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9354 security/pam_appl.h \
9391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 ac_res=`eval echo '${'$as_ac_Header'}'`
9399 { echo "$as_me:$LINENO: result: $ac_res" >&5
9400 echo "${ECHO_T}$ac_res" >&6; }
9402 # Is the header compilable?
9403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9405 cat >conftest.$ac_ext <<_ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 $ac_includes_default
9412 #include <$ac_header>
9414 rm -f conftest.$ac_objext
9415 if { (ac_try="$ac_compile"
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_compile") 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9429 { (case "(($ac_try" in
9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431 *) ac_try_echo=$ac_try;;
9433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434 (eval "$ac_try") 2>&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; } &&
9438 { ac_try='test -s conftest.$ac_objext'
9439 { (case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_try") 2>&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 ac_header_compiler=yes
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_header_compiler=no
9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9458 echo "${ECHO_T}$ac_header_compiler" >&6; }
9460 # Is the header present?
9461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9463 cat >conftest.$ac_ext <<_ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 #include <$ac_header>
9471 if { (ac_try="$ac_cpp conftest.$ac_ext"
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } >/dev/null; then
9484 if test -s conftest.err; then
9485 ac_cpp_err=$ac_c_preproc_warn_flag
9486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9493 if test -z "$ac_cpp_err"; then
9494 ac_header_preproc=yes
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ac_header_preproc=no
9502 rm -f conftest.err conftest.$ac_ext
9503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9504 echo "${ECHO_T}$ac_header_preproc" >&6; }
9506 # So? What about this header?
9507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9513 ac_header_preproc=yes
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9529 ## ------------------------------------------- ##
9530 ## Report this to openssh-unix-dev@mindrot.org ##
9531 ## ------------------------------------------- ##
9533 ) | sed "s/^/$as_me: WARNING: /" >&2
9536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 eval "$as_ac_Header=\$ac_header_preproc"
9543 ac_res=`eval echo '${'$as_ac_Header'}'`
9544 { echo "$as_me:$LINENO: result: $ac_res" >&5
9545 echo "${ECHO_T}$ac_res" >&6; }
9548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9549 cat >>confdefs.h <<_ACEOF
9550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9558 # lastlog.h requires sys/time.h to be included first on Solaris
9560 for ac_header in lastlog.h
9562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9575 #ifdef HAVE_SYS_TIME_H
9576 # include <sys/time.h>
9580 #include <$ac_header>
9582 rm -f conftest.$ac_objext
9583 if { (ac_try="$ac_compile"
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_compile") 2>conftest.er1
9591 grep -v '^ *+' conftest.er1 >conftest.err
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } &&
9596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9597 { (case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_try") 2>&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest.$ac_objext'
9607 { (case "(($ac_try" in
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_try") 2>&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9616 eval "$as_ac_Header=yes"
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9621 eval "$as_ac_Header=no"
9624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9626 ac_res=`eval echo '${'$as_ac_Header'}'`
9627 { echo "$as_me:$LINENO: result: $ac_res" >&5
9628 echo "${ECHO_T}$ac_res" >&6; }
9629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9630 cat >>confdefs.h <<_ACEOF
9631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9639 # sys/ptms.h requires sys/stream.h to be included first on Solaris
9641 for ac_header in sys/ptms.h
9643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9656 #ifdef HAVE_SYS_STREAM_H
9657 # include <sys/stream.h>
9661 #include <$ac_header>
9663 rm -f conftest.$ac_objext
9664 if { (ac_try="$ac_compile"
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_compile") 2>conftest.er1
9672 grep -v '^ *+' conftest.er1 >conftest.err
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9678 { (case "(($ac_try" in
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_try") 2>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest.$ac_objext'
9688 { (case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_try") 2>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 eval "$as_ac_Header=yes"
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 eval "$as_ac_Header=no"
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 ac_res=`eval echo '${'$as_ac_Header'}'`
9708 { echo "$as_me:$LINENO: result: $ac_res" >&5
9709 echo "${ECHO_T}$ac_res" >&6; }
9710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9711 cat >>confdefs.h <<_ACEOF
9712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9720 # login_cap.h requires sys/types.h on NetBSD
9722 for ac_header in login_cap.h
9724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9737 #include <sys/types.h>
9740 #include <$ac_header>
9742 rm -f conftest.$ac_objext
9743 if { (ac_try="$ac_compile"
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_compile") 2>conftest.er1
9751 grep -v '^ *+' conftest.er1 >conftest.err
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest.$ac_objext'
9767 { (case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_try") 2>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 eval "$as_ac_Header=yes"
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 eval "$as_ac_Header=no"
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 ac_res=`eval echo '${'$as_ac_Header'}'`
9787 { echo "$as_me:$LINENO: result: $ac_res" >&5
9788 echo "${ECHO_T}$ac_res" >&6; }
9789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9790 cat >>confdefs.h <<_ACEOF
9791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9799 # Checks for libraries.
9800 { echo "$as_me:$LINENO: checking for yp_match" >&5
9801 echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
9802 if test "${ac_cv_func_yp_match+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 cat >conftest.$ac_ext <<_ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9813 #define yp_match innocuous_yp_match
9815 /* System header to define __stub macros and hopefully few prototypes,
9816 which can conflict with char yp_match (); below.
9817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9818 <limits.h> exists even on freestanding compilers. */
9821 # include <limits.h>
9823 # include <assert.h>
9828 /* Override any GCC internal prototype to avoid an error.
9829 Use char because int might match the return type of a GCC
9830 builtin and then its argument prototype would still apply. */
9835 /* The GNU C library defines this for functions which it implements
9836 to always fail with ENOSYS. Some functions are actually named
9837 something starting with __ and the normal name is an alias. */
9838 #if defined __stub_yp_match || defined __stub___yp_match
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (ac_try="$ac_link"
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_link") 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9865 { (case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_try") 2>&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest$ac_exeext'
9875 { (case "(($ac_try" in
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_try") 2>&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_func_yp_match=yes
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 ac_cv_func_yp_match=no
9892 rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9895 { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9896 echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9897 if test $ac_cv_func_yp_match = yes; then
9901 { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9902 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9903 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 ac_check_lib_save_LIBS=$LIBS
9908 cat >conftest.$ac_ext <<_ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9915 /* Override any GCC internal prototype to avoid an error.
9916 Use char because int might match the return type of a GCC
9917 builtin and then its argument prototype would still apply. */
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (ac_try="$ac_link"
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9939 grep -v '^ *+' conftest.er1 >conftest.err
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9945 { (case "(($ac_try" in
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_try") 2>&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_try") 2>&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 ac_cv_lib_nsl_yp_match=yes
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9969 ac_cv_lib_nsl_yp_match=no
9972 rm -f core conftest.err conftest.$ac_objext \
9973 conftest$ac_exeext conftest.$ac_ext
9974 LIBS=$ac_check_lib_save_LIBS
9976 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9977 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9978 if test $ac_cv_lib_nsl_yp_match = yes; then
9979 cat >>confdefs.h <<_ACEOF
9980 #define HAVE_LIBNSL 1
9989 { echo "$as_me:$LINENO: checking for setsockopt" >&5
9990 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9991 if test "${ac_cv_func_setsockopt+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
10001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10002 #define setsockopt innocuous_setsockopt
10004 /* System header to define __stub macros and hopefully few prototypes,
10005 which can conflict with char setsockopt (); below.
10006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007 <limits.h> exists even on freestanding compilers. */
10010 # include <limits.h>
10012 # include <assert.h>
10017 /* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
10023 char setsockopt ();
10024 /* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027 #if defined __stub_setsockopt || defined __stub___setsockopt
10034 return setsockopt ();
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10048 grep -v '^ *+' conftest.er1 >conftest.err
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_func_setsockopt=yes
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cv_func_setsockopt=no
10081 rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10084 { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10085 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
10086 if test $ac_cv_func_setsockopt = yes; then
10090 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10091 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-lsocket $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10104 /* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
10110 char setsockopt ();
10114 return setsockopt ();
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>conftest.er1
10128 grep -v '^ *+' conftest.er1 >conftest.err
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } &&
10133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_lib_socket_setsockopt=yes
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 ac_cv_lib_socket_setsockopt=no
10161 rm -f core conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10165 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10166 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
10167 if test $ac_cv_lib_socket_setsockopt = yes; then
10168 cat >>confdefs.h <<_ACEOF
10169 #define HAVE_LIBSOCKET 1
10172 LIBS="-lsocket $LIBS"
10180 for ac_func in dirname
10182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 cat >conftest.$ac_ext <<_ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h. */
10194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10196 #define $ac_func innocuous_$ac_func
10198 /* System header to define __stub macros and hopefully few prototypes,
10199 which can conflict with char $ac_func (); below.
10200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10201 <limits.h> exists even on freestanding compilers. */
10204 # include <limits.h>
10206 # include <assert.h>
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10218 /* The GNU C library defines this for functions which it implements
10219 to always fail with ENOSYS. Some functions are actually named
10220 something starting with __ and the normal name is an alias. */
10221 #if defined __stub_$ac_func || defined __stub___$ac_func
10228 return $ac_func ();
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (ac_try="$ac_link"
10235 case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_link") 2>conftest.er1
10242 grep -v '^ *+' conftest.er1 >conftest.err
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; } &&
10257 { ac_try='test -s conftest$ac_exeext'
10258 { (case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_try") 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 eval "$as_ac_var=yes"
10269 echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10272 eval "$as_ac_var=no"
10275 rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10278 ac_res=`eval echo '${'$as_ac_var'}'`
10279 { echo "$as_me:$LINENO: result: $ac_res" >&5
10280 echo "${ECHO_T}$ac_res" >&6; }
10281 if test `eval echo '${'$as_ac_var'}'` = yes; then
10282 cat >>confdefs.h <<_ACEOF
10283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10286 for ac_header in libgen.h
10288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 ac_res=`eval echo '${'$as_ac_Header'}'`
10296 { echo "$as_me:$LINENO: result: $ac_res" >&5
10297 echo "${ECHO_T}$ac_res" >&6; }
10299 # Is the header compilable?
10300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 $ac_includes_default
10309 #include <$ac_header>
10311 rm -f conftest.$ac_objext
10312 if { (ac_try="$ac_compile"
10313 case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_compile") 2>conftest.er1
10320 grep -v '^ *+' conftest.er1 >conftest.err
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10326 { (case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_try") 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest.$ac_objext'
10336 { (case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_try") 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 ac_header_compiler=yes
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_header_compiler=no
10353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10355 echo "${ECHO_T}$ac_header_compiler" >&6; }
10357 # Is the header present?
10358 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10360 cat >conftest.$ac_ext <<_ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 #include <$ac_header>
10368 if { (ac_try="$ac_cpp conftest.$ac_ext"
10369 case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10376 grep -v '^ *+' conftest.er1 >conftest.err
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } >/dev/null; then
10381 if test -s conftest.err; then
10382 ac_cpp_err=$ac_c_preproc_warn_flag
10383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10390 if test -z "$ac_cpp_err"; then
10391 ac_header_preproc=yes
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 ac_header_preproc=no
10399 rm -f conftest.err conftest.$ac_ext
10400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10401 echo "${ECHO_T}$ac_header_preproc" >&6; }
10403 # So? What about this header?
10404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10410 ac_header_preproc=yes
10413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10426 ## ------------------------------------------- ##
10427 ## Report this to openssh-unix-dev@mindrot.org ##
10428 ## ------------------------------------------- ##
10430 ) | sed "s/^/$as_me: WARNING: /" >&2
10433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 eval "$as_ac_Header=\$ac_header_preproc"
10440 ac_res=`eval echo '${'$as_ac_Header'}'`
10441 { echo "$as_me:$LINENO: result: $ac_res" >&5
10442 echo "${ECHO_T}$ac_res" >&6; }
10445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10446 cat >>confdefs.h <<_ACEOF
10447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10456 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
10457 echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
10458 if test "${ac_cv_lib_gen_dirname+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 ac_check_lib_save_LIBS=$LIBS
10463 cat >conftest.$ac_ext <<_ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10470 /* Override any GCC internal prototype to avoid an error.
10471 Use char because int might match the return type of a GCC
10472 builtin and then its argument prototype would still apply. */
10485 rm -f conftest.$ac_objext conftest$ac_exeext
10486 if { (ac_try="$ac_link"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_link") 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10500 { (case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_try") 2>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try='test -s conftest$ac_exeext'
10510 { (case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_try") 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 ac_cv_lib_gen_dirname=yes
10521 echo "$as_me: failed program was:" >&5
10522 sed 's/^/| /' conftest.$ac_ext >&5
10524 ac_cv_lib_gen_dirname=no
10527 rm -f core conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10529 LIBS=$ac_check_lib_save_LIBS
10531 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
10532 echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
10533 if test $ac_cv_lib_gen_dirname = yes; then
10535 { echo "$as_me:$LINENO: checking for broken dirname" >&5
10536 echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
10537 if test "${ac_cv_have_broken_dirname+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 if test "$cross_compiling" = yes; then
10544 ac_cv_have_broken_dirname="no"
10546 cat >conftest.$ac_ext <<_ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10553 #include <libgen.h>
10554 #include <string.h>
10556 int main(int argc, char **argv) {
10559 strncpy(buf,"/etc", 32);
10561 if (!s || strncmp(s, "/", 32) != 0) {
10569 rm -f conftest$ac_exeext
10570 if { (ac_try="$ac_link"
10571 case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_link") 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10580 { (case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_try") 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_cv_have_broken_dirname="no"
10591 echo "$as_me: program exited with status $ac_status" >&5
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ( exit $ac_status )
10596 ac_cv_have_broken_dirname="yes"
10598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
10606 echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
10607 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
10609 cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_DIRNAME 1
10614 for ac_header in libgen.h
10616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 ac_res=`eval echo '${'$as_ac_Header'}'`
10624 { echo "$as_me:$LINENO: result: $ac_res" >&5
10625 echo "${ECHO_T}$ac_res" >&6; }
10627 # Is the header compilable?
10628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 $ac_includes_default
10637 #include <$ac_header>
10639 rm -f conftest.$ac_objext
10640 if { (ac_try="$ac_compile"
10641 case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_compile") 2>conftest.er1
10648 grep -v '^ *+' conftest.er1 >conftest.err
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest.$ac_objext'
10664 { (case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_try") 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_header_compiler=yes
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 ac_header_compiler=no
10681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10683 echo "${ECHO_T}$ac_header_compiler" >&6; }
10685 # Is the header present?
10686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10688 cat >conftest.$ac_ext <<_ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <$ac_header>
10696 if { (ac_try="$ac_cpp conftest.$ac_ext"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1 >conftest.err
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } >/dev/null; then
10709 if test -s conftest.err; then
10710 ac_cpp_err=$ac_c_preproc_warn_flag
10711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10718 if test -z "$ac_cpp_err"; then
10719 ac_header_preproc=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_header_preproc=no
10727 rm -f conftest.err conftest.$ac_ext
10728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10729 echo "${ECHO_T}$ac_header_preproc" >&6; }
10731 # So? What about this header?
10732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10738 ac_header_preproc=yes
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10754 ## ------------------------------------------- ##
10755 ## Report this to openssh-unix-dev@mindrot.org ##
10756 ## ------------------------------------------- ##
10758 ) | sed "s/^/$as_me: WARNING: /" >&2
10761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 eval "$as_ac_Header=\$ac_header_preproc"
10768 ac_res=`eval echo '${'$as_ac_Header'}'`
10769 { echo "$as_me:$LINENO: result: $ac_res" >&5
10770 echo "${ECHO_T}$ac_res" >&6; }
10773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10791 { echo "$as_me:$LINENO: checking for getspnam" >&5
10792 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10793 if test "${ac_cv_func_getspnam+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 cat >conftest.$ac_ext <<_ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10804 #define getspnam innocuous_getspnam
10806 /* System header to define __stub macros and hopefully few prototypes,
10807 which can conflict with char getspnam (); below.
10808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10809 <limits.h> exists even on freestanding compilers. */
10812 # include <limits.h>
10814 # include <assert.h>
10819 /* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
10826 /* The GNU C library defines this for functions which it implements
10827 to always fail with ENOSYS. Some functions are actually named
10828 something starting with __ and the normal name is an alias. */
10829 #if defined __stub_getspnam || defined __stub___getspnam
10836 return getspnam ();
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (ac_try="$ac_link"
10843 case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_link") 2>conftest.er1
10850 grep -v '^ *+' conftest.er1 >conftest.err
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } &&
10855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10856 { (case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_try") 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest$ac_exeext'
10866 { (case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_try") 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_cv_func_getspnam=yes
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10880 ac_cv_func_getspnam=no
10883 rm -f core conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10886 { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10887 echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
10888 if test $ac_cv_func_getspnam = yes; then
10891 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10892 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
10893 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 ac_check_lib_save_LIBS=$LIBS
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10905 /* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10915 return getspnam ();
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_link") 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10935 { (case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_try") 2>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; } &&
10944 { ac_try='test -s conftest$ac_exeext'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_lib_gen_getspnam=yes
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 ac_cv_lib_gen_getspnam=no
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_lib_save_LIBS
10966 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10967 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
10968 if test $ac_cv_lib_gen_getspnam = yes; then
10974 { echo "$as_me:$LINENO: checking for library containing basename" >&5
10975 echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10976 if test "${ac_cv_search_basename+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 ac_func_search_save_LIBS=$LIBS
10980 cat >conftest.$ac_ext <<_ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10997 return basename ();
11002 for ac_lib in '' gen; do
11003 if test -z "$ac_lib"; then
11004 ac_res="none required"
11007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (ac_try="$ac_link"
11011 case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_link") 2>conftest.er1
11018 grep -v '^ *+' conftest.er1 >conftest.err
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; } &&
11033 { ac_try='test -s conftest$ac_exeext'
11034 { (case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039 (eval "$ac_try") 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 ac_cv_search_basename=$ac_res
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11051 rm -f core conftest.err conftest.$ac_objext \
11053 if test "${ac_cv_search_basename+set}" = set; then
11057 if test "${ac_cv_search_basename+set}" = set; then
11060 ac_cv_search_basename=no
11062 rm conftest.$ac_ext
11063 LIBS=$ac_func_search_save_LIBS
11065 { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
11066 echo "${ECHO_T}$ac_cv_search_basename" >&6; }
11067 ac_res=$ac_cv_search_basename
11068 if test "$ac_res" != no; then
11069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11071 cat >>confdefs.h <<\_ACEOF
11072 #define HAVE_BASENAME 1
11079 # Check whether --with-zlib was given.
11080 if test "${with_zlib+set}" = set; then
11081 withval=$with_zlib; if test "x$withval" = "xno" ; then
11082 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
11083 echo "$as_me: error: *** zlib is required ***" >&2;}
11084 { (exit 1); exit 1; }; }
11085 elif test "x$withval" != "xyes"; then
11086 if test -d "$withval/lib"; then
11087 if test -n "${need_dash_r}"; then
11088 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11090 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11093 if test -n "${need_dash_r}"; then
11094 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11096 LDFLAGS="-L${withval} ${LDFLAGS}"
11099 if test -d "$withval/include"; then
11100 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11102 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11110 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
11111 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
11112 if test "${ac_cv_lib_z_deflate+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 ac_check_lib_save_LIBS=$LIBS
11117 cat >conftest.$ac_ext <<_ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_lib_z_deflate=yes
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_cv_lib_z_deflate=no
11181 rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_lib_save_LIBS
11185 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
11186 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
11187 if test $ac_cv_lib_z_deflate = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189 #define HAVE_LIBZ 1
11196 saved_CPPFLAGS="$CPPFLAGS"
11197 saved_LDFLAGS="$LDFLAGS"
11199 if test -n "${need_dash_r}"; then
11200 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
11202 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
11204 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
11206 cat >conftest.$ac_ext <<_ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11213 /* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11228 rm -f conftest.$ac_objext conftest$ac_exeext
11229 if { (ac_try="$ac_link"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_link") 2>conftest.er1
11237 grep -v '^ *+' conftest.er1 >conftest.err
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11243 { (case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_try") 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; } &&
11252 { ac_try='test -s conftest$ac_exeext'
11253 { (case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_try") 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 cat >>confdefs.h <<\_ACEOF
11263 #define HAVE_LIBZ 1
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11271 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
11272 echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
11273 { (exit 1); exit 1; }; }
11278 rm -f core conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11284 if test "${ac_cv_header_zlib_h+set}" = set; then
11285 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11286 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11287 if test "${ac_cv_header_zlib_h+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11291 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11293 # Is the header compilable?
11294 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11295 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11296 cat >conftest.$ac_ext <<_ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11302 $ac_includes_default
11305 rm -f conftest.$ac_objext
11306 if { (ac_try="$ac_compile"
11307 case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_compile") 2>conftest.er1
11314 grep -v '^ *+' conftest.er1 >conftest.err
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11320 { (case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_try") 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest.$ac_objext'
11330 { (case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_try") 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_header_compiler=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_compiler=no
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6; }
11351 # Is the header present?
11352 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11353 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11362 if { (ac_try="$ac_cpp conftest.$ac_ext"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11370 grep -v '^ *+' conftest.er1 >conftest.err
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } >/dev/null; then
11375 if test -s conftest.err; then
11376 ac_cpp_err=$ac_c_preproc_warn_flag
11377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11384 if test -z "$ac_cpp_err"; then
11385 ac_header_preproc=yes
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 ac_header_preproc=no
11393 rm -f conftest.err conftest.$ac_ext
11394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11395 echo "${ECHO_T}$ac_header_preproc" >&6; }
11397 # So? What about this header?
11398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11400 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11401 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11403 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11404 ac_header_preproc=yes
11407 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11408 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11410 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11412 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11414 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11416 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11418 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11420 ## ------------------------------------------- ##
11421 ## Report this to openssh-unix-dev@mindrot.org ##
11422 ## ------------------------------------------- ##
11424 ) | sed "s/^/$as_me: WARNING: /" >&2
11427 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11428 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11429 if test "${ac_cv_header_zlib_h+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 ac_cv_header_zlib_h=$ac_header_preproc
11434 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11435 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11438 if test $ac_cv_header_zlib_h = yes; then
11441 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
11442 echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
11443 { (exit 1); exit 1; }; }
11449 # Check whether --with-zlib-version-check was given.
11450 if test "${with_zlib_version_check+set}" = set; then
11451 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
11452 zlib_check_nonfatal=1
11459 { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
11460 echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
11461 if test "$cross_compiling" = yes; then
11462 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
11463 echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
11466 cat >conftest.$ac_ext <<_ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11477 int a=0, b=0, c=0, d=0, n, v;
11478 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
11479 if (n != 3 && n != 4)
11481 v = a*1000000 + b*10000 + c*100 + d;
11482 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
11485 if (a == 1 && b == 1 && c >= 4)
11488 /* 1.2.3 and up are OK */
11496 rm -f conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 { echo "$as_me:$LINENO: result: no" >&5
11517 echo "${ECHO_T}no" >&6; }
11519 echo "$as_me: program exited with status $ac_status" >&5
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ( exit $ac_status )
11524 { echo "$as_me:$LINENO: result: yes" >&5
11525 echo "${ECHO_T}yes" >&6; }
11526 if test -z "$zlib_check_nonfatal" ; then
11527 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
11528 Your reported zlib version has known security problems. It's possible your
11529 vendor has fixed these problems without changing the version number. If you
11530 are sure this is the case, you can disable the check by running
11531 \"./configure --without-zlib-version-check\".
11532 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11533 See http://www.gzip.org/zlib/ for details." >&5
11534 echo "$as_me: error: *** zlib too old - check config.log ***
11535 Your reported zlib version has known security problems. It's possible your
11536 vendor has fixed these problems without changing the version number. If you
11537 are sure this is the case, you can disable the check by running
11538 \"./configure --without-zlib-version-check\".
11539 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11540 See http://www.gzip.org/zlib/ for details." >&2;}
11541 { (exit 1); exit 1; }; }
11543 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
11544 echo "$as_me: WARNING: zlib version may have security problems" >&2;}
11548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11553 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
11554 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
11555 if test "${ac_cv_func_strcasecmp+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 cat >conftest.$ac_ext <<_ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
11565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11566 #define strcasecmp innocuous_strcasecmp
11568 /* System header to define __stub macros and hopefully few prototypes,
11569 which can conflict with char strcasecmp (); below.
11570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11571 <limits.h> exists even on freestanding compilers. */
11574 # include <limits.h>
11576 # include <assert.h>
11581 /* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11587 char strcasecmp ();
11588 /* The GNU C library defines this for functions which it implements
11589 to always fail with ENOSYS. Some functions are actually named
11590 something starting with __ and the normal name is an alias. */
11591 #if defined __stub_strcasecmp || defined __stub___strcasecmp
11598 return strcasecmp ();
11603 rm -f conftest.$ac_objext conftest$ac_exeext
11604 if { (ac_try="$ac_link"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_link") 2>conftest.er1
11612 grep -v '^ *+' conftest.er1 >conftest.err
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } &&
11617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11618 { (case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_try") 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest$ac_exeext'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 ac_cv_func_strcasecmp=yes
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ac_cv_func_strcasecmp=no
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11648 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
11649 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
11650 if test $ac_cv_func_strcasecmp = yes; then
11653 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
11654 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
11655 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 ac_check_lib_save_LIBS=$LIBS
11659 LIBS="-lresolv $LIBS"
11660 cat >conftest.$ac_ext <<_ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11667 /* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11673 char strcasecmp ();
11677 return strcasecmp ();
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (ac_try="$ac_link"
11684 case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_link") 2>conftest.er1
11691 grep -v '^ *+' conftest.er1 >conftest.err
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11697 { (case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_try") 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; } &&
11706 { ac_try='test -s conftest$ac_exeext'
11707 { (case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_try") 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 ac_cv_lib_resolv_strcasecmp=yes
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 ac_cv_lib_resolv_strcasecmp=no
11724 rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726 LIBS=$ac_check_lib_save_LIBS
11728 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
11729 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
11730 if test $ac_cv_lib_resolv_strcasecmp = yes; then
11731 LIBS="$LIBS -lresolv"
11738 for ac_func in utimes
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define $ac_func innocuous_$ac_func
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11762 # include <limits.h>
11764 # include <assert.h>
11769 /* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11776 /* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 return $ac_func ();
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11800 grep -v '^ *+' conftest.er1 >conftest.err
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest$ac_exeext'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 eval "$as_ac_var=yes"
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 eval "$as_ac_var=no"
11833 rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11836 ac_res=`eval echo '${'$as_ac_var'}'`
11837 { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11839 if test `eval echo '${'$as_ac_var'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11845 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
11846 echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
11847 if test "${ac_cv_lib_c89_utimes+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 ac_check_lib_save_LIBS=$LIBS
11852 cat >conftest.$ac_ext <<_ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_link") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 ac_cv_lib_c89_utimes=yes
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ac_cv_lib_c89_utimes=no
11916 rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918 LIBS=$ac_check_lib_save_LIBS
11920 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11921 echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11922 if test $ac_cv_lib_c89_utimes = yes; then
11923 cat >>confdefs.h <<\_ACEOF
11924 #define HAVE_UTIMES 1
11936 for ac_header in libutil.h
11938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 ac_res=`eval echo '${'$as_ac_Header'}'`
11946 { echo "$as_me:$LINENO: result: $ac_res" >&5
11947 echo "${ECHO_T}$ac_res" >&6; }
11949 # Is the header compilable?
11950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11952 cat >conftest.$ac_ext <<_ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 $ac_includes_default
11959 #include <$ac_header>
11961 rm -f conftest.$ac_objext
11962 if { (ac_try="$ac_compile"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_compile") 2>conftest.er1
11970 grep -v '^ *+' conftest.er1 >conftest.err
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_header_compiler=yes
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_header_compiler=no
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12005 echo "${ECHO_T}$ac_header_compiler" >&6; }
12007 # Is the header present?
12008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12010 cat >conftest.$ac_ext <<_ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 #include <$ac_header>
12018 if { (ac_try="$ac_cpp conftest.$ac_ext"
12019 case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12026 grep -v '^ *+' conftest.er1 >conftest.err
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } >/dev/null; then
12031 if test -s conftest.err; then
12032 ac_cpp_err=$ac_c_preproc_warn_flag
12033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12040 if test -z "$ac_cpp_err"; then
12041 ac_header_preproc=yes
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 ac_header_preproc=no
12049 rm -f conftest.err conftest.$ac_ext
12050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12051 echo "${ECHO_T}$ac_header_preproc" >&6; }
12053 # So? What about this header?
12054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12060 ac_header_preproc=yes
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12076 ## ------------------------------------------- ##
12077 ## Report this to openssh-unix-dev@mindrot.org ##
12078 ## ------------------------------------------- ##
12080 ) | sed "s/^/$as_me: WARNING: /" >&2
12083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 eval "$as_ac_Header=\$ac_header_preproc"
12090 ac_res=`eval echo '${'$as_ac_Header'}'`
12091 { echo "$as_me:$LINENO: result: $ac_res" >&5
12092 echo "${ECHO_T}$ac_res" >&6; }
12095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12096 cat >>confdefs.h <<_ACEOF
12097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12104 { echo "$as_me:$LINENO: checking for library containing login" >&5
12105 echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
12106 if test "${ac_cv_search_login+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 ac_func_search_save_LIBS=$LIBS
12110 cat >conftest.$ac_ext <<_ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12117 /* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12132 for ac_lib in '' util bsd; do
12133 if test -z "$ac_lib"; then
12134 ac_res="none required"
12137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (ac_try="$ac_link"
12141 case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_link") 2>conftest.er1
12148 grep -v '^ *+' conftest.er1 >conftest.err
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12154 { (case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_try") 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try='test -s conftest$ac_exeext'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_cv_search_login=$ac_res
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12181 rm -f core conftest.err conftest.$ac_objext \
12183 if test "${ac_cv_search_login+set}" = set; then
12187 if test "${ac_cv_search_login+set}" = set; then
12190 ac_cv_search_login=no
12192 rm conftest.$ac_ext
12193 LIBS=$ac_func_search_save_LIBS
12195 { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
12196 echo "${ECHO_T}$ac_cv_search_login" >&6; }
12197 ac_res=$ac_cv_search_login
12198 if test "$ac_res" != no; then
12199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12201 cat >>confdefs.h <<\_ACEOF
12202 #define HAVE_LOGIN 1
12210 for ac_func in logout updwtmp logwtmp
12212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 cat >conftest.$ac_ext <<_ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12226 #define $ac_func innocuous_$ac_func
12228 /* System header to define __stub macros and hopefully few prototypes,
12229 which can conflict with char $ac_func (); below.
12230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12231 <limits.h> exists even on freestanding compilers. */
12234 # include <limits.h>
12236 # include <assert.h>
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12248 /* The GNU C library defines this for functions which it implements
12249 to always fail with ENOSYS. Some functions are actually named
12250 something starting with __ and the normal name is an alias. */
12251 #if defined __stub_$ac_func || defined __stub___$ac_func
12258 return $ac_func ();
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (ac_try="$ac_link"
12265 case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_link") 2>conftest.er1
12272 grep -v '^ *+' conftest.er1 >conftest.err
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12278 { (case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_try") 2>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; } &&
12287 { ac_try='test -s conftest$ac_exeext'
12288 { (case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_try") 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 eval "$as_ac_var=yes"
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 eval "$as_ac_var=no"
12305 rm -f core conftest.err conftest.$ac_objext \
12306 conftest$ac_exeext conftest.$ac_ext
12308 ac_res=`eval echo '${'$as_ac_var'}'`
12309 { echo "$as_me:$LINENO: result: $ac_res" >&5
12310 echo "${ECHO_T}$ac_res" >&6; }
12311 if test `eval echo '${'$as_ac_var'}'` = yes; then
12312 cat >>confdefs.h <<_ACEOF
12313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12321 for ac_func in strftime
12323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 cat >conftest.$ac_ext <<_ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12337 #define $ac_func innocuous_$ac_func
12339 /* System header to define __stub macros and hopefully few prototypes,
12340 which can conflict with char $ac_func (); below.
12341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12342 <limits.h> exists even on freestanding compilers. */
12345 # include <limits.h>
12347 # include <assert.h>
12352 /* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12359 /* The GNU C library defines this for functions which it implements
12360 to always fail with ENOSYS. Some functions are actually named
12361 something starting with __ and the normal name is an alias. */
12362 #if defined __stub_$ac_func || defined __stub___$ac_func
12369 return $ac_func ();
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_link") 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest$ac_exeext'
12399 { (case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_try") 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 eval "$as_ac_var=yes"
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12413 eval "$as_ac_var=no"
12416 rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12419 ac_res=`eval echo '${'$as_ac_var'}'`
12420 { echo "$as_me:$LINENO: result: $ac_res" >&5
12421 echo "${ECHO_T}$ac_res" >&6; }
12422 if test `eval echo '${'$as_ac_var'}'` = yes; then
12423 cat >>confdefs.h <<_ACEOF
12424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12428 # strftime is in -lintl on SCO UNIX.
12429 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12430 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
12431 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 ac_check_lib_save_LIBS=$LIBS
12435 LIBS="-lintl $LIBS"
12436 cat >conftest.$ac_ext <<_ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12443 /* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12453 return strftime ();
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (ac_try="$ac_link"
12460 case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_link") 2>conftest.er1
12467 grep -v '^ *+' conftest.er1 >conftest.err
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_try") 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_try") 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 ac_cv_lib_intl_strftime=yes
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12497 ac_cv_lib_intl_strftime=no
12500 rm -f core conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12504 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12505 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
12506 if test $ac_cv_lib_intl_strftime = yes; then
12507 cat >>confdefs.h <<\_ACEOF
12508 #define HAVE_STRFTIME 1
12511 LIBS="-lintl $LIBS"
12518 # Check for ALTDIRFUNC glob() extension
12519 { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
12520 echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
12521 cat >conftest.$ac_ext <<_ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12529 #ifdef GLOB_ALTDIRFUNC
12534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12535 $EGREP "FOUNDIT" >/dev/null 2>&1; then
12538 cat >>confdefs.h <<\_ACEOF
12539 #define GLOB_HAS_ALTDIRFUNC 1
12542 { echo "$as_me:$LINENO: result: yes" >&5
12543 echo "${ECHO_T}yes" >&6; }
12547 { echo "$as_me:$LINENO: result: no" >&5
12548 echo "${ECHO_T}no" >&6; }
12555 # Check for g.gl_matchc glob() extension
12556 { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
12557 echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
12558 cat >conftest.$ac_ext <<_ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12568 glob_t g; g.gl_matchc = 1;
12573 rm -f conftest.$ac_objext
12574 if { (ac_try="$ac_compile"
12575 case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_compile") 2>conftest.er1
12582 grep -v '^ *+' conftest.er1 >conftest.err
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12588 { (case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_try") 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_try") 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12609 cat >>confdefs.h <<\_ACEOF
12610 #define GLOB_HAS_GL_MATCHC 1
12613 { echo "$as_me:$LINENO: result: yes" >&5
12614 echo "${ECHO_T}yes" >&6; }
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12621 { echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6; }
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629 { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
12630 echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
12631 if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 cat >conftest.$ac_ext <<_ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12645 #ifndef GLOB_NOMATCH
12646 char *p = (char *) GLOB_NOMATCH;
12654 rm -f conftest.$ac_objext
12655 if { (ac_try="$ac_compile"
12656 case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_compile") 2>conftest.er1
12663 grep -v '^ *+' conftest.er1 >conftest.err
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12669 { (case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_try") 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest.$ac_objext'
12679 { (case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_try") 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_cv_have_decl_GLOB_NOMATCH=yes
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_cv_have_decl_GLOB_NOMATCH=no
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
12699 echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
12700 if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
12702 cat >>confdefs.h <<_ACEOF
12703 #define HAVE_DECL_GLOB_NOMATCH 1
12708 cat >>confdefs.h <<_ACEOF
12709 #define HAVE_DECL_GLOB_NOMATCH 0
12717 { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
12718 echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
12719 if test "$cross_compiling" = yes; then
12721 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
12722 echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
12723 cat >>confdefs.h <<\_ACEOF
12724 #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12730 cat >conftest.$ac_ext <<_ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12737 #include <sys/types.h>
12738 #include <dirent.h>
12739 int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
12742 rm -f conftest$ac_exeext
12743 if { (ac_try="$ac_link"
12744 case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_link") 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12753 { (case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_try") 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 { echo "$as_me:$LINENO: result: yes" >&5
12763 echo "${ECHO_T}yes" >&6; }
12765 echo "$as_me: program exited with status $ac_status" >&5
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ( exit $ac_status )
12771 { echo "$as_me:$LINENO: result: no" >&5
12772 echo "${ECHO_T}no" >&6; }
12774 cat >>confdefs.h <<\_ACEOF
12775 #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12785 { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
12786 echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
12787 if test -d "/proc/$$/fd" ; then
12789 cat >>confdefs.h <<\_ACEOF
12790 #define HAVE_PROC_PID 1
12793 { echo "$as_me:$LINENO: result: yes" >&5
12794 echo "${ECHO_T}yes" >&6; }
12796 { echo "$as_me:$LINENO: result: no" >&5
12797 echo "${ECHO_T}no" >&6; }
12800 # Check whether user wants S/Key support
12803 # Check whether --with-skey was given.
12804 if test "${with_skey+set}" = set; then
12805 withval=$with_skey;
12806 if test "x$withval" != "xno" ; then
12808 if test "x$withval" != "xyes" ; then
12809 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12810 LDFLAGS="$LDFLAGS -L${withval}/lib"
12814 cat >>confdefs.h <<\_ACEOF
12818 LIBS="-lskey $LIBS"
12821 { echo "$as_me:$LINENO: checking for s/key support" >&5
12822 echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
12823 cat >conftest.$ac_ext <<_ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12832 int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (ac_try="$ac_link"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_link") 2>conftest.er1
12844 grep -v '^ *+' conftest.er1 >conftest.err
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12850 { (case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_try") 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; } &&
12859 { ac_try='test -s conftest$ac_exeext'
12860 { (case "(($ac_try" in
12861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12862 *) ac_try_echo=$ac_try;;
12864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12865 (eval "$ac_try") 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 { echo "$as_me:$LINENO: result: yes" >&5
12870 echo "${ECHO_T}yes" >&6; }
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12876 { echo "$as_me:$LINENO: result: no" >&5
12877 echo "${ECHO_T}no" >&6; }
12878 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
12879 echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
12880 { (exit 1); exit 1; }; }
12884 rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12886 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
12887 echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
12888 cat >conftest.$ac_ext <<_ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12899 (void)skeychallenge(NULL,"name","",0);
12904 rm -f conftest.$ac_objext
12905 if { (ac_try="$ac_compile"
12906 case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_compile") 2>conftest.er1
12913 grep -v '^ *+' conftest.er1 >conftest.err
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919 { (case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_try") 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest.$ac_objext'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_try") 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 { echo "$as_me:$LINENO: result: yes" >&5
12939 echo "${ECHO_T}yes" >&6; }
12941 cat >>confdefs.h <<\_ACEOF
12942 #define SKEYCHALLENGE_4ARG 1
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 { echo "$as_me:$LINENO: result: no" >&5
12950 echo "${ECHO_T}no" >&6; }
12954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12961 # Check whether user wants TCP wrappers support
12964 # Check whether --with-tcp-wrappers was given.
12965 if test "${with_tcp_wrappers+set}" = set; then
12966 withval=$with_tcp_wrappers;
12967 if test "x$withval" != "xno" ; then
12969 saved_LDFLAGS="$LDFLAGS"
12970 saved_CPPFLAGS="$CPPFLAGS"
12971 if test -n "${withval}" && \
12972 test "x${withval}" != "xyes"; then
12973 if test -d "${withval}/lib"; then
12974 if test -n "${need_dash_r}"; then
12975 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12977 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12980 if test -n "${need_dash_r}"; then
12981 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12983 LDFLAGS="-L${withval} ${LDFLAGS}"
12986 if test -d "${withval}/include"; then
12987 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12989 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12993 LIBS="$LIBWRAP $LIBS"
12994 { echo "$as_me:$LINENO: checking for libwrap" >&5
12995 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
12996 cat >conftest.$ac_ext <<_ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h. */
13003 #include <sys/types.h>
13004 #include <sys/socket.h>
13005 #include <netinet/in.h>
13007 int deny_severity = 0, allow_severity = 0;
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_link") 2>conftest.er1
13026 grep -v '^ *+' conftest.er1 >conftest.err
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13032 { (case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_try") 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest$ac_exeext'
13042 { (case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_try") 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13052 { echo "$as_me:$LINENO: result: yes" >&5
13053 echo "${ECHO_T}yes" >&6; }
13055 cat >>confdefs.h <<\_ACEOF
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13067 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
13068 echo "$as_me: error: *** libwrap missing" >&2;}
13069 { (exit 1); exit 1; }; }
13074 rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13083 # Check whether user wants libedit support
13086 # Check whether --with-libedit was given.
13087 if test "${with_libedit+set}" = set; then
13088 withval=$with_libedit; if test "x$withval" != "xno" ; then
13089 if test "x$withval" != "xyes"; then
13090 CPPFLAGS="$CPPFLAGS -I${withval}/include"
13091 if test -n "${need_dash_r}"; then
13092 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13094 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13097 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
13098 echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
13099 if test "${ac_cv_lib_edit_el_init+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 ac_check_lib_save_LIBS=$LIBS
13103 LIBS="-ledit -lcurses
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 /* Override any GCC internal prototype to avoid an error.
13113 Use char because int might match the return type of a GCC
13114 builtin and then its argument prototype would still apply. */
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_link") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_lib_edit_el_init=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_cv_lib_edit_el_init=no
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13173 { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
13174 echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
13175 if test $ac_cv_lib_edit_el_init = yes; then
13177 cat >>confdefs.h <<\_ACEOF
13178 #define USE_LIBEDIT 1
13181 LIBEDIT="-ledit -lcurses"
13186 { { echo "$as_me:$LINENO: error: libedit not found" >&5
13187 echo "$as_me: error: libedit not found" >&2;}
13188 { (exit 1); exit 1; }; }
13191 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
13192 echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
13193 cat >conftest.$ac_ext <<_ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13200 #include <histedit.h>
13204 el_init("", NULL, NULL, NULL);
13209 rm -f conftest.$ac_objext
13210 if { (ac_try="$ac_compile"
13211 case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_compile") 2>conftest.er1
13218 grep -v '^ *+' conftest.er1 >conftest.err
13220 cat conftest.err >&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } &&
13223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13224 { (case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_try") 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
13234 { (case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_try") 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 { echo "$as_me:$LINENO: result: yes" >&5
13244 echo "${ECHO_T}yes" >&6; }
13246 echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13249 { echo "$as_me:$LINENO: result: no" >&5
13250 echo "${ECHO_T}no" >&6; }
13251 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
13252 echo "$as_me: error: libedit version is not compatible" >&2;}
13253 { (exit 1); exit 1; }; }
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265 # Check whether --with-audit was given.
13266 if test "${with_audit+set}" = set; then
13267 withval=$with_audit;
13268 { echo "$as_me:$LINENO: checking for supported audit module" >&5
13269 echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
13272 { echo "$as_me:$LINENO: result: bsm" >&5
13273 echo "${ECHO_T}bsm" >&6; }
13276 for ac_header in bsm/audit.h
13278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 cat >conftest.$ac_ext <<_ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13297 #include <$ac_header>
13299 rm -f conftest.$ac_objext
13300 if { (ac_try="$ac_compile"
13301 case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_compile") 2>conftest.er1
13308 grep -v '^ *+' conftest.er1 >conftest.err
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13314 { (case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_try") 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try='test -s conftest.$ac_objext'
13324 { (case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_try") 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
13333 eval "$as_ac_Header=yes"
13335 echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13338 eval "$as_ac_Header=no"
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 ac_res=`eval echo '${'$as_ac_Header'}'`
13344 { echo "$as_me:$LINENO: result: $ac_res" >&5
13345 echo "${ECHO_T}$ac_res" >&6; }
13346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13347 cat >>confdefs.h <<_ACEOF
13348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13352 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
13353 echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
13354 { (exit 1); exit 1; }; }
13360 { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
13361 echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
13362 if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 ac_check_lib_save_LIBS=$LIBS
13367 cat >conftest.$ac_ext <<_ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13374 /* Override any GCC internal prototype to avoid an error.
13375 Use char because int might match the return type of a GCC
13376 builtin and then its argument prototype would still apply. */
13384 return getaudit ();
13389 rm -f conftest.$ac_objext conftest$ac_exeext
13390 if { (ac_try="$ac_link"
13391 case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_link") 2>conftest.er1
13398 grep -v '^ *+' conftest.er1 >conftest.err
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13404 { (case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_try") 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_cv_lib_bsm_getaudit=yes
13425 echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13428 ac_cv_lib_bsm_getaudit=no
13431 rm -f core conftest.err conftest.$ac_objext \
13432 conftest$ac_exeext conftest.$ac_ext
13433 LIBS=$ac_check_lib_save_LIBS
13435 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
13436 echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
13437 if test $ac_cv_lib_bsm_getaudit = yes; then
13438 cat >>confdefs.h <<_ACEOF
13439 #define HAVE_LIBBSM 1
13445 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
13446 echo "$as_me: error: BSM enabled and required library not found" >&2;}
13447 { (exit 1); exit 1; }; }
13451 for ac_func in getaudit
13453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 cat >conftest.$ac_ext <<_ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13467 #define $ac_func innocuous_$ac_func
13469 /* System header to define __stub macros and hopefully few prototypes,
13470 which can conflict with char $ac_func (); below.
13471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13472 <limits.h> exists even on freestanding compilers. */
13475 # include <limits.h>
13477 # include <assert.h>
13482 /* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13489 /* The GNU C library defines this for functions which it implements
13490 to always fail with ENOSYS. Some functions are actually named
13491 something starting with __ and the normal name is an alias. */
13492 #if defined __stub_$ac_func || defined __stub___$ac_func
13499 return $ac_func ();
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (ac_try="$ac_link"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_link") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13519 { (case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_try") 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest$ac_exeext'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 eval "$as_ac_var=yes"
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 eval "$as_ac_var=no"
13546 rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13549 ac_res=`eval echo '${'$as_ac_var'}'`
13550 { echo "$as_me:$LINENO: result: $ac_res" >&5
13551 echo "${ECHO_T}$ac_res" >&6; }
13552 if test `eval echo '${'$as_ac_var'}'` = yes; then
13553 cat >>confdefs.h <<_ACEOF
13554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13558 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
13559 echo "$as_me: error: BSM enabled and required function not found" >&2;}
13560 { (exit 1); exit 1; }; }
13564 # These are optional
13566 for ac_func in getaudit_addr
13568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13582 #define $ac_func innocuous_$ac_func
13584 /* System header to define __stub macros and hopefully few prototypes,
13585 which can conflict with char $ac_func (); below.
13586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13587 <limits.h> exists even on freestanding compilers. */
13590 # include <limits.h>
13592 # include <assert.h>
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13604 /* The GNU C library defines this for functions which it implements
13605 to always fail with ENOSYS. Some functions are actually named
13606 something starting with __ and the normal name is an alias. */
13607 #if defined __stub_$ac_func || defined __stub___$ac_func
13614 return $ac_func ();
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (ac_try="$ac_link"
13621 case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_link") 2>conftest.er1
13628 grep -v '^ *+' conftest.er1 >conftest.err
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13634 { (case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_try") 2>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest$ac_exeext'
13644 { (case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_try") 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 eval "$as_ac_var=yes"
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13658 eval "$as_ac_var=no"
13661 rm -f core conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13664 ac_res=`eval echo '${'$as_ac_var'}'`
13665 { echo "$as_me:$LINENO: result: $ac_res" >&5
13666 echo "${ECHO_T}$ac_res" >&6; }
13667 if test `eval echo '${'$as_ac_var'}'` = yes; then
13668 cat >>confdefs.h <<_ACEOF
13669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13676 cat >>confdefs.h <<\_ACEOF
13677 #define USE_BSM_AUDIT 1
13683 { echo "$as_me:$LINENO: result: debug" >&5
13684 echo "${ECHO_T}debug" >&6; }
13686 cat >>confdefs.h <<\_ACEOF
13687 #define SSH_AUDIT_EVENTS 1
13692 { echo "$as_me:$LINENO: result: no" >&5
13693 echo "${ECHO_T}no" >&6; }
13696 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
13697 echo "$as_me: error: Unknown audit module $withval" >&2;}
13698 { (exit 1); exit 1; }; }
13870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 cat >conftest.$ac_ext <<_ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13884 #define $ac_func innocuous_$ac_func
13886 /* System header to define __stub macros and hopefully few prototypes,
13887 which can conflict with char $ac_func (); below.
13888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13889 <limits.h> exists even on freestanding compilers. */
13892 # include <limits.h>
13894 # include <assert.h>
13899 /* Override any GCC internal prototype to avoid an error.
13900 Use char because int might match the return type of a GCC
13901 builtin and then its argument prototype would still apply. */
13906 /* The GNU C library defines this for functions which it implements
13907 to always fail with ENOSYS. Some functions are actually named
13908 something starting with __ and the normal name is an alias. */
13909 #if defined __stub_$ac_func || defined __stub___$ac_func
13916 return $ac_func ();
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (ac_try="$ac_link"
13923 case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_link") 2>conftest.er1
13930 grep -v '^ *+' conftest.er1 >conftest.err
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest$ac_exeext'
13946 { (case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_try") 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 eval "$as_ac_var=yes"
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13960 eval "$as_ac_var=no"
13963 rm -f core conftest.err conftest.$ac_objext \
13964 conftest$ac_exeext conftest.$ac_ext
13966 ac_res=`eval echo '${'$as_ac_var'}'`
13967 { echo "$as_me:$LINENO: result: $ac_res" >&5
13968 echo "${ECHO_T}$ac_res" >&6; }
13969 if test `eval echo '${'$as_ac_var'}'` = yes; then
13970 cat >>confdefs.h <<_ACEOF
13971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13978 # IRIX has a const char return value for gai_strerror()
13980 for ac_func in gai_strerror
13982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 cat >conftest.$ac_ext <<_ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13996 #define $ac_func innocuous_$ac_func
13998 /* System header to define __stub macros and hopefully few prototypes,
13999 which can conflict with char $ac_func (); below.
14000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14001 <limits.h> exists even on freestanding compilers. */
14004 # include <limits.h>
14006 # include <assert.h>
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14018 /* The GNU C library defines this for functions which it implements
14019 to always fail with ENOSYS. Some functions are actually named
14020 something starting with __ and the normal name is an alias. */
14021 #if defined __stub_$ac_func || defined __stub___$ac_func
14028 return $ac_func ();
14033 rm -f conftest.$ac_objext conftest$ac_exeext
14034 if { (ac_try="$ac_link"
14035 case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_link") 2>conftest.er1
14042 grep -v '^ *+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048 { (case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_try") 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest$ac_exeext'
14058 { (case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_try") 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 eval "$as_ac_var=yes"
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 eval "$as_ac_var=no"
14075 rm -f core conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14078 ac_res=`eval echo '${'$as_ac_var'}'`
14079 { echo "$as_me:$LINENO: result: $ac_res" >&5
14080 echo "${ECHO_T}$ac_res" >&6; }
14081 if test `eval echo '${'$as_ac_var'}'` = yes; then
14082 cat >>confdefs.h <<_ACEOF
14083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_GAI_STRERROR 1
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14097 #include <sys/types.h>
14098 #include <sys/socket.h>
14101 const char *gai_strerror(int);
14108 str = gai_strerror(0);
14113 rm -f conftest.$ac_objext
14114 if { (ac_try="$ac_compile"
14115 case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_compile") 2>conftest.er1
14122 grep -v '^ *+' conftest.er1 >conftest.err
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14128 { (case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_try") 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; } &&
14137 { ac_try='test -s conftest.$ac_objext'
14138 { (case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_try") 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14149 cat >>confdefs.h <<\_ACEOF
14150 #define HAVE_CONST_GAI_STRERROR_PROTO 1
14154 echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
14166 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
14167 if test "${ac_cv_search_nanosleep+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 ac_func_search_save_LIBS=$LIBS
14171 cat >conftest.$ac_ext <<_ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14178 /* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14188 return nanosleep ();
14193 for ac_lib in '' rt posix4; do
14194 if test -z "$ac_lib"; then
14195 ac_res="none required"
14198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14200 rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_link") 2>conftest.er1
14209 grep -v '^ *+' conftest.er1 >conftest.err
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; } &&
14224 { ac_try='test -s conftest$ac_exeext'
14225 { (case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_try") 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 ac_cv_search_nanosleep=$ac_res
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14242 rm -f core conftest.err conftest.$ac_objext \
14244 if test "${ac_cv_search_nanosleep+set}" = set; then
14248 if test "${ac_cv_search_nanosleep+set}" = set; then
14251 ac_cv_search_nanosleep=no
14253 rm conftest.$ac_ext
14254 LIBS=$ac_func_search_save_LIBS
14256 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
14257 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
14258 ac_res=$ac_cv_search_nanosleep
14259 if test "$ac_res" != no; then
14260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14262 cat >>confdefs.h <<\_ACEOF
14263 #define HAVE_NANOSLEEP 1
14269 { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
14270 echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
14271 if test "${ac_cv_have_decl_getrusage+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 $ac_includes_default
14285 char *p = (char *) getrusage;
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_have_decl_getrusage=yes
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 ac_cv_have_decl_getrusage=no
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
14338 echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
14339 if test $ac_cv_have_decl_getrusage = yes; then
14341 for ac_func in getrusage
14343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14357 #define $ac_func innocuous_$ac_func
14359 /* System header to define __stub macros and hopefully few prototypes,
14360 which can conflict with char $ac_func (); below.
14361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14362 <limits.h> exists even on freestanding compilers. */
14365 # include <limits.h>
14367 # include <assert.h>
14372 /* Override any GCC internal prototype to avoid an error.
14373 Use char because int might match the return type of a GCC
14374 builtin and then its argument prototype would still apply. */
14379 /* The GNU C library defines this for functions which it implements
14380 to always fail with ENOSYS. Some functions are actually named
14381 something starting with __ and the normal name is an alias. */
14382 #if defined __stub_$ac_func || defined __stub___$ac_func
14389 return $ac_func ();
14394 rm -f conftest.$ac_objext conftest$ac_exeext
14395 if { (ac_try="$ac_link"
14396 case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_link") 2>conftest.er1
14403 grep -v '^ *+' conftest.er1 >conftest.err
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14409 { (case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_try") 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest$ac_exeext'
14419 { (case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_try") 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 eval "$as_ac_var=yes"
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 eval "$as_ac_var=no"
14436 rm -f core conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14439 ac_res=`eval echo '${'$as_ac_var'}'`
14440 { echo "$as_me:$LINENO: result: $ac_res" >&5
14441 echo "${ECHO_T}$ac_res" >&6; }
14442 if test `eval echo '${'$as_ac_var'}'` = yes; then
14443 cat >>confdefs.h <<_ACEOF
14444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14452 { echo "$as_me:$LINENO: checking whether strsep is declared" >&5
14453 echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
14454 if test "${ac_cv_have_decl_strsep+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14464 #ifdef HAVE_STRING_H
14465 # include <string.h>
14473 char *p = (char *) strsep;
14481 rm -f conftest.$ac_objext
14482 if { (ac_try="$ac_compile"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_compile") 2>conftest.er1
14490 grep -v '^ *+' conftest.er1 >conftest.err
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } &&
14495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14496 { (case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_try") 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; } &&
14505 { ac_try='test -s conftest.$ac_objext'
14506 { (case "(($ac_try" in
14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508 *) ac_try_echo=$ac_try;;
14510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14511 (eval "$ac_try") 2>&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; }; then
14515 ac_cv_have_decl_strsep=yes
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14520 ac_cv_have_decl_strsep=no
14523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
14526 echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
14527 if test $ac_cv_have_decl_strsep = yes; then
14529 for ac_func in strsep
14531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 cat >conftest.$ac_ext <<_ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h. */
14543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14545 #define $ac_func innocuous_$ac_func
14547 /* System header to define __stub macros and hopefully few prototypes,
14548 which can conflict with char $ac_func (); below.
14549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14550 <limits.h> exists even on freestanding compilers. */
14553 # include <limits.h>
14555 # include <assert.h>
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14567 /* The GNU C library defines this for functions which it implements
14568 to always fail with ENOSYS. Some functions are actually named
14569 something starting with __ and the normal name is an alias. */
14570 #if defined __stub_$ac_func || defined __stub___$ac_func
14577 return $ac_func ();
14582 rm -f conftest.$ac_objext conftest$ac_exeext
14583 if { (ac_try="$ac_link"
14584 case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_link") 2>conftest.er1
14591 grep -v '^ *+' conftest.er1 >conftest.err
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14597 { (case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_try") 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try='test -s conftest$ac_exeext'
14607 { (case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_try") 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 eval "$as_ac_var=yes"
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14621 eval "$as_ac_var=no"
14624 rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14627 ac_res=`eval echo '${'$as_ac_var'}'`
14628 { echo "$as_me:$LINENO: result: $ac_res" >&5
14629 echo "${ECHO_T}$ac_res" >&6; }
14630 if test `eval echo '${'$as_ac_var'}'` = yes; then
14631 cat >>confdefs.h <<_ACEOF
14632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14641 { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
14642 echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
14643 if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 #include <termios.h>
14658 #ifndef tcsendbreak
14659 char *p = (char *) tcsendbreak;
14667 rm -f conftest.$ac_objext
14668 if { (ac_try="$ac_compile"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_compile") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14682 { (case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_try") 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_try") 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 ac_cv_have_decl_tcsendbreak=yes
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_cv_have_decl_tcsendbreak=no
14709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
14712 echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
14713 if test $ac_cv_have_decl_tcsendbreak = yes; then
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_TCSENDBREAK 1
14720 for ac_func in tcsendbreak
14722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 cat >conftest.$ac_ext <<_ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14736 #define $ac_func innocuous_$ac_func
14738 /* System header to define __stub macros and hopefully few prototypes,
14739 which can conflict with char $ac_func (); below.
14740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14741 <limits.h> exists even on freestanding compilers. */
14744 # include <limits.h>
14746 # include <assert.h>
14751 /* Override any GCC internal prototype to avoid an error.
14752 Use char because int might match the return type of a GCC
14753 builtin and then its argument prototype would still apply. */
14758 /* The GNU C library defines this for functions which it implements
14759 to always fail with ENOSYS. Some functions are actually named
14760 something starting with __ and the normal name is an alias. */
14761 #if defined __stub_$ac_func || defined __stub___$ac_func
14768 return $ac_func ();
14773 rm -f conftest.$ac_objext conftest$ac_exeext
14774 if { (ac_try="$ac_link"
14775 case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_link") 2>conftest.er1
14782 grep -v '^ *+' conftest.er1 >conftest.err
14784 cat conftest.err >&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } &&
14787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14788 { (case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_try") 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; } &&
14797 { ac_try='test -s conftest$ac_exeext'
14798 { (case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_try") 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 eval "$as_ac_var=yes"
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 eval "$as_ac_var=no"
14815 rm -f core conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
14818 ac_res=`eval echo '${'$as_ac_var'}'`
14819 { echo "$as_me:$LINENO: result: $ac_res" >&5
14820 echo "${ECHO_T}$ac_res" >&6; }
14821 if test `eval echo '${'$as_ac_var'}'` = yes; then
14822 cat >>confdefs.h <<_ACEOF
14823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14832 { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
14833 echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
14834 if test "${ac_cv_have_decl_h_errno+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14849 char *p = (char *) h_errno;
14857 rm -f conftest.$ac_objext
14858 if { (ac_try="$ac_compile"
14859 case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_compile") 2>conftest.er1
14866 grep -v '^ *+' conftest.er1 >conftest.err
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14872 { (case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_try") 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest.$ac_objext'
14882 { (case "(($ac_try" in
14883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884 *) ac_try_echo=$ac_try;;
14886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14887 (eval "$ac_try") 2>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_cv_have_decl_h_errno=yes
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14896 ac_cv_have_decl_h_errno=no
14899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14901 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
14902 echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
14903 if test $ac_cv_have_decl_h_errno = yes; then
14905 cat >>confdefs.h <<_ACEOF
14906 #define HAVE_DECL_H_ERRNO 1
14911 cat >>confdefs.h <<_ACEOF
14912 #define HAVE_DECL_H_ERRNO 0
14920 { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
14921 echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
14922 if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14932 #include <sys/types.h>
14933 #include <sys/socket.h>
14940 char *p = (char *) SHUT_RD;
14948 rm -f conftest.$ac_objext
14949 if { (ac_try="$ac_compile"
14950 case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_compile") 2>conftest.er1
14957 grep -v '^ *+' conftest.er1 >conftest.err
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14963 { (case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_try") 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; } &&
14972 { ac_try='test -s conftest.$ac_objext'
14973 { (case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_try") 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 ac_cv_have_decl_SHUT_RD=yes
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14987 ac_cv_have_decl_SHUT_RD=no
14990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14992 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
14993 echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
14994 if test $ac_cv_have_decl_SHUT_RD = yes; then
14996 cat >>confdefs.h <<_ACEOF
14997 #define HAVE_DECL_SHUT_RD 1
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_DECL_SHUT_RD 0
15011 { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
15012 echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
15013 if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15023 #include <sys/types.h>
15024 #ifdef HAVE_SYS_STAT_H
15025 # include <sys/stat.h>
15027 #ifdef HAVE_FCNTL_H
15028 # include <fcntl.h>
15036 char *p = (char *) O_NONBLOCK;
15044 rm -f conftest.$ac_objext
15045 if { (ac_try="$ac_compile"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_compile") 2>conftest.er1
15053 grep -v '^ *+' conftest.er1 >conftest.err
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
15058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; } &&
15068 { ac_try='test -s conftest.$ac_objext'
15069 { (case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_have_decl_O_NONBLOCK=yes
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_cv_have_decl_O_NONBLOCK=no
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
15089 echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
15090 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
15092 cat >>confdefs.h <<_ACEOF
15093 #define HAVE_DECL_O_NONBLOCK 1
15098 cat >>confdefs.h <<_ACEOF
15099 #define HAVE_DECL_O_NONBLOCK 0
15107 { echo "$as_me:$LINENO: checking whether writev is declared" >&5
15108 echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
15109 if test "${ac_cv_have_decl_writev+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 cat >conftest.$ac_ext <<_ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15119 #include <sys/types.h>
15120 #include <sys/uio.h>
15121 #include <unistd.h>
15128 char *p = (char *) writev;
15136 rm -f conftest.$ac_objext
15137 if { (ac_try="$ac_compile"
15138 case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_compile") 2>conftest.er1
15145 grep -v '^ *+' conftest.er1 >conftest.err
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15151 { (case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_try") 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; } &&
15160 { ac_try='test -s conftest.$ac_objext'
15161 { (case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_try") 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_cv_have_decl_writev=yes
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 ac_cv_have_decl_writev=no
15178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
15181 echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
15182 if test $ac_cv_have_decl_writev = yes; then
15184 cat >>confdefs.h <<_ACEOF
15185 #define HAVE_DECL_WRITEV 1
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_DECL_WRITEV 0
15200 for ac_func in setresuid
15202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15216 #define $ac_func innocuous_$ac_func
15218 /* System header to define __stub macros and hopefully few prototypes,
15219 which can conflict with char $ac_func (); below.
15220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15221 <limits.h> exists even on freestanding compilers. */
15224 # include <limits.h>
15226 # include <assert.h>
15231 /* Override any GCC internal prototype to avoid an error.
15232 Use char because int might match the return type of a GCC
15233 builtin and then its argument prototype would still apply. */
15238 /* The GNU C library defines this for functions which it implements
15239 to always fail with ENOSYS. Some functions are actually named
15240 something starting with __ and the normal name is an alias. */
15241 #if defined __stub_$ac_func || defined __stub___$ac_func
15248 return $ac_func ();
15253 rm -f conftest.$ac_objext conftest$ac_exeext
15254 if { (ac_try="$ac_link"
15255 case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_link") 2>conftest.er1
15262 grep -v '^ *+' conftest.er1 >conftest.err
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15268 { (case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_try") 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; } &&
15277 { ac_try='test -s conftest$ac_exeext'
15278 { (case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_try") 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 eval "$as_ac_var=yes"
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 eval "$as_ac_var=no"
15295 rm -f core conftest.err conftest.$ac_objext \
15296 conftest$ac_exeext conftest.$ac_ext
15298 ac_res=`eval echo '${'$as_ac_var'}'`
15299 { echo "$as_me:$LINENO: result: $ac_res" >&5
15300 echo "${ECHO_T}$ac_res" >&6; }
15301 if test `eval echo '${'$as_ac_var'}'` = yes; then
15302 cat >>confdefs.h <<_ACEOF
15303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15306 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
15307 echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
15308 if test "$cross_compiling" = yes; then
15309 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15310 echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15313 cat >conftest.$ac_ext <<_ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15320 #include <stdlib.h>
15322 int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15325 rm -f conftest$ac_exeext
15326 if { (ac_try="$ac_link"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_link") 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 { echo "$as_me:$LINENO: result: yes" >&5
15346 echo "${ECHO_T}yes" >&6; }
15348 echo "$as_me: program exited with status $ac_status" >&5
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15352 ( exit $ac_status )
15354 cat >>confdefs.h <<\_ACEOF
15355 #define BROKEN_SETRESUID 1
15358 { echo "$as_me:$LINENO: result: not implemented" >&5
15359 echo "${ECHO_T}not implemented" >&6; }
15361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15371 for ac_func in setresgid
15373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 cat >conftest.$ac_ext <<_ACEOF
15382 cat confdefs.h >>conftest.$ac_ext
15383 cat >>conftest.$ac_ext <<_ACEOF
15384 /* end confdefs.h. */
15385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15387 #define $ac_func innocuous_$ac_func
15389 /* System header to define __stub macros and hopefully few prototypes,
15390 which can conflict with char $ac_func (); below.
15391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15392 <limits.h> exists even on freestanding compilers. */
15395 # include <limits.h>
15397 # include <assert.h>
15402 /* Override any GCC internal prototype to avoid an error.
15403 Use char because int might match the return type of a GCC
15404 builtin and then its argument prototype would still apply. */
15409 /* The GNU C library defines this for functions which it implements
15410 to always fail with ENOSYS. Some functions are actually named
15411 something starting with __ and the normal name is an alias. */
15412 #if defined __stub_$ac_func || defined __stub___$ac_func
15419 return $ac_func ();
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (ac_try="$ac_link"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_link") 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15439 { (case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_try") 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest$ac_exeext'
15449 { (case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_try") 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 eval "$as_ac_var=yes"
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 eval "$as_ac_var=no"
15466 rm -f core conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
15469 ac_res=`eval echo '${'$as_ac_var'}'`
15470 { echo "$as_me:$LINENO: result: $ac_res" >&5
15471 echo "${ECHO_T}$ac_res" >&6; }
15472 if test `eval echo '${'$as_ac_var'}'` = yes; then
15473 cat >>confdefs.h <<_ACEOF
15474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15477 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
15478 echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
15479 if test "$cross_compiling" = yes; then
15480 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15481 echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15484 cat >conftest.$ac_ext <<_ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15491 #include <stdlib.h>
15493 int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15496 rm -f conftest$ac_exeext
15497 if { (ac_try="$ac_link"
15498 case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503 (eval "$ac_link") 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15507 { (case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_try") 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 { echo "$as_me:$LINENO: result: yes" >&5
15517 echo "${ECHO_T}yes" >&6; }
15519 echo "$as_me: program exited with status $ac_status" >&5
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ( exit $ac_status )
15525 cat >>confdefs.h <<\_ACEOF
15526 #define BROKEN_SETRESGID 1
15529 { echo "$as_me:$LINENO: result: not implemented" >&5
15530 echo "${ECHO_T}not implemented" >&6; }
15532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15543 for ac_func in gettimeofday time
15545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15559 #define $ac_func innocuous_$ac_func
15561 /* System header to define __stub macros and hopefully few prototypes,
15562 which can conflict with char $ac_func (); below.
15563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15564 <limits.h> exists even on freestanding compilers. */
15567 # include <limits.h>
15569 # include <assert.h>
15574 /* Override any GCC internal prototype to avoid an error.
15575 Use char because int might match the return type of a GCC
15576 builtin and then its argument prototype would still apply. */
15581 /* The GNU C library defines this for functions which it implements
15582 to always fail with ENOSYS. Some functions are actually named
15583 something starting with __ and the normal name is an alias. */
15584 #if defined __stub_$ac_func || defined __stub___$ac_func
15591 return $ac_func ();
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (ac_try="$ac_link"
15598 case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_link") 2>conftest.er1
15605 grep -v '^ *+' conftest.er1 >conftest.err
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15611 { (case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_try") 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; } &&
15620 { ac_try='test -s conftest$ac_exeext'
15621 { (case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15630 eval "$as_ac_var=yes"
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15635 eval "$as_ac_var=no"
15638 rm -f core conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15641 ac_res=`eval echo '${'$as_ac_var'}'`
15642 { echo "$as_me:$LINENO: result: $ac_res" >&5
15643 echo "${ECHO_T}$ac_res" >&6; }
15644 if test `eval echo '${'$as_ac_var'}'` = yes; then
15645 cat >>confdefs.h <<_ACEOF
15646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15658 for ac_func in endutent getutent getutid getutline pututline setutent
15660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 cat >conftest.$ac_ext <<_ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15674 #define $ac_func innocuous_$ac_func
15676 /* System header to define __stub macros and hopefully few prototypes,
15677 which can conflict with char $ac_func (); below.
15678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15679 <limits.h> exists even on freestanding compilers. */
15682 # include <limits.h>
15684 # include <assert.h>
15689 /* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15696 /* The GNU C library defines this for functions which it implements
15697 to always fail with ENOSYS. Some functions are actually named
15698 something starting with __ and the normal name is an alias. */
15699 #if defined __stub_$ac_func || defined __stub___$ac_func
15706 return $ac_func ();
15711 rm -f conftest.$ac_objext conftest$ac_exeext
15712 if { (ac_try="$ac_link"
15713 case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_link") 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726 { (case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_try") 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try='test -s conftest$ac_exeext'
15736 { (case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_try") 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 eval "$as_ac_var=yes"
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 eval "$as_ac_var=no"
15753 rm -f core conftest.err conftest.$ac_objext \
15754 conftest$ac_exeext conftest.$ac_ext
15756 ac_res=`eval echo '${'$as_ac_var'}'`
15757 { echo "$as_me:$LINENO: result: $ac_res" >&5
15758 echo "${ECHO_T}$ac_res" >&6; }
15759 if test `eval echo '${'$as_ac_var'}'` = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15768 for ac_func in utmpname
15770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 cat >conftest.$ac_ext <<_ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15784 #define $ac_func innocuous_$ac_func
15786 /* System header to define __stub macros and hopefully few prototypes,
15787 which can conflict with char $ac_func (); below.
15788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15789 <limits.h> exists even on freestanding compilers. */
15792 # include <limits.h>
15794 # include <assert.h>
15799 /* Override any GCC internal prototype to avoid an error.
15800 Use char because int might match the return type of a GCC
15801 builtin and then its argument prototype would still apply. */
15806 /* The GNU C library defines this for functions which it implements
15807 to always fail with ENOSYS. Some functions are actually named
15808 something starting with __ and the normal name is an alias. */
15809 #if defined __stub_$ac_func || defined __stub___$ac_func
15816 return $ac_func ();
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (ac_try="$ac_link"
15823 case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_link") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836 { (case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_try") 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest$ac_exeext'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 eval "$as_ac_var=yes"
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 eval "$as_ac_var=no"
15863 rm -f core conftest.err conftest.$ac_objext \
15864 conftest$ac_exeext conftest.$ac_ext
15866 ac_res=`eval echo '${'$as_ac_var'}'`
15867 { echo "$as_me:$LINENO: result: $ac_res" >&5
15868 echo "${ECHO_T}$ac_res" >&6; }
15869 if test `eval echo '${'$as_ac_var'}'` = yes; then
15870 cat >>confdefs.h <<_ACEOF
15871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15882 for ac_func in endutxent getutxent getutxid getutxline pututxline
15884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 cat >conftest.$ac_ext <<_ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15898 #define $ac_func innocuous_$ac_func
15900 /* System header to define __stub macros and hopefully few prototypes,
15901 which can conflict with char $ac_func (); below.
15902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15903 <limits.h> exists even on freestanding compilers. */
15906 # include <limits.h>
15908 # include <assert.h>
15913 /* Override any GCC internal prototype to avoid an error.
15914 Use char because int might match the return type of a GCC
15915 builtin and then its argument prototype would still apply. */
15920 /* The GNU C library defines this for functions which it implements
15921 to always fail with ENOSYS. Some functions are actually named
15922 something starting with __ and the normal name is an alias. */
15923 #if defined __stub_$ac_func || defined __stub___$ac_func
15930 return $ac_func ();
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_link") 2>conftest.er1
15944 grep -v '^ *+' conftest.er1 >conftest.err
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950 { (case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_try") 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; } &&
15959 { ac_try='test -s conftest$ac_exeext'
15960 { (case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_try") 2>&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 eval "$as_ac_var=yes"
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974 eval "$as_ac_var=no"
15977 rm -f core conftest.err conftest.$ac_objext \
15978 conftest$ac_exeext conftest.$ac_ext
15980 ac_res=`eval echo '${'$as_ac_var'}'`
15981 { echo "$as_me:$LINENO: result: $ac_res" >&5
15982 echo "${ECHO_T}$ac_res" >&6; }
15983 if test `eval echo '${'$as_ac_var'}'` = yes; then
15984 cat >>confdefs.h <<_ACEOF
15985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15993 for ac_func in setutxent utmpxname
15995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 cat >conftest.$ac_ext <<_ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16009 #define $ac_func innocuous_$ac_func
16011 /* System header to define __stub macros and hopefully few prototypes,
16012 which can conflict with char $ac_func (); below.
16013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16014 <limits.h> exists even on freestanding compilers. */
16017 # include <limits.h>
16019 # include <assert.h>
16024 /* Override any GCC internal prototype to avoid an error.
16025 Use char because int might match the return type of a GCC
16026 builtin and then its argument prototype would still apply. */
16031 /* The GNU C library defines this for functions which it implements
16032 to always fail with ENOSYS. Some functions are actually named
16033 something starting with __ and the normal name is an alias. */
16034 #if defined __stub_$ac_func || defined __stub___$ac_func
16041 return $ac_func ();
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (ac_try="$ac_link"
16048 case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_link") 2>conftest.er1
16055 grep -v '^ *+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16061 { (case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_try") 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; } &&
16070 { ac_try='test -s conftest$ac_exeext'
16071 { (case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_try") 2>&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 eval "$as_ac_var=yes"
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 eval "$as_ac_var=no"
16088 rm -f core conftest.err conftest.$ac_objext \
16089 conftest$ac_exeext conftest.$ac_ext
16091 ac_res=`eval echo '${'$as_ac_var'}'`
16092 { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16094 if test `eval echo '${'$as_ac_var'}'` = yes; then
16095 cat >>confdefs.h <<_ACEOF
16096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16103 { echo "$as_me:$LINENO: checking for daemon" >&5
16104 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
16105 if test "${ac_cv_func_daemon+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 cat >conftest.$ac_ext <<_ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h. */
16114 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
16115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16116 #define daemon innocuous_daemon
16118 /* System header to define __stub macros and hopefully few prototypes,
16119 which can conflict with char daemon (); below.
16120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16121 <limits.h> exists even on freestanding compilers. */
16124 # include <limits.h>
16126 # include <assert.h>
16131 /* Override any GCC internal prototype to avoid an error.
16132 Use char because int might match the return type of a GCC
16133 builtin and then its argument prototype would still apply. */
16138 /* The GNU C library defines this for functions which it implements
16139 to always fail with ENOSYS. Some functions are actually named
16140 something starting with __ and the normal name is an alias. */
16141 #if defined __stub_daemon || defined __stub___daemon
16153 rm -f conftest.$ac_objext conftest$ac_exeext
16154 if { (ac_try="$ac_link"
16155 case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_link") 2>conftest.er1
16162 grep -v '^ *+' conftest.er1 >conftest.err
16164 cat conftest.err >&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } &&
16167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16168 { (case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173 (eval "$ac_try") 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_try") 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_cv_func_daemon=yes
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 ac_cv_func_daemon=no
16195 rm -f core conftest.err conftest.$ac_objext \
16196 conftest$ac_exeext conftest.$ac_ext
16198 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
16199 echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
16200 if test $ac_cv_func_daemon = yes; then
16202 cat >>confdefs.h <<\_ACEOF
16203 #define HAVE_DAEMON 1
16207 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
16208 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
16209 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 ac_check_lib_save_LIBS=$LIBS
16214 cat >conftest.$ac_ext <<_ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16221 /* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
16245 grep -v '^ *+' conftest.er1 >conftest.err
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest$ac_exeext'
16261 { (case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_try") 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_lib_bsd_daemon=yes
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_cv_lib_bsd_daemon=no
16278 rm -f core conftest.err conftest.$ac_objext \
16279 conftest$ac_exeext conftest.$ac_ext
16280 LIBS=$ac_check_lib_save_LIBS
16282 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
16283 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
16284 if test $ac_cv_lib_bsd_daemon = yes; then
16285 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
16286 #define HAVE_DAEMON 1
16295 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16296 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16297 if test "${ac_cv_func_getpagesize+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 cat >conftest.$ac_ext <<_ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16306 /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
16307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16308 #define getpagesize innocuous_getpagesize
16310 /* System header to define __stub macros and hopefully few prototypes,
16311 which can conflict with char getpagesize (); below.
16312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16313 <limits.h> exists even on freestanding compilers. */
16316 # include <limits.h>
16318 # include <assert.h>
16323 /* Override any GCC internal prototype to avoid an error.
16324 Use char because int might match the return type of a GCC
16325 builtin and then its argument prototype would still apply. */
16329 char getpagesize ();
16330 /* The GNU C library defines this for functions which it implements
16331 to always fail with ENOSYS. Some functions are actually named
16332 something starting with __ and the normal name is an alias. */
16333 #if defined __stub_getpagesize || defined __stub___getpagesize
16340 return getpagesize ();
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (ac_try="$ac_link"
16347 case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_link") 2>conftest.er1
16354 grep -v '^ *+' conftest.er1 >conftest.err
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; } &&
16369 { ac_try='test -s conftest$ac_exeext'
16370 { (case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_try") 2>&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_cv_func_getpagesize=yes
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 ac_cv_func_getpagesize=no
16387 rm -f core conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
16390 { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
16391 echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
16392 if test $ac_cv_func_getpagesize = yes; then
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_GETPAGESIZE 1
16399 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
16400 echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
16401 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 ac_check_lib_save_LIBS=$LIBS
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16413 /* Override any GCC internal prototype to avoid an error.
16414 Use char because int might match the return type of a GCC
16415 builtin and then its argument prototype would still apply. */
16419 char getpagesize ();
16423 return getpagesize ();
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16437 grep -v '^ *+' conftest.er1 >conftest.err
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } &&
16442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16443 { (case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_try") 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest$ac_exeext'
16453 { (case "(($ac_try" in
16454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455 *) ac_try_echo=$ac_try;;
16457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16458 (eval "$ac_try") 2>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
16462 ac_cv_lib_ucb_getpagesize=yes
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16467 ac_cv_lib_ucb_getpagesize=no
16470 rm -f core conftest.err conftest.$ac_objext \
16471 conftest$ac_exeext conftest.$ac_ext
16472 LIBS=$ac_check_lib_save_LIBS
16474 { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
16475 echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
16476 if test $ac_cv_lib_ucb_getpagesize = yes; then
16477 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
16478 #define HAVE_GETPAGESIZE 1
16487 # Check for broken snprintf
16488 if test "x$ac_cv_func_snprintf" = "xyes" ; then
16489 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
16490 echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
16491 if test "$cross_compiling" = yes; then
16492 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
16493 echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
16496 cat >conftest.$ac_ext <<_ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16504 int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
16507 rm -f conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_link") 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16518 { (case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_try") 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; }; then
16527 { echo "$as_me:$LINENO: result: yes" >&5
16528 echo "${ECHO_T}yes" >&6; }
16530 echo "$as_me: program exited with status $ac_status" >&5
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 ( exit $ac_status )
16536 { echo "$as_me:$LINENO: result: no" >&5
16537 echo "${ECHO_T}no" >&6; }
16539 cat >>confdefs.h <<\_ACEOF
16540 #define BROKEN_SNPRINTF 1
16543 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
16544 echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
16547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16553 # If we don't have a working asprintf, then we strongly depend on vsnprintf
16554 # returning the right thing on overflow: the number of characters it tried to
16555 # create (as per SUSv3)
16556 if test "x$ac_cv_func_asprintf" != "xyes" && \
16557 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
16558 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
16559 echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
16560 if test "$cross_compiling" = yes; then
16561 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
16562 echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
16565 cat >conftest.$ac_ext <<_ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16572 #include <sys/types.h>
16574 #include <stdarg.h>
16576 int x_snprintf(char *str,size_t count,const char *fmt,...)
16578 size_t ret; va_list ap;
16579 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
16585 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
16588 rm -f conftest$ac_exeext
16589 if { (ac_try="$ac_link"
16590 case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_link") 2>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 { echo "$as_me:$LINENO: result: yes" >&5
16609 echo "${ECHO_T}yes" >&6; }
16611 echo "$as_me: program exited with status $ac_status" >&5
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ( exit $ac_status )
16617 { echo "$as_me:$LINENO: result: no" >&5
16618 echo "${ECHO_T}no" >&6; }
16620 cat >>confdefs.h <<\_ACEOF
16621 #define BROKEN_SNPRINTF 1
16624 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
16625 echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
16628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16634 # On systems where [v]snprintf is broken, but is declared in stdio,
16635 # check that the fmt argument is const char * or just char *.
16636 # This is only useful for when BROKEN_SNPRINTF
16637 { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
16638 echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
16639 cat >conftest.$ac_ext <<_ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16646 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
16647 int main(void) { snprintf(0, 0, 0); }
16650 rm -f conftest.$ac_objext
16651 if { (ac_try="$ac_compile"
16652 case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_compile") 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_try") 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
16675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 { echo "$as_me:$LINENO: result: yes" >&5
16685 echo "${ECHO_T}yes" >&6; }
16687 cat >>confdefs.h <<\_ACEOF
16688 #define SNPRINTF_CONST const
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 { echo "$as_me:$LINENO: result: no" >&5
16696 echo "${ECHO_T}no" >&6; }
16697 cat >>confdefs.h <<\_ACEOF
16698 #define SNPRINTF_CONST /* not const */
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 # Check for missing getpeereid (or equiv) support
16707 if test "x$ac_cv_func_getpeereid" != "xyes" ; then
16708 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
16709 echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 #include <sys/types.h>
16717 #include <sys/socket.h>
16721 int i = SO_PEERCRED;
16726 rm -f conftest.$ac_objext
16727 if { (ac_try="$ac_compile"
16728 case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_compile") 2>conftest.er1
16735 grep -v '^ *+' conftest.er1 >conftest.err
16737 cat conftest.err >&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16741 { (case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_try") 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try='test -s conftest.$ac_objext'
16751 { (case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_try") 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 { echo "$as_me:$LINENO: result: yes" >&5
16761 echo "${ECHO_T}yes" >&6; }
16763 cat >>confdefs.h <<\_ACEOF
16764 #define HAVE_SO_PEERCRED 1
16769 echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16772 { echo "$as_me:$LINENO: result: no" >&5
16773 echo "${ECHO_T}no" >&6; }
16778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
16782 { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
16783 echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
16784 if test "$cross_compiling" = yes; then
16786 { echo "$as_me:$LINENO: result: yes" >&5
16787 echo "${ECHO_T}yes" >&6; }
16788 cat >>confdefs.h <<\_ACEOF
16789 #define HAVE_STRICT_MKSTEMP 1
16795 cat >conftest.$ac_ext <<_ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h. */
16802 #include <stdlib.h>
16803 main() { char template[]="conftest.mkstemp-test";
16804 if (mkstemp(template) == -1)
16806 unlink(template); exit(0);
16810 rm -f conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16831 { echo "$as_me:$LINENO: result: no" >&5
16832 echo "${ECHO_T}no" >&6; }
16835 echo "$as_me: program exited with status $ac_status" >&5
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ( exit $ac_status )
16841 { echo "$as_me:$LINENO: result: yes" >&5
16842 echo "${ECHO_T}yes" >&6; }
16844 cat >>confdefs.h <<\_ACEOF
16845 #define HAVE_STRICT_MKSTEMP 1
16850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16856 if test ! -z "$check_for_openpty_ctty_bug"; then
16857 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
16858 echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
16859 if test "$cross_compiling" = yes; then
16861 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16862 echo "${ECHO_T}cross-compiling" >&6; }
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16874 #include <sys/fcntl.h>
16875 #include <sys/types.h>
16876 #include <sys/wait.h>
16882 int fd, ptyfd, ttyfd, status;
16885 if (pid < 0) { /* failed */
16887 } else if (pid > 0) { /* parent */
16888 waitpid(pid, &status, 0);
16889 if (WIFEXITED(status))
16890 exit(WEXITSTATUS(status));
16893 } else { /* child */
16894 close(0); close(1); close(2);
16896 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
16897 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
16899 exit(3); /* Acquired ctty: broken */
16901 exit(0); /* Did not acquire ctty: OK */
16906 rm -f conftest$ac_exeext
16907 if { (ac_try="$ac_link"
16908 case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_link") 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16927 { echo "$as_me:$LINENO: result: yes" >&5
16928 echo "${ECHO_T}yes" >&6; }
16931 echo "$as_me: program exited with status $ac_status" >&5
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ( exit $ac_status )
16937 { echo "$as_me:$LINENO: result: no" >&5
16938 echo "${ECHO_T}no" >&6; }
16939 cat >>confdefs.h <<\_ACEOF
16940 #define SSHD_ACQUIRES_CTTY 1
16945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16951 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16952 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
16953 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16954 echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16955 if test "$cross_compiling" = yes; then
16957 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16958 echo "${ECHO_T}cross-compiling" >&6; }
16962 cat >conftest.$ac_ext <<_ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16970 #include <sys/socket.h>
16973 #include <netinet/in.h>
16975 #define TEST_PORT "2222"
16981 struct addrinfo *gai_ai, *ai, hints;
16982 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16984 memset(&hints, 0, sizeof(hints));
16985 hints.ai_family = PF_UNSPEC;
16986 hints.ai_socktype = SOCK_STREAM;
16987 hints.ai_flags = AI_PASSIVE;
16989 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16991 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16995 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16996 if (ai->ai_family != AF_INET6)
16999 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
17000 sizeof(ntop), strport, sizeof(strport),
17001 NI_NUMERICHOST|NI_NUMERICSERV);
17004 if (err == EAI_SYSTEM)
17005 perror("getnameinfo EAI_SYSTEM");
17007 fprintf(stderr, "getnameinfo failed: %s\n",
17008 gai_strerror(err));
17012 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
17015 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
17016 if (errno == EBADF)
17024 rm -f conftest$ac_exeext
17025 if { (ac_try="$ac_link"
17026 case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_link") 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17035 { (case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_try") 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17045 { echo "$as_me:$LINENO: result: yes" >&5
17046 echo "${ECHO_T}yes" >&6; }
17049 echo "$as_me: program exited with status $ac_status" >&5
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17053 ( exit $ac_status )
17055 { echo "$as_me:$LINENO: result: no" >&5
17056 echo "${ECHO_T}no" >&6; }
17057 cat >>confdefs.h <<\_ACEOF
17058 #define BROKEN_GETADDRINFO 1
17063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17069 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
17070 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
17071 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
17072 echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
17073 if test "$cross_compiling" = yes; then
17075 { echo "$as_me:$LINENO: result: cross-compiling" >&5
17076 echo "${ECHO_T}cross-compiling" >&6; }
17080 cat >conftest.$ac_ext <<_ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17088 #include <sys/socket.h>
17091 #include <netinet/in.h>
17093 #define TEST_PORT "2222"
17099 struct addrinfo *gai_ai, *ai, hints;
17100 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
17102 memset(&hints, 0, sizeof(hints));
17103 hints.ai_family = PF_UNSPEC;
17104 hints.ai_socktype = SOCK_STREAM;
17105 hints.ai_flags = AI_PASSIVE;
17107 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
17109 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
17113 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
17114 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
17117 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
17118 sizeof(ntop), strport, sizeof(strport),
17119 NI_NUMERICHOST|NI_NUMERICSERV);
17121 if (ai->ai_family == AF_INET && err != 0) {
17122 perror("getnameinfo");
17130 rm -f conftest$ac_exeext
17131 if { (ac_try="$ac_link"
17132 case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_link") 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17141 { (case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_try") 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
17151 { echo "$as_me:$LINENO: result: yes" >&5
17152 echo "${ECHO_T}yes" >&6; }
17154 cat >>confdefs.h <<\_ACEOF
17155 #define AIX_GETNAMEINFO_HACK 1
17160 echo "$as_me: program exited with status $ac_status" >&5
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17164 ( exit $ac_status )
17166 { echo "$as_me:$LINENO: result: no" >&5
17167 echo "${ECHO_T}no" >&6; }
17168 cat >>confdefs.h <<\_ACEOF
17169 #define BROKEN_GETADDRINFO 1
17174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17180 if test "x$check_for_conflicting_getspnam" = "x1"; then
17181 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
17182 echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
17183 cat >conftest.$ac_ext <<_ACEOF
17185 #include <shadow.h>
17186 int main(void) {exit(0);}
17189 rm -f conftest.$ac_objext
17190 if { (ac_try="$ac_compile"
17191 case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_compile") 2>conftest.er1
17198 grep -v '^ *+' conftest.er1 >conftest.err
17200 cat conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } &&
17203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17204 { (case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_try") 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; } &&
17213 { ac_try='test -s conftest.$ac_objext'
17214 { (case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_try") 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17224 { echo "$as_me:$LINENO: result: no" >&5
17225 echo "${ECHO_T}no" >&6; }
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17232 { echo "$as_me:$LINENO: result: yes" >&5
17233 echo "${ECHO_T}yes" >&6; }
17235 cat >>confdefs.h <<\_ACEOF
17236 #define GETSPNAM_CONFLICTING_DEFS 1
17243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17247 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
17248 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 # Use it with a single arg.
17252 cat >conftest.$ac_ext <<_ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 $ac_includes_default
17267 rm -f conftest.$ac_objext
17268 if { (ac_try="$ac_compile"
17269 case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_compile") 2>conftest.er1
17276 grep -v '^ *+' conftest.er1 >conftest.err
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17282 { (case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_try") 2>&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; } &&
17291 { ac_try='test -s conftest.$ac_objext'
17292 { (case "(($ac_try" in
17293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294 *) ac_try_echo=$ac_try;;
17296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17297 (eval "$ac_try") 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_func_getpgrp_void=no
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_cv_func_getpgrp_void=yes
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17312 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17313 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
17314 if test $ac_cv_func_getpgrp_void = yes; then
17316 cat >>confdefs.h <<\_ACEOF
17317 #define GETPGRP_VOID 1
17323 # Search for OpenSSL
17324 saved_CPPFLAGS="$CPPFLAGS"
17325 saved_LDFLAGS="$LDFLAGS"
17327 # Check whether --with-ssl-dir was given.
17328 if test "${with_ssl_dir+set}" = set; then
17329 withval=$with_ssl_dir;
17330 if test "x$withval" != "xno" ; then
17333 ./*|../*) withval="`pwd`/$withval"
17335 if test -d "$withval/lib"; then
17336 if test -n "${need_dash_r}"; then
17337 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
17339 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
17342 if test -n "${need_dash_r}"; then
17343 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
17345 LDFLAGS="-L${withval} ${LDFLAGS}"
17348 if test -d "$withval/include"; then
17349 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
17351 CPPFLAGS="-I${withval} ${CPPFLAGS}"
17358 LIBS="-lcrypto $LIBS"
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17366 /* Override any GCC internal prototype to avoid an error.
17367 Use char because int might match the return type of a GCC
17368 builtin and then its argument prototype would still apply. */
17376 return RAND_add ();
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (ac_try="$ac_link"
17383 case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_link") 2>conftest.er1
17390 grep -v '^ *+' conftest.er1 >conftest.err
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest$ac_exeext'
17406 { (case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_try") 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17416 cat >>confdefs.h <<\_ACEOF
17417 #define HAVE_OPENSSL 1
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17425 if test -n "${need_dash_r}"; then
17426 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
17428 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
17430 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
17431 cat >conftest.$ac_ext <<_ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17438 /* Override any GCC internal prototype to avoid an error.
17439 Use char because int might match the return type of a GCC
17440 builtin and then its argument prototype would still apply. */
17448 return RAND_add ();
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (ac_try="$ac_link"
17455 case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_link") 2>conftest.er1
17462 grep -v '^ *+' conftest.er1 >conftest.err
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17468 { (case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_try") 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest$ac_exeext'
17478 { (case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_try") 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 cat >>confdefs.h <<\_ACEOF
17488 #define HAVE_OPENSSL 1
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17496 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
17497 echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
17498 { (exit 1); exit 1; }; }
17503 rm -f core conftest.err conftest.$ac_objext \
17504 conftest$ac_exeext conftest.$ac_ext
17509 rm -f core conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17512 # Determine OpenSSL header version
17513 { echo "$as_me:$LINENO: checking OpenSSL header version" >&5
17514 echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
17515 if test "$cross_compiling" = yes; then
17517 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17518 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17522 cat >conftest.$ac_ext <<_ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17530 #include <string.h>
17531 #include <openssl/opensslv.h>
17532 #define DATA "conftest.sslincver"
17537 fd = fopen(DATA,"w");
17541 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
17548 rm -f conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_link") 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17569 ssl_header_ver=`cat conftest.sslincver`
17570 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
17571 echo "${ECHO_T}$ssl_header_ver" >&6; }
17574 echo "$as_me: program exited with status $ac_status" >&5
17575 echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17578 ( exit $ac_status )
17580 { echo "$as_me:$LINENO: result: not found" >&5
17581 echo "${ECHO_T}not found" >&6; }
17582 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
17583 echo "$as_me: error: OpenSSL version header not found." >&2;}
17584 { (exit 1); exit 1; }; }
17587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17592 # Determine OpenSSL library version
17593 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
17594 echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
17595 if test "$cross_compiling" = yes; then
17597 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17598 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17602 cat >conftest.$ac_ext <<_ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17610 #include <string.h>
17611 #include <openssl/opensslv.h>
17612 #include <openssl/crypto.h>
17613 #define DATA "conftest.ssllibver"
17618 fd = fopen(DATA,"w");
17622 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
17629 rm -f conftest$ac_exeext
17630 if { (ac_try="$ac_link"
17631 case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_link") 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17640 { (case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_try") 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17650 ssl_library_ver=`cat conftest.ssllibver`
17651 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
17652 echo "${ECHO_T}$ssl_library_ver" >&6; }
17655 echo "$as_me: program exited with status $ac_status" >&5
17656 echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.$ac_ext >&5
17659 ( exit $ac_status )
17661 { echo "$as_me:$LINENO: result: not found" >&5
17662 echo "${ECHO_T}not found" >&6; }
17663 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
17664 echo "$as_me: error: OpenSSL library not found." >&2;}
17665 { (exit 1); exit 1; }; }
17668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17673 # Sanity check OpenSSL headers
17674 { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
17675 echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
17676 if test "$cross_compiling" = yes; then
17678 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17679 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17690 #include <string.h>
17691 #include <openssl/opensslv.h>
17692 int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
17695 rm -f conftest$ac_exeext
17696 if { (ac_try="$ac_link"
17697 case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_link") 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17706 { (case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_try") 2>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17716 { echo "$as_me:$LINENO: result: yes" >&5
17717 echo "${ECHO_T}yes" >&6; }
17720 echo "$as_me: program exited with status $ac_status" >&5
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 ( exit $ac_status )
17726 { echo "$as_me:$LINENO: result: no" >&5
17727 echo "${ECHO_T}no" >&6; }
17728 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library.
17729 Check config.log for details.
17730 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
17731 echo "$as_me: error: Your OpenSSL headers do not match your library.
17732 Check config.log for details.
17733 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
17734 { (exit 1); exit 1; }; }
17737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17742 { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
17743 echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
17744 cat >conftest.$ac_ext <<_ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 #include <openssl/evp.h>
17752 int main(void) { SSLeay_add_all_algorithms(); }
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (ac_try="$ac_link"
17757 case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_link") 2>conftest.er1
17764 grep -v '^ *+' conftest.er1 >conftest.err
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try='test -s conftest$ac_exeext'
17780 { (case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17790 { echo "$as_me:$LINENO: result: yes" >&5
17791 echo "${ECHO_T}yes" >&6; }
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17798 { echo "$as_me:$LINENO: result: no" >&5
17799 echo "${ECHO_T}no" >&6; }
17802 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
17803 echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
17804 cat >conftest.$ac_ext <<_ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17811 #include <openssl/evp.h>
17812 int main(void) { SSLeay_add_all_algorithms(); }
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (ac_try="$ac_link"
17817 case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_link") 2>conftest.er1
17824 grep -v '^ *+' conftest.er1 >conftest.err
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17830 { (case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_try") 2>&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; } &&
17839 { ac_try='test -s conftest$ac_exeext'
17840 { (case "(($ac_try" in
17841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842 *) ac_try_echo=$ac_try;;
17844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845 (eval "$ac_try") 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17850 { echo "$as_me:$LINENO: result: yes" >&5
17851 echo "${ECHO_T}yes" >&6; }
17854 echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17858 { echo "$as_me:$LINENO: result: no" >&5
17859 echo "${ECHO_T}no" >&6; }
17865 rm -f core conftest.err conftest.$ac_objext \
17866 conftest$ac_exeext conftest.$ac_ext
17871 rm -f core conftest.err conftest.$ac_objext \
17872 conftest$ac_exeext conftest.$ac_ext
17875 # Check whether --with-ssl-engine was given.
17876 if test "${with_ssl_engine+set}" = set; then
17877 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
17878 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
17879 echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 #include <openssl/engine.h>
17891 int main(void){ENGINE_load_builtin_engines();ENGINE_register_all_complete();}
17897 rm -f conftest.$ac_objext
17898 if { (ac_try="$ac_compile"
17899 case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_compile") 2>conftest.er1
17906 grep -v '^ *+' conftest.er1 >conftest.err
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17912 { (case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_try") 2>&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; } &&
17921 { ac_try='test -s conftest.$ac_objext'
17922 { (case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_try") 2>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 { echo "$as_me:$LINENO: result: yes" >&5
17932 echo "${ECHO_T}yes" >&6; }
17934 cat >>confdefs.h <<\_ACEOF
17935 #define USE_OPENSSL_ENGINE 1
17940 echo "$as_me: failed program was:" >&5
17941 sed 's/^/| /' conftest.$ac_ext >&5
17943 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
17944 echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
17945 { (exit 1); exit 1; }; }
17949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17955 # Check for OpenSSL without EVP_aes_{192,256}_cbc
17956 { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
17957 echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
17958 cat >conftest.$ac_ext <<_ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h. */
17965 #include <string.h>
17966 #include <openssl/evp.h>
17967 int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
17970 rm -f conftest.$ac_objext conftest$ac_exeext
17971 if { (ac_try="$ac_link"
17972 case "(($ac_try" in
17973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974 *) ac_try_echo=$ac_try;;
17976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17977 (eval "$ac_link") 2>conftest.er1
17979 grep -v '^ *+' conftest.er1 >conftest.err
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
17984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17985 { (case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_try") 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest$ac_exeext'
17995 { (case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_try") 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18005 { echo "$as_me:$LINENO: result: no" >&5
18006 echo "${ECHO_T}no" >&6; }
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18013 { echo "$as_me:$LINENO: result: yes" >&5
18014 echo "${ECHO_T}yes" >&6; }
18016 cat >>confdefs.h <<\_ACEOF
18017 #define OPENSSL_LOBOTOMISED_AES 1
18024 rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18027 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
18028 # because the system crypt() is more featureful.
18029 if test "x$check_for_libcrypt_before" = "x1"; then
18031 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18032 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18033 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 ac_check_lib_save_LIBS=$LIBS
18037 LIBS="-lcrypt $LIBS"
18038 cat >conftest.$ac_ext <<_ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18045 /* Override any GCC internal prototype to avoid an error.
18046 Use char because int might match the return type of a GCC
18047 builtin and then its argument prototype would still apply. */
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (ac_try="$ac_link"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_link") 2>conftest.er1
18069 grep -v '^ *+' conftest.er1 >conftest.err
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075 { (case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_try") 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest$ac_exeext'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_lib_crypt_crypt=yes
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18099 ac_cv_lib_crypt_crypt=no
18102 rm -f core conftest.err conftest.$ac_objext \
18103 conftest$ac_exeext conftest.$ac_ext
18104 LIBS=$ac_check_lib_save_LIBS
18106 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18107 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18108 if test $ac_cv_lib_crypt_crypt = yes; then
18109 cat >>confdefs.h <<_ACEOF
18110 #define HAVE_LIBCRYPT 1
18113 LIBS="-lcrypt $LIBS"
18119 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
18120 # version in OpenSSL.
18121 if test "x$check_for_libcrypt_later" = "x1"; then
18122 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18123 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18124 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 ac_check_lib_save_LIBS=$LIBS
18128 LIBS="-lcrypt $LIBS"
18129 cat >conftest.$ac_ext <<_ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18136 /* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_link") 2>conftest.er1
18160 grep -v '^ *+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_cv_lib_crypt_crypt=yes
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 ac_cv_lib_crypt_crypt=no
18193 rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18195 LIBS=$ac_check_lib_save_LIBS
18197 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18198 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18199 if test $ac_cv_lib_crypt_crypt = yes; then
18200 LIBS="$LIBS -lcrypt"
18205 # Search for SHA256 support in libc and/or OpenSSL
18208 for ac_func in SHA256_Update EVP_sha256
18210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 cat >conftest.$ac_ext <<_ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18224 #define $ac_func innocuous_$ac_func
18226 /* System header to define __stub macros and hopefully few prototypes,
18227 which can conflict with char $ac_func (); below.
18228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18229 <limits.h> exists even on freestanding compilers. */
18232 # include <limits.h>
18234 # include <assert.h>
18239 /* Override any GCC internal prototype to avoid an error.
18240 Use char because int might match the return type of a GCC
18241 builtin and then its argument prototype would still apply. */
18246 /* The GNU C library defines this for functions which it implements
18247 to always fail with ENOSYS. Some functions are actually named
18248 something starting with __ and the normal name is an alias. */
18249 #if defined __stub_$ac_func || defined __stub___$ac_func
18256 return $ac_func ();
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (ac_try="$ac_link"
18263 case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_link") 2>conftest.er1
18270 grep -v '^ *+' conftest.er1 >conftest.err
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18276 { (case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_try") 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest$ac_exeext'
18286 { (case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_try") 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 eval "$as_ac_var=yes"
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 eval "$as_ac_var=no"
18303 rm -f core conftest.err conftest.$ac_objext \
18304 conftest$ac_exeext conftest.$ac_ext
18306 ac_res=`eval echo '${'$as_ac_var'}'`
18307 { echo "$as_me:$LINENO: result: $ac_res" >&5
18308 echo "${ECHO_T}$ac_res" >&6; }
18309 if test `eval echo '${'$as_ac_var'}'` = yes; then
18310 cat >>confdefs.h <<_ACEOF
18311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18319 { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
18320 echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
18321 if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 ac_check_lib_save_LIBS=$LIBS
18326 cat >conftest.$ac_ext <<_ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18333 /* Override any GCC internal prototype to avoid an error.
18334 Use char because int might match the return type of a GCC
18335 builtin and then its argument prototype would still apply. */
18339 char ia_openinfo ();
18343 return ia_openinfo ();
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (ac_try="$ac_link"
18350 case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_link") 2>conftest.er1
18357 grep -v '^ *+' conftest.er1 >conftest.err
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18363 { (case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_try") 2>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest$ac_exeext'
18373 { (case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_try") 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_cv_lib_iaf_ia_openinfo=yes
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 ac_cv_lib_iaf_ia_openinfo=no
18390 rm -f core conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18392 LIBS=$ac_check_lib_save_LIBS
18394 { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
18395 echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
18396 if test $ac_cv_lib_iaf_ia_openinfo = yes; then
18397 cat >>confdefs.h <<_ACEOF
18398 #define HAVE_LIBIAF 1
18406 ### Configure cryptographic random number support
18408 # Check wheter OpenSSL seeds itself
18409 { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
18410 echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
18411 if test "$cross_compiling" = yes; then
18413 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
18414 echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
18415 # This is safe, since all recent OpenSSL versions will
18416 # complain at runtime if not seeded correctly.
18417 OPENSSL_SEEDS_ITSELF=yes
18421 cat >conftest.$ac_ext <<_ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h. */
18428 #include <string.h>
18429 #include <openssl/rand.h>
18430 int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
18433 rm -f conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_link") 2>&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18444 { (case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_try") 2>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18454 OPENSSL_SEEDS_ITSELF=yes
18455 { echo "$as_me:$LINENO: result: yes" >&5
18456 echo "${ECHO_T}yes" >&6; }
18459 echo "$as_me: program exited with status $ac_status" >&5
18460 echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18463 ( exit $ac_status )
18465 { echo "$as_me:$LINENO: result: no" >&5
18466 echo "${ECHO_T}no" >&6; }
18467 # Default to use of the rand helper if OpenSSL doesn't
18469 USE_RAND_HELPER=yes
18472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18477 # Check for PAM libs
18480 # Check whether --with-pam was given.
18481 if test "${with_pam+set}" = set; then
18483 if test "x$withval" != "xno" ; then
18484 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
18485 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
18486 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
18487 echo "$as_me: error: PAM headers not found" >&2;}
18488 { (exit 1); exit 1; }; }
18493 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18494 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18495 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 ac_check_lib_save_LIBS=$LIBS
18500 cat >conftest.$ac_ext <<_ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h. */
18507 /* Override any GCC internal prototype to avoid an error.
18508 Use char because int might match the return type of a GCC
18509 builtin and then its argument prototype would still apply. */
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (ac_try="$ac_link"
18524 case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_link") 2>conftest.er1
18531 grep -v '^ *+' conftest.er1 >conftest.err
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest$ac_exeext'
18547 { (case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_try") 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_cv_lib_dl_dlopen=yes
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18561 ac_cv_lib_dl_dlopen=no
18564 rm -f core conftest.err conftest.$ac_objext \
18565 conftest$ac_exeext conftest.$ac_ext
18566 LIBS=$ac_check_lib_save_LIBS
18568 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18569 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18570 if test $ac_cv_lib_dl_dlopen = yes; then
18571 cat >>confdefs.h <<_ACEOF
18572 #define HAVE_LIBDL 1
18580 { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
18581 echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
18582 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18585 ac_check_lib_save_LIBS=$LIBS
18587 cat >conftest.$ac_ext <<_ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18594 /* Override any GCC internal prototype to avoid an error.
18595 Use char because int might match the return type of a GCC
18596 builtin and then its argument prototype would still apply. */
18600 char pam_set_item ();
18604 return pam_set_item ();
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_link") 2>conftest.er1
18618 grep -v '^ *+' conftest.er1 >conftest.err
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624 { (case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_try") 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest$ac_exeext'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_cv_lib_pam_pam_set_item=yes
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ac_cv_lib_pam_pam_set_item=no
18651 rm -f core conftest.err conftest.$ac_objext \
18652 conftest$ac_exeext conftest.$ac_ext
18653 LIBS=$ac_check_lib_save_LIBS
18655 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
18656 echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
18657 if test $ac_cv_lib_pam_pam_set_item = yes; then
18658 cat >>confdefs.h <<_ACEOF
18659 #define HAVE_LIBPAM 1
18665 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
18666 echo "$as_me: error: *** libpam missing" >&2;}
18667 { (exit 1); exit 1; }; }
18671 for ac_func in pam_getenvlist
18673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 cat >conftest.$ac_ext <<_ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18687 #define $ac_func innocuous_$ac_func
18689 /* System header to define __stub macros and hopefully few prototypes,
18690 which can conflict with char $ac_func (); below.
18691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18692 <limits.h> exists even on freestanding compilers. */
18695 # include <limits.h>
18697 # include <assert.h>
18702 /* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18709 /* The GNU C library defines this for functions which it implements
18710 to always fail with ENOSYS. Some functions are actually named
18711 something starting with __ and the normal name is an alias. */
18712 #if defined __stub_$ac_func || defined __stub___$ac_func
18719 return $ac_func ();
18724 rm -f conftest.$ac_objext conftest$ac_exeext
18725 if { (ac_try="$ac_link"
18726 case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_link") 2>conftest.er1
18733 grep -v '^ *+' conftest.er1 >conftest.err
18735 cat conftest.err >&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18739 { (case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_try") 2>&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; } &&
18748 { ac_try='test -s conftest$ac_exeext'
18749 { (case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_try") 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 eval "$as_ac_var=yes"
18760 echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18763 eval "$as_ac_var=no"
18766 rm -f core conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18769 ac_res=`eval echo '${'$as_ac_var'}'`
18770 { echo "$as_me:$LINENO: result: $ac_res" >&5
18771 echo "${ECHO_T}$ac_res" >&6; }
18772 if test `eval echo '${'$as_ac_var'}'` = yes; then
18773 cat >>confdefs.h <<_ACEOF
18774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18781 for ac_func in pam_putenv
18783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797 #define $ac_func innocuous_$ac_func
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char $ac_func (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18805 # include <limits.h>
18807 # include <assert.h>
18812 /* Override any GCC internal prototype to avoid an error.
18813 Use char because int might match the return type of a GCC
18814 builtin and then its argument prototype would still apply. */
18819 /* The GNU C library defines this for functions which it implements
18820 to always fail with ENOSYS. Some functions are actually named
18821 something starting with __ and the normal name is an alias. */
18822 #if defined __stub_$ac_func || defined __stub___$ac_func
18829 return $ac_func ();
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849 { (case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_try") 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_try") 2>&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 eval "$as_ac_var=yes"
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 eval "$as_ac_var=no"
18876 rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18879 ac_res=`eval echo '${'$as_ac_var'}'`
18880 { echo "$as_me:$LINENO: result: $ac_res" >&5
18881 echo "${ECHO_T}$ac_res" >&6; }
18882 if test `eval echo '${'$as_ac_var'}'` = yes; then
18883 cat >>confdefs.h <<_ACEOF
18884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18896 cat >>confdefs.h <<\_ACEOF
18901 if test $ac_cv_lib_dl_dlopen = yes; then
18904 # libdl already in LIBS
18907 LIBPAM="$LIBPAM -ldl"
18918 # Check for older PAM
18919 if test "x$PAM_MSG" = "xyes" ; then
18920 # Check PAM strerror arguments (old PAM)
18921 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
18922 echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
18923 cat >conftest.$ac_ext <<_ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18930 #include <stdlib.h>
18931 #if defined(HAVE_SECURITY_PAM_APPL_H)
18932 #include <security/pam_appl.h>
18933 #elif defined (HAVE_PAM_PAM_APPL_H)
18934 #include <pam/pam_appl.h>
18940 (void)pam_strerror((pam_handle_t *)NULL, -1);
18945 rm -f conftest.$ac_objext
18946 if { (ac_try="$ac_compile"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_compile") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18960 { (case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_try") 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; } &&
18969 { ac_try='test -s conftest.$ac_objext'
18970 { (case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_try") 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 { echo "$as_me:$LINENO: result: no" >&5
18980 echo "${ECHO_T}no" >&6; }
18982 echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18987 cat >>confdefs.h <<\_ACEOF
18988 #define HAVE_OLD_PAM 1
18991 { echo "$as_me:$LINENO: result: yes" >&5
18992 echo "${ECHO_T}yes" >&6; }
18993 PAM_MSG="yes (old library)"
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 # Do we want to force the use of the rand helper?
19003 # Check whether --with-rand-helper was given.
19004 if test "${with_rand_helper+set}" = set; then
19005 withval=$with_rand_helper;
19006 if test "x$withval" = "xno" ; then
19007 # Force use of OpenSSL's internal RNG, even if
19008 # the previous test showed it to be unseeded.
19009 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
19010 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
19011 echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
19012 OPENSSL_SEEDS_ITSELF=yes
19016 USE_RAND_HELPER=yes
19022 # Which randomness source do we use?
19023 if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
19026 cat >>confdefs.h <<\_ACEOF
19027 #define OPENSSL_PRNG_ONLY 1
19030 RAND_MSG="OpenSSL internal ONLY"
19031 INSTALL_SSH_RAND_HELPER=""
19032 elif test ! -z "$USE_RAND_HELPER" ; then
19033 # install rand helper
19034 RAND_MSG="ssh-rand-helper"
19035 INSTALL_SSH_RAND_HELPER="yes"
19039 ### Configuration of ssh-rand-helper
19043 # Check whether --with-prngd-port was given.
19044 if test "${with_prngd_port+set}" = set; then
19045 withval=$with_prngd_port;
19053 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
19054 echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
19055 { (exit 1); exit 1; }; }
19058 if test ! -z "$withval" ; then
19059 PRNGD_PORT="$withval"
19061 cat >>confdefs.h <<_ACEOF
19062 #define PRNGD_PORT $PRNGD_PORT
19071 # PRNGD Unix domain socket
19073 # Check whether --with-prngd-socket was given.
19074 if test "${with_prngd_socket+set}" = set; then
19075 withval=$with_prngd_socket;
19078 withval="/var/run/egd-pool"
19086 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
19087 echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
19088 { (exit 1); exit 1; }; }
19092 if test ! -z "$withval" ; then
19093 if test ! -z "$PRNGD_PORT" ; then
19094 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
19095 echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
19096 { (exit 1); exit 1; }; }
19098 if test ! -r "$withval" ; then
19099 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
19100 echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
19102 PRNGD_SOCKET="$withval"
19104 cat >>confdefs.h <<_ACEOF
19105 #define PRNGD_SOCKET "$PRNGD_SOCKET"
19112 # Check for existing socket only if we don't have a random device already
19113 if test "$USE_RAND_HELPER" = yes ; then
19114 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
19115 echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
19116 # Insert other locations here
19117 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
19118 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
19119 PRNGD_SOCKET="$sock"
19120 cat >>confdefs.h <<_ACEOF
19121 #define PRNGD_SOCKET "$PRNGD_SOCKET"
19127 if test ! -z "$PRNGD_SOCKET" ; then
19128 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
19129 echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
19131 { echo "$as_me:$LINENO: result: not found" >&5
19132 echo "${ECHO_T}not found" >&6; }
19140 # Change default command timeout for hashing entropy source
19141 entropy_timeout=200
19143 # Check whether --with-entropy-timeout was given.
19144 if test "${with_entropy_timeout+set}" = set; then
19145 withval=$with_entropy_timeout;
19146 if test -n "$withval" && test "x$withval" != "xno" && \
19147 test "x${withval}" != "xyes"; then
19148 entropy_timeout=$withval
19155 cat >>confdefs.h <<_ACEOF
19156 #define ENTROPY_TIMEOUT_MSEC $entropy_timeout
19160 SSH_PRIVSEP_USER=sshd
19162 # Check whether --with-privsep-user was given.
19163 if test "${with_privsep_user+set}" = set; then
19164 withval=$with_privsep_user;
19165 if test -n "$withval" && test "x$withval" != "xno" && \
19166 test "x${withval}" != "xyes"; then
19167 SSH_PRIVSEP_USER=$withval
19174 cat >>confdefs.h <<_ACEOF
19175 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
19180 # We do this little dance with the search path to insure
19181 # that programs that we select for use by installed programs
19182 # (which may be run by the super-user) come from trusted
19183 # locations before they come from the user's private area.
19184 # This should help avoid accidentally configuring some
19185 # random version of a program in someone's personal bin.
19189 test -h /bin 2> /dev/null && PATH=/usr/bin
19190 test -d /sbin && PATH=$PATH:/sbin
19191 test -d /usr/sbin && PATH=$PATH:/usr/sbin
19192 PATH=$PATH:/etc:$OPATH
19194 # These programs are used by the command hashing source to gather entropy
19196 # Extract the first word of "ls", so it can be a program name with args.
19197 set dummy ls; ac_word=$2
19198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19200 if test "${ac_cv_path_PROG_LS+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
19208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19209 for as_dir in $PATH
19212 test -z "$as_dir" && as_dir=.
19213 for ac_exec_ext in '' $ac_executable_extensions; do
19214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19215 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
19216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19226 PROG_LS=$ac_cv_path_PROG_LS
19227 if test -n "$PROG_LS"; then
19228 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
19229 echo "${ECHO_T}$PROG_LS" >&6; }
19231 { echo "$as_me:$LINENO: result: no" >&5
19232 echo "${ECHO_T}no" >&6; }
19236 if test -z "$PROG_LS" ; then
19242 # Extract the first word of "netstat", so it can be a program name with args.
19243 set dummy netstat; ac_word=$2
19244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19246 if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19249 case $PROG_NETSTAT in
19251 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
19254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19255 for as_dir in $PATH
19258 test -z "$as_dir" && as_dir=.
19259 for ac_exec_ext in '' $ac_executable_extensions; do
19260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19261 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
19262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19272 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
19273 if test -n "$PROG_NETSTAT"; then
19274 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
19275 echo "${ECHO_T}$PROG_NETSTAT" >&6; }
19277 { echo "$as_me:$LINENO: result: no" >&5
19278 echo "${ECHO_T}no" >&6; }
19282 if test -z "$PROG_NETSTAT" ; then
19283 PROG_NETSTAT="undef"
19288 # Extract the first word of "arp", so it can be a program name with args.
19289 set dummy arp; ac_word=$2
19290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19292 if test "${ac_cv_path_PROG_ARP+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
19300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19301 for as_dir in $PATH
19304 test -z "$as_dir" && as_dir=.
19305 for ac_exec_ext in '' $ac_executable_extensions; do
19306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19307 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
19308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19318 PROG_ARP=$ac_cv_path_PROG_ARP
19319 if test -n "$PROG_ARP"; then
19320 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
19321 echo "${ECHO_T}$PROG_ARP" >&6; }
19323 { echo "$as_me:$LINENO: result: no" >&5
19324 echo "${ECHO_T}no" >&6; }
19328 if test -z "$PROG_ARP" ; then
19334 # Extract the first word of "ifconfig", so it can be a program name with args.
19335 set dummy ifconfig; ac_word=$2
19336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19338 if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 case $PROG_IFCONFIG in
19343 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
19346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19347 for as_dir in $PATH
19350 test -z "$as_dir" && as_dir=.
19351 for ac_exec_ext in '' $ac_executable_extensions; do
19352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19353 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
19354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19364 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
19365 if test -n "$PROG_IFCONFIG"; then
19366 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
19367 echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
19369 { echo "$as_me:$LINENO: result: no" >&5
19370 echo "${ECHO_T}no" >&6; }
19374 if test -z "$PROG_IFCONFIG" ; then
19375 PROG_IFCONFIG="undef"
19380 # Extract the first word of "jstat", so it can be a program name with args.
19381 set dummy jstat; ac_word=$2
19382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19384 if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 case $PROG_JSTAT in
19389 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
19392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19393 for as_dir in $PATH
19396 test -z "$as_dir" && as_dir=.
19397 for ac_exec_ext in '' $ac_executable_extensions; do
19398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19399 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
19400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19410 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
19411 if test -n "$PROG_JSTAT"; then
19412 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
19413 echo "${ECHO_T}$PROG_JSTAT" >&6; }
19415 { echo "$as_me:$LINENO: result: no" >&5
19416 echo "${ECHO_T}no" >&6; }
19420 if test -z "$PROG_JSTAT" ; then
19426 # Extract the first word of "ps", so it can be a program name with args.
19427 set dummy ps; ac_word=$2
19428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19430 if test "${ac_cv_path_PROG_PS+set}" = set; then
19431 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
19438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19439 for as_dir in $PATH
19442 test -z "$as_dir" && as_dir=.
19443 for ac_exec_ext in '' $ac_executable_extensions; do
19444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19445 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
19446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19456 PROG_PS=$ac_cv_path_PROG_PS
19457 if test -n "$PROG_PS"; then
19458 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
19459 echo "${ECHO_T}$PROG_PS" >&6; }
19461 { echo "$as_me:$LINENO: result: no" >&5
19462 echo "${ECHO_T}no" >&6; }
19466 if test -z "$PROG_PS" ; then
19472 # Extract the first word of "sar", so it can be a program name with args.
19473 set dummy sar; ac_word=$2
19474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19476 if test "${ac_cv_path_PROG_SAR+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
19484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19485 for as_dir in $PATH
19488 test -z "$as_dir" && as_dir=.
19489 for ac_exec_ext in '' $ac_executable_extensions; do
19490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19491 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
19492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19502 PROG_SAR=$ac_cv_path_PROG_SAR
19503 if test -n "$PROG_SAR"; then
19504 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
19505 echo "${ECHO_T}$PROG_SAR" >&6; }
19507 { echo "$as_me:$LINENO: result: no" >&5
19508 echo "${ECHO_T}no" >&6; }
19512 if test -z "$PROG_SAR" ; then
19518 # Extract the first word of "w", so it can be a program name with args.
19519 set dummy w; ac_word=$2
19520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19522 if test "${ac_cv_path_PROG_W+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
19530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19531 for as_dir in $PATH
19534 test -z "$as_dir" && as_dir=.
19535 for ac_exec_ext in '' $ac_executable_extensions; do
19536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19537 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
19538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19548 PROG_W=$ac_cv_path_PROG_W
19549 if test -n "$PROG_W"; then
19550 { echo "$as_me:$LINENO: result: $PROG_W" >&5
19551 echo "${ECHO_T}$PROG_W" >&6; }
19553 { echo "$as_me:$LINENO: result: no" >&5
19554 echo "${ECHO_T}no" >&6; }
19558 if test -z "$PROG_W" ; then
19564 # Extract the first word of "who", so it can be a program name with args.
19565 set dummy who; ac_word=$2
19566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19568 if test "${ac_cv_path_PROG_WHO+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
19576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19577 for as_dir in $PATH
19580 test -z "$as_dir" && as_dir=.
19581 for ac_exec_ext in '' $ac_executable_extensions; do
19582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19583 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
19584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19594 PROG_WHO=$ac_cv_path_PROG_WHO
19595 if test -n "$PROG_WHO"; then
19596 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
19597 echo "${ECHO_T}$PROG_WHO" >&6; }
19599 { echo "$as_me:$LINENO: result: no" >&5
19600 echo "${ECHO_T}no" >&6; }
19604 if test -z "$PROG_WHO" ; then
19610 # Extract the first word of "last", so it can be a program name with args.
19611 set dummy last; ac_word=$2
19612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19614 if test "${ac_cv_path_PROG_LAST+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
19622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19623 for as_dir in $PATH
19626 test -z "$as_dir" && as_dir=.
19627 for ac_exec_ext in '' $ac_executable_extensions; do
19628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19629 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
19630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19640 PROG_LAST=$ac_cv_path_PROG_LAST
19641 if test -n "$PROG_LAST"; then
19642 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
19643 echo "${ECHO_T}$PROG_LAST" >&6; }
19645 { echo "$as_me:$LINENO: result: no" >&5
19646 echo "${ECHO_T}no" >&6; }
19650 if test -z "$PROG_LAST" ; then
19656 # Extract the first word of "lastlog", so it can be a program name with args.
19657 set dummy lastlog; ac_word=$2
19658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19660 if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 case $PROG_LASTLOG in
19665 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
19668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669 for as_dir in $PATH
19672 test -z "$as_dir" && as_dir=.
19673 for ac_exec_ext in '' $ac_executable_extensions; do
19674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19675 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
19676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19686 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
19687 if test -n "$PROG_LASTLOG"; then
19688 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
19689 echo "${ECHO_T}$PROG_LASTLOG" >&6; }
19691 { echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6; }
19696 if test -z "$PROG_LASTLOG" ; then
19697 PROG_LASTLOG="undef"
19702 # Extract the first word of "df", so it can be a program name with args.
19703 set dummy df; ac_word=$2
19704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19706 if test "${ac_cv_path_PROG_DF+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
19714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19715 for as_dir in $PATH
19718 test -z "$as_dir" && as_dir=.
19719 for ac_exec_ext in '' $ac_executable_extensions; do
19720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19721 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
19722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19732 PROG_DF=$ac_cv_path_PROG_DF
19733 if test -n "$PROG_DF"; then
19734 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
19735 echo "${ECHO_T}$PROG_DF" >&6; }
19737 { echo "$as_me:$LINENO: result: no" >&5
19738 echo "${ECHO_T}no" >&6; }
19742 if test -z "$PROG_DF" ; then
19748 # Extract the first word of "vmstat", so it can be a program name with args.
19749 set dummy vmstat; ac_word=$2
19750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19752 if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19755 case $PROG_VMSTAT in
19757 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
19760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in $PATH
19764 test -z "$as_dir" && as_dir=.
19765 for ac_exec_ext in '' $ac_executable_extensions; do
19766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19767 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
19768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19778 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
19779 if test -n "$PROG_VMSTAT"; then
19780 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
19781 echo "${ECHO_T}$PROG_VMSTAT" >&6; }
19783 { echo "$as_me:$LINENO: result: no" >&5
19784 echo "${ECHO_T}no" >&6; }
19788 if test -z "$PROG_VMSTAT" ; then
19789 PROG_VMSTAT="undef"
19794 # Extract the first word of "uptime", so it can be a program name with args.
19795 set dummy uptime; ac_word=$2
19796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19798 if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 case $PROG_UPTIME in
19803 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
19806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19807 for as_dir in $PATH
19810 test -z "$as_dir" && as_dir=.
19811 for ac_exec_ext in '' $ac_executable_extensions; do
19812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19813 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
19814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19824 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
19825 if test -n "$PROG_UPTIME"; then
19826 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
19827 echo "${ECHO_T}$PROG_UPTIME" >&6; }
19829 { echo "$as_me:$LINENO: result: no" >&5
19830 echo "${ECHO_T}no" >&6; }
19834 if test -z "$PROG_UPTIME" ; then
19835 PROG_UPTIME="undef"
19840 # Extract the first word of "ipcs", so it can be a program name with args.
19841 set dummy ipcs; ac_word=$2
19842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19844 if test "${ac_cv_path_PROG_IPCS+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
19852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19853 for as_dir in $PATH
19856 test -z "$as_dir" && as_dir=.
19857 for ac_exec_ext in '' $ac_executable_extensions; do
19858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19859 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
19860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19870 PROG_IPCS=$ac_cv_path_PROG_IPCS
19871 if test -n "$PROG_IPCS"; then
19872 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
19873 echo "${ECHO_T}$PROG_IPCS" >&6; }
19875 { echo "$as_me:$LINENO: result: no" >&5
19876 echo "${ECHO_T}no" >&6; }
19880 if test -z "$PROG_IPCS" ; then
19886 # Extract the first word of "tail", so it can be a program name with args.
19887 set dummy tail; ac_word=$2
19888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19890 if test "${ac_cv_path_PROG_TAIL+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19895 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
19898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19899 for as_dir in $PATH
19902 test -z "$as_dir" && as_dir=.
19903 for ac_exec_ext in '' $ac_executable_extensions; do
19904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19905 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
19906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19916 PROG_TAIL=$ac_cv_path_PROG_TAIL
19917 if test -n "$PROG_TAIL"; then
19918 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
19919 echo "${ECHO_T}$PROG_TAIL" >&6; }
19921 { echo "$as_me:$LINENO: result: no" >&5
19922 echo "${ECHO_T}no" >&6; }
19926 if test -z "$PROG_TAIL" ; then
19934 # Where does ssh-rand-helper get its randomness from?
19935 INSTALL_SSH_PRNG_CMDS=""
19936 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
19937 if test ! -z "$PRNGD_PORT" ; then
19938 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
19939 elif test ! -z "$PRNGD_SOCKET" ; then
19940 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
19942 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
19943 RAND_HELPER_CMDHASH=yes
19944 INSTALL_SSH_PRNG_CMDS="yes"
19950 # Cheap hack to ensure NEWS-OS libraries are arranged right.
19951 if test ! -z "$SONY" ; then
19952 LIBS="$LIBS -liberty";
19955 # Check for long long datatypes
19956 { echo "$as_me:$LINENO: checking for long long" >&5
19957 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19958 if test "${ac_cv_type_long_long+set}" = set; then
19959 echo $ECHO_N "(cached) $ECHO_C" >&6
19961 cat >conftest.$ac_ext <<_ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 $ac_includes_default
19968 typedef long long ac__type_new_;
19972 if ((ac__type_new_ *) 0)
19974 if (sizeof (ac__type_new_))
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_compile") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19995 { (case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_try") 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; } &&
20004 { ac_try='test -s conftest.$ac_objext'
20005 { (case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_try") 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; }; then
20014 ac_cv_type_long_long=yes
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ac_cv_type_long_long=no
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20025 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20026 if test $ac_cv_type_long_long = yes; then
20028 cat >>confdefs.h <<_ACEOF
20029 #define HAVE_LONG_LONG 1
20034 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20035 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20036 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 $ac_includes_default
20046 typedef unsigned long long ac__type_new_;
20050 if ((ac__type_new_ *) 0)
20052 if (sizeof (ac__type_new_))
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
20060 case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20073 { (case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_try") 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_try") 2>&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; }; then
20092 ac_cv_type_unsigned_long_long=yes
20094 echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20097 ac_cv_type_unsigned_long_long=no
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20103 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20104 if test $ac_cv_type_unsigned_long_long = yes; then
20106 cat >>confdefs.h <<_ACEOF
20107 #define HAVE_UNSIGNED_LONG_LONG 1
20112 { echo "$as_me:$LINENO: checking for long double" >&5
20113 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
20114 if test "${ac_cv_type_long_double+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 cat >conftest.$ac_ext <<_ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 $ac_includes_default
20124 typedef long double ac__type_new_;
20128 if ((ac__type_new_ *) 0)
20130 if (sizeof (ac__type_new_))
20136 rm -f conftest.$ac_objext
20137 if { (ac_try="$ac_compile"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_compile") 2>conftest.er1
20145 grep -v '^ *+' conftest.er1 >conftest.err
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } &&
20150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20151 { (case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_try") 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; } &&
20160 { ac_try='test -s conftest.$ac_objext'
20161 { (case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_try") 2>&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_cv_type_long_double=yes
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20175 ac_cv_type_long_double=no
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
20181 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
20182 if test $ac_cv_type_long_double = yes; then
20184 cat >>confdefs.h <<_ACEOF
20185 #define HAVE_LONG_DOUBLE 1
20192 # Check datatype sizes
20193 { echo "$as_me:$LINENO: checking for char" >&5
20194 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
20195 if test "${ac_cv_type_char+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 $ac_includes_default
20205 typedef char ac__type_new_;
20209 if ((ac__type_new_ *) 0)
20211 if (sizeof (ac__type_new_))
20217 rm -f conftest.$ac_objext
20218 if { (ac_try="$ac_compile"
20219 case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_compile") 2>conftest.er1
20226 grep -v '^ *+' conftest.er1 >conftest.err
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20232 { (case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_try") 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_try") 2>&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 ac_cv_type_char=yes
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20261 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20262 echo "${ECHO_T}$ac_cv_type_char" >&6; }
20264 { echo "$as_me:$LINENO: checking size of char" >&5
20265 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
20266 if test "${ac_cv_sizeof_char+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 if test "$ac_cv_type_char" = yes; then
20270 # The cast to long int works around a bug in the HP C Compiler
20271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20273 # This bug is HP SR number 8606223364.
20274 if test "$cross_compiling" = yes; then
20275 # Depending upon the size, compute the lo and hi bounds.
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 $ac_includes_default
20283 typedef char ac__type_sizeof_;
20287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20294 rm -f conftest.$ac_objext
20295 if { (ac_try="$ac_compile"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_compile") 2>conftest.er1
20303 grep -v '^ *+' conftest.er1 >conftest.err
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
20308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20309 { (case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_try") 2>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; } &&
20318 { ac_try='test -s conftest.$ac_objext'
20319 { (case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_try") 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20336 $ac_includes_default
20337 typedef char ac__type_sizeof_;
20341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20348 rm -f conftest.$ac_objext
20349 if { (ac_try="$ac_compile"
20350 case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_compile") 2>conftest.er1
20357 grep -v '^ *+' conftest.er1 >conftest.err
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } &&
20362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20363 { (case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_try") 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; } &&
20372 { ac_try='test -s conftest.$ac_objext'
20373 { (case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_try") 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_hi=$ac_mid; break
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 ac_lo=`expr $ac_mid + 1`
20388 if test $ac_lo -le $ac_mid; then
20392 ac_mid=`expr 2 '*' $ac_mid + 1`
20395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20398 echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20401 cat >conftest.$ac_ext <<_ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20407 $ac_includes_default
20408 typedef char ac__type_sizeof_;
20412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20419 rm -f conftest.$ac_objext
20420 if { (ac_try="$ac_compile"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_compile") 2>conftest.er1
20428 grep -v '^ *+' conftest.er1 >conftest.err
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } &&
20433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20434 { (case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_try") 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; } &&
20443 { ac_try='test -s conftest.$ac_objext'
20444 { (case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_try") 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 $ac_includes_default
20462 typedef char ac__type_sizeof_;
20466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20473 rm -f conftest.$ac_objext
20474 if { (ac_try="$ac_compile"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_compile") 2>conftest.er1
20482 grep -v '^ *+' conftest.er1 >conftest.err
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20488 { (case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_try") 2>&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } &&
20497 { ac_try='test -s conftest.$ac_objext'
20498 { (case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503 (eval "$ac_try") 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_lo=$ac_mid; break
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_hi=`expr '(' $ac_mid ')' - 1`
20513 if test $ac_mid -le $ac_hi; then
20517 ac_mid=`expr 2 '*' $ac_mid`
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 # Binary search between lo and hi bounds.
20534 while test "x$ac_lo" != "x$ac_hi"; do
20535 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 $ac_includes_default
20543 typedef char ac__type_sizeof_;
20547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20554 rm -f conftest.$ac_objext
20555 if { (ac_try="$ac_compile"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_compile") 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } &&
20568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20569 { (case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_try") 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest.$ac_objext'
20579 { (case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_try") 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_lo=`expr '(' $ac_mid ')' + 1`
20596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20599 ?*) ac_cv_sizeof_char=$ac_lo;;
20600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20601 See \`config.log' for more details." >&5
20602 echo "$as_me: error: cannot compute sizeof (char)
20603 See \`config.log' for more details." >&2;}
20604 { (exit 77); exit 77; }; } ;;
20607 cat >conftest.$ac_ext <<_ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613 $ac_includes_default
20614 typedef char ac__type_sizeof_;
20615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20618 #include <stdlib.h>
20623 FILE *f = fopen ("conftest.val", "w");
20626 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20628 long int i = longval ();
20629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20631 fprintf (f, "%ld\n", i);
20635 unsigned long int i = ulongval ();
20636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20638 fprintf (f, "%lu\n", i);
20640 return ferror (f) || fclose (f) != 0;
20646 rm -f conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_link") 2>&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20657 { (case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662 (eval "$ac_try") 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_sizeof_char=`cat conftest.val`
20668 echo "$as_me: program exited with status $ac_status" >&5
20669 echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20672 ( exit $ac_status )
20673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20674 See \`config.log' for more details." >&5
20675 echo "$as_me: error: cannot compute sizeof (char)
20676 See \`config.log' for more details." >&2;}
20677 { (exit 77); exit 77; }; }
20679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20683 ac_cv_sizeof_char=0
20686 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20687 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
20688 cat >>confdefs.h <<_ACEOF
20689 #define SIZEOF_CHAR $ac_cv_sizeof_char
20693 { echo "$as_me:$LINENO: checking for short int" >&5
20694 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
20695 if test "${ac_cv_type_short_int+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 $ac_includes_default
20705 typedef short int ac__type_new_;
20709 if ((ac__type_new_ *) 0)
20711 if (sizeof (ac__type_new_))
20717 rm -f conftest.$ac_objext
20718 if { (ac_try="$ac_compile"
20719 case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724 (eval "$ac_compile") 2>conftest.er1
20726 grep -v '^ *+' conftest.er1 >conftest.err
20728 cat conftest.err >&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); } &&
20731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20732 { (case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_try") 2>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest.$ac_objext'
20742 { (case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_try") 2>&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 ac_cv_type_short_int=yes
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20756 ac_cv_type_short_int=no
20759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20761 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
20762 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
20764 { echo "$as_me:$LINENO: checking size of short int" >&5
20765 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
20766 if test "${ac_cv_sizeof_short_int+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 if test "$ac_cv_type_short_int" = yes; then
20770 # The cast to long int works around a bug in the HP C Compiler
20771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20773 # This bug is HP SR number 8606223364.
20774 if test "$cross_compiling" = yes; then
20775 # Depending upon the size, compute the lo and hi bounds.
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782 $ac_includes_default
20783 typedef short int ac__type_sizeof_;
20787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20794 rm -f conftest.$ac_objext
20795 if { (ac_try="$ac_compile"
20796 case "(($ac_try" in
20797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798 *) ac_try_echo=$ac_try;;
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801 (eval "$ac_compile") 2>conftest.er1
20803 grep -v '^ *+' conftest.er1 >conftest.err
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20809 { (case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_try") 2>&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
20819 { (case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_try") 2>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 $ac_includes_default
20837 typedef short int ac__type_sizeof_;
20841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20848 rm -f conftest.$ac_objext
20849 if { (ac_try="$ac_compile"
20850 case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_compile") 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20863 { (case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_try") 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest.$ac_objext'
20873 { (case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_try") 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 ac_hi=$ac_mid; break
20884 echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20887 ac_lo=`expr $ac_mid + 1`
20888 if test $ac_lo -le $ac_mid; then
20892 ac_mid=`expr 2 '*' $ac_mid + 1`
20895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20901 cat >conftest.$ac_ext <<_ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20907 $ac_includes_default
20908 typedef short int ac__type_sizeof_;
20912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20919 rm -f conftest.$ac_objext
20920 if { (ac_try="$ac_compile"
20921 case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_compile") 2>conftest.er1
20928 grep -v '^ *+' conftest.er1 >conftest.err
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try='test -s conftest.$ac_objext'
20944 { (case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_try") 2>&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 $ac_includes_default
20962 typedef short int ac__type_sizeof_;
20966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20973 rm -f conftest.$ac_objext
20974 if { (ac_try="$ac_compile"
20975 case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_compile") 2>conftest.er1
20982 grep -v '^ *+' conftest.er1 >conftest.err
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; } &&
20997 { ac_try='test -s conftest.$ac_objext'
20998 { (case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_try") 2>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
21007 ac_lo=$ac_mid; break
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ac_hi=`expr '(' $ac_mid ')' - 1`
21013 if test $ac_mid -le $ac_hi; then
21017 ac_mid=`expr 2 '*' $ac_mid`
21020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 # Binary search between lo and hi bounds.
21034 while test "x$ac_lo" != "x$ac_hi"; do
21035 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 $ac_includes_default
21043 typedef short int ac__type_sizeof_;
21047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21054 rm -f conftest.$ac_objext
21055 if { (ac_try="$ac_compile"
21056 case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_compile") 2>conftest.er1
21063 grep -v '^ *+' conftest.er1 >conftest.err
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21069 { (case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_try") 2>&5
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; } &&
21078 { ac_try='test -s conftest.$ac_objext'
21079 { (case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_try") 2>&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; }; then
21090 echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21093 ac_lo=`expr '(' $ac_mid ')' + 1`
21096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21099 ?*) ac_cv_sizeof_short_int=$ac_lo;;
21100 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
21101 See \`config.log' for more details." >&5
21102 echo "$as_me: error: cannot compute sizeof (short int)
21103 See \`config.log' for more details." >&2;}
21104 { (exit 77); exit 77; }; } ;;
21107 cat >conftest.$ac_ext <<_ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 $ac_includes_default
21114 typedef short int ac__type_sizeof_;
21115 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21116 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21118 #include <stdlib.h>
21123 FILE *f = fopen ("conftest.val", "w");
21126 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21128 long int i = longval ();
21129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21131 fprintf (f, "%ld\n", i);
21135 unsigned long int i = ulongval ();
21136 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21138 fprintf (f, "%lu\n", i);
21140 return ferror (f) || fclose (f) != 0;
21146 rm -f conftest$ac_exeext
21147 if { (ac_try="$ac_link"
21148 case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_link") 2>&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21157 { (case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_try") 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ac_cv_sizeof_short_int=`cat conftest.val`
21168 echo "$as_me: program exited with status $ac_status" >&5
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ( exit $ac_status )
21173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
21174 See \`config.log' for more details." >&5
21175 echo "$as_me: error: cannot compute sizeof (short int)
21176 See \`config.log' for more details." >&2;}
21177 { (exit 77); exit 77; }; }
21179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21183 ac_cv_sizeof_short_int=0
21186 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
21187 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
21188 cat >>confdefs.h <<_ACEOF
21189 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
21193 { echo "$as_me:$LINENO: checking for int" >&5
21194 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21195 if test "${ac_cv_type_int+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21198 cat >conftest.$ac_ext <<_ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 $ac_includes_default
21205 typedef int ac__type_new_;
21209 if ((ac__type_new_ *) 0)
21211 if (sizeof (ac__type_new_))
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_compile") 2>conftest.er1
21226 grep -v '^ *+' conftest.er1 >conftest.err
21228 cat conftest.err >&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } &&
21231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21232 { (case "(($ac_try" in
21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_try") 2>&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; } &&
21241 { ac_try='test -s conftest.$ac_objext'
21242 { (case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_try") 2>&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21253 echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21262 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21264 { echo "$as_me:$LINENO: checking size of int" >&5
21265 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21266 if test "${ac_cv_sizeof_int+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21269 if test "$ac_cv_type_int" = yes; then
21270 # The cast to long int works around a bug in the HP C Compiler
21271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21273 # This bug is HP SR number 8606223364.
21274 if test "$cross_compiling" = yes; then
21275 # Depending upon the size, compute the lo and hi bounds.
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 $ac_includes_default
21283 typedef int ac__type_sizeof_;
21287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21294 rm -f conftest.$ac_objext
21295 if { (ac_try="$ac_compile"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_compile") 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
21308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21309 { (case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314 (eval "$ac_try") 2>&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest.$ac_objext'
21319 { (case "(($ac_try" in
21320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_try") 2>&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; }; then
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21336 $ac_includes_default
21337 typedef int ac__type_sizeof_;
21341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21348 rm -f conftest.$ac_objext
21349 if { (ac_try="$ac_compile"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_compile") 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } &&
21362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21363 { (case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_try") 2>&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; } &&
21372 { ac_try='test -s conftest.$ac_objext'
21373 { (case "(($ac_try" in
21374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375 *) ac_try_echo=$ac_try;;
21377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21378 (eval "$ac_try") 2>&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }; then
21382 ac_hi=$ac_mid; break
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 ac_lo=`expr $ac_mid + 1`
21388 if test $ac_lo -le $ac_mid; then
21392 ac_mid=`expr 2 '*' $ac_mid + 1`
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 $ac_includes_default
21408 typedef int ac__type_sizeof_;
21412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_compile") 2>conftest.er1
21428 grep -v '^ *+' conftest.er1 >conftest.err
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21434 { (case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_try") 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
21444 { (case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_try") 2>&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 $ac_includes_default
21462 typedef int ac__type_sizeof_;
21466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21473 rm -f conftest.$ac_objext
21474 if { (ac_try="$ac_compile"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_compile") 2>conftest.er1
21482 grep -v '^ *+' conftest.er1 >conftest.err
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } &&
21487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21488 { (case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_try") 2>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; } &&
21497 { ac_try='test -s conftest.$ac_objext'
21498 { (case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_try") 2>&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; }; then
21507 ac_lo=$ac_mid; break
21509 echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21512 ac_hi=`expr '(' $ac_mid ')' - 1`
21513 if test $ac_mid -le $ac_hi; then
21517 ac_mid=`expr 2 '*' $ac_mid`
21520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533 # Binary search between lo and hi bounds.
21534 while test "x$ac_lo" != "x$ac_hi"; do
21535 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 $ac_includes_default
21543 typedef int ac__type_sizeof_;
21547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21554 rm -f conftest.$ac_objext
21555 if { (ac_try="$ac_compile"
21556 case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561 (eval "$ac_compile") 2>conftest.er1
21563 grep -v '^ *+' conftest.er1 >conftest.err
21565 cat conftest.err >&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } &&
21568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21569 { (case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_try") 2>&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; } &&
21578 { ac_try='test -s conftest.$ac_objext'
21579 { (case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_try") 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 ac_lo=`expr '(' $ac_mid ')' + 1`
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21599 ?*) ac_cv_sizeof_int=$ac_lo;;
21600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21601 See \`config.log' for more details." >&5
21602 echo "$as_me: error: cannot compute sizeof (int)
21603 See \`config.log' for more details." >&2;}
21604 { (exit 77); exit 77; }; } ;;
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 $ac_includes_default
21614 typedef int ac__type_sizeof_;
21615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21618 #include <stdlib.h>
21623 FILE *f = fopen ("conftest.val", "w");
21626 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21628 long int i = longval ();
21629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21631 fprintf (f, "%ld\n", i);
21635 unsigned long int i = ulongval ();
21636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21638 fprintf (f, "%lu\n", i);
21640 return ferror (f) || fclose (f) != 0;
21646 rm -f conftest$ac_exeext
21647 if { (ac_try="$ac_link"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_link") 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21657 { (case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_try") 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 ac_cv_sizeof_int=`cat conftest.val`
21668 echo "$as_me: program exited with status $ac_status" >&5
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21672 ( exit $ac_status )
21673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21674 See \`config.log' for more details." >&5
21675 echo "$as_me: error: cannot compute sizeof (int)
21676 See \`config.log' for more details." >&2;}
21677 { (exit 77); exit 77; }; }
21679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21686 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21687 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21688 cat >>confdefs.h <<_ACEOF
21689 #define SIZEOF_INT $ac_cv_sizeof_int
21693 { echo "$as_me:$LINENO: checking for long int" >&5
21694 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
21695 if test "${ac_cv_type_long_int+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21698 cat >conftest.$ac_ext <<_ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 $ac_includes_default
21705 typedef long int ac__type_new_;
21709 if ((ac__type_new_ *) 0)
21711 if (sizeof (ac__type_new_))
21717 rm -f conftest.$ac_objext
21718 if { (ac_try="$ac_compile"
21719 case "(($ac_try" in
21720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724 (eval "$ac_compile") 2>conftest.er1
21726 grep -v '^ *+' conftest.er1 >conftest.err
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
21731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21732 { (case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737 (eval "$ac_try") 2>&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; } &&
21741 { ac_try='test -s conftest.$ac_objext'
21742 { (case "(($ac_try" in
21743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744 *) ac_try_echo=$ac_try;;
21746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747 (eval "$ac_try") 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_cv_type_long_int=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_cv_type_long_int=no
21759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21761 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
21762 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
21764 { echo "$as_me:$LINENO: checking size of long int" >&5
21765 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
21766 if test "${ac_cv_sizeof_long_int+set}" = set; then
21767 echo $ECHO_N "(cached) $ECHO_C" >&6
21769 if test "$ac_cv_type_long_int" = yes; then
21770 # The cast to long int works around a bug in the HP C Compiler
21771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21773 # This bug is HP SR number 8606223364.
21774 if test "$cross_compiling" = yes; then
21775 # Depending upon the size, compute the lo and hi bounds.
21776 cat >conftest.$ac_ext <<_ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 $ac_includes_default
21783 typedef long int ac__type_sizeof_;
21787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21794 rm -f conftest.$ac_objext
21795 if { (ac_try="$ac_compile"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21803 grep -v '^ *+' conftest.er1 >conftest.err
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } &&
21808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21809 { (case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_try") 2>&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; } &&
21818 { ac_try='test -s conftest.$ac_objext'
21819 { (case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824 (eval "$ac_try") 2>&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21830 cat >conftest.$ac_ext <<_ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21836 $ac_includes_default
21837 typedef long int ac__type_sizeof_;
21841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21848 rm -f conftest.$ac_objext
21849 if { (ac_try="$ac_compile"
21850 case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_compile") 2>conftest.er1
21857 grep -v '^ *+' conftest.er1 >conftest.err
21859 cat conftest.err >&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); } &&
21862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21863 { (case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_try") 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; } &&
21872 { ac_try='test -s conftest.$ac_objext'
21873 { (case "(($ac_try" in
21874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875 *) ac_try_echo=$ac_try;;
21877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21878 (eval "$ac_try") 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; }; then
21882 ac_hi=$ac_mid; break
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21887 ac_lo=`expr $ac_mid + 1`
21888 if test $ac_lo -le $ac_mid; then
21892 ac_mid=`expr 2 '*' $ac_mid + 1`
21895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21901 cat >conftest.$ac_ext <<_ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21907 $ac_includes_default
21908 typedef long int ac__type_sizeof_;
21912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21919 rm -f conftest.$ac_objext
21920 if { (ac_try="$ac_compile"
21921 case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_compile") 2>conftest.er1
21928 grep -v '^ *+' conftest.er1 >conftest.err
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } &&
21933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21934 { (case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_try") 2>&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; } &&
21943 { ac_try='test -s conftest.$ac_objext'
21944 { (case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_try") 2>&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21955 cat >conftest.$ac_ext <<_ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21961 $ac_includes_default
21962 typedef long int ac__type_sizeof_;
21966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21973 rm -f conftest.$ac_objext
21974 if { (ac_try="$ac_compile"
21975 case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_compile") 2>conftest.er1
21982 grep -v '^ *+' conftest.er1 >conftest.err
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } &&
21987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21988 { (case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_try") 2>&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; } &&
21997 { ac_try='test -s conftest.$ac_objext'
21998 { (case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_try") 2>&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; }; then
22007 ac_lo=$ac_mid; break
22009 echo "$as_me: failed program was:" >&5
22010 sed 's/^/| /' conftest.$ac_ext >&5
22012 ac_hi=`expr '(' $ac_mid ')' - 1`
22013 if test $ac_mid -le $ac_hi; then
22017 ac_mid=`expr 2 '*' $ac_mid`
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 # Binary search between lo and hi bounds.
22034 while test "x$ac_lo" != "x$ac_hi"; do
22035 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22036 cat >conftest.$ac_ext <<_ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22042 $ac_includes_default
22043 typedef long int ac__type_sizeof_;
22047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22063 grep -v '^ *+' conftest.er1 >conftest.err
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
22068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22069 { (case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22074 (eval "$ac_try") 2>&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); }; } &&
22078 { ac_try='test -s conftest.$ac_objext'
22079 { (case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_try") 2>&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; }; then
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_lo=`expr '(' $ac_mid ')' + 1`
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099 ?*) ac_cv_sizeof_long_int=$ac_lo;;
22100 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
22101 See \`config.log' for more details." >&5
22102 echo "$as_me: error: cannot compute sizeof (long int)
22103 See \`config.log' for more details." >&2;}
22104 { (exit 77); exit 77; }; } ;;
22107 cat >conftest.$ac_ext <<_ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h. */
22113 $ac_includes_default
22114 typedef long int ac__type_sizeof_;
22115 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22116 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22118 #include <stdlib.h>
22123 FILE *f = fopen ("conftest.val", "w");
22126 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22128 long int i = longval ();
22129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22131 fprintf (f, "%ld\n", i);
22135 unsigned long int i = ulongval ();
22136 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22138 fprintf (f, "%lu\n", i);
22140 return ferror (f) || fclose (f) != 0;
22146 rm -f conftest$ac_exeext
22147 if { (ac_try="$ac_link"
22148 case "(($ac_try" in
22149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150 *) ac_try_echo=$ac_try;;
22152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22153 (eval "$ac_link") 2>&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22157 { (case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_try") 2>&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; }; then
22166 ac_cv_sizeof_long_int=`cat conftest.val`
22168 echo "$as_me: program exited with status $ac_status" >&5
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 ( exit $ac_status )
22173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
22174 See \`config.log' for more details." >&5
22175 echo "$as_me: error: cannot compute sizeof (long int)
22176 See \`config.log' for more details." >&2;}
22177 { (exit 77); exit 77; }; }
22179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22183 ac_cv_sizeof_long_int=0
22186 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
22187 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
22188 cat >>confdefs.h <<_ACEOF
22189 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
22193 { echo "$as_me:$LINENO: checking for long long int" >&5
22194 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22195 if test "${ac_cv_type_long_long_int+set}" = set; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 cat >conftest.$ac_ext <<_ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 $ac_includes_default
22205 typedef long long int ac__type_new_;
22209 if ((ac__type_new_ *) 0)
22211 if (sizeof (ac__type_new_))
22217 rm -f conftest.$ac_objext
22218 if { (ac_try="$ac_compile"
22219 case "(($ac_try" in
22220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221 *) ac_try_echo=$ac_try;;
22223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224 (eval "$ac_compile") 2>conftest.er1
22226 grep -v '^ *+' conftest.er1 >conftest.err
22228 cat conftest.err >&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } &&
22231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22232 { (case "(($ac_try" in
22233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22234 *) ac_try_echo=$ac_try;;
22236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22237 (eval "$ac_try") 2>&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); }; } &&
22241 { ac_try='test -s conftest.$ac_objext'
22242 { (case "(($ac_try" in
22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_try") 2>&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; }; then
22251 ac_cv_type_long_long_int=yes
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 ac_cv_type_long_long_int=no
22259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22262 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22264 { echo "$as_me:$LINENO: checking size of long long int" >&5
22265 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
22266 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
22269 if test "$ac_cv_type_long_long_int" = yes; then
22270 # The cast to long int works around a bug in the HP C Compiler
22271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22273 # This bug is HP SR number 8606223364.
22274 if test "$cross_compiling" = yes; then
22275 # Depending upon the size, compute the lo and hi bounds.
22276 cat >conftest.$ac_ext <<_ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22282 $ac_includes_default
22283 typedef long long int ac__type_sizeof_;
22287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22294 rm -f conftest.$ac_objext
22295 if { (ac_try="$ac_compile"
22296 case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_compile") 2>conftest.er1
22303 grep -v '^ *+' conftest.er1 >conftest.err
22305 cat conftest.err >&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } &&
22308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22309 { (case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_try") 2>&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest.$ac_objext'
22319 { (case "(($ac_try" in
22320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324 (eval "$ac_try") 2>&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
22330 cat >conftest.$ac_ext <<_ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22336 $ac_includes_default
22337 typedef long long int ac__type_sizeof_;
22341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22348 rm -f conftest.$ac_objext
22349 if { (ac_try="$ac_compile"
22350 case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_compile") 2>conftest.er1
22357 grep -v '^ *+' conftest.er1 >conftest.err
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } &&
22362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22363 { (case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_try") 2>&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; } &&
22372 { ac_try='test -s conftest.$ac_objext'
22373 { (case "(($ac_try" in
22374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375 *) ac_try_echo=$ac_try;;
22377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22378 (eval "$ac_try") 2>&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; }; then
22382 ac_hi=$ac_mid; break
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22387 ac_lo=`expr $ac_mid + 1`
22388 if test $ac_lo -le $ac_mid; then
22392 ac_mid=`expr 2 '*' $ac_mid + 1`
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22398 echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22401 cat >conftest.$ac_ext <<_ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 $ac_includes_default
22408 typedef long long int ac__type_sizeof_;
22412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22419 rm -f conftest.$ac_objext
22420 if { (ac_try="$ac_compile"
22421 case "(($ac_try" in
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423 *) ac_try_echo=$ac_try;;
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426 (eval "$ac_compile") 2>conftest.er1
22428 grep -v '^ *+' conftest.er1 >conftest.err
22430 cat conftest.err >&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } &&
22433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22434 { (case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_try") 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; } &&
22443 { ac_try='test -s conftest.$ac_objext'
22444 { (case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_try") 2>&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; }; then
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 $ac_includes_default
22462 typedef long long int ac__type_sizeof_;
22466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22473 rm -f conftest.$ac_objext
22474 if { (ac_try="$ac_compile"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_compile") 2>conftest.er1
22482 grep -v '^ *+' conftest.er1 >conftest.err
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } &&
22487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22488 { (case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493 (eval "$ac_try") 2>&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; } &&
22497 { ac_try='test -s conftest.$ac_objext'
22498 { (case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_try") 2>&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; }; then
22507 ac_lo=$ac_mid; break
22509 echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22512 ac_hi=`expr '(' $ac_mid ')' - 1`
22513 if test $ac_mid -le $ac_hi; then
22517 ac_mid=`expr 2 '*' $ac_mid`
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22523 echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533 # Binary search between lo and hi bounds.
22534 while test "x$ac_lo" != "x$ac_hi"; do
22535 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22536 cat >conftest.$ac_ext <<_ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 $ac_includes_default
22543 typedef long long int ac__type_sizeof_;
22547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_compile") 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } &&
22568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22569 { (case "(($ac_try" in
22570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571 *) ac_try_echo=$ac_try;;
22573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574 (eval "$ac_try") 2>&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; } &&
22578 { ac_try='test -s conftest.$ac_objext'
22579 { (case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_try") 2>&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22590 echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22593 ac_lo=`expr '(' $ac_mid ')' + 1`
22596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
22600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
22601 See \`config.log' for more details." >&5
22602 echo "$as_me: error: cannot compute sizeof (long long int)
22603 See \`config.log' for more details." >&2;}
22604 { (exit 77); exit 77; }; } ;;
22607 cat >conftest.$ac_ext <<_ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22613 $ac_includes_default
22614 typedef long long int ac__type_sizeof_;
22615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22618 #include <stdlib.h>
22623 FILE *f = fopen ("conftest.val", "w");
22626 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22628 long int i = longval ();
22629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22631 fprintf (f, "%ld\n", i);
22635 unsigned long int i = ulongval ();
22636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22638 fprintf (f, "%lu\n", i);
22640 return ferror (f) || fclose (f) != 0;
22646 rm -f conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653 (eval "$ac_link") 2>&5
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22657 { (case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_try") 2>&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); }; }; then
22666 ac_cv_sizeof_long_long_int=`cat conftest.val`
22668 echo "$as_me: program exited with status $ac_status" >&5
22669 echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22672 ( exit $ac_status )
22673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
22674 See \`config.log' for more details." >&5
22675 echo "$as_me: error: cannot compute sizeof (long long int)
22676 See \`config.log' for more details." >&2;}
22677 { (exit 77); exit 77; }; }
22679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22683 ac_cv_sizeof_long_long_int=0
22686 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
22687 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
22688 cat >>confdefs.h <<_ACEOF
22689 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
22694 # Sanity check long long for some platforms (AIX)
22695 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
22696 ac_cv_sizeof_long_long_int=0
22699 # compute LLONG_MIN and LLONG_MAX if we don't know them.
22700 if test -z "$have_llong_max"; then
22701 { echo "$as_me:$LINENO: checking for max value of long long" >&5
22702 echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
22703 if test "$cross_compiling" = yes; then
22705 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
22706 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
22710 cat >conftest.$ac_ext <<_ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22718 /* Why is this so damn hard? */
22722 #define __USE_ISOC99
22723 #include <limits.h>
22724 #define DATA "conftest.llminmax"
22725 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
22728 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
22729 * we do this the hard way.
22732 fprint_ll(FILE *f, long long n)
22735 int l[sizeof(long long) * 8];
22738 if (fprintf(f, "-") < 0)
22740 for (i = 0; n != 0; i++) {
22741 l[i] = my_abs(n % 10);
22745 if (fprintf(f, "%d", l[--i]) < 0)
22748 if (fprintf(f, " ") < 0)
22755 long long i, llmin, llmax = 0;
22757 if((f = fopen(DATA,"w")) == NULL)
22760 #if defined(LLONG_MIN) && defined(LLONG_MAX)
22761 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
22765 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
22766 /* This will work on one's complement and two's complement */
22767 for (i = 1; i > llmax; i <<= 1, i++)
22769 llmin = llmax + 1LL; /* wrap */
22773 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
22774 || llmax - 1 > llmax || llmin == llmax || llmin == 0
22775 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
22776 fprintf(f, "unknown unknown\n");
22780 if (fprint_ll(f, llmin) < 0)
22782 if (fprint_ll(f, llmax) < 0)
22790 rm -f conftest$ac_exeext
22791 if { (ac_try="$ac_link"
22792 case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797 (eval "$ac_link") 2>&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22801 { (case "(($ac_try" in
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803 *) ac_try_echo=$ac_try;;
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806 (eval "$ac_try") 2>&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); }; }; then
22811 llong_min=`$AWK '{print $1}' conftest.llminmax`
22812 llong_max=`$AWK '{print $2}' conftest.llminmax`
22814 { echo "$as_me:$LINENO: result: $llong_max" >&5
22815 echo "${ECHO_T}$llong_max" >&6; }
22817 cat >>confdefs.h <<_ACEOF
22818 #define LLONG_MAX ${llong_max}LL
22821 { echo "$as_me:$LINENO: checking for min value of long long" >&5
22822 echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
22823 { echo "$as_me:$LINENO: result: $llong_min" >&5
22824 echo "${ECHO_T}$llong_min" >&6; }
22826 cat >>confdefs.h <<_ACEOF
22827 #define LLONG_MIN ${llong_min}LL
22832 echo "$as_me: program exited with status $ac_status" >&5
22833 echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22836 ( exit $ac_status )
22838 { echo "$as_me:$LINENO: result: not found" >&5
22839 echo "${ECHO_T}not found" >&6; }
22842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22849 # More checks for data types
22850 { echo "$as_me:$LINENO: checking for u_int type" >&5
22851 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
22852 if test "${ac_cv_have_u_int+set}" = set; then
22853 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 cat >conftest.$ac_ext <<_ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 #include <sys/types.h>
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_compile") 2>conftest.er1
22880 grep -v '^ *+' conftest.er1 >conftest.err
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } &&
22885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22886 { (case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_try") 2>&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; } &&
22895 { ac_try='test -s conftest.$ac_objext'
22896 { (case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898 *) ac_try_echo=$ac_try;;
22900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901 (eval "$ac_try") 2>&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); }; }; then
22905 ac_cv_have_u_int="yes"
22907 echo "$as_me: failed program was:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22910 ac_cv_have_u_int="no"
22914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
22918 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
22919 if test "x$ac_cv_have_u_int" = "xyes" ; then
22921 cat >>confdefs.h <<\_ACEOF
22922 #define HAVE_U_INT 1
22928 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
22929 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
22930 if test "${ac_cv_have_intxx_t+set}" = set; then
22931 echo $ECHO_N "(cached) $ECHO_C" >&6
22934 cat >conftest.$ac_ext <<_ACEOF
22937 cat confdefs.h >>conftest.$ac_ext
22938 cat >>conftest.$ac_ext <<_ACEOF
22939 /* end confdefs.h. */
22940 #include <sys/types.h>
22944 int8_t a; int16_t b; int32_t c; a = b = c = 1;
22949 rm -f conftest.$ac_objext
22950 if { (ac_try="$ac_compile"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_compile") 2>conftest.er1
22958 grep -v '^ *+' conftest.er1 >conftest.err
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } &&
22963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22964 { (case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_try") 2>&5
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; } &&
22973 { ac_try='test -s conftest.$ac_objext'
22974 { (case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979 (eval "$ac_try") 2>&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; }; then
22983 ac_cv_have_intxx_t="yes"
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 ac_cv_have_intxx_t="no"
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22995 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
22996 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
22997 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
22999 cat >>confdefs.h <<\_ACEOF
23000 #define HAVE_INTXX_T 1
23006 if (test -z "$have_intxx_t" && \
23007 test "x$ac_cv_header_stdint_h" = "xyes")
23009 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
23010 echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
23011 cat >conftest.$ac_ext <<_ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h. */
23017 #include <stdint.h>
23021 int8_t a; int16_t b; int32_t c; a = b = c = 1;
23026 rm -f conftest.$ac_objext
23027 if { (ac_try="$ac_compile"
23028 case "(($ac_try" in
23029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030 *) ac_try_echo=$ac_try;;
23032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23033 (eval "$ac_compile") 2>conftest.er1
23035 grep -v '^ *+' conftest.er1 >conftest.err
23037 cat conftest.err >&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } &&
23040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23041 { (case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_try") 2>&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); }; } &&
23050 { ac_try='test -s conftest.$ac_objext'
23051 { (case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_try") 2>&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; }; then
23061 cat >>confdefs.h <<\_ACEOF
23062 #define HAVE_INTXX_T 1
23065 { echo "$as_me:$LINENO: result: yes" >&5
23066 echo "${ECHO_T}yes" >&6; }
23069 echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23072 { echo "$as_me:$LINENO: result: no" >&5
23073 echo "${ECHO_T}no" >&6; }
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23080 { echo "$as_me:$LINENO: checking for int64_t type" >&5
23081 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
23082 if test "${ac_cv_have_int64_t+set}" = set; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23086 cat >conftest.$ac_ext <<_ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23093 #include <sys/types.h>
23094 #ifdef HAVE_STDINT_H
23095 # include <stdint.h>
23097 #include <sys/socket.h>
23098 #ifdef HAVE_SYS_BITYPES_H
23099 # include <sys/bitypes.h>
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_compile") 2>conftest.er1
23119 grep -v '^ *+' conftest.er1 >conftest.err
23121 cat conftest.err >&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); } &&
23124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23125 { (case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_try") 2>&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); }; } &&
23134 { ac_try='test -s conftest.$ac_objext'
23135 { (case "(($ac_try" in
23136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137 *) ac_try_echo=$ac_try;;
23139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140 (eval "$ac_try") 2>&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; }; then
23144 ac_cv_have_int64_t="yes"
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 ac_cv_have_int64_t="no"
23153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
23157 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
23158 if test "x$ac_cv_have_int64_t" = "xyes" ; then
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_INT64_T 1
23166 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
23167 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
23168 if test "${ac_cv_have_u_intxx_t+set}" = set; then
23169 echo $ECHO_N "(cached) $ECHO_C" >&6
23172 cat >conftest.$ac_ext <<_ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h. */
23178 #include <sys/types.h>
23182 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
23187 rm -f conftest.$ac_objext
23188 if { (ac_try="$ac_compile"
23189 case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194 (eval "$ac_compile") 2>conftest.er1
23196 grep -v '^ *+' conftest.er1 >conftest.err
23198 cat conftest.err >&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } &&
23201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23202 { (case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_try") 2>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; } &&
23211 { ac_try='test -s conftest.$ac_objext'
23212 { (case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_try") 2>&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 ac_cv_have_u_intxx_t="yes"
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 ac_cv_have_u_intxx_t="no"
23230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23233 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
23234 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
23235 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
23237 cat >>confdefs.h <<\_ACEOF
23238 #define HAVE_U_INTXX_T 1
23244 if test -z "$have_u_intxx_t" ; then
23245 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
23246 echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
23247 cat >conftest.$ac_ext <<_ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h. */
23253 #include <sys/socket.h>
23257 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
23262 rm -f conftest.$ac_objext
23263 if { (ac_try="$ac_compile"
23264 case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_compile") 2>conftest.er1
23271 grep -v '^ *+' conftest.er1 >conftest.err
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } &&
23276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23277 { (case "(($ac_try" in
23278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282 (eval "$ac_try") 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; } &&
23286 { ac_try='test -s conftest.$ac_objext'
23287 { (case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23292 (eval "$ac_try") 2>&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; }; then
23297 cat >>confdefs.h <<\_ACEOF
23298 #define HAVE_U_INTXX_T 1
23301 { echo "$as_me:$LINENO: result: yes" >&5
23302 echo "${ECHO_T}yes" >&6; }
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 { echo "$as_me:$LINENO: result: no" >&5
23309 echo "${ECHO_T}no" >&6; }
23313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23316 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
23317 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
23318 if test "${ac_cv_have_u_int64_t+set}" = set; then
23319 echo $ECHO_N "(cached) $ECHO_C" >&6
23322 cat >conftest.$ac_ext <<_ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23328 #include <sys/types.h>
23332 u_int64_t a; a = 1;
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_compile") 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
23351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23352 { (case "(($ac_try" in
23353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354 *) ac_try_echo=$ac_try;;
23356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23357 (eval "$ac_try") 2>&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); }; } &&
23361 { ac_try='test -s conftest.$ac_objext'
23362 { (case "(($ac_try" in
23363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364 *) ac_try_echo=$ac_try;;
23366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367 (eval "$ac_try") 2>&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; }; then
23371 ac_cv_have_u_int64_t="yes"
23373 echo "$as_me: failed program was:" >&5
23374 sed 's/^/| /' conftest.$ac_ext >&5
23376 ac_cv_have_u_int64_t="no"
23380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
23384 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
23385 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
23387 cat >>confdefs.h <<\_ACEOF
23388 #define HAVE_U_INT64_T 1
23394 if test -z "$have_u_int64_t" ; then
23395 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
23396 echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
23397 cat >conftest.$ac_ext <<_ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 #include <sys/bitypes.h>
23412 rm -f conftest.$ac_objext
23413 if { (ac_try="$ac_compile"
23414 case "(($ac_try" in
23415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23416 *) ac_try_echo=$ac_try;;
23418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23419 (eval "$ac_compile") 2>conftest.er1
23421 grep -v '^ *+' conftest.er1 >conftest.err
23423 cat conftest.err >&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } &&
23426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23427 { (case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432 (eval "$ac_try") 2>&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; } &&
23436 { ac_try='test -s conftest.$ac_objext'
23437 { (case "(($ac_try" in
23438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439 *) ac_try_echo=$ac_try;;
23441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23442 (eval "$ac_try") 2>&5
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); }; }; then
23447 cat >>confdefs.h <<\_ACEOF
23448 #define HAVE_U_INT64_T 1
23451 { echo "$as_me:$LINENO: result: yes" >&5
23452 echo "${ECHO_T}yes" >&6; }
23455 echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23458 { echo "$as_me:$LINENO: result: no" >&5
23459 echo "${ECHO_T}no" >&6; }
23463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466 if test -z "$have_u_intxx_t" ; then
23467 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
23468 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
23469 if test "${ac_cv_have_uintxx_t+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23473 cat >conftest.$ac_ext <<_ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h. */
23480 #include <sys/types.h>
23485 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
23490 rm -f conftest.$ac_objext
23491 if { (ac_try="$ac_compile"
23492 case "(($ac_try" in
23493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494 *) ac_try_echo=$ac_try;;
23496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23497 (eval "$ac_compile") 2>conftest.er1
23499 grep -v '^ *+' conftest.er1 >conftest.err
23501 cat conftest.err >&5
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } &&
23504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23505 { (case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_try") 2>&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; } &&
23514 { ac_try='test -s conftest.$ac_objext'
23515 { (case "(($ac_try" in
23516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517 *) ac_try_echo=$ac_try;;
23519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23520 (eval "$ac_try") 2>&5
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; }; then
23524 ac_cv_have_uintxx_t="yes"
23526 echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23529 ac_cv_have_uintxx_t="no"
23533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
23537 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
23538 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
23540 cat >>confdefs.h <<\_ACEOF
23541 #define HAVE_UINTXX_T 1
23547 if test -z "$have_uintxx_t" ; then
23548 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
23549 echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
23550 cat >conftest.$ac_ext <<_ACEOF
23553 cat confdefs.h >>conftest.$ac_ext
23554 cat >>conftest.$ac_ext <<_ACEOF
23555 /* end confdefs.h. */
23556 #include <stdint.h>
23560 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
23565 rm -f conftest.$ac_objext
23566 if { (ac_try="$ac_compile"
23567 case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23574 grep -v '^ *+' conftest.er1 >conftest.err
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } &&
23579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23580 { (case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_try") 2>&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); }; } &&
23589 { ac_try='test -s conftest.$ac_objext'
23590 { (case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595 (eval "$ac_try") 2>&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; }; then
23600 cat >>confdefs.h <<\_ACEOF
23601 #define HAVE_UINTXX_T 1
23604 { echo "$as_me:$LINENO: result: yes" >&5
23605 echo "${ECHO_T}yes" >&6; }
23608 echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23611 { echo "$as_me:$LINENO: result: no" >&5
23612 echo "${ECHO_T}no" >&6; }
23616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
23620 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
23622 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
23623 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
23624 cat >conftest.$ac_ext <<_ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h. */
23631 #include <sys/bitypes.h>
23637 int8_t a; int16_t b; int32_t c;
23638 u_int8_t e; u_int16_t f; u_int32_t g;
23639 a = b = c = e = f = g = 1;
23645 rm -f conftest.$ac_objext
23646 if { (ac_try="$ac_compile"
23647 case "(($ac_try" in
23648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649 *) ac_try_echo=$ac_try;;
23651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23652 (eval "$ac_compile") 2>conftest.er1
23654 grep -v '^ *+' conftest.er1 >conftest.err
23656 cat conftest.err >&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } &&
23659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23660 { (case "(($ac_try" in
23661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662 *) ac_try_echo=$ac_try;;
23664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23665 (eval "$ac_try") 2>&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; } &&
23669 { ac_try='test -s conftest.$ac_objext'
23670 { (case "(($ac_try" in
23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672 *) ac_try_echo=$ac_try;;
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675 (eval "$ac_try") 2>&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; }; then
23680 cat >>confdefs.h <<\_ACEOF
23681 #define HAVE_U_INTXX_T 1
23684 cat >>confdefs.h <<\_ACEOF
23685 #define HAVE_INTXX_T 1
23688 { echo "$as_me:$LINENO: result: yes" >&5
23689 echo "${ECHO_T}yes" >&6; }
23692 echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23695 { echo "$as_me:$LINENO: result: no" >&5
23696 echo "${ECHO_T}no" >&6; }
23700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23704 { echo "$as_me:$LINENO: checking for u_char" >&5
23705 echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
23706 if test "${ac_cv_have_u_char+set}" = set; then
23707 echo $ECHO_N "(cached) $ECHO_C" >&6
23710 cat >conftest.$ac_ext <<_ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23717 #include <sys/types.h>
23722 u_char foo; foo = 125;
23727 rm -f conftest.$ac_objext
23728 if { (ac_try="$ac_compile"
23729 case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23734 (eval "$ac_compile") 2>conftest.er1
23736 grep -v '^ *+' conftest.er1 >conftest.err
23738 cat conftest.err >&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); } &&
23741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23742 { (case "(($ac_try" in
23743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744 *) ac_try_echo=$ac_try;;
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747 (eval "$ac_try") 2>&5
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); }; } &&
23751 { ac_try='test -s conftest.$ac_objext'
23752 { (case "(($ac_try" in
23753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754 *) ac_try_echo=$ac_try;;
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757 (eval "$ac_try") 2>&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 ac_cv_have_u_char="yes"
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 ac_cv_have_u_char="no"
23770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
23774 echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
23775 if test "x$ac_cv_have_u_char" = "xyes" ; then
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_U_CHAR 1
23784 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23785 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23786 if test "${ac_cv_type_socklen_t+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23789 cat >conftest.$ac_ext <<_ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23795 #include <sys/types.h>
23796 #include <sys/socket.h>
23798 typedef socklen_t ac__type_new_;
23802 if ((ac__type_new_ *) 0)
23804 if (sizeof (ac__type_new_))
23810 rm -f conftest.$ac_objext
23811 if { (ac_try="$ac_compile"
23812 case "(($ac_try" in
23813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23814 *) ac_try_echo=$ac_try;;
23816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23817 (eval "$ac_compile") 2>conftest.er1
23819 grep -v '^ *+' conftest.er1 >conftest.err
23821 cat conftest.err >&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } &&
23824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23825 { (case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830 (eval "$ac_try") 2>&5
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); }; } &&
23834 { ac_try='test -s conftest.$ac_objext'
23835 { (case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_try") 2>&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); }; }; then
23844 ac_cv_type_socklen_t=yes
23846 echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23849 ac_cv_type_socklen_t=no
23852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23854 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23855 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23856 if test $ac_cv_type_socklen_t = yes; then
23860 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
23861 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
23862 if test "${curl_cv_socklen_t_equiv+set}" = set; then
23863 echo $ECHO_N "(cached) $ECHO_C" >&6
23866 # Systems have either "struct sockaddr *" or
23867 # "void *" as the second argument to getpeername
23868 curl_cv_socklen_t_equiv=
23869 for arg2 in "struct sockaddr" void; do
23870 for t in int size_t unsigned long "unsigned long"; do
23871 cat >conftest.$ac_ext <<_ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23878 #include <sys/types.h>
23879 #include <sys/socket.h>
23881 int getpeername (int, $arg2 *, $t *);
23888 getpeername(0,0,&len);
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901 (eval "$ac_compile") 2>conftest.er1
23903 grep -v '^ *+' conftest.er1 >conftest.err
23905 cat conftest.err >&5
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } &&
23908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23909 { (case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_try") 2>&5
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; } &&
23918 { ac_try='test -s conftest.$ac_objext'
23919 { (case "(($ac_try" in
23920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23921 *) ac_try_echo=$ac_try;;
23923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23924 (eval "$ac_try") 2>&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); }; }; then
23929 curl_cv_socklen_t_equiv="$t"
23933 echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23943 if test "x$curl_cv_socklen_t_equiv" = x; then
23944 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
23945 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
23946 { (exit 1); exit 1; }; }
23951 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
23952 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
23954 cat >>confdefs.h <<_ACEOF
23955 #define socklen_t $curl_cv_socklen_t_equiv
23962 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23963 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23964 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23965 echo $ECHO_N "(cached) $ECHO_C" >&6
23967 cat >conftest.$ac_ext <<_ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h. */
23973 #include <signal.h>
23975 typedef sig_atomic_t ac__type_new_;
23979 if ((ac__type_new_ *) 0)
23981 if (sizeof (ac__type_new_))
23987 rm -f conftest.$ac_objext
23988 if { (ac_try="$ac_compile"
23989 case "(($ac_try" in
23990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23991 *) ac_try_echo=$ac_try;;
23993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23994 (eval "$ac_compile") 2>conftest.er1
23996 grep -v '^ *+' conftest.er1 >conftest.err
23998 cat conftest.err >&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } &&
24001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24002 { (case "(($ac_try" in
24003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004 *) ac_try_echo=$ac_try;;
24006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24007 (eval "$ac_try") 2>&5
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); }; } &&
24011 { ac_try='test -s conftest.$ac_objext'
24012 { (case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017 (eval "$ac_try") 2>&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24021 ac_cv_type_sig_atomic_t=yes
24023 echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24026 ac_cv_type_sig_atomic_t=no
24029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24031 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24032 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24033 if test $ac_cv_type_sig_atomic_t = yes; then
24035 cat >>confdefs.h <<_ACEOF
24036 #define HAVE_SIG_ATOMIC_T 1
24043 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
24044 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
24045 if test "${ac_cv_type_in_addr_t+set}" = set; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
24048 cat >conftest.$ac_ext <<_ACEOF
24051 cat confdefs.h >>conftest.$ac_ext
24052 cat >>conftest.$ac_ext <<_ACEOF
24053 /* end confdefs.h. */
24054 #include <sys/types.h>
24055 #include <netinet/in.h>
24057 typedef in_addr_t ac__type_new_;
24061 if ((ac__type_new_ *) 0)
24063 if (sizeof (ac__type_new_))
24069 rm -f conftest.$ac_objext
24070 if { (ac_try="$ac_compile"
24071 case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076 (eval "$ac_compile") 2>conftest.er1
24078 grep -v '^ *+' conftest.er1 >conftest.err
24080 cat conftest.err >&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } &&
24083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24084 { (case "(($ac_try" in
24085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24086 *) ac_try_echo=$ac_try;;
24088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24089 (eval "$ac_try") 2>&5
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; } &&
24093 { ac_try='test -s conftest.$ac_objext'
24094 { (case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099 (eval "$ac_try") 2>&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); }; }; then
24103 ac_cv_type_in_addr_t=yes
24105 echo "$as_me: failed program was:" >&5
24106 sed 's/^/| /' conftest.$ac_ext >&5
24108 ac_cv_type_in_addr_t=no
24111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24113 { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
24114 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
24115 if test $ac_cv_type_in_addr_t = yes; then
24117 cat >>confdefs.h <<_ACEOF
24118 #define HAVE_IN_ADDR_T 1
24125 { echo "$as_me:$LINENO: checking for size_t" >&5
24126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24127 if test "${ac_cv_have_size_t+set}" = set; then
24128 echo $ECHO_N "(cached) $ECHO_C" >&6
24131 cat >conftest.$ac_ext <<_ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24138 #include <sys/types.h>
24143 size_t foo; foo = 1235;
24148 rm -f conftest.$ac_objext
24149 if { (ac_try="$ac_compile"
24150 case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24157 grep -v '^ *+' conftest.er1 >conftest.err
24159 cat conftest.err >&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } &&
24162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24163 { (case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168 (eval "$ac_try") 2>&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); }; } &&
24172 { ac_try='test -s conftest.$ac_objext'
24173 { (case "(($ac_try" in
24174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24175 *) ac_try_echo=$ac_try;;
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178 (eval "$ac_try") 2>&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; }; then
24182 ac_cv_have_size_t="yes"
24184 echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 ac_cv_have_size_t="no"
24191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24194 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
24195 echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
24196 if test "x$ac_cv_have_size_t" = "xyes" ; then
24198 cat >>confdefs.h <<\_ACEOF
24199 #define HAVE_SIZE_T 1
24204 { echo "$as_me:$LINENO: checking for ssize_t" >&5
24205 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
24206 if test "${ac_cv_have_ssize_t+set}" = set; then
24207 echo $ECHO_N "(cached) $ECHO_C" >&6
24210 cat >conftest.$ac_ext <<_ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h. */
24217 #include <sys/types.h>
24222 ssize_t foo; foo = 1235;
24227 rm -f conftest.$ac_objext
24228 if { (ac_try="$ac_compile"
24229 case "(($ac_try" in
24230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234 (eval "$ac_compile") 2>conftest.er1
24236 grep -v '^ *+' conftest.er1 >conftest.err
24238 cat conftest.err >&5
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } &&
24241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24242 { (case "(($ac_try" in
24243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247 (eval "$ac_try") 2>&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; } &&
24251 { ac_try='test -s conftest.$ac_objext'
24252 { (case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257 (eval "$ac_try") 2>&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; }; then
24261 ac_cv_have_ssize_t="yes"
24263 echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.$ac_ext >&5
24266 ac_cv_have_ssize_t="no"
24270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24273 { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
24274 echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
24275 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
24277 cat >>confdefs.h <<\_ACEOF
24278 #define HAVE_SSIZE_T 1
24283 { echo "$as_me:$LINENO: checking for clock_t" >&5
24284 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
24285 if test "${ac_cv_have_clock_t+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24289 cat >conftest.$ac_ext <<_ACEOF
24292 cat confdefs.h >>conftest.$ac_ext
24293 cat >>conftest.$ac_ext <<_ACEOF
24294 /* end confdefs.h. */
24301 clock_t foo; foo = 1235;
24306 rm -f conftest.$ac_objext
24307 if { (ac_try="$ac_compile"
24308 case "(($ac_try" in
24309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310 *) ac_try_echo=$ac_try;;
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313 (eval "$ac_compile") 2>conftest.er1
24315 grep -v '^ *+' conftest.er1 >conftest.err
24317 cat conftest.err >&5
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); } &&
24320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24321 { (case "(($ac_try" in
24322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24323 *) ac_try_echo=$ac_try;;
24325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24326 (eval "$ac_try") 2>&5
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); }; } &&
24330 { ac_try='test -s conftest.$ac_objext'
24331 { (case "(($ac_try" in
24332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333 *) ac_try_echo=$ac_try;;
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336 (eval "$ac_try") 2>&5
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; }; then
24340 ac_cv_have_clock_t="yes"
24342 echo "$as_me: failed program was:" >&5
24343 sed 's/^/| /' conftest.$ac_ext >&5
24345 ac_cv_have_clock_t="no"
24349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24352 { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
24353 echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
24354 if test "x$ac_cv_have_clock_t" = "xyes" ; then
24356 cat >>confdefs.h <<\_ACEOF
24357 #define HAVE_CLOCK_T 1
24362 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
24363 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
24364 if test "${ac_cv_have_sa_family_t+set}" = set; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24368 cat >conftest.$ac_ext <<_ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h. */
24375 #include <sys/types.h>
24376 #include <sys/socket.h>
24381 sa_family_t foo; foo = 1235;
24386 rm -f conftest.$ac_objext
24387 if { (ac_try="$ac_compile"
24388 case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_compile") 2>conftest.er1
24395 grep -v '^ *+' conftest.er1 >conftest.err
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } &&
24400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24401 { (case "(($ac_try" in
24402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403 *) ac_try_echo=$ac_try;;
24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406 (eval "$ac_try") 2>&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); }; } &&
24410 { ac_try='test -s conftest.$ac_objext'
24411 { (case "(($ac_try" in
24412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413 *) ac_try_echo=$ac_try;;
24415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416 (eval "$ac_try") 2>&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); }; }; then
24420 ac_cv_have_sa_family_t="yes"
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24425 cat >conftest.$ac_ext <<_ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h. */
24432 #include <sys/types.h>
24433 #include <sys/socket.h>
24434 #include <netinet/in.h>
24439 sa_family_t foo; foo = 1235;
24444 rm -f conftest.$ac_objext
24445 if { (ac_try="$ac_compile"
24446 case "(($ac_try" in
24447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24448 *) ac_try_echo=$ac_try;;
24450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451 (eval "$ac_compile") 2>conftest.er1
24453 grep -v '^ *+' conftest.er1 >conftest.err
24455 cat conftest.err >&5
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); } &&
24458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24459 { (case "(($ac_try" in
24460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461 *) ac_try_echo=$ac_try;;
24463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24464 (eval "$ac_try") 2>&5
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; } &&
24468 { ac_try='test -s conftest.$ac_objext'
24469 { (case "(($ac_try" in
24470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471 *) ac_try_echo=$ac_try;;
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474 (eval "$ac_try") 2>&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); }; }; then
24478 ac_cv_have_sa_family_t="yes"
24480 echo "$as_me: failed program was:" >&5
24481 sed 's/^/| /' conftest.$ac_ext >&5
24483 ac_cv_have_sa_family_t="no"
24487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24494 { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
24495 echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
24496 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
24498 cat >>confdefs.h <<\_ACEOF
24499 #define HAVE_SA_FAMILY_T 1
24504 { echo "$as_me:$LINENO: checking for pid_t" >&5
24505 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24506 if test "${ac_cv_have_pid_t+set}" = set; then
24507 echo $ECHO_N "(cached) $ECHO_C" >&6
24510 cat >conftest.$ac_ext <<_ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h. */
24517 #include <sys/types.h>
24522 pid_t foo; foo = 1235;
24527 rm -f conftest.$ac_objext
24528 if { (ac_try="$ac_compile"
24529 case "(($ac_try" in
24530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24531 *) ac_try_echo=$ac_try;;
24533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24534 (eval "$ac_compile") 2>conftest.er1
24536 grep -v '^ *+' conftest.er1 >conftest.err
24538 cat conftest.err >&5
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); } &&
24541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24542 { (case "(($ac_try" in
24543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544 *) ac_try_echo=$ac_try;;
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547 (eval "$ac_try") 2>&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; } &&
24551 { ac_try='test -s conftest.$ac_objext'
24552 { (case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557 (eval "$ac_try") 2>&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; }; then
24561 ac_cv_have_pid_t="yes"
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 ac_cv_have_pid_t="no"
24570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573 { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
24574 echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
24575 if test "x$ac_cv_have_pid_t" = "xyes" ; then
24577 cat >>confdefs.h <<\_ACEOF
24578 #define HAVE_PID_T 1
24583 { echo "$as_me:$LINENO: checking for mode_t" >&5
24584 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24585 if test "${ac_cv_have_mode_t+set}" = set; then
24586 echo $ECHO_N "(cached) $ECHO_C" >&6
24589 cat >conftest.$ac_ext <<_ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h. */
24596 #include <sys/types.h>
24601 mode_t foo; foo = 1235;
24606 rm -f conftest.$ac_objext
24607 if { (ac_try="$ac_compile"
24608 case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613 (eval "$ac_compile") 2>conftest.er1
24615 grep -v '^ *+' conftest.er1 >conftest.err
24617 cat conftest.err >&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } &&
24620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24621 { (case "(($ac_try" in
24622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623 *) ac_try_echo=$ac_try;;
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626 (eval "$ac_try") 2>&5
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; } &&
24630 { ac_try='test -s conftest.$ac_objext'
24631 { (case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_try") 2>&5
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; }; then
24640 ac_cv_have_mode_t="yes"
24642 echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24645 ac_cv_have_mode_t="no"
24649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24652 { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
24653 echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
24654 if test "x$ac_cv_have_mode_t" = "xyes" ; then
24656 cat >>confdefs.h <<\_ACEOF
24657 #define HAVE_MODE_T 1
24663 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24664 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24665 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24669 cat >conftest.$ac_ext <<_ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24676 #include <sys/types.h>
24677 #include <sys/socket.h>
24682 struct sockaddr_storage s;
24687 rm -f conftest.$ac_objext
24688 if { (ac_try="$ac_compile"
24689 case "(($ac_try" in
24690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24691 *) ac_try_echo=$ac_try;;
24693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24694 (eval "$ac_compile") 2>conftest.er1
24696 grep -v '^ *+' conftest.er1 >conftest.err
24698 cat conftest.err >&5
24699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700 (exit $ac_status); } &&
24701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24702 { (case "(($ac_try" in
24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707 (eval "$ac_try") 2>&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); }; } &&
24711 { ac_try='test -s conftest.$ac_objext'
24712 { (case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_try") 2>&5
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); }; }; then
24721 ac_cv_have_struct_sockaddr_storage="yes"
24723 echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24726 ac_cv_have_struct_sockaddr_storage="no"
24730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24733 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
24734 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
24735 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
24737 cat >>confdefs.h <<\_ACEOF
24738 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24743 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24744 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24745 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24749 cat >conftest.$ac_ext <<_ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24756 #include <sys/types.h>
24757 #include <netinet/in.h>
24762 struct sockaddr_in6 s; s.sin6_family = 0;
24767 rm -f conftest.$ac_objext
24768 if { (ac_try="$ac_compile"
24769 case "(($ac_try" in
24770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771 *) ac_try_echo=$ac_try;;
24773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24774 (eval "$ac_compile") 2>conftest.er1
24776 grep -v '^ *+' conftest.er1 >conftest.err
24778 cat conftest.err >&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } &&
24781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24782 { (case "(($ac_try" in
24783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784 *) ac_try_echo=$ac_try;;
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787 (eval "$ac_try") 2>&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; } &&
24791 { ac_try='test -s conftest.$ac_objext'
24792 { (case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797 (eval "$ac_try") 2>&5
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_have_struct_sockaddr_in6="yes"
24803 echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24806 ac_cv_have_struct_sockaddr_in6="no"
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24813 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
24814 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
24815 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
24817 cat >>confdefs.h <<\_ACEOF
24818 #define HAVE_STRUCT_SOCKADDR_IN6 1
24823 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24824 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24825 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24829 cat >conftest.$ac_ext <<_ACEOF
24832 cat confdefs.h >>conftest.$ac_ext
24833 cat >>conftest.$ac_ext <<_ACEOF
24834 /* end confdefs.h. */
24836 #include <sys/types.h>
24837 #include <netinet/in.h>
24842 struct in6_addr s; s.s6_addr[0] = 0;
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854 (eval "$ac_compile") 2>conftest.er1
24856 grep -v '^ *+' conftest.er1 >conftest.err
24858 cat conftest.err >&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } &&
24861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24862 { (case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867 (eval "$ac_try") 2>&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); }; } &&
24871 { ac_try='test -s conftest.$ac_objext'
24872 { (case "(($ac_try" in
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877 (eval "$ac_try") 2>&5
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); }; }; then
24881 ac_cv_have_struct_in6_addr="yes"
24883 echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24886 ac_cv_have_struct_in6_addr="no"
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24893 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
24894 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
24895 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
24897 cat >>confdefs.h <<\_ACEOF
24898 #define HAVE_STRUCT_IN6_ADDR 1
24903 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24904 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24905 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24909 cat >conftest.$ac_ext <<_ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h. */
24916 #include <sys/types.h>
24917 #include <sys/socket.h>
24923 struct addrinfo s; s.ai_flags = AI_PASSIVE;
24928 rm -f conftest.$ac_objext
24929 if { (ac_try="$ac_compile"
24930 case "(($ac_try" in
24931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24932 *) ac_try_echo=$ac_try;;
24934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24935 (eval "$ac_compile") 2>conftest.er1
24937 grep -v '^ *+' conftest.er1 >conftest.err
24939 cat conftest.err >&5
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); } &&
24942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24943 { (case "(($ac_try" in
24944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945 *) ac_try_echo=$ac_try;;
24947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948 (eval "$ac_try") 2>&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); }; } &&
24952 { ac_try='test -s conftest.$ac_objext'
24953 { (case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958 (eval "$ac_try") 2>&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); }; }; then
24962 ac_cv_have_struct_addrinfo="yes"
24964 echo "$as_me: failed program was:" >&5
24965 sed 's/^/| /' conftest.$ac_ext >&5
24967 ac_cv_have_struct_addrinfo="no"
24971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
24975 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
24976 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
24978 cat >>confdefs.h <<\_ACEOF
24979 #define HAVE_STRUCT_ADDRINFO 1
24984 { echo "$as_me:$LINENO: checking for struct timeval" >&5
24985 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
24986 if test "${ac_cv_have_struct_timeval+set}" = set; then
24987 echo $ECHO_N "(cached) $ECHO_C" >&6
24990 cat >conftest.$ac_ext <<_ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24996 #include <sys/time.h>
25000 struct timeval tv; tv.tv_sec = 1;
25005 rm -f conftest.$ac_objext
25006 if { (ac_try="$ac_compile"
25007 case "(($ac_try" in
25008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012 (eval "$ac_compile") 2>conftest.er1
25014 grep -v '^ *+' conftest.er1 >conftest.err
25016 cat conftest.err >&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } &&
25019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25020 { (case "(($ac_try" in
25021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022 *) ac_try_echo=$ac_try;;
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025 (eval "$ac_try") 2>&5
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; } &&
25029 { ac_try='test -s conftest.$ac_objext'
25030 { (case "(($ac_try" in
25031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032 *) ac_try_echo=$ac_try;;
25034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035 (eval "$ac_try") 2>&5
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); }; }; then
25039 ac_cv_have_struct_timeval="yes"
25041 echo "$as_me: failed program was:" >&5
25042 sed 's/^/| /' conftest.$ac_ext >&5
25044 ac_cv_have_struct_timeval="no"
25048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
25052 echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
25053 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
25055 cat >>confdefs.h <<\_ACEOF
25056 #define HAVE_STRUCT_TIMEVAL 1
25059 have_struct_timeval=1
25062 { echo "$as_me:$LINENO: checking for struct timespec" >&5
25063 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
25064 if test "${ac_cv_type_struct_timespec+set}" = set; then
25065 echo $ECHO_N "(cached) $ECHO_C" >&6
25067 cat >conftest.$ac_ext <<_ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 $ac_includes_default
25074 typedef struct timespec ac__type_new_;
25078 if ((ac__type_new_ *) 0)
25080 if (sizeof (ac__type_new_))
25086 rm -f conftest.$ac_objext
25087 if { (ac_try="$ac_compile"
25088 case "(($ac_try" in
25089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090 *) ac_try_echo=$ac_try;;
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093 (eval "$ac_compile") 2>conftest.er1
25095 grep -v '^ *+' conftest.er1 >conftest.err
25097 cat conftest.err >&5
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); } &&
25100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25101 { (case "(($ac_try" in
25102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25103 *) ac_try_echo=$ac_try;;
25105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106 (eval "$ac_try") 2>&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); }; } &&
25110 { ac_try='test -s conftest.$ac_objext'
25111 { (case "(($ac_try" in
25112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113 *) ac_try_echo=$ac_try;;
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116 (eval "$ac_try") 2>&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }; then
25120 ac_cv_type_struct_timespec=yes
25122 echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25125 ac_cv_type_struct_timespec=no
25128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25130 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
25131 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
25132 if test $ac_cv_type_struct_timespec = yes; then
25134 cat >>confdefs.h <<_ACEOF
25135 #define HAVE_STRUCT_TIMESPEC 1
25142 # We need int64_t or else certian parts of the compile will fail.
25143 if test "x$ac_cv_have_int64_t" = "xno" && \
25144 test "x$ac_cv_sizeof_long_int" != "x8" && \
25145 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
25146 echo "OpenSSH requires int64_t support. Contact your vendor or install"
25147 echo "an alternative compiler (I.E., GCC) before continuing."
25151 if test "$cross_compiling" = yes; then
25152 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
25153 echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
25156 cat >conftest.$ac_ext <<_ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h. */
25164 #include <string.h>
25165 #ifdef HAVE_SNPRINTF
25169 char expected_out[50];
25171 #if (SIZEOF_LONG_INT == 8)
25172 long int num = 0x7fffffffffffffff;
25174 long long num = 0x7fffffffffffffffll;
25176 strcpy(expected_out, "9223372036854775807");
25177 snprintf(buf, mazsize, "%lld", num);
25178 if(strcmp(buf, expected_out) != 0)
25183 main() { exit(0); }
25187 rm -f conftest$ac_exeext
25188 if { (ac_try="$ac_link"
25189 case "(($ac_try" in
25190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25191 *) ac_try_echo=$ac_try;;
25193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25194 (eval "$ac_link") 2>&5
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25198 { (case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_try") 2>&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; }; then
25209 echo "$as_me: program exited with status $ac_status" >&5
25210 echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25213 ( exit $ac_status )
25214 cat >>confdefs.h <<\_ACEOF
25215 #define BROKEN_SNPRINTF 1
25219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25226 # look for field 'ut_host' in header 'utmp.h'
25227 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25228 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
25229 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
25230 echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
25231 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25232 echo $ECHO_N "(cached) $ECHO_C" >&6
25235 cat >conftest.$ac_ext <<_ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h. */
25244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25245 $EGREP "ut_host" >/dev/null 2>&1; then
25246 eval "$ossh_varname=yes"
25248 eval "$ossh_varname=no"
25254 ossh_result=`eval 'echo $'"$ossh_varname"`
25255 if test -n "`echo $ossh_varname`"; then
25256 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25257 echo "${ECHO_T}$ossh_result" >&6; }
25258 if test "x$ossh_result" = "xyes"; then
25260 cat >>confdefs.h <<\_ACEOF
25261 #define HAVE_HOST_IN_UTMP 1
25266 { echo "$as_me:$LINENO: result: no" >&5
25267 echo "${ECHO_T}no" >&6; }
25271 # look for field 'ut_host' in header 'utmpx.h'
25272 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25273 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
25274 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
25275 echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
25276 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25280 cat >conftest.$ac_ext <<_ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h. */
25289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25290 $EGREP "ut_host" >/dev/null 2>&1; then
25291 eval "$ossh_varname=yes"
25293 eval "$ossh_varname=no"
25299 ossh_result=`eval 'echo $'"$ossh_varname"`
25300 if test -n "`echo $ossh_varname`"; then
25301 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25302 echo "${ECHO_T}$ossh_result" >&6; }
25303 if test "x$ossh_result" = "xyes"; then
25305 cat >>confdefs.h <<\_ACEOF
25306 #define HAVE_HOST_IN_UTMPX 1
25311 { echo "$as_me:$LINENO: result: no" >&5
25312 echo "${ECHO_T}no" >&6; }
25316 # look for field 'syslen' in header 'utmpx.h'
25317 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25318 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
25319 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
25320 echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
25321 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25322 echo $ECHO_N "(cached) $ECHO_C" >&6
25325 cat >conftest.$ac_ext <<_ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h. */
25334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25335 $EGREP "syslen" >/dev/null 2>&1; then
25336 eval "$ossh_varname=yes"
25338 eval "$ossh_varname=no"
25344 ossh_result=`eval 'echo $'"$ossh_varname"`
25345 if test -n "`echo $ossh_varname`"; then
25346 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25347 echo "${ECHO_T}$ossh_result" >&6; }
25348 if test "x$ossh_result" = "xyes"; then
25350 cat >>confdefs.h <<\_ACEOF
25351 #define HAVE_SYSLEN_IN_UTMPX 1
25356 { echo "$as_me:$LINENO: result: no" >&5
25357 echo "${ECHO_T}no" >&6; }
25361 # look for field 'ut_pid' in header 'utmp.h'
25362 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25363 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
25364 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
25365 echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
25366 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25367 echo $ECHO_N "(cached) $ECHO_C" >&6
25370 cat >conftest.$ac_ext <<_ACEOF
25373 cat confdefs.h >>conftest.$ac_ext
25374 cat >>conftest.$ac_ext <<_ACEOF
25375 /* end confdefs.h. */
25379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25380 $EGREP "ut_pid" >/dev/null 2>&1; then
25381 eval "$ossh_varname=yes"
25383 eval "$ossh_varname=no"
25389 ossh_result=`eval 'echo $'"$ossh_varname"`
25390 if test -n "`echo $ossh_varname`"; then
25391 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25392 echo "${ECHO_T}$ossh_result" >&6; }
25393 if test "x$ossh_result" = "xyes"; then
25395 cat >>confdefs.h <<\_ACEOF
25396 #define HAVE_PID_IN_UTMP 1
25401 { echo "$as_me:$LINENO: result: no" >&5
25402 echo "${ECHO_T}no" >&6; }
25406 # look for field 'ut_type' in header 'utmp.h'
25407 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25408 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
25409 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
25410 echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
25411 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25412 echo $ECHO_N "(cached) $ECHO_C" >&6
25415 cat >conftest.$ac_ext <<_ACEOF
25418 cat confdefs.h >>conftest.$ac_ext
25419 cat >>conftest.$ac_ext <<_ACEOF
25420 /* end confdefs.h. */
25424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25425 $EGREP "ut_type" >/dev/null 2>&1; then
25426 eval "$ossh_varname=yes"
25428 eval "$ossh_varname=no"
25434 ossh_result=`eval 'echo $'"$ossh_varname"`
25435 if test -n "`echo $ossh_varname`"; then
25436 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25437 echo "${ECHO_T}$ossh_result" >&6; }
25438 if test "x$ossh_result" = "xyes"; then
25440 cat >>confdefs.h <<\_ACEOF
25441 #define HAVE_TYPE_IN_UTMP 1
25446 { echo "$as_me:$LINENO: result: no" >&5
25447 echo "${ECHO_T}no" >&6; }
25451 # look for field 'ut_type' in header 'utmpx.h'
25452 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25453 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
25454 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
25455 echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
25456 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25457 echo $ECHO_N "(cached) $ECHO_C" >&6
25460 cat >conftest.$ac_ext <<_ACEOF
25463 cat confdefs.h >>conftest.$ac_ext
25464 cat >>conftest.$ac_ext <<_ACEOF
25465 /* end confdefs.h. */
25469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25470 $EGREP "ut_type" >/dev/null 2>&1; then
25471 eval "$ossh_varname=yes"
25473 eval "$ossh_varname=no"
25479 ossh_result=`eval 'echo $'"$ossh_varname"`
25480 if test -n "`echo $ossh_varname`"; then
25481 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25482 echo "${ECHO_T}$ossh_result" >&6; }
25483 if test "x$ossh_result" = "xyes"; then
25485 cat >>confdefs.h <<\_ACEOF
25486 #define HAVE_TYPE_IN_UTMPX 1
25491 { echo "$as_me:$LINENO: result: no" >&5
25492 echo "${ECHO_T}no" >&6; }
25496 # look for field 'ut_tv' in header 'utmp.h'
25497 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25498 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25499 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
25500 echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
25501 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25502 echo $ECHO_N "(cached) $ECHO_C" >&6
25505 cat >conftest.$ac_ext <<_ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h. */
25514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25515 $EGREP "ut_tv" >/dev/null 2>&1; then
25516 eval "$ossh_varname=yes"
25518 eval "$ossh_varname=no"
25524 ossh_result=`eval 'echo $'"$ossh_varname"`
25525 if test -n "`echo $ossh_varname`"; then
25526 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25527 echo "${ECHO_T}$ossh_result" >&6; }
25528 if test "x$ossh_result" = "xyes"; then
25530 cat >>confdefs.h <<\_ACEOF
25531 #define HAVE_TV_IN_UTMP 1
25536 { echo "$as_me:$LINENO: result: no" >&5
25537 echo "${ECHO_T}no" >&6; }
25541 # look for field 'ut_id' in header 'utmp.h'
25542 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25543 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
25544 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
25545 echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
25546 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25550 cat >conftest.$ac_ext <<_ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h. */
25559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25560 $EGREP "ut_id" >/dev/null 2>&1; then
25561 eval "$ossh_varname=yes"
25563 eval "$ossh_varname=no"
25569 ossh_result=`eval 'echo $'"$ossh_varname"`
25570 if test -n "`echo $ossh_varname`"; then
25571 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25572 echo "${ECHO_T}$ossh_result" >&6; }
25573 if test "x$ossh_result" = "xyes"; then
25575 cat >>confdefs.h <<\_ACEOF
25576 #define HAVE_ID_IN_UTMP 1
25581 { echo "$as_me:$LINENO: result: no" >&5
25582 echo "${ECHO_T}no" >&6; }
25586 # look for field 'ut_id' in header 'utmpx.h'
25587 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25588 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
25589 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
25590 echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
25591 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25592 echo $ECHO_N "(cached) $ECHO_C" >&6
25595 cat >conftest.$ac_ext <<_ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h. */
25604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25605 $EGREP "ut_id" >/dev/null 2>&1; then
25606 eval "$ossh_varname=yes"
25608 eval "$ossh_varname=no"
25614 ossh_result=`eval 'echo $'"$ossh_varname"`
25615 if test -n "`echo $ossh_varname`"; then
25616 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25617 echo "${ECHO_T}$ossh_result" >&6; }
25618 if test "x$ossh_result" = "xyes"; then
25620 cat >>confdefs.h <<\_ACEOF
25621 #define HAVE_ID_IN_UTMPX 1
25626 { echo "$as_me:$LINENO: result: no" >&5
25627 echo "${ECHO_T}no" >&6; }
25631 # look for field 'ut_addr' in header 'utmp.h'
25632 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25633 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
25634 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
25635 echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
25636 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25637 echo $ECHO_N "(cached) $ECHO_C" >&6
25640 cat >conftest.$ac_ext <<_ACEOF
25643 cat confdefs.h >>conftest.$ac_ext
25644 cat >>conftest.$ac_ext <<_ACEOF
25645 /* end confdefs.h. */
25649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25650 $EGREP "ut_addr" >/dev/null 2>&1; then
25651 eval "$ossh_varname=yes"
25653 eval "$ossh_varname=no"
25659 ossh_result=`eval 'echo $'"$ossh_varname"`
25660 if test -n "`echo $ossh_varname`"; then
25661 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25662 echo "${ECHO_T}$ossh_result" >&6; }
25663 if test "x$ossh_result" = "xyes"; then
25665 cat >>confdefs.h <<\_ACEOF
25666 #define HAVE_ADDR_IN_UTMP 1
25671 { echo "$as_me:$LINENO: result: no" >&5
25672 echo "${ECHO_T}no" >&6; }
25676 # look for field 'ut_addr' in header 'utmpx.h'
25677 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25678 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
25679 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
25680 echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
25681 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25682 echo $ECHO_N "(cached) $ECHO_C" >&6
25685 cat >conftest.$ac_ext <<_ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h. */
25694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25695 $EGREP "ut_addr" >/dev/null 2>&1; then
25696 eval "$ossh_varname=yes"
25698 eval "$ossh_varname=no"
25704 ossh_result=`eval 'echo $'"$ossh_varname"`
25705 if test -n "`echo $ossh_varname`"; then
25706 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25707 echo "${ECHO_T}$ossh_result" >&6; }
25708 if test "x$ossh_result" = "xyes"; then
25710 cat >>confdefs.h <<\_ACEOF
25711 #define HAVE_ADDR_IN_UTMPX 1
25716 { echo "$as_me:$LINENO: result: no" >&5
25717 echo "${ECHO_T}no" >&6; }
25721 # look for field 'ut_addr_v6' in header 'utmp.h'
25722 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25723 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25724 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
25725 echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
25726 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25727 echo $ECHO_N "(cached) $ECHO_C" >&6
25730 cat >conftest.$ac_ext <<_ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h. */
25739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25740 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25741 eval "$ossh_varname=yes"
25743 eval "$ossh_varname=no"
25749 ossh_result=`eval 'echo $'"$ossh_varname"`
25750 if test -n "`echo $ossh_varname`"; then
25751 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25752 echo "${ECHO_T}$ossh_result" >&6; }
25753 if test "x$ossh_result" = "xyes"; then
25755 cat >>confdefs.h <<\_ACEOF
25756 #define HAVE_ADDR_V6_IN_UTMP 1
25761 { echo "$as_me:$LINENO: result: no" >&5
25762 echo "${ECHO_T}no" >&6; }
25766 # look for field 'ut_addr_v6' in header 'utmpx.h'
25767 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25768 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25769 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
25770 echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
25771 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25772 echo $ECHO_N "(cached) $ECHO_C" >&6
25775 cat >conftest.$ac_ext <<_ACEOF
25778 cat confdefs.h >>conftest.$ac_ext
25779 cat >>conftest.$ac_ext <<_ACEOF
25780 /* end confdefs.h. */
25784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25785 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25786 eval "$ossh_varname=yes"
25788 eval "$ossh_varname=no"
25794 ossh_result=`eval 'echo $'"$ossh_varname"`
25795 if test -n "`echo $ossh_varname`"; then
25796 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25797 echo "${ECHO_T}$ossh_result" >&6; }
25798 if test "x$ossh_result" = "xyes"; then
25800 cat >>confdefs.h <<\_ACEOF
25801 #define HAVE_ADDR_V6_IN_UTMPX 1
25806 { echo "$as_me:$LINENO: result: no" >&5
25807 echo "${ECHO_T}no" >&6; }
25811 # look for field 'ut_exit' in header 'utmp.h'
25812 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25813 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
25814 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
25815 echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
25816 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25817 echo $ECHO_N "(cached) $ECHO_C" >&6
25820 cat >conftest.$ac_ext <<_ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25830 $EGREP "ut_exit" >/dev/null 2>&1; then
25831 eval "$ossh_varname=yes"
25833 eval "$ossh_varname=no"
25839 ossh_result=`eval 'echo $'"$ossh_varname"`
25840 if test -n "`echo $ossh_varname`"; then
25841 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25842 echo "${ECHO_T}$ossh_result" >&6; }
25843 if test "x$ossh_result" = "xyes"; then
25845 cat >>confdefs.h <<\_ACEOF
25846 #define HAVE_EXIT_IN_UTMP 1
25851 { echo "$as_me:$LINENO: result: no" >&5
25852 echo "${ECHO_T}no" >&6; }
25856 # look for field 'ut_time' in header 'utmp.h'
25857 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25858 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25859 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
25860 echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
25861 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25862 echo $ECHO_N "(cached) $ECHO_C" >&6
25865 cat >conftest.$ac_ext <<_ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h. */
25874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25875 $EGREP "ut_time" >/dev/null 2>&1; then
25876 eval "$ossh_varname=yes"
25878 eval "$ossh_varname=no"
25884 ossh_result=`eval 'echo $'"$ossh_varname"`
25885 if test -n "`echo $ossh_varname`"; then
25886 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25887 echo "${ECHO_T}$ossh_result" >&6; }
25888 if test "x$ossh_result" = "xyes"; then
25890 cat >>confdefs.h <<\_ACEOF
25891 #define HAVE_TIME_IN_UTMP 1
25896 { echo "$as_me:$LINENO: result: no" >&5
25897 echo "${ECHO_T}no" >&6; }
25901 # look for field 'ut_time' in header 'utmpx.h'
25902 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25903 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25904 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
25905 echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
25906 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25907 echo $ECHO_N "(cached) $ECHO_C" >&6
25910 cat >conftest.$ac_ext <<_ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h. */
25919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25920 $EGREP "ut_time" >/dev/null 2>&1; then
25921 eval "$ossh_varname=yes"
25923 eval "$ossh_varname=no"
25929 ossh_result=`eval 'echo $'"$ossh_varname"`
25930 if test -n "`echo $ossh_varname`"; then
25931 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25932 echo "${ECHO_T}$ossh_result" >&6; }
25933 if test "x$ossh_result" = "xyes"; then
25935 cat >>confdefs.h <<\_ACEOF
25936 #define HAVE_TIME_IN_UTMPX 1
25941 { echo "$as_me:$LINENO: result: no" >&5
25942 echo "${ECHO_T}no" >&6; }
25946 # look for field 'ut_tv' in header 'utmpx.h'
25947 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25948 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25949 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
25950 echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
25951 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25955 cat >conftest.$ac_ext <<_ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h. */
25964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25965 $EGREP "ut_tv" >/dev/null 2>&1; then
25966 eval "$ossh_varname=yes"
25968 eval "$ossh_varname=no"
25974 ossh_result=`eval 'echo $'"$ossh_varname"`
25975 if test -n "`echo $ossh_varname`"; then
25976 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25977 echo "${ECHO_T}$ossh_result" >&6; }
25978 if test "x$ossh_result" = "xyes"; then
25980 cat >>confdefs.h <<\_ACEOF
25981 #define HAVE_TV_IN_UTMPX 1
25986 { echo "$as_me:$LINENO: result: no" >&5
25987 echo "${ECHO_T}no" >&6; }
25991 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25992 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25993 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25996 cat >conftest.$ac_ext <<_ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h. */
26002 $ac_includes_default
26006 static struct stat ac_aggr;
26007 if (ac_aggr.st_blksize)
26013 rm -f conftest.$ac_objext
26014 if { (ac_try="$ac_compile"
26015 case "(($ac_try" in
26016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26017 *) ac_try_echo=$ac_try;;
26019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26020 (eval "$ac_compile") 2>conftest.er1
26022 grep -v '^ *+' conftest.er1 >conftest.err
26024 cat conftest.err >&5
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } &&
26027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26028 { (case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033 (eval "$ac_try") 2>&5
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); }; } &&
26037 { ac_try='test -s conftest.$ac_objext'
26038 { (case "(($ac_try" in
26039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040 *) ac_try_echo=$ac_try;;
26042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26043 (eval "$ac_try") 2>&5
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 ac_cv_member_struct_stat_st_blksize=yes
26049 echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26052 cat >conftest.$ac_ext <<_ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h. */
26058 $ac_includes_default
26062 static struct stat ac_aggr;
26063 if (sizeof ac_aggr.st_blksize)
26069 rm -f conftest.$ac_objext
26070 if { (ac_try="$ac_compile"
26071 case "(($ac_try" in
26072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073 *) ac_try_echo=$ac_try;;
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076 (eval "$ac_compile") 2>conftest.er1
26078 grep -v '^ *+' conftest.er1 >conftest.err
26080 cat conftest.err >&5
26081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082 (exit $ac_status); } &&
26083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26084 { (case "(($ac_try" in
26085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26086 *) ac_try_echo=$ac_try;;
26088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26089 (eval "$ac_try") 2>&5
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; } &&
26093 { ac_try='test -s conftest.$ac_objext'
26094 { (case "(($ac_try" in
26095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26096 *) ac_try_echo=$ac_try;;
26098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26099 (eval "$ac_try") 2>&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; }; then
26103 ac_cv_member_struct_stat_st_blksize=yes
26105 echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26108 ac_cv_member_struct_stat_st_blksize=no
26111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26116 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
26117 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
26118 if test $ac_cv_member_struct_stat_st_blksize = yes; then
26120 cat >>confdefs.h <<_ACEOF
26121 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26127 { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
26128 echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
26129 if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
26130 echo $ECHO_N "(cached) $ECHO_C" >&6
26132 cat >conftest.$ac_ext <<_ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h. */
26140 #if HAVE_SYS_TYPES_H
26141 # include <sys/types.h>
26143 #include <netinet/in.h>
26144 #include <arpa/nameser.h>
26145 #include <resolv.h>
26151 static struct __res_state ac_aggr;
26152 if (ac_aggr.retrans)
26158 rm -f conftest.$ac_objext
26159 if { (ac_try="$ac_compile"
26160 case "(($ac_try" in
26161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162 *) ac_try_echo=$ac_try;;
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165 (eval "$ac_compile") 2>conftest.er1
26167 grep -v '^ *+' conftest.er1 >conftest.err
26169 cat conftest.err >&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } &&
26172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26173 { (case "(($ac_try" in
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175 *) ac_try_echo=$ac_try;;
26177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26178 (eval "$ac_try") 2>&5
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; } &&
26182 { ac_try='test -s conftest.$ac_objext'
26183 { (case "(($ac_try" in
26184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26188 (eval "$ac_try") 2>&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; }; then
26192 ac_cv_member_struct___res_state_retrans=yes
26194 echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26197 cat >conftest.$ac_ext <<_ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h. */
26205 #if HAVE_SYS_TYPES_H
26206 # include <sys/types.h>
26208 #include <netinet/in.h>
26209 #include <arpa/nameser.h>
26210 #include <resolv.h>
26216 static struct __res_state ac_aggr;
26217 if (sizeof ac_aggr.retrans)
26223 rm -f conftest.$ac_objext
26224 if { (ac_try="$ac_compile"
26225 case "(($ac_try" in
26226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26227 *) ac_try_echo=$ac_try;;
26229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26230 (eval "$ac_compile") 2>conftest.er1
26232 grep -v '^ *+' conftest.er1 >conftest.err
26234 cat conftest.err >&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } &&
26237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26238 { (case "(($ac_try" in
26239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26240 *) ac_try_echo=$ac_try;;
26242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26243 (eval "$ac_try") 2>&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; } &&
26247 { ac_try='test -s conftest.$ac_objext'
26248 { (case "(($ac_try" in
26249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250 *) ac_try_echo=$ac_try;;
26252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26253 (eval "$ac_try") 2>&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); }; }; then
26257 ac_cv_member_struct___res_state_retrans=yes
26259 echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26262 ac_cv_member_struct___res_state_retrans=no
26265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26270 { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
26271 echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
26272 if test $ac_cv_member_struct___res_state_retrans = yes; then
26276 cat >>confdefs.h <<\_ACEOF
26277 #define __res_state state
26283 { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
26284 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
26285 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
26286 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 cat >conftest.$ac_ext <<_ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26296 #include <sys/types.h>
26297 #include <sys/socket.h>
26302 struct sockaddr_storage s; s.ss_family = 1;
26307 rm -f conftest.$ac_objext
26308 if { (ac_try="$ac_compile"
26309 case "(($ac_try" in
26310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311 *) ac_try_echo=$ac_try;;
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314 (eval "$ac_compile") 2>conftest.er1
26316 grep -v '^ *+' conftest.er1 >conftest.err
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } &&
26321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26322 { (case "(($ac_try" in
26323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26324 *) ac_try_echo=$ac_try;;
26326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26327 (eval "$ac_try") 2>&5
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; } &&
26331 { ac_try='test -s conftest.$ac_objext'
26332 { (case "(($ac_try" in
26333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334 *) ac_try_echo=$ac_try;;
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337 (eval "$ac_try") 2>&5
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); }; }; then
26341 ac_cv_have_ss_family_in_struct_ss="yes"
26343 echo "$as_me: failed program was:" >&5
26344 sed 's/^/| /' conftest.$ac_ext >&5
26346 ac_cv_have_ss_family_in_struct_ss="no"
26349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26352 { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
26353 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
26354 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
26356 cat >>confdefs.h <<\_ACEOF
26357 #define HAVE_SS_FAMILY_IN_SS 1
26362 { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
26363 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
26364 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
26365 echo $ECHO_N "(cached) $ECHO_C" >&6
26368 cat >conftest.$ac_ext <<_ACEOF
26371 cat confdefs.h >>conftest.$ac_ext
26372 cat >>conftest.$ac_ext <<_ACEOF
26373 /* end confdefs.h. */
26375 #include <sys/types.h>
26376 #include <sys/socket.h>
26381 struct sockaddr_storage s; s.__ss_family = 1;
26386 rm -f conftest.$ac_objext
26387 if { (ac_try="$ac_compile"
26388 case "(($ac_try" in
26389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390 *) ac_try_echo=$ac_try;;
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393 (eval "$ac_compile") 2>conftest.er1
26395 grep -v '^ *+' conftest.er1 >conftest.err
26397 cat conftest.err >&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); } &&
26400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26401 { (case "(($ac_try" in
26402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26403 *) ac_try_echo=$ac_try;;
26405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26406 (eval "$ac_try") 2>&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; } &&
26410 { ac_try='test -s conftest.$ac_objext'
26411 { (case "(($ac_try" in
26412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413 *) ac_try_echo=$ac_try;;
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416 (eval "$ac_try") 2>&5
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); }; }; then
26420 ac_cv_have___ss_family_in_struct_ss="yes"
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26425 ac_cv_have___ss_family_in_struct_ss="no"
26429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432 { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
26433 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
26434 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
26436 cat >>confdefs.h <<\_ACEOF
26437 #define HAVE___SS_FAMILY_IN_SS 1
26442 { echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
26443 echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
26444 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
26445 echo $ECHO_N "(cached) $ECHO_C" >&6
26448 cat >conftest.$ac_ext <<_ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h. */
26460 struct passwd p; p.pw_class = 0;
26465 rm -f conftest.$ac_objext
26466 if { (ac_try="$ac_compile"
26467 case "(($ac_try" in
26468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469 *) ac_try_echo=$ac_try;;
26471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26472 (eval "$ac_compile") 2>conftest.er1
26474 grep -v '^ *+' conftest.er1 >conftest.err
26476 cat conftest.err >&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); } &&
26479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26480 { (case "(($ac_try" in
26481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26482 *) ac_try_echo=$ac_try;;
26484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26485 (eval "$ac_try") 2>&5
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); }; } &&
26489 { ac_try='test -s conftest.$ac_objext'
26490 { (case "(($ac_try" in
26491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492 *) ac_try_echo=$ac_try;;
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495 (eval "$ac_try") 2>&5
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; }; then
26499 ac_cv_have_pw_class_in_struct_passwd="yes"
26501 echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26504 ac_cv_have_pw_class_in_struct_passwd="no"
26508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26511 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
26512 echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
26513 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
26515 cat >>confdefs.h <<\_ACEOF
26516 #define HAVE_PW_CLASS_IN_PASSWD 1
26521 { echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
26522 echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
26523 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
26524 echo $ECHO_N "(cached) $ECHO_C" >&6
26527 cat >conftest.$ac_ext <<_ACEOF
26530 cat confdefs.h >>conftest.$ac_ext
26531 cat >>conftest.$ac_ext <<_ACEOF
26532 /* end confdefs.h. */
26539 struct passwd p; p.pw_expire = 0;
26544 rm -f conftest.$ac_objext
26545 if { (ac_try="$ac_compile"
26546 case "(($ac_try" in
26547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548 *) ac_try_echo=$ac_try;;
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551 (eval "$ac_compile") 2>conftest.er1
26553 grep -v '^ *+' conftest.er1 >conftest.err
26555 cat conftest.err >&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); } &&
26558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26559 { (case "(($ac_try" in
26560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26561 *) ac_try_echo=$ac_try;;
26563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26564 (eval "$ac_try") 2>&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; } &&
26568 { ac_try='test -s conftest.$ac_objext'
26569 { (case "(($ac_try" in
26570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26571 *) ac_try_echo=$ac_try;;
26573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26574 (eval "$ac_try") 2>&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; }; then
26578 ac_cv_have_pw_expire_in_struct_passwd="yes"
26580 echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26583 ac_cv_have_pw_expire_in_struct_passwd="no"
26587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26590 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
26591 echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
26592 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
26594 cat >>confdefs.h <<\_ACEOF
26595 #define HAVE_PW_EXPIRE_IN_PASSWD 1
26600 { echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
26601 echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
26602 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
26603 echo $ECHO_N "(cached) $ECHO_C" >&6
26606 cat >conftest.$ac_ext <<_ACEOF
26609 cat confdefs.h >>conftest.$ac_ext
26610 cat >>conftest.$ac_ext <<_ACEOF
26611 /* end confdefs.h. */
26618 struct passwd p; p.pw_change = 0;
26623 rm -f conftest.$ac_objext
26624 if { (ac_try="$ac_compile"
26625 case "(($ac_try" in
26626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26627 *) ac_try_echo=$ac_try;;
26629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26630 (eval "$ac_compile") 2>conftest.er1
26632 grep -v '^ *+' conftest.er1 >conftest.err
26634 cat conftest.err >&5
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); } &&
26637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26638 { (case "(($ac_try" in
26639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640 *) ac_try_echo=$ac_try;;
26642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643 (eval "$ac_try") 2>&5
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); }; } &&
26647 { ac_try='test -s conftest.$ac_objext'
26648 { (case "(($ac_try" in
26649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650 *) ac_try_echo=$ac_try;;
26652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26653 (eval "$ac_try") 2>&5
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); }; }; then
26657 ac_cv_have_pw_change_in_struct_passwd="yes"
26659 echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26662 ac_cv_have_pw_change_in_struct_passwd="no"
26666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26669 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
26670 echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
26671 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
26673 cat >>confdefs.h <<\_ACEOF
26674 #define HAVE_PW_CHANGE_IN_PASSWD 1
26679 { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
26680 echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
26681 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26685 cat >conftest.$ac_ext <<_ACEOF
26687 #include <sys/types.h>
26688 #include <sys/socket.h>
26689 #include <sys/uio.h>
26691 #ifdef msg_accrights
26692 #error "msg_accrights is a macro"
26696 m.msg_accrights = 0;
26701 rm -f conftest.$ac_objext
26702 if { (ac_try="$ac_compile"
26703 case "(($ac_try" in
26704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708 (eval "$ac_compile") 2>conftest.er1
26710 grep -v '^ *+' conftest.er1 >conftest.err
26712 cat conftest.err >&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } &&
26715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26716 { (case "(($ac_try" in
26717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718 *) ac_try_echo=$ac_try;;
26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721 (eval "$ac_try") 2>&5
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); }; } &&
26725 { ac_try='test -s conftest.$ac_objext'
26726 { (case "(($ac_try" in
26727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728 *) ac_try_echo=$ac_try;;
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731 (eval "$ac_try") 2>&5
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; }; then
26735 ac_cv_have_accrights_in_msghdr="yes"
26737 echo "$as_me: failed program was:" >&5
26738 sed 's/^/| /' conftest.$ac_ext >&5
26740 ac_cv_have_accrights_in_msghdr="no"
26744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26747 { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
26748 echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
26749 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
26751 cat >>confdefs.h <<\_ACEOF
26752 #define HAVE_ACCRIGHTS_IN_MSGHDR 1
26757 { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
26758 echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
26759 if test "${ac_cv_have_control_in_msghdr+set}" = set; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
26763 cat >conftest.$ac_ext <<_ACEOF
26765 #include <sys/types.h>
26766 #include <sys/socket.h>
26767 #include <sys/uio.h>
26770 #error "msg_control is a macro"
26779 rm -f conftest.$ac_objext
26780 if { (ac_try="$ac_compile"
26781 case "(($ac_try" in
26782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26783 *) ac_try_echo=$ac_try;;
26785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26786 (eval "$ac_compile") 2>conftest.er1
26788 grep -v '^ *+' conftest.er1 >conftest.err
26790 cat conftest.err >&5
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } &&
26793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26794 { (case "(($ac_try" in
26795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796 *) ac_try_echo=$ac_try;;
26798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799 (eval "$ac_try") 2>&5
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); }; } &&
26803 { ac_try='test -s conftest.$ac_objext'
26804 { (case "(($ac_try" in
26805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806 *) ac_try_echo=$ac_try;;
26808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26809 (eval "$ac_try") 2>&5
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); }; }; then
26813 ac_cv_have_control_in_msghdr="yes"
26815 echo "$as_me: failed program was:" >&5
26816 sed 's/^/| /' conftest.$ac_ext >&5
26818 ac_cv_have_control_in_msghdr="no"
26822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26825 { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
26826 echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
26827 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
26829 cat >>confdefs.h <<\_ACEOF
26830 #define HAVE_CONTROL_IN_MSGHDR 1
26835 { echo "$as_me:$LINENO: checking if libc defines __progname" >&5
26836 echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
26837 if test "${ac_cv_libc_defines___progname+set}" = set; then
26838 echo $ECHO_N "(cached) $ECHO_C" >&6
26841 cat >conftest.$ac_ext <<_ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h. */
26851 extern char *__progname; printf("%s", __progname);
26856 rm -f conftest.$ac_objext conftest$ac_exeext
26857 if { (ac_try="$ac_link"
26858 case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_link") 2>conftest.er1
26865 grep -v '^ *+' conftest.er1 >conftest.err
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } &&
26870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26871 { (case "(($ac_try" in
26872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26873 *) ac_try_echo=$ac_try;;
26875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26876 (eval "$ac_try") 2>&5
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; } &&
26880 { ac_try='test -s conftest$ac_exeext'
26881 { (case "(($ac_try" in
26882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26883 *) ac_try_echo=$ac_try;;
26885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26886 (eval "$ac_try") 2>&5
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); }; }; then
26890 ac_cv_libc_defines___progname="yes"
26892 echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26895 ac_cv_libc_defines___progname="no"
26899 rm -f core conftest.err conftest.$ac_objext \
26900 conftest$ac_exeext conftest.$ac_ext
26903 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
26904 echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
26905 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
26907 cat >>confdefs.h <<\_ACEOF
26908 #define HAVE___PROGNAME 1
26913 { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
26914 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
26915 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26919 cat >conftest.$ac_ext <<_ACEOF
26922 cat confdefs.h >>conftest.$ac_ext
26923 cat >>conftest.$ac_ext <<_ACEOF
26924 /* end confdefs.h. */
26931 printf("%s", __FUNCTION__);
26936 rm -f conftest.$ac_objext conftest$ac_exeext
26937 if { (ac_try="$ac_link"
26938 case "(($ac_try" in
26939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26940 *) ac_try_echo=$ac_try;;
26942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26943 (eval "$ac_link") 2>conftest.er1
26945 grep -v '^ *+' conftest.er1 >conftest.err
26947 cat conftest.err >&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); } &&
26950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26951 { (case "(($ac_try" in
26952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953 *) ac_try_echo=$ac_try;;
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956 (eval "$ac_try") 2>&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; } &&
26960 { ac_try='test -s conftest$ac_exeext'
26961 { (case "(($ac_try" in
26962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26963 *) ac_try_echo=$ac_try;;
26965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26966 (eval "$ac_try") 2>&5
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); }; }; then
26970 ac_cv_cc_implements___FUNCTION__="yes"
26972 echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26975 ac_cv_cc_implements___FUNCTION__="no"
26979 rm -f core conftest.err conftest.$ac_objext \
26980 conftest$ac_exeext conftest.$ac_ext
26983 { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
26984 echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
26985 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
26987 cat >>confdefs.h <<\_ACEOF
26988 #define HAVE___FUNCTION__ 1
26993 { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
26994 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
26995 if test "${ac_cv_cc_implements___func__+set}" = set; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26999 cat >conftest.$ac_ext <<_ACEOF
27002 cat confdefs.h >>conftest.$ac_ext
27003 cat >>conftest.$ac_ext <<_ACEOF
27004 /* end confdefs.h. */
27011 printf("%s", __func__);
27016 rm -f conftest.$ac_objext conftest$ac_exeext
27017 if { (ac_try="$ac_link"
27018 case "(($ac_try" in
27019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020 *) ac_try_echo=$ac_try;;
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023 (eval "$ac_link") 2>conftest.er1
27025 grep -v '^ *+' conftest.er1 >conftest.err
27027 cat conftest.err >&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } &&
27030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27031 { (case "(($ac_try" in
27032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036 (eval "$ac_try") 2>&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; } &&
27040 { ac_try='test -s conftest$ac_exeext'
27041 { (case "(($ac_try" in
27042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043 *) ac_try_echo=$ac_try;;
27045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27046 (eval "$ac_try") 2>&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; }; then
27050 ac_cv_cc_implements___func__="yes"
27052 echo "$as_me: failed program was:" >&5
27053 sed 's/^/| /' conftest.$ac_ext >&5
27055 ac_cv_cc_implements___func__="no"
27059 rm -f core conftest.err conftest.$ac_objext \
27060 conftest$ac_exeext conftest.$ac_ext
27063 { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
27064 echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
27065 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
27067 cat >>confdefs.h <<\_ACEOF
27068 #define HAVE___func__ 1
27073 { echo "$as_me:$LINENO: checking whether va_copy exists" >&5
27074 echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
27075 if test "${ac_cv_have_va_copy+set}" = set; then
27076 echo $ECHO_N "(cached) $ECHO_C" >&6
27079 cat >conftest.$ac_ext <<_ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27085 #include <stdarg.h>
27095 rm -f conftest.$ac_objext conftest$ac_exeext
27096 if { (ac_try="$ac_link"
27097 case "(($ac_try" in
27098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099 *) ac_try_echo=$ac_try;;
27101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102 (eval "$ac_link") 2>conftest.er1
27104 grep -v '^ *+' conftest.er1 >conftest.err
27106 cat conftest.err >&5
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); } &&
27109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27110 { (case "(($ac_try" in
27111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112 *) ac_try_echo=$ac_try;;
27114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27115 (eval "$ac_try") 2>&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); }; } &&
27119 { ac_try='test -s conftest$ac_exeext'
27120 { (case "(($ac_try" in
27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122 *) ac_try_echo=$ac_try;;
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125 (eval "$ac_try") 2>&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); }; }; then
27129 ac_cv_have_va_copy="yes"
27131 echo "$as_me: failed program was:" >&5
27132 sed 's/^/| /' conftest.$ac_ext >&5
27134 ac_cv_have_va_copy="no"
27138 rm -f core conftest.err conftest.$ac_objext \
27139 conftest$ac_exeext conftest.$ac_ext
27142 { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
27143 echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
27144 if test "x$ac_cv_have_va_copy" = "xyes" ; then
27146 cat >>confdefs.h <<\_ACEOF
27147 #define HAVE_VA_COPY 1
27152 { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
27153 echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
27154 if test "${ac_cv_have___va_copy+set}" = set; then
27155 echo $ECHO_N "(cached) $ECHO_C" >&6
27158 cat >conftest.$ac_ext <<_ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h. */
27164 #include <stdarg.h>
27174 rm -f conftest.$ac_objext conftest$ac_exeext
27175 if { (ac_try="$ac_link"
27176 case "(($ac_try" in
27177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27178 *) ac_try_echo=$ac_try;;
27180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27181 (eval "$ac_link") 2>conftest.er1
27183 grep -v '^ *+' conftest.er1 >conftest.err
27185 cat conftest.err >&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } &&
27188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27189 { (case "(($ac_try" in
27190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191 *) ac_try_echo=$ac_try;;
27193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194 (eval "$ac_try") 2>&5
27196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197 (exit $ac_status); }; } &&
27198 { ac_try='test -s conftest$ac_exeext'
27199 { (case "(($ac_try" in
27200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201 *) ac_try_echo=$ac_try;;
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204 (eval "$ac_try") 2>&5
27206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); }; }; then
27208 ac_cv_have___va_copy="yes"
27210 echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27213 ac_cv_have___va_copy="no"
27217 rm -f core conftest.err conftest.$ac_objext \
27218 conftest$ac_exeext conftest.$ac_ext
27221 { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
27222 echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
27223 if test "x$ac_cv_have___va_copy" = "xyes" ; then
27225 cat >>confdefs.h <<\_ACEOF
27226 #define HAVE___VA_COPY 1
27231 { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
27232 echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
27233 if test "${ac_cv_have_getopt_optreset+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27237 cat >conftest.$ac_ext <<_ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h. */
27244 #include <getopt.h>
27249 extern int optreset; optreset = 0;
27254 rm -f conftest.$ac_objext conftest$ac_exeext
27255 if { (ac_try="$ac_link"
27256 case "(($ac_try" in
27257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27258 *) ac_try_echo=$ac_try;;
27260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27261 (eval "$ac_link") 2>conftest.er1
27263 grep -v '^ *+' conftest.er1 >conftest.err
27265 cat conftest.err >&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); } &&
27268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27269 { (case "(($ac_try" in
27270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271 *) ac_try_echo=$ac_try;;
27273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274 (eval "$ac_try") 2>&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); }; } &&
27278 { ac_try='test -s conftest$ac_exeext'
27279 { (case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_try") 2>&5
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; }; then
27288 ac_cv_have_getopt_optreset="yes"
27290 echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27293 ac_cv_have_getopt_optreset="no"
27297 rm -f core conftest.err conftest.$ac_objext \
27298 conftest$ac_exeext conftest.$ac_ext
27301 { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
27302 echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
27303 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
27305 cat >>confdefs.h <<\_ACEOF
27306 #define HAVE_GETOPT_OPTRESET 1
27311 { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
27312 echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
27313 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
27314 echo $ECHO_N "(cached) $ECHO_C" >&6
27317 cat >conftest.$ac_ext <<_ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h. */
27327 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
27332 rm -f conftest.$ac_objext conftest$ac_exeext
27333 if { (ac_try="$ac_link"
27334 case "(($ac_try" in
27335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336 *) ac_try_echo=$ac_try;;
27338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339 (eval "$ac_link") 2>conftest.er1
27341 grep -v '^ *+' conftest.er1 >conftest.err
27343 cat conftest.err >&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } &&
27346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27347 { (case "(($ac_try" in
27348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349 *) ac_try_echo=$ac_try;;
27351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352 (eval "$ac_try") 2>&5
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); }; } &&
27356 { ac_try='test -s conftest$ac_exeext'
27357 { (case "(($ac_try" in
27358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359 *) ac_try_echo=$ac_try;;
27361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362 (eval "$ac_try") 2>&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; }; then
27366 ac_cv_libc_defines_sys_errlist="yes"
27368 echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27371 ac_cv_libc_defines_sys_errlist="no"
27375 rm -f core conftest.err conftest.$ac_objext \
27376 conftest$ac_exeext conftest.$ac_ext
27379 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
27380 echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
27381 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
27383 cat >>confdefs.h <<\_ACEOF
27384 #define HAVE_SYS_ERRLIST 1
27390 { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
27391 echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
27392 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
27393 echo $ECHO_N "(cached) $ECHO_C" >&6
27396 cat >conftest.$ac_ext <<_ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h. */
27406 extern int sys_nerr; printf("%i", sys_nerr);
27411 rm -f conftest.$ac_objext conftest$ac_exeext
27412 if { (ac_try="$ac_link"
27413 case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_link") 2>conftest.er1
27420 grep -v '^ *+' conftest.er1 >conftest.err
27422 cat conftest.err >&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); } &&
27425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27426 { (case "(($ac_try" in
27427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428 *) ac_try_echo=$ac_try;;
27430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431 (eval "$ac_try") 2>&5
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); }; } &&
27435 { ac_try='test -s conftest$ac_exeext'
27436 { (case "(($ac_try" in
27437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438 *) ac_try_echo=$ac_try;;
27440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441 (eval "$ac_try") 2>&5
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); }; }; then
27445 ac_cv_libc_defines_sys_nerr="yes"
27447 echo "$as_me: failed program was:" >&5
27448 sed 's/^/| /' conftest.$ac_ext >&5
27450 ac_cv_libc_defines_sys_nerr="no"
27454 rm -f core conftest.err conftest.$ac_objext \
27455 conftest$ac_exeext conftest.$ac_ext
27458 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
27459 echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
27460 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
27462 cat >>confdefs.h <<\_ACEOF
27463 #define HAVE_SYS_NERR 1
27469 # Check whether user wants sectok support
27471 # Check whether --with-sectok was given.
27472 if test "${with_sectok+set}" = set; then
27473 withval=$with_sectok;
27474 if test "x$withval" != "xno" ; then
27475 if test "x$withval" != "xyes" ; then
27476 CPPFLAGS="$CPPFLAGS -I${withval}"
27477 LDFLAGS="$LDFLAGS -L${withval}"
27478 if test ! -z "$need_dash_r" ; then
27479 LDFLAGS="$LDFLAGS -R${withval}"
27481 if test ! -z "$blibpath" ; then
27482 blibpath="$blibpath:${withval}"
27486 for ac_header in sectok.h
27488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
27495 ac_res=`eval echo '${'$as_ac_Header'}'`
27496 { echo "$as_me:$LINENO: result: $ac_res" >&5
27497 echo "${ECHO_T}$ac_res" >&6; }
27499 # Is the header compilable?
27500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27502 cat >conftest.$ac_ext <<_ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h. */
27508 $ac_includes_default
27509 #include <$ac_header>
27511 rm -f conftest.$ac_objext
27512 if { (ac_try="$ac_compile"
27513 case "(($ac_try" in
27514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518 (eval "$ac_compile") 2>conftest.er1
27520 grep -v '^ *+' conftest.er1 >conftest.err
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } &&
27525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27526 { (case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_try") 2>&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; } &&
27535 { ac_try='test -s conftest.$ac_objext'
27536 { (case "(($ac_try" in
27537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538 *) ac_try_echo=$ac_try;;
27540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27541 (eval "$ac_try") 2>&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; }; then
27545 ac_header_compiler=yes
27547 echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27550 ac_header_compiler=no
27553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27555 echo "${ECHO_T}$ac_header_compiler" >&6; }
27557 # Is the header present?
27558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27560 cat >conftest.$ac_ext <<_ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h. */
27566 #include <$ac_header>
27568 if { (ac_try="$ac_cpp conftest.$ac_ext"
27569 case "(($ac_try" in
27570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571 *) ac_try_echo=$ac_try;;
27573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27576 grep -v '^ *+' conftest.er1 >conftest.err
27578 cat conftest.err >&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); } >/dev/null; then
27581 if test -s conftest.err; then
27582 ac_cpp_err=$ac_c_preproc_warn_flag
27583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27590 if test -z "$ac_cpp_err"; then
27591 ac_header_preproc=yes
27593 echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27596 ac_header_preproc=no
27599 rm -f conftest.err conftest.$ac_ext
27600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27601 echo "${ECHO_T}$ac_header_preproc" >&6; }
27603 # So? What about this header?
27604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27610 ac_header_preproc=yes
27613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27626 ## ------------------------------------------- ##
27627 ## Report this to openssh-unix-dev@mindrot.org ##
27628 ## ------------------------------------------- ##
27630 ) | sed "s/^/$as_me: WARNING: /" >&2
27633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27636 echo $ECHO_N "(cached) $ECHO_C" >&6
27638 eval "$as_ac_Header=\$ac_header_preproc"
27640 ac_res=`eval echo '${'$as_ac_Header'}'`
27641 { echo "$as_me:$LINENO: result: $ac_res" >&5
27642 echo "${ECHO_T}$ac_res" >&6; }
27645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27646 cat >>confdefs.h <<_ACEOF
27647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27654 if test "$ac_cv_header_sectok_h" != yes; then
27655 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
27656 echo "$as_me: error: Can't find sectok.h" >&2;}
27657 { (exit 1); exit 1; }; }
27660 { echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
27661 echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; }
27662 if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
27663 echo $ECHO_N "(cached) $ECHO_C" >&6
27665 ac_check_lib_save_LIBS=$LIBS
27666 LIBS="-lsectok $LIBS"
27667 cat >conftest.$ac_ext <<_ACEOF
27670 cat confdefs.h >>conftest.$ac_ext
27671 cat >>conftest.$ac_ext <<_ACEOF
27672 /* end confdefs.h. */
27674 /* Override any GCC internal prototype to avoid an error.
27675 Use char because int might match the return type of a GCC
27676 builtin and then its argument prototype would still apply. */
27680 char sectok_open ();
27684 return sectok_open ();
27689 rm -f conftest.$ac_objext conftest$ac_exeext
27690 if { (ac_try="$ac_link"
27691 case "(($ac_try" in
27692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693 *) ac_try_echo=$ac_try;;
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696 (eval "$ac_link") 2>conftest.er1
27698 grep -v '^ *+' conftest.er1 >conftest.err
27700 cat conftest.err >&5
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); } &&
27703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27704 { (case "(($ac_try" in
27705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706 *) ac_try_echo=$ac_try;;
27708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709 (eval "$ac_try") 2>&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; } &&
27713 { ac_try='test -s conftest$ac_exeext'
27714 { (case "(($ac_try" in
27715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27716 *) ac_try_echo=$ac_try;;
27718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27719 (eval "$ac_try") 2>&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; }; then
27723 ac_cv_lib_sectok_sectok_open=yes
27725 echo "$as_me: failed program was:" >&5
27726 sed 's/^/| /' conftest.$ac_ext >&5
27728 ac_cv_lib_sectok_sectok_open=no
27731 rm -f core conftest.err conftest.$ac_objext \
27732 conftest$ac_exeext conftest.$ac_ext
27733 LIBS=$ac_check_lib_save_LIBS
27735 { echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
27736 echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; }
27737 if test $ac_cv_lib_sectok_sectok_open = yes; then
27738 cat >>confdefs.h <<_ACEOF
27739 #define HAVE_LIBSECTOK 1
27742 LIBS="-lsectok $LIBS"
27746 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
27747 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
27748 echo "$as_me: error: Can't find libsectok" >&2;}
27749 { (exit 1); exit 1; }; }
27752 cat >>confdefs.h <<\_ACEOF
27753 #define SMARTCARD 1
27757 cat >>confdefs.h <<\_ACEOF
27758 #define USE_SECTOK 1
27761 SCARD_MSG="yes, using sectok"
27768 # Check whether user wants OpenSC support
27771 # Check whether --with-opensc was given.
27772 if test "${with_opensc+set}" = set; then
27773 withval=$with_opensc;
27774 if test "x$withval" != "xno" ; then
27775 if test "x$withval" != "xyes" ; then
27776 OPENSC_CONFIG=$withval/bin/opensc-config
27778 # Extract the first word of "opensc-config", so it can be a program name with args.
27779 set dummy opensc-config; ac_word=$2
27780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27782 if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
27783 echo $ECHO_N "(cached) $ECHO_C" >&6
27785 case $OPENSC_CONFIG in
27787 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
27790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27791 for as_dir in $PATH
27794 test -z "$as_dir" && as_dir=.
27795 for ac_exec_ext in '' $ac_executable_extensions; do
27796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27797 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27805 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
27809 OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
27810 if test -n "$OPENSC_CONFIG"; then
27811 { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
27812 echo "${ECHO_T}$OPENSC_CONFIG" >&6; }
27814 { echo "$as_me:$LINENO: result: no" >&5
27815 echo "${ECHO_T}no" >&6; }
27820 if test "$OPENSC_CONFIG" != "no"; then
27821 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
27822 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
27823 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
27824 LIBS="$LIBS $LIBOPENSC_LIBS"
27825 cat >>confdefs.h <<\_ACEOF
27826 #define SMARTCARD 1
27830 cat >>confdefs.h <<\_ACEOF
27831 #define USE_OPENSC 1
27834 SCARD_MSG="yes, using OpenSC"
27842 # Check libraries needed by DNS fingerprint support
27843 { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
27844 echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
27845 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27846 echo $ECHO_N "(cached) $ECHO_C" >&6
27848 ac_func_search_save_LIBS=$LIBS
27849 cat >conftest.$ac_ext <<_ACEOF
27852 cat confdefs.h >>conftest.$ac_ext
27853 cat >>conftest.$ac_ext <<_ACEOF
27854 /* end confdefs.h. */
27856 /* Override any GCC internal prototype to avoid an error.
27857 Use char because int might match the return type of a GCC
27858 builtin and then its argument prototype would still apply. */
27862 char getrrsetbyname ();
27866 return getrrsetbyname ();
27871 for ac_lib in '' resolv; do
27872 if test -z "$ac_lib"; then
27873 ac_res="none required"
27876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27878 rm -f conftest.$ac_objext conftest$ac_exeext
27879 if { (ac_try="$ac_link"
27880 case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_link") 2>conftest.er1
27887 grep -v '^ *+' conftest.er1 >conftest.err
27889 cat conftest.err >&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); } &&
27892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27893 { (case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_try") 2>&5
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; } &&
27902 { ac_try='test -s conftest$ac_exeext'
27903 { (case "(($ac_try" in
27904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905 *) ac_try_echo=$ac_try;;
27907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908 (eval "$ac_try") 2>&5
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; }; then
27912 ac_cv_search_getrrsetbyname=$ac_res
27914 echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27920 rm -f core conftest.err conftest.$ac_objext \
27922 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27926 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27929 ac_cv_search_getrrsetbyname=no
27931 rm conftest.$ac_ext
27932 LIBS=$ac_func_search_save_LIBS
27934 { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
27935 echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
27936 ac_res=$ac_cv_search_getrrsetbyname
27937 if test "$ac_res" != no; then
27938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27940 cat >>confdefs.h <<\_ACEOF
27941 #define HAVE_GETRRSETBYNAME 1
27946 # Needed by our getrrsetbyname()
27947 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
27948 echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
27949 if test "${ac_cv_search_res_query+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27952 ac_func_search_save_LIBS=$LIBS
27953 cat >conftest.$ac_ext <<_ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h. */
27960 /* Override any GCC internal prototype to avoid an error.
27961 Use char because int might match the return type of a GCC
27962 builtin and then its argument prototype would still apply. */
27970 return res_query ();
27975 for ac_lib in '' resolv; do
27976 if test -z "$ac_lib"; then
27977 ac_res="none required"
27980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27982 rm -f conftest.$ac_objext conftest$ac_exeext
27983 if { (ac_try="$ac_link"
27984 case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_link") 2>conftest.er1
27991 grep -v '^ *+' conftest.er1 >conftest.err
27993 cat conftest.err >&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } &&
27996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27997 { (case "(($ac_try" in
27998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27999 *) ac_try_echo=$ac_try;;
28001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28002 (eval "$ac_try") 2>&5
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); }; } &&
28006 { ac_try='test -s conftest$ac_exeext'
28007 { (case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_try") 2>&5
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; }; then
28016 ac_cv_search_res_query=$ac_res
28018 echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28024 rm -f core conftest.err conftest.$ac_objext \
28026 if test "${ac_cv_search_res_query+set}" = set; then
28030 if test "${ac_cv_search_res_query+set}" = set; then
28033 ac_cv_search_res_query=no
28035 rm conftest.$ac_ext
28036 LIBS=$ac_func_search_save_LIBS
28038 { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
28039 echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
28040 ac_res=$ac_cv_search_res_query
28041 if test "$ac_res" != no; then
28042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28046 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
28047 echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
28048 if test "${ac_cv_search_dn_expand+set}" = set; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28051 ac_func_search_save_LIBS=$LIBS
28052 cat >conftest.$ac_ext <<_ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h. */
28059 /* Override any GCC internal prototype to avoid an error.
28060 Use char because int might match the return type of a GCC
28061 builtin and then its argument prototype would still apply. */
28069 return dn_expand ();
28074 for ac_lib in '' resolv; do
28075 if test -z "$ac_lib"; then
28076 ac_res="none required"
28079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28081 rm -f conftest.$ac_objext conftest$ac_exeext
28082 if { (ac_try="$ac_link"
28083 case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_link") 2>conftest.er1
28090 grep -v '^ *+' conftest.er1 >conftest.err
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); } &&
28095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28096 { (case "(($ac_try" in
28097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28098 *) ac_try_echo=$ac_try;;
28100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28101 (eval "$ac_try") 2>&5
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); }; } &&
28105 { ac_try='test -s conftest$ac_exeext'
28106 { (case "(($ac_try" in
28107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108 *) ac_try_echo=$ac_try;;
28110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111 (eval "$ac_try") 2>&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); }; }; then
28115 ac_cv_search_dn_expand=$ac_res
28117 echo "$as_me: failed program was:" >&5
28118 sed 's/^/| /' conftest.$ac_ext >&5
28123 rm -f core conftest.err conftest.$ac_objext \
28125 if test "${ac_cv_search_dn_expand+set}" = set; then
28129 if test "${ac_cv_search_dn_expand+set}" = set; then
28132 ac_cv_search_dn_expand=no
28134 rm conftest.$ac_ext
28135 LIBS=$ac_func_search_save_LIBS
28137 { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
28138 echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
28139 ac_res=$ac_cv_search_dn_expand
28140 if test "$ac_res" != no; then
28141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28145 { echo "$as_me:$LINENO: checking if res_query will link" >&5
28146 echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
28147 cat >conftest.$ac_ext <<_ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h. */
28154 /* Override any GCC internal prototype to avoid an error.
28155 Use char because int might match the return type of a GCC
28156 builtin and then its argument prototype would still apply. */
28164 return res_query ();
28169 rm -f conftest.$ac_objext conftest$ac_exeext
28170 if { (ac_try="$ac_link"
28171 case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_link") 2>conftest.er1
28178 grep -v '^ *+' conftest.er1 >conftest.err
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } &&
28183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } &&
28193 { ac_try='test -s conftest$ac_exeext'
28194 { (case "(($ac_try" in
28195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_try") 2>&5
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
28203 { echo "$as_me:$LINENO: result: yes" >&5
28204 echo "${ECHO_T}yes" >&6; }
28206 echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28209 { echo "$as_me:$LINENO: result: no" >&5
28210 echo "${ECHO_T}no" >&6; }
28212 LIBS="$LIBS -lresolv"
28213 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
28214 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
28215 cat >conftest.$ac_ext <<_ACEOF
28217 #include <resolv.h>
28220 res_query (0, 0, 0, 0, 0);
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226 if { (ac_try="$ac_link"
28227 case "(($ac_try" in
28228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229 *) ac_try_echo=$ac_try;;
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232 (eval "$ac_link") 2>conftest.er1
28234 grep -v '^ *+' conftest.er1 >conftest.err
28236 cat conftest.err >&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); } &&
28239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28240 { (case "(($ac_try" in
28241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242 *) ac_try_echo=$ac_try;;
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245 (eval "$ac_try") 2>&5
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); }; } &&
28249 { ac_try='test -s conftest$ac_exeext'
28250 { (case "(($ac_try" in
28251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252 *) ac_try_echo=$ac_try;;
28254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28255 (eval "$ac_try") 2>&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; }; then
28259 LIBS="$LIBS -lresolv"
28260 { echo "$as_me:$LINENO: result: yes" >&5
28261 echo "${ECHO_T}yes" >&6; }
28263 echo "$as_me: failed program was:" >&5
28264 sed 's/^/| /' conftest.$ac_ext >&5
28267 { echo "$as_me:$LINENO: result: no" >&5
28268 echo "${ECHO_T}no" >&6; }
28271 rm -f core conftest.err conftest.$ac_objext \
28272 conftest$ac_exeext conftest.$ac_ext
28276 rm -f core conftest.err conftest.$ac_objext \
28277 conftest$ac_exeext conftest.$ac_ext
28280 for ac_func in _getshort _getlong
28282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28288 cat >conftest.$ac_ext <<_ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h. */
28294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28296 #define $ac_func innocuous_$ac_func
28298 /* System header to define __stub macros and hopefully few prototypes,
28299 which can conflict with char $ac_func (); below.
28300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28301 <limits.h> exists even on freestanding compilers. */
28304 # include <limits.h>
28306 # include <assert.h>
28311 /* Override any GCC internal prototype to avoid an error.
28312 Use char because int might match the return type of a GCC
28313 builtin and then its argument prototype would still apply. */
28318 /* The GNU C library defines this for functions which it implements
28319 to always fail with ENOSYS. Some functions are actually named
28320 something starting with __ and the normal name is an alias. */
28321 #if defined __stub_$ac_func || defined __stub___$ac_func
28328 return $ac_func ();
28333 rm -f conftest.$ac_objext conftest$ac_exeext
28334 if { (ac_try="$ac_link"
28335 case "(($ac_try" in
28336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28337 *) ac_try_echo=$ac_try;;
28339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28340 (eval "$ac_link") 2>conftest.er1
28342 grep -v '^ *+' conftest.er1 >conftest.err
28344 cat conftest.err >&5
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); } &&
28347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28348 { (case "(($ac_try" in
28349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350 *) ac_try_echo=$ac_try;;
28352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28353 (eval "$ac_try") 2>&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); }; } &&
28357 { ac_try='test -s conftest$ac_exeext'
28358 { (case "(($ac_try" in
28359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360 *) ac_try_echo=$ac_try;;
28362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363 (eval "$ac_try") 2>&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); }; }; then
28367 eval "$as_ac_var=yes"
28369 echo "$as_me: failed program was:" >&5
28370 sed 's/^/| /' conftest.$ac_ext >&5
28372 eval "$as_ac_var=no"
28375 rm -f core conftest.err conftest.$ac_objext \
28376 conftest$ac_exeext conftest.$ac_ext
28378 ac_res=`eval echo '${'$as_ac_var'}'`
28379 { echo "$as_me:$LINENO: result: $ac_res" >&5
28380 echo "${ECHO_T}$ac_res" >&6; }
28381 if test `eval echo '${'$as_ac_var'}'` = yes; then
28382 cat >>confdefs.h <<_ACEOF
28383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28389 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
28390 echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
28391 if test "${ac_cv_have_decl__getshort+set}" = set; then
28392 echo $ECHO_N "(cached) $ECHO_C" >&6
28394 cat >conftest.$ac_ext <<_ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h. */
28400 #include <sys/types.h>
28401 #include <arpa/nameser.h>
28407 char *p = (char *) _getshort;
28415 rm -f conftest.$ac_objext
28416 if { (ac_try="$ac_compile"
28417 case "(($ac_try" in
28418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419 *) ac_try_echo=$ac_try;;
28421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422 (eval "$ac_compile") 2>conftest.er1
28424 grep -v '^ *+' conftest.er1 >conftest.err
28426 cat conftest.err >&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); } &&
28429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28430 { (case "(($ac_try" in
28431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28432 *) ac_try_echo=$ac_try;;
28434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28435 (eval "$ac_try") 2>&5
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); }; } &&
28439 { ac_try='test -s conftest.$ac_objext'
28440 { (case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445 (eval "$ac_try") 2>&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); }; }; then
28449 ac_cv_have_decl__getshort=yes
28451 echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28454 ac_cv_have_decl__getshort=no
28457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28459 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
28460 echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
28461 if test $ac_cv_have_decl__getshort = yes; then
28463 cat >>confdefs.h <<_ACEOF
28464 #define HAVE_DECL__GETSHORT 1
28469 cat >>confdefs.h <<_ACEOF
28470 #define HAVE_DECL__GETSHORT 0
28475 { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
28476 echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
28477 if test "${ac_cv_have_decl__getlong+set}" = set; then
28478 echo $ECHO_N "(cached) $ECHO_C" >&6
28480 cat >conftest.$ac_ext <<_ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h. */
28486 #include <sys/types.h>
28487 #include <arpa/nameser.h>
28493 char *p = (char *) _getlong;
28501 rm -f conftest.$ac_objext
28502 if { (ac_try="$ac_compile"
28503 case "(($ac_try" in
28504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505 *) ac_try_echo=$ac_try;;
28507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508 (eval "$ac_compile") 2>conftest.er1
28510 grep -v '^ *+' conftest.er1 >conftest.err
28512 cat conftest.err >&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } &&
28515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28516 { (case "(($ac_try" in
28517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28518 *) ac_try_echo=$ac_try;;
28520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28521 (eval "$ac_try") 2>&5
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); }; } &&
28525 { ac_try='test -s conftest.$ac_objext'
28526 { (case "(($ac_try" in
28527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528 *) ac_try_echo=$ac_try;;
28530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531 (eval "$ac_try") 2>&5
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; }; then
28535 ac_cv_have_decl__getlong=yes
28537 echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28540 ac_cv_have_decl__getlong=no
28543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28545 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
28546 echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
28547 if test $ac_cv_have_decl__getlong = yes; then
28549 cat >>confdefs.h <<_ACEOF
28550 #define HAVE_DECL__GETLONG 1
28555 cat >>confdefs.h <<_ACEOF
28556 #define HAVE_DECL__GETLONG 0
28563 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
28564 echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
28565 if test "${ac_cv_member_HEADER_ad+set}" = set; then
28566 echo $ECHO_N "(cached) $ECHO_C" >&6
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28574 #include <arpa/nameser.h>
28579 static HEADER ac_aggr;
28586 rm -f conftest.$ac_objext
28587 if { (ac_try="$ac_compile"
28588 case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_compile") 2>conftest.er1
28595 grep -v '^ *+' conftest.er1 >conftest.err
28597 cat conftest.err >&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } &&
28600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; } &&
28610 { ac_try='test -s conftest.$ac_objext'
28611 { (case "(($ac_try" in
28612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613 *) ac_try_echo=$ac_try;;
28615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616 (eval "$ac_try") 2>&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
28620 ac_cv_member_HEADER_ad=yes
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 cat >conftest.$ac_ext <<_ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h. */
28631 #include <arpa/nameser.h>
28636 static HEADER ac_aggr;
28637 if (sizeof ac_aggr.ad)
28643 rm -f conftest.$ac_objext
28644 if { (ac_try="$ac_compile"
28645 case "(($ac_try" in
28646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28647 *) ac_try_echo=$ac_try;;
28649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650 (eval "$ac_compile") 2>conftest.er1
28652 grep -v '^ *+' conftest.er1 >conftest.err
28654 cat conftest.err >&5
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); } &&
28657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28658 { (case "(($ac_try" in
28659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28660 *) ac_try_echo=$ac_try;;
28662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28663 (eval "$ac_try") 2>&5
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); }; } &&
28667 { ac_try='test -s conftest.$ac_objext'
28668 { (case "(($ac_try" in
28669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670 *) ac_try_echo=$ac_try;;
28672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673 (eval "$ac_try") 2>&5
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); }; }; then
28677 ac_cv_member_HEADER_ad=yes
28679 echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28682 ac_cv_member_HEADER_ad=no
28685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28690 { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
28691 echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
28692 if test $ac_cv_member_HEADER_ad = yes; then
28694 cat >>confdefs.h <<\_ACEOF
28695 #define HAVE_HEADER_AD 1
28704 # Check whether user wants SELinux support
28708 # Check whether --with-selinux was given.
28709 if test "${with_selinux+set}" = set; then
28710 withval=$with_selinux; if test "x$withval" != "xno" ; then
28712 cat >>confdefs.h <<\_ACEOF
28713 #define WITH_SELINUX 1
28717 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
28718 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
28719 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
28720 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
28721 echo $ECHO_N "(cached) $ECHO_C" >&6
28723 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
28724 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
28726 # Is the header compilable?
28727 { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
28728 echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
28729 cat >conftest.$ac_ext <<_ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h. */
28735 $ac_includes_default
28736 #include <selinux/selinux.h>
28738 rm -f conftest.$ac_objext
28739 if { (ac_try="$ac_compile"
28740 case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745 (eval "$ac_compile") 2>conftest.er1
28747 grep -v '^ *+' conftest.er1 >conftest.err
28749 cat conftest.err >&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); } &&
28752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28753 { (case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_try") 2>&5
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; } &&
28762 { ac_try='test -s conftest.$ac_objext'
28763 { (case "(($ac_try" in
28764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28765 *) ac_try_echo=$ac_try;;
28767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28768 (eval "$ac_try") 2>&5
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); }; }; then
28772 ac_header_compiler=yes
28774 echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28777 ac_header_compiler=no
28780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28782 echo "${ECHO_T}$ac_header_compiler" >&6; }
28784 # Is the header present?
28785 { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
28786 echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
28787 cat >conftest.$ac_ext <<_ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h. */
28793 #include <selinux/selinux.h>
28795 if { (ac_try="$ac_cpp conftest.$ac_ext"
28796 case "(($ac_try" in
28797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798 *) ac_try_echo=$ac_try;;
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28803 grep -v '^ *+' conftest.er1 >conftest.err
28805 cat conftest.err >&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } >/dev/null; then
28808 if test -s conftest.err; then
28809 ac_cpp_err=$ac_c_preproc_warn_flag
28810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28817 if test -z "$ac_cpp_err"; then
28818 ac_header_preproc=yes
28820 echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28823 ac_header_preproc=no
28826 rm -f conftest.err conftest.$ac_ext
28827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28828 echo "${ECHO_T}$ac_header_preproc" >&6; }
28830 # So? What about this header?
28831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28833 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
28834 echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28835 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
28836 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
28837 ac_header_preproc=yes
28840 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
28841 echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
28842 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
28843 echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
28844 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
28845 echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
28847 echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
28849 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
28850 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
28851 echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
28853 ## ------------------------------------------- ##
28854 ## Report this to openssh-unix-dev@mindrot.org ##
28855 ## ------------------------------------------- ##
28857 ) | sed "s/^/$as_me: WARNING: /" >&2
28860 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
28861 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
28862 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
28863 echo $ECHO_N "(cached) $ECHO_C" >&6
28865 ac_cv_header_selinux_selinux_h=$ac_header_preproc
28867 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
28868 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
28871 if test $ac_cv_header_selinux_selinux_h = yes; then
28874 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
28875 echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
28876 { (exit 1); exit 1; }; }
28880 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
28881 echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
28882 if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
28883 echo $ECHO_N "(cached) $ECHO_C" >&6
28885 ac_check_lib_save_LIBS=$LIBS
28886 LIBS="-lselinux $LIBS"
28887 cat >conftest.$ac_ext <<_ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h. */
28894 /* Override any GCC internal prototype to avoid an error.
28895 Use char because int might match the return type of a GCC
28896 builtin and then its argument prototype would still apply. */
28900 char setexeccon ();
28904 return setexeccon ();
28909 rm -f conftest.$ac_objext conftest$ac_exeext
28910 if { (ac_try="$ac_link"
28911 case "(($ac_try" in
28912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913 *) ac_try_echo=$ac_try;;
28915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916 (eval "$ac_link") 2>conftest.er1
28918 grep -v '^ *+' conftest.er1 >conftest.err
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); } &&
28923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28924 { (case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_try") 2>&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); }; } &&
28933 { ac_try='test -s conftest$ac_exeext'
28934 { (case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_try") 2>&5
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; }; then
28943 ac_cv_lib_selinux_setexeccon=yes
28945 echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28948 ac_cv_lib_selinux_setexeccon=no
28951 rm -f core conftest.err conftest.$ac_objext \
28952 conftest$ac_exeext conftest.$ac_ext
28953 LIBS=$ac_check_lib_save_LIBS
28955 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
28956 echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
28957 if test $ac_cv_lib_selinux_setexeccon = yes; then
28958 LIBSELINUX="-lselinux"
28960 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
28961 echo "$as_me: error: SELinux support requires libselinux library" >&2;}
28962 { (exit 1); exit 1; }; }
28967 for ac_func in getseuserbyname get_default_context_with_level
28969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28973 echo $ECHO_N "(cached) $ECHO_C" >&6
28975 cat >conftest.$ac_ext <<_ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h. */
28981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28983 #define $ac_func innocuous_$ac_func
28985 /* System header to define __stub macros and hopefully few prototypes,
28986 which can conflict with char $ac_func (); below.
28987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28988 <limits.h> exists even on freestanding compilers. */
28991 # include <limits.h>
28993 # include <assert.h>
28998 /* Override any GCC internal prototype to avoid an error.
28999 Use char because int might match the return type of a GCC
29000 builtin and then its argument prototype would still apply. */
29005 /* The GNU C library defines this for functions which it implements
29006 to always fail with ENOSYS. Some functions are actually named
29007 something starting with __ and the normal name is an alias. */
29008 #if defined __stub_$ac_func || defined __stub___$ac_func
29015 return $ac_func ();
29020 rm -f conftest.$ac_objext conftest$ac_exeext
29021 if { (ac_try="$ac_link"
29022 case "(($ac_try" in
29023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024 *) ac_try_echo=$ac_try;;
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027 (eval "$ac_link") 2>conftest.er1
29029 grep -v '^ *+' conftest.er1 >conftest.err
29031 cat conftest.err >&5
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); } &&
29034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29035 { (case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_try") 2>&5
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); }; } &&
29044 { ac_try='test -s conftest$ac_exeext'
29045 { (case "(($ac_try" in
29046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047 *) ac_try_echo=$ac_try;;
29049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050 (eval "$ac_try") 2>&5
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); }; }; then
29054 eval "$as_ac_var=yes"
29056 echo "$as_me: failed program was:" >&5
29057 sed 's/^/| /' conftest.$ac_ext >&5
29059 eval "$as_ac_var=no"
29062 rm -f core conftest.err conftest.$ac_objext \
29063 conftest$ac_exeext conftest.$ac_ext
29065 ac_res=`eval echo '${'$as_ac_var'}'`
29066 { echo "$as_me:$LINENO: result: $ac_res" >&5
29067 echo "${ECHO_T}$ac_res" >&6; }
29068 if test `eval echo '${'$as_ac_var'}'` = yes; then
29069 cat >>confdefs.h <<_ACEOF
29070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29082 # Check whether user wants Kerberos 5 support
29085 # Check whether --with-kerberos5 was given.
29086 if test "${with_kerberos5+set}" = set; then
29087 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
29088 if test "x$withval" = "xyes" ; then
29089 KRB5ROOT="/usr/local"
29091 KRB5ROOT=${withval}
29095 cat >>confdefs.h <<\_ACEOF
29101 { echo "$as_me:$LINENO: checking for krb5-config" >&5
29102 echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; }
29103 if test -x $KRB5ROOT/bin/krb5-config ; then
29104 KRB5CONF=$KRB5ROOT/bin/krb5-config
29105 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
29106 echo "${ECHO_T}$KRB5CONF" >&6; }
29108 { echo "$as_me:$LINENO: checking for gssapi support" >&5
29109 echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
29110 if $KRB5CONF | grep gssapi >/dev/null ; then
29111 { echo "$as_me:$LINENO: result: yes" >&5
29112 echo "${ECHO_T}yes" >&6; }
29114 cat >>confdefs.h <<\_ACEOF
29120 { echo "$as_me:$LINENO: result: no" >&5
29121 echo "${ECHO_T}no" >&6; }
29124 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
29125 K5LIBS="`$KRB5CONF --libs $k5confopts`"
29126 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
29127 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
29128 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
29129 cat >conftest.$ac_ext <<_ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h. */
29139 char *tmp = heimdal_version;
29144 rm -f conftest.$ac_objext
29145 if { (ac_try="$ac_compile"
29146 case "(($ac_try" in
29147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148 *) ac_try_echo=$ac_try;;
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151 (eval "$ac_compile") 2>conftest.er1
29153 grep -v '^ *+' conftest.er1 >conftest.err
29155 cat conftest.err >&5
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); } &&
29158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29159 { (case "(($ac_try" in
29160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161 *) ac_try_echo=$ac_try;;
29163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164 (eval "$ac_try") 2>&5
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; } &&
29168 { ac_try='test -s conftest.$ac_objext'
29169 { (case "(($ac_try" in
29170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171 *) ac_try_echo=$ac_try;;
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174 (eval "$ac_try") 2>&5
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); }; }; then
29178 { echo "$as_me:$LINENO: result: yes" >&5
29179 echo "${ECHO_T}yes" >&6; }
29181 cat >>confdefs.h <<\_ACEOF
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29189 { echo "$as_me:$LINENO: result: no" >&5
29190 echo "${ECHO_T}no" >&6; }
29194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29196 { echo "$as_me:$LINENO: result: no" >&5
29197 echo "${ECHO_T}no" >&6; }
29198 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
29199 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
29200 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
29201 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
29202 cat >conftest.$ac_ext <<_ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h. */
29212 char *tmp = heimdal_version;
29217 rm -f conftest.$ac_objext
29218 if { (ac_try="$ac_compile"
29219 case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_compile") 2>conftest.er1
29226 grep -v '^ *+' conftest.er1 >conftest.err
29228 cat conftest.err >&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); } &&
29231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29232 { (case "(($ac_try" in
29233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234 *) ac_try_echo=$ac_try;;
29236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237 (eval "$ac_try") 2>&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; } &&
29241 { ac_try='test -s conftest.$ac_objext'
29242 { (case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_try") 2>&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); }; }; then
29251 { echo "$as_me:$LINENO: result: yes" >&5
29252 echo "${ECHO_T}yes" >&6; }
29253 cat >>confdefs.h <<\_ACEOF
29257 K5LIBS="-lkrb5 -ldes"
29258 K5LIBS="$K5LIBS -lcom_err -lasn1"
29259 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
29260 echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
29261 if test "${ac_cv_lib_roken_net_write+set}" = set; then
29262 echo $ECHO_N "(cached) $ECHO_C" >&6
29264 ac_check_lib_save_LIBS=$LIBS
29265 LIBS="-lroken $LIBS"
29266 cat >conftest.$ac_ext <<_ACEOF
29269 cat confdefs.h >>conftest.$ac_ext
29270 cat >>conftest.$ac_ext <<_ACEOF
29271 /* end confdefs.h. */
29273 /* Override any GCC internal prototype to avoid an error.
29274 Use char because int might match the return type of a GCC
29275 builtin and then its argument prototype would still apply. */
29283 return net_write ();
29288 rm -f conftest.$ac_objext conftest$ac_exeext
29289 if { (ac_try="$ac_link"
29290 case "(($ac_try" in
29291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29292 *) ac_try_echo=$ac_try;;
29294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29295 (eval "$ac_link") 2>conftest.er1
29297 grep -v '^ *+' conftest.er1 >conftest.err
29299 cat conftest.err >&5
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); } &&
29302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29303 { (case "(($ac_try" in
29304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305 *) ac_try_echo=$ac_try;;
29307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29308 (eval "$ac_try") 2>&5
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); }; } &&
29312 { ac_try='test -s conftest$ac_exeext'
29313 { (case "(($ac_try" in
29314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315 *) ac_try_echo=$ac_try;;
29317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318 (eval "$ac_try") 2>&5
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); }; }; then
29322 ac_cv_lib_roken_net_write=yes
29324 echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29327 ac_cv_lib_roken_net_write=no
29330 rm -f core conftest.err conftest.$ac_objext \
29331 conftest$ac_exeext conftest.$ac_ext
29332 LIBS=$ac_check_lib_save_LIBS
29334 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
29335 echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
29336 if test $ac_cv_lib_roken_net_write = yes; then
29337 K5LIBS="$K5LIBS -lroken"
29342 echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29345 { echo "$as_me:$LINENO: result: no" >&5
29346 echo "${ECHO_T}no" >&6; }
29347 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
29352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29353 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
29354 echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
29355 if test "${ac_cv_search_dn_expand+set}" = set; then
29356 echo $ECHO_N "(cached) $ECHO_C" >&6
29358 ac_func_search_save_LIBS=$LIBS
29359 cat >conftest.$ac_ext <<_ACEOF
29362 cat confdefs.h >>conftest.$ac_ext
29363 cat >>conftest.$ac_ext <<_ACEOF
29364 /* end confdefs.h. */
29366 /* Override any GCC internal prototype to avoid an error.
29367 Use char because int might match the return type of a GCC
29368 builtin and then its argument prototype would still apply. */
29376 return dn_expand ();
29381 for ac_lib in '' resolv; do
29382 if test -z "$ac_lib"; then
29383 ac_res="none required"
29386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (ac_try="$ac_link"
29390 case "(($ac_try" in
29391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392 *) ac_try_echo=$ac_try;;
29394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395 (eval "$ac_link") 2>conftest.er1
29397 grep -v '^ *+' conftest.er1 >conftest.err
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
29402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29403 { (case "(($ac_try" in
29404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405 *) ac_try_echo=$ac_try;;
29407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408 (eval "$ac_try") 2>&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; } &&
29412 { ac_try='test -s conftest$ac_exeext'
29413 { (case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_try") 2>&5
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; }; then
29422 ac_cv_search_dn_expand=$ac_res
29424 echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29430 rm -f core conftest.err conftest.$ac_objext \
29432 if test "${ac_cv_search_dn_expand+set}" = set; then
29436 if test "${ac_cv_search_dn_expand+set}" = set; then
29439 ac_cv_search_dn_expand=no
29441 rm conftest.$ac_ext
29442 LIBS=$ac_func_search_save_LIBS
29444 { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
29445 echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
29446 ac_res=$ac_cv_search_dn_expand
29447 if test "$ac_res" != no; then
29448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29453 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
29454 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
29455 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
29456 echo $ECHO_N "(cached) $ECHO_C" >&6
29458 ac_check_lib_save_LIBS=$LIBS
29459 LIBS="-lgssapi $K5LIBS $LIBS"
29460 cat >conftest.$ac_ext <<_ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h. */
29467 /* Override any GCC internal prototype to avoid an error.
29468 Use char because int might match the return type of a GCC
29469 builtin and then its argument prototype would still apply. */
29473 char gss_init_sec_context ();
29477 return gss_init_sec_context ();
29482 rm -f conftest.$ac_objext conftest$ac_exeext
29483 if { (ac_try="$ac_link"
29484 case "(($ac_try" in
29485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29486 *) ac_try_echo=$ac_try;;
29488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29489 (eval "$ac_link") 2>conftest.er1
29491 grep -v '^ *+' conftest.er1 >conftest.err
29493 cat conftest.err >&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); } &&
29496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29497 { (case "(($ac_try" in
29498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29499 *) ac_try_echo=$ac_try;;
29501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29502 (eval "$ac_try") 2>&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); }; } &&
29506 { ac_try='test -s conftest$ac_exeext'
29507 { (case "(($ac_try" in
29508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509 *) ac_try_echo=$ac_try;;
29511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512 (eval "$ac_try") 2>&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); }; }; then
29516 ac_cv_lib_gssapi_gss_init_sec_context=yes
29518 echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29521 ac_cv_lib_gssapi_gss_init_sec_context=no
29524 rm -f core conftest.err conftest.$ac_objext \
29525 conftest$ac_exeext conftest.$ac_ext
29526 LIBS=$ac_check_lib_save_LIBS
29528 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
29529 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
29530 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
29531 cat >>confdefs.h <<\_ACEOF
29535 K5LIBS="-lgssapi $K5LIBS"
29537 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
29538 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
29539 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
29540 echo $ECHO_N "(cached) $ECHO_C" >&6
29542 ac_check_lib_save_LIBS=$LIBS
29543 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
29544 cat >conftest.$ac_ext <<_ACEOF
29547 cat confdefs.h >>conftest.$ac_ext
29548 cat >>conftest.$ac_ext <<_ACEOF
29549 /* end confdefs.h. */
29551 /* Override any GCC internal prototype to avoid an error.
29552 Use char because int might match the return type of a GCC
29553 builtin and then its argument prototype would still apply. */
29557 char gss_init_sec_context ();
29561 return gss_init_sec_context ();
29566 rm -f conftest.$ac_objext conftest$ac_exeext
29567 if { (ac_try="$ac_link"
29568 case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_link") 2>conftest.er1
29575 grep -v '^ *+' conftest.er1 >conftest.err
29577 cat conftest.err >&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } &&
29580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29581 { (case "(($ac_try" in
29582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29583 *) ac_try_echo=$ac_try;;
29585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29586 (eval "$ac_try") 2>&5
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; } &&
29590 { ac_try='test -s conftest$ac_exeext'
29591 { (case "(($ac_try" in
29592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593 *) ac_try_echo=$ac_try;;
29595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29596 (eval "$ac_try") 2>&5
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); }; }; then
29600 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
29602 echo "$as_me: failed program was:" >&5
29603 sed 's/^/| /' conftest.$ac_ext >&5
29605 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
29608 rm -f core conftest.err conftest.$ac_objext \
29609 conftest$ac_exeext conftest.$ac_ext
29610 LIBS=$ac_check_lib_save_LIBS
29612 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
29613 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
29614 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
29615 cat >>confdefs.h <<\_ACEOF
29619 K5LIBS="-lgssapi_krb5 $K5LIBS"
29621 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
29622 echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
29629 if test "${ac_cv_header_gssapi_h+set}" = set; then
29630 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
29631 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
29632 if test "${ac_cv_header_gssapi_h+set}" = set; then
29633 echo $ECHO_N "(cached) $ECHO_C" >&6
29635 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
29636 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
29638 # Is the header compilable?
29639 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
29640 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
29641 cat >conftest.$ac_ext <<_ACEOF
29644 cat confdefs.h >>conftest.$ac_ext
29645 cat >>conftest.$ac_ext <<_ACEOF
29646 /* end confdefs.h. */
29647 $ac_includes_default
29648 #include <gssapi.h>
29650 rm -f conftest.$ac_objext
29651 if { (ac_try="$ac_compile"
29652 case "(($ac_try" in
29653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654 *) ac_try_echo=$ac_try;;
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657 (eval "$ac_compile") 2>conftest.er1
29659 grep -v '^ *+' conftest.er1 >conftest.err
29661 cat conftest.err >&5
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); } &&
29664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29665 { (case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_try") 2>&5
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; } &&
29674 { ac_try='test -s conftest.$ac_objext'
29675 { (case "(($ac_try" in
29676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677 *) ac_try_echo=$ac_try;;
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680 (eval "$ac_try") 2>&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); }; }; then
29684 ac_header_compiler=yes
29686 echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29689 ac_header_compiler=no
29692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29694 echo "${ECHO_T}$ac_header_compiler" >&6; }
29696 # Is the header present?
29697 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
29698 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
29699 cat >conftest.$ac_ext <<_ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h. */
29705 #include <gssapi.h>
29707 if { (ac_try="$ac_cpp conftest.$ac_ext"
29708 case "(($ac_try" in
29709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29710 *) ac_try_echo=$ac_try;;
29712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29715 grep -v '^ *+' conftest.er1 >conftest.err
29717 cat conftest.err >&5
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); } >/dev/null; then
29720 if test -s conftest.err; then
29721 ac_cpp_err=$ac_c_preproc_warn_flag
29722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29729 if test -z "$ac_cpp_err"; then
29730 ac_header_preproc=yes
29732 echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29735 ac_header_preproc=no
29738 rm -f conftest.err conftest.$ac_ext
29739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29740 echo "${ECHO_T}$ac_header_preproc" >&6; }
29742 # So? What about this header?
29743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29745 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
29746 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
29748 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
29749 ac_header_preproc=yes
29752 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
29753 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
29754 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
29755 echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
29756 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
29757 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
29758 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
29759 echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
29760 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
29761 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
29762 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
29763 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
29765 ## ------------------------------------------- ##
29766 ## Report this to openssh-unix-dev@mindrot.org ##
29767 ## ------------------------------------------- ##
29769 ) | sed "s/^/$as_me: WARNING: /" >&2
29772 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
29773 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
29774 if test "${ac_cv_header_gssapi_h+set}" = set; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29777 ac_cv_header_gssapi_h=$ac_header_preproc
29779 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
29780 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
29783 if test $ac_cv_header_gssapi_h = yes; then
29786 unset ac_cv_header_gssapi_h
29787 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
29789 for ac_header in gssapi.h
29791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29798 ac_res=`eval echo '${'$as_ac_Header'}'`
29799 { echo "$as_me:$LINENO: result: $ac_res" >&5
29800 echo "${ECHO_T}$ac_res" >&6; }
29802 # Is the header compilable?
29803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29805 cat >conftest.$ac_ext <<_ACEOF
29808 cat confdefs.h >>conftest.$ac_ext
29809 cat >>conftest.$ac_ext <<_ACEOF
29810 /* end confdefs.h. */
29811 $ac_includes_default
29812 #include <$ac_header>
29814 rm -f conftest.$ac_objext
29815 if { (ac_try="$ac_compile"
29816 case "(($ac_try" in
29817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818 *) ac_try_echo=$ac_try;;
29820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821 (eval "$ac_compile") 2>conftest.er1
29823 grep -v '^ *+' conftest.er1 >conftest.err
29825 cat conftest.err >&5
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); } &&
29828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29829 { (case "(($ac_try" in
29830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834 (eval "$ac_try") 2>&5
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; } &&
29838 { ac_try='test -s conftest.$ac_objext'
29839 { (case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_try") 2>&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); }; }; then
29848 ac_header_compiler=yes
29850 echo "$as_me: failed program was:" >&5
29851 sed 's/^/| /' conftest.$ac_ext >&5
29853 ac_header_compiler=no
29856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29858 echo "${ECHO_T}$ac_header_compiler" >&6; }
29860 # Is the header present?
29861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29863 cat >conftest.$ac_ext <<_ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h. */
29869 #include <$ac_header>
29871 if { (ac_try="$ac_cpp conftest.$ac_ext"
29872 case "(($ac_try" in
29873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874 *) ac_try_echo=$ac_try;;
29876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29879 grep -v '^ *+' conftest.er1 >conftest.err
29881 cat conftest.err >&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); } >/dev/null; then
29884 if test -s conftest.err; then
29885 ac_cpp_err=$ac_c_preproc_warn_flag
29886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29893 if test -z "$ac_cpp_err"; then
29894 ac_header_preproc=yes
29896 echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29899 ac_header_preproc=no
29902 rm -f conftest.err conftest.$ac_ext
29903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29904 echo "${ECHO_T}$ac_header_preproc" >&6; }
29906 # So? What about this header?
29907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29913 ac_header_preproc=yes
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29929 ## ------------------------------------------- ##
29930 ## Report this to openssh-unix-dev@mindrot.org ##
29931 ## ------------------------------------------- ##
29933 ) | sed "s/^/$as_me: WARNING: /" >&2
29936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29941 eval "$as_ac_Header=\$ac_header_preproc"
29943 ac_res=`eval echo '${'$as_ac_Header'}'`
29944 { echo "$as_me:$LINENO: result: $ac_res" >&5
29945 echo "${ECHO_T}$ac_res" >&6; }
29948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29949 cat >>confdefs.h <<_ACEOF
29950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29954 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
29955 echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
29968 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
29969 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
29970 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
29971 echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
29972 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
29973 echo $ECHO_N "(cached) $ECHO_C" >&6
29975 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
29976 echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
29978 # Is the header compilable?
29979 { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
29980 echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
29981 cat >conftest.$ac_ext <<_ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h. */
29987 $ac_includes_default
29988 #include <gssapi_krb5.h>
29990 rm -f conftest.$ac_objext
29991 if { (ac_try="$ac_compile"
29992 case "(($ac_try" in
29993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994 *) ac_try_echo=$ac_try;;
29996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997 (eval "$ac_compile") 2>conftest.er1
29999 grep -v '^ *+' conftest.er1 >conftest.err
30001 cat conftest.err >&5
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } &&
30004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30005 { (case "(($ac_try" in
30006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30007 *) ac_try_echo=$ac_try;;
30009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30010 (eval "$ac_try") 2>&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; } &&
30014 { ac_try='test -s conftest.$ac_objext'
30015 { (case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_try") 2>&5
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; }; then
30024 ac_header_compiler=yes
30026 echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.$ac_ext >&5
30029 ac_header_compiler=no
30032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30034 echo "${ECHO_T}$ac_header_compiler" >&6; }
30036 # Is the header present?
30037 { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
30038 echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
30039 cat >conftest.$ac_ext <<_ACEOF
30042 cat confdefs.h >>conftest.$ac_ext
30043 cat >>conftest.$ac_ext <<_ACEOF
30044 /* end confdefs.h. */
30045 #include <gssapi_krb5.h>
30047 if { (ac_try="$ac_cpp conftest.$ac_ext"
30048 case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30055 grep -v '^ *+' conftest.er1 >conftest.err
30057 cat conftest.err >&5
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); } >/dev/null; then
30060 if test -s conftest.err; then
30061 ac_cpp_err=$ac_c_preproc_warn_flag
30062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30069 if test -z "$ac_cpp_err"; then
30070 ac_header_preproc=yes
30072 echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.$ac_ext >&5
30075 ac_header_preproc=no
30078 rm -f conftest.err conftest.$ac_ext
30079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30080 echo "${ECHO_T}$ac_header_preproc" >&6; }
30082 # So? What about this header?
30083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30085 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
30086 echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
30088 echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
30089 ac_header_preproc=yes
30092 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
30093 echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
30094 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
30095 echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
30096 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
30097 echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
30098 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
30099 echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
30100 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
30101 echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
30103 echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
30105 ## ------------------------------------------- ##
30106 ## Report this to openssh-unix-dev@mindrot.org ##
30107 ## ------------------------------------------- ##
30109 ) | sed "s/^/$as_me: WARNING: /" >&2
30112 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
30113 echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
30114 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
30115 echo $ECHO_N "(cached) $ECHO_C" >&6
30117 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
30119 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
30120 echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
30123 if test $ac_cv_header_gssapi_krb5_h = yes; then
30132 if test ! -z "$need_dash_r" ; then
30133 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
30135 if test ! -z "$blibpath" ; then
30136 blibpath="$blibpath:${KRB5ROOT}/lib"
30141 for ac_header in gssapi.h gssapi/gssapi.h
30143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30148 echo $ECHO_N "(cached) $ECHO_C" >&6
30150 ac_res=`eval echo '${'$as_ac_Header'}'`
30151 { echo "$as_me:$LINENO: result: $ac_res" >&5
30152 echo "${ECHO_T}$ac_res" >&6; }
30154 # Is the header compilable?
30155 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30157 cat >conftest.$ac_ext <<_ACEOF
30160 cat confdefs.h >>conftest.$ac_ext
30161 cat >>conftest.$ac_ext <<_ACEOF
30162 /* end confdefs.h. */
30163 $ac_includes_default
30164 #include <$ac_header>
30166 rm -f conftest.$ac_objext
30167 if { (ac_try="$ac_compile"
30168 case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_compile") 2>conftest.er1
30175 grep -v '^ *+' conftest.er1 >conftest.err
30177 cat conftest.err >&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); } &&
30180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181 { (case "(($ac_try" in
30182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183 *) ac_try_echo=$ac_try;;
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186 (eval "$ac_try") 2>&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest.$ac_objext'
30191 { (case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; }; then
30200 ac_header_compiler=yes
30202 echo "$as_me: failed program was:" >&5
30203 sed 's/^/| /' conftest.$ac_ext >&5
30205 ac_header_compiler=no
30208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30210 echo "${ECHO_T}$ac_header_compiler" >&6; }
30212 # Is the header present?
30213 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30215 cat >conftest.$ac_ext <<_ACEOF
30218 cat confdefs.h >>conftest.$ac_ext
30219 cat >>conftest.$ac_ext <<_ACEOF
30220 /* end confdefs.h. */
30221 #include <$ac_header>
30223 if { (ac_try="$ac_cpp conftest.$ac_ext"
30224 case "(($ac_try" in
30225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226 *) ac_try_echo=$ac_try;;
30228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30231 grep -v '^ *+' conftest.er1 >conftest.err
30233 cat conftest.err >&5
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235 (exit $ac_status); } >/dev/null; then
30236 if test -s conftest.err; then
30237 ac_cpp_err=$ac_c_preproc_warn_flag
30238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30245 if test -z "$ac_cpp_err"; then
30246 ac_header_preproc=yes
30248 echo "$as_me: failed program was:" >&5
30249 sed 's/^/| /' conftest.$ac_ext >&5
30251 ac_header_preproc=no
30254 rm -f conftest.err conftest.$ac_ext
30255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30256 echo "${ECHO_T}$ac_header_preproc" >&6; }
30258 # So? What about this header?
30259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30265 ac_header_preproc=yes
30268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30281 ## ------------------------------------------- ##
30282 ## Report this to openssh-unix-dev@mindrot.org ##
30283 ## ------------------------------------------- ##
30285 ) | sed "s/^/$as_me: WARNING: /" >&2
30288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30291 echo $ECHO_N "(cached) $ECHO_C" >&6
30293 eval "$as_ac_Header=\$ac_header_preproc"
30295 ac_res=`eval echo '${'$as_ac_Header'}'`
30296 { echo "$as_me:$LINENO: result: $ac_res" >&5
30297 echo "${ECHO_T}$ac_res" >&6; }
30300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30301 cat >>confdefs.h <<_ACEOF
30302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30311 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
30313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30318 echo $ECHO_N "(cached) $ECHO_C" >&6
30320 ac_res=`eval echo '${'$as_ac_Header'}'`
30321 { echo "$as_me:$LINENO: result: $ac_res" >&5
30322 echo "${ECHO_T}$ac_res" >&6; }
30324 # Is the header compilable?
30325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30327 cat >conftest.$ac_ext <<_ACEOF
30330 cat confdefs.h >>conftest.$ac_ext
30331 cat >>conftest.$ac_ext <<_ACEOF
30332 /* end confdefs.h. */
30333 $ac_includes_default
30334 #include <$ac_header>
30336 rm -f conftest.$ac_objext
30337 if { (ac_try="$ac_compile"
30338 case "(($ac_try" in
30339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30340 *) ac_try_echo=$ac_try;;
30342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30343 (eval "$ac_compile") 2>conftest.er1
30345 grep -v '^ *+' conftest.er1 >conftest.err
30347 cat conftest.err >&5
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); } &&
30350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30351 { (case "(($ac_try" in
30352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353 *) ac_try_echo=$ac_try;;
30355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356 (eval "$ac_try") 2>&5
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); }; } &&
30360 { ac_try='test -s conftest.$ac_objext'
30361 { (case "(($ac_try" in
30362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30363 *) ac_try_echo=$ac_try;;
30365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30366 (eval "$ac_try") 2>&5
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; }; then
30370 ac_header_compiler=yes
30372 echo "$as_me: failed program was:" >&5
30373 sed 's/^/| /' conftest.$ac_ext >&5
30375 ac_header_compiler=no
30378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30380 echo "${ECHO_T}$ac_header_compiler" >&6; }
30382 # Is the header present?
30383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30385 cat >conftest.$ac_ext <<_ACEOF
30388 cat confdefs.h >>conftest.$ac_ext
30389 cat >>conftest.$ac_ext <<_ACEOF
30390 /* end confdefs.h. */
30391 #include <$ac_header>
30393 if { (ac_try="$ac_cpp conftest.$ac_ext"
30394 case "(($ac_try" in
30395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396 *) ac_try_echo=$ac_try;;
30398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30401 grep -v '^ *+' conftest.er1 >conftest.err
30403 cat conftest.err >&5
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); } >/dev/null; then
30406 if test -s conftest.err; then
30407 ac_cpp_err=$ac_c_preproc_warn_flag
30408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30415 if test -z "$ac_cpp_err"; then
30416 ac_header_preproc=yes
30418 echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30421 ac_header_preproc=no
30424 rm -f conftest.err conftest.$ac_ext
30425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30426 echo "${ECHO_T}$ac_header_preproc" >&6; }
30428 # So? What about this header?
30429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30435 ac_header_preproc=yes
30438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30451 ## ------------------------------------------- ##
30452 ## Report this to openssh-unix-dev@mindrot.org ##
30453 ## ------------------------------------------- ##
30455 ) | sed "s/^/$as_me: WARNING: /" >&2
30458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30463 eval "$as_ac_Header=\$ac_header_preproc"
30465 ac_res=`eval echo '${'$as_ac_Header'}'`
30466 { echo "$as_me:$LINENO: result: $ac_res" >&5
30467 echo "${ECHO_T}$ac_res" >&6; }
30470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30471 cat >>confdefs.h <<_ACEOF
30472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30481 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
30483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30488 echo $ECHO_N "(cached) $ECHO_C" >&6
30490 ac_res=`eval echo '${'$as_ac_Header'}'`
30491 { echo "$as_me:$LINENO: result: $ac_res" >&5
30492 echo "${ECHO_T}$ac_res" >&6; }
30494 # Is the header compilable?
30495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30497 cat >conftest.$ac_ext <<_ACEOF
30500 cat confdefs.h >>conftest.$ac_ext
30501 cat >>conftest.$ac_ext <<_ACEOF
30502 /* end confdefs.h. */
30503 $ac_includes_default
30504 #include <$ac_header>
30506 rm -f conftest.$ac_objext
30507 if { (ac_try="$ac_compile"
30508 case "(($ac_try" in
30509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510 *) ac_try_echo=$ac_try;;
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513 (eval "$ac_compile") 2>conftest.er1
30515 grep -v '^ *+' conftest.er1 >conftest.err
30517 cat conftest.err >&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } &&
30520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30521 { (case "(($ac_try" in
30522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523 *) ac_try_echo=$ac_try;;
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526 (eval "$ac_try") 2>&5
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); }; } &&
30530 { ac_try='test -s conftest.$ac_objext'
30531 { (case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_try") 2>&5
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; }; then
30540 ac_header_compiler=yes
30542 echo "$as_me: failed program was:" >&5
30543 sed 's/^/| /' conftest.$ac_ext >&5
30545 ac_header_compiler=no
30548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30550 echo "${ECHO_T}$ac_header_compiler" >&6; }
30552 # Is the header present?
30553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30555 cat >conftest.$ac_ext <<_ACEOF
30558 cat confdefs.h >>conftest.$ac_ext
30559 cat >>conftest.$ac_ext <<_ACEOF
30560 /* end confdefs.h. */
30561 #include <$ac_header>
30563 if { (ac_try="$ac_cpp conftest.$ac_ext"
30564 case "(($ac_try" in
30565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30566 *) ac_try_echo=$ac_try;;
30568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30571 grep -v '^ *+' conftest.er1 >conftest.err
30573 cat conftest.err >&5
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); } >/dev/null; then
30576 if test -s conftest.err; then
30577 ac_cpp_err=$ac_c_preproc_warn_flag
30578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30585 if test -z "$ac_cpp_err"; then
30586 ac_header_preproc=yes
30588 echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30591 ac_header_preproc=no
30594 rm -f conftest.err conftest.$ac_ext
30595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30596 echo "${ECHO_T}$ac_header_preproc" >&6; }
30598 # So? What about this header?
30599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30605 ac_header_preproc=yes
30608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30621 ## ------------------------------------------- ##
30622 ## Report this to openssh-unix-dev@mindrot.org ##
30623 ## ------------------------------------------- ##
30625 ) | sed "s/^/$as_me: WARNING: /" >&2
30628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30631 echo $ECHO_N "(cached) $ECHO_C" >&6
30633 eval "$as_ac_Header=\$ac_header_preproc"
30635 ac_res=`eval echo '${'$as_ac_Header'}'`
30636 { echo "$as_me:$LINENO: result: $ac_res" >&5
30637 echo "${ECHO_T}$ac_res" >&6; }
30640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30641 cat >>confdefs.h <<_ACEOF
30642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30650 LIBS="$LIBS $K5LIBS"
30651 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
30652 echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
30653 if test "${ac_cv_search_k_hasafs+set}" = set; then
30654 echo $ECHO_N "(cached) $ECHO_C" >&6
30656 ac_func_search_save_LIBS=$LIBS
30657 cat >conftest.$ac_ext <<_ACEOF
30660 cat confdefs.h >>conftest.$ac_ext
30661 cat >>conftest.$ac_ext <<_ACEOF
30662 /* end confdefs.h. */
30664 /* Override any GCC internal prototype to avoid an error.
30665 Use char because int might match the return type of a GCC
30666 builtin and then its argument prototype would still apply. */
30674 return k_hasafs ();
30679 for ac_lib in '' kafs; do
30680 if test -z "$ac_lib"; then
30681 ac_res="none required"
30684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30686 rm -f conftest.$ac_objext conftest$ac_exeext
30687 if { (ac_try="$ac_link"
30688 case "(($ac_try" in
30689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690 *) ac_try_echo=$ac_try;;
30692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693 (eval "$ac_link") 2>conftest.er1
30695 grep -v '^ *+' conftest.er1 >conftest.err
30697 cat conftest.err >&5
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); } &&
30700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30701 { (case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_try") 2>&5
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; } &&
30710 { ac_try='test -s conftest$ac_exeext'
30711 { (case "(($ac_try" in
30712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713 *) ac_try_echo=$ac_try;;
30715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716 (eval "$ac_try") 2>&5
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); }; }; then
30720 ac_cv_search_k_hasafs=$ac_res
30722 echo "$as_me: failed program was:" >&5
30723 sed 's/^/| /' conftest.$ac_ext >&5
30728 rm -f core conftest.err conftest.$ac_objext \
30730 if test "${ac_cv_search_k_hasafs+set}" = set; then
30734 if test "${ac_cv_search_k_hasafs+set}" = set; then
30737 ac_cv_search_k_hasafs=no
30739 rm conftest.$ac_ext
30740 LIBS=$ac_func_search_save_LIBS
30742 { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
30743 echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
30744 ac_res=$ac_cv_search_k_hasafs
30745 if test "$ac_res" != no; then
30746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30748 cat >>confdefs.h <<\_ACEOF
30760 # Looking for programs, paths and files
30762 PRIVSEP_PATH=/var/empty
30764 # Check whether --with-privsep-path was given.
30765 if test "${with_privsep_path+set}" = set; then
30766 withval=$with_privsep_path;
30767 if test -n "$withval" && test "x$withval" != "xno" && \
30768 test "x${withval}" != "xyes"; then
30769 PRIVSEP_PATH=$withval
30778 # Check whether --with-xauth was given.
30779 if test "${with_xauth+set}" = set; then
30780 withval=$with_xauth;
30781 if test -n "$withval" && test "x$withval" != "xno" && \
30782 test "x${withval}" != "xyes"; then
30783 xauth_path=$withval
30789 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
30790 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
30791 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
30792 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
30793 # Extract the first word of "xauth", so it can be a program name with args.
30794 set dummy xauth; ac_word=$2
30795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30797 if test "${ac_cv_path_xauth_path+set}" = set; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30800 case $xauth_path in
30802 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
30805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30806 for as_dir in $TestPath
30809 test -z "$as_dir" && as_dir=.
30810 for ac_exec_ext in '' $ac_executable_extensions; do
30811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30812 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
30813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30823 xauth_path=$ac_cv_path_xauth_path
30824 if test -n "$xauth_path"; then
30825 { echo "$as_me:$LINENO: result: $xauth_path" >&5
30826 echo "${ECHO_T}$xauth_path" >&6; }
30828 { echo "$as_me:$LINENO: result: no" >&5
30829 echo "${ECHO_T}no" >&6; }
30833 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
30834 xauth_path="/usr/openwin/bin/xauth"
30842 # Check whether --enable-strip was given.
30843 if test "${enable_strip+set}" = set; then
30844 enableval=$enable_strip;
30845 if test "x$enableval" = "xno" ; then
30854 if test -z "$xauth_path" ; then
30855 XAUTH_PATH="undefined"
30859 cat >>confdefs.h <<_ACEOF
30860 #define XAUTH_PATH "$xauth_path"
30863 XAUTH_PATH=$xauth_path
30867 # Check for mail directory (last resort if we cannot get it from headers)
30868 if test ! -z "$MAIL" ; then
30869 maildir=`dirname $MAIL`
30871 cat >>confdefs.h <<_ACEOF
30872 #define MAIL_DIRECTORY "$maildir"
30877 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
30878 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
30879 echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
30880 disable_ptmx_check=yes
30882 if test -z "$no_dev_ptmx" ; then
30883 if test "x$disable_ptmx_check" != "xyes" ; then
30884 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
30885 echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
30886 if test "${ac_cv_file___dev_ptmx_+set}" = set; then
30887 echo $ECHO_N "(cached) $ECHO_C" >&6
30889 test "$cross_compiling" = yes &&
30890 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30891 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30892 { (exit 1); exit 1; }; }
30893 if test -r ""/dev/ptmx""; then
30894 ac_cv_file___dev_ptmx_=yes
30896 ac_cv_file___dev_ptmx_=no
30899 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
30900 echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
30901 if test $ac_cv_file___dev_ptmx_ = yes; then
30904 cat >>confdefs.h <<_ACEOF
30905 #define HAVE_DEV_PTMX 1
30916 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
30917 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
30918 echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
30919 if test "${ac_cv_file___dev_ptc_+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30922 test "$cross_compiling" = yes &&
30923 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30924 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30925 { (exit 1); exit 1; }; }
30926 if test -r ""/dev/ptc""; then
30927 ac_cv_file___dev_ptc_=yes
30929 ac_cv_file___dev_ptc_=no
30932 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
30933 echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
30934 if test $ac_cv_file___dev_ptc_ = yes; then
30937 cat >>confdefs.h <<_ACEOF
30938 #define HAVE_DEV_PTS_AND_PTC 1
30947 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
30948 echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
30951 # Options from here on. Some of these are preset by platform above
30953 # Check whether --with-mantype was given.
30954 if test "${with_mantype+set}" = set; then
30955 withval=$with_mantype;
30961 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
30962 echo "$as_me: error: invalid man type: $withval" >&2;}
30963 { (exit 1); exit 1; }; }
30970 if test -z "$MANTYPE"; then
30971 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
30972 for ac_prog in nroff awf
30974 # Extract the first word of "$ac_prog", so it can be a program name with args.
30975 set dummy $ac_prog; ac_word=$2
30976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30978 if test "${ac_cv_path_NROFF+set}" = set; then
30979 echo $ECHO_N "(cached) $ECHO_C" >&6
30983 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
30986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30987 for as_dir in $TestPath
30990 test -z "$as_dir" && as_dir=.
30991 for ac_exec_ext in '' $ac_executable_extensions; do
30992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30993 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
30994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31004 NROFF=$ac_cv_path_NROFF
31005 if test -n "$NROFF"; then
31006 { echo "$as_me:$LINENO: result: $NROFF" >&5
31007 echo "${ECHO_T}$NROFF" >&6; }
31009 { echo "$as_me:$LINENO: result: no" >&5
31010 echo "${ECHO_T}no" >&6; }
31014 test -n "$NROFF" && break
31016 test -n "$NROFF" || NROFF="/bin/false"
31018 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
31020 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
31027 if test "$MANTYPE" = "doc"; then
31030 mansubdir=$MANTYPE;
31034 # Check whether to enable MD5 passwords
31037 # Check whether --with-md5-passwords was given.
31038 if test "${with_md5_passwords+set}" = set; then
31039 withval=$with_md5_passwords;
31040 if test "x$withval" != "xno" ; then
31042 cat >>confdefs.h <<\_ACEOF
31043 #define HAVE_MD5_PASSWORDS 1
31053 # Whether to disable shadow password support
31055 # Check whether --with-shadow was given.
31056 if test "${with_shadow+set}" = set; then
31057 withval=$with_shadow;
31058 if test "x$withval" = "xno" ; then
31059 cat >>confdefs.h <<\_ACEOF
31060 #define DISABLE_SHADOW 1
31070 if test -z "$disable_shadow" ; then
31071 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
31072 echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
31073 cat >conftest.$ac_ext <<_ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h. */
31080 #include <sys/types.h>
31081 #include <shadow.h>
31087 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
31092 rm -f conftest.$ac_objext
31093 if { (ac_try="$ac_compile"
31094 case "(($ac_try" in
31095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096 *) ac_try_echo=$ac_try;;
31098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099 (eval "$ac_compile") 2>conftest.er1
31101 grep -v '^ *+' conftest.er1 >conftest.err
31103 cat conftest.err >&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); } &&
31106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31107 { (case "(($ac_try" in
31108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31109 *) ac_try_echo=$ac_try;;
31111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112 (eval "$ac_try") 2>&5
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); }; } &&
31116 { ac_try='test -s conftest.$ac_objext'
31117 { (case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_try") 2>&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; }; then
31126 sp_expire_available=yes
31128 echo "$as_me: failed program was:" >&5
31129 sed 's/^/| /' conftest.$ac_ext >&5
31135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31137 if test "x$sp_expire_available" = "xyes" ; then
31138 { echo "$as_me:$LINENO: result: yes" >&5
31139 echo "${ECHO_T}yes" >&6; }
31141 cat >>confdefs.h <<\_ACEOF
31142 #define HAS_SHADOW_EXPIRE 1
31146 { echo "$as_me:$LINENO: result: no" >&5
31147 echo "${ECHO_T}no" >&6; }
31151 # Use ip address instead of hostname in $DISPLAY
31152 if test ! -z "$IPADDR_IN_DISPLAY" ; then
31153 DISPLAY_HACK_MSG="yes"
31155 cat >>confdefs.h <<\_ACEOF
31156 #define IPADDR_IN_DISPLAY 1
31160 DISPLAY_HACK_MSG="no"
31162 # Check whether --with-ipaddr-display was given.
31163 if test "${with_ipaddr_display+set}" = set; then
31164 withval=$with_ipaddr_display;
31165 if test "x$withval" != "xno" ; then
31166 cat >>confdefs.h <<\_ACEOF
31167 #define IPADDR_IN_DISPLAY 1
31170 DISPLAY_HACK_MSG="yes"
31178 # check for /etc/default/login and use it if present.
31179 # Check whether --enable-etc-default-login was given.
31180 if test "${enable_etc_default_login+set}" = set; then
31181 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
31182 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
31183 echo "$as_me: /etc/default/login handling disabled" >&6;}
31184 etc_default_login=no
31186 etc_default_login=yes
31189 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
31191 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
31192 echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
31193 etc_default_login=no
31195 etc_default_login=yes
31201 if test "x$etc_default_login" != "xno"; then
31202 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
31203 echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
31204 if test "${ac_cv_file___etc_default_login_+set}" = set; then
31205 echo $ECHO_N "(cached) $ECHO_C" >&6
31207 test "$cross_compiling" = yes &&
31208 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
31209 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
31210 { (exit 1); exit 1; }; }
31211 if test -r ""/etc/default/login""; then
31212 ac_cv_file___etc_default_login_=yes
31214 ac_cv_file___etc_default_login_=no
31217 { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
31218 echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
31219 if test $ac_cv_file___etc_default_login_ = yes; then
31220 external_path_file=/etc/default/login
31223 if test "x$external_path_file" = "x/etc/default/login"; then
31225 cat >>confdefs.h <<\_ACEOF
31226 #define HAVE_ETC_DEFAULT_LOGIN 1
31232 if test $ac_cv_func_login_getcapbool = "yes" && \
31233 test $ac_cv_header_login_cap_h = "yes" ; then
31234 external_path_file=/etc/login.conf
31237 # Whether to mess with the default path
31238 SERVER_PATH_MSG="(default)"
31240 # Check whether --with-default-path was given.
31241 if test "${with_default_path+set}" = set; then
31242 withval=$with_default_path;
31243 if test "x$external_path_file" = "x/etc/login.conf" ; then
31244 { echo "$as_me:$LINENO: WARNING:
31245 --with-default-path=PATH has no effect on this system.
31246 Edit /etc/login.conf instead." >&5
31247 echo "$as_me: WARNING:
31248 --with-default-path=PATH has no effect on this system.
31249 Edit /etc/login.conf instead." >&2;}
31250 elif test "x$withval" != "xno" ; then
31251 if test ! -z "$external_path_file" ; then
31252 { echo "$as_me:$LINENO: WARNING:
31253 --with-default-path=PATH will only be used if PATH is not defined in
31254 $external_path_file ." >&5
31255 echo "$as_me: WARNING:
31256 --with-default-path=PATH will only be used if PATH is not defined in
31257 $external_path_file ." >&2;}
31259 user_path="$withval"
31260 SERVER_PATH_MSG="$withval"
31264 if test "x$external_path_file" = "x/etc/login.conf" ; then
31265 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
31266 echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
31268 if test ! -z "$external_path_file" ; then
31269 { echo "$as_me:$LINENO: WARNING:
31270 If PATH is defined in $external_path_file, ensure the path to scp is included,
31271 otherwise scp will not work." >&5
31272 echo "$as_me: WARNING:
31273 If PATH is defined in $external_path_file, ensure the path to scp is included,
31274 otherwise scp will not work." >&2;}
31276 if test "$cross_compiling" = yes; then
31277 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
31280 cat >conftest.$ac_ext <<_ACEOF
31283 cat confdefs.h >>conftest.$ac_ext
31284 cat >>conftest.$ac_ext <<_ACEOF
31285 /* end confdefs.h. */
31287 /* find out what STDPATH is */
31289 #ifdef HAVE_PATHS_H
31290 # include <paths.h>
31292 #ifndef _PATH_STDPATH
31293 # ifdef _PATH_USERPATH /* Irix */
31294 # define _PATH_STDPATH _PATH_USERPATH
31296 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
31299 #include <sys/types.h>
31300 #include <sys/stat.h>
31302 #define DATA "conftest.stdpath"
31309 fd = fopen(DATA,"w");
31313 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
31320 rm -f conftest$ac_exeext
31321 if { (ac_try="$ac_link"
31322 case "(($ac_try" in
31323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324 *) ac_try_echo=$ac_try;;
31326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327 (eval "$ac_link") 2>&5
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31331 { (case "(($ac_try" in
31332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31333 *) ac_try_echo=$ac_try;;
31335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31336 (eval "$ac_try") 2>&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); }; }; then
31340 user_path=`cat conftest.stdpath`
31342 echo "$as_me: program exited with status $ac_status" >&5
31343 echo "$as_me: failed program was:" >&5
31344 sed 's/^/| /' conftest.$ac_ext >&5
31346 ( exit $ac_status )
31347 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
31349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31353 # make sure $bindir is in USER_PATH so scp will work
31354 t_bindir=`eval echo ${bindir}`
31356 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
31359 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
31361 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
31362 if test $? -ne 0 ; then
31363 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
31364 if test $? -ne 0 ; then
31365 user_path=$user_path:$t_bindir
31366 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
31367 echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
31374 if test "x$external_path_file" != "x/etc/login.conf" ; then
31376 cat >>confdefs.h <<_ACEOF
31377 #define USER_PATH "$user_path"
31383 # Set superuser path separately to user path
31385 # Check whether --with-superuser-path was given.
31386 if test "${with_superuser_path+set}" = set; then
31387 withval=$with_superuser_path;
31388 if test -n "$withval" && test "x$withval" != "xno" && \
31389 test "x${withval}" != "xyes"; then
31391 cat >>confdefs.h <<_ACEOF
31392 #define SUPERUSER_PATH "$withval"
31395 superuser_path=$withval
31403 { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
31404 echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
31405 IPV4_IN6_HACK_MSG="no"
31407 # Check whether --with-4in6 was given.
31408 if test "${with_4in6+set}" = set; then
31409 withval=$with_4in6;
31410 if test "x$withval" != "xno" ; then
31411 { echo "$as_me:$LINENO: result: yes" >&5
31412 echo "${ECHO_T}yes" >&6; }
31414 cat >>confdefs.h <<\_ACEOF
31415 #define IPV4_IN_IPV6 1
31418 IPV4_IN6_HACK_MSG="yes"
31420 { echo "$as_me:$LINENO: result: no" >&5
31421 echo "${ECHO_T}no" >&6; }
31426 if test "x$inet6_default_4in6" = "xyes"; then
31427 { echo "$as_me:$LINENO: result: yes (default)" >&5
31428 echo "${ECHO_T}yes (default)" >&6; }
31429 cat >>confdefs.h <<\_ACEOF
31430 #define IPV4_IN_IPV6 1
31433 IPV4_IN6_HACK_MSG="yes"
31435 { echo "$as_me:$LINENO: result: no (default)" >&5
31436 echo "${ECHO_T}no (default)" >&6; }
31443 # Whether to enable BSD auth support
31446 # Check whether --with-bsd-auth was given.
31447 if test "${with_bsd_auth+set}" = set; then
31448 withval=$with_bsd_auth;
31449 if test "x$withval" != "xno" ; then
31451 cat >>confdefs.h <<\_ACEOF
31462 # Where to place sshd.pid
31464 # make sure the directory exists
31465 if test ! -d $piddir ; then
31466 piddir=`eval echo ${sysconfdir}`
31468 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
31473 # Check whether --with-pid-dir was given.
31474 if test "${with_pid_dir+set}" = set; then
31475 withval=$with_pid_dir;
31476 if test -n "$withval" && test "x$withval" != "xno" && \
31477 test "x${withval}" != "xyes"; then
31479 if test ! -d $piddir ; then
31480 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
31481 echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
31490 cat >>confdefs.h <<_ACEOF
31491 #define _PATH_SSH_PIDDIR "$piddir"
31496 # Check whether --enable-lastlog was given.
31497 if test "${enable_lastlog+set}" = set; then
31498 enableval=$enable_lastlog;
31499 if test "x$enableval" = "xno" ; then
31500 cat >>confdefs.h <<\_ACEOF
31501 #define DISABLE_LASTLOG 1
31509 # Check whether --enable-utmp was given.
31510 if test "${enable_utmp+set}" = set; then
31511 enableval=$enable_utmp;
31512 if test "x$enableval" = "xno" ; then
31513 cat >>confdefs.h <<\_ACEOF
31514 #define DISABLE_UTMP 1
31522 # Check whether --enable-utmpx was given.
31523 if test "${enable_utmpx+set}" = set; then
31524 enableval=$enable_utmpx;
31525 if test "x$enableval" = "xno" ; then
31527 cat >>confdefs.h <<\_ACEOF
31528 #define DISABLE_UTMPX 1
31536 # Check whether --enable-wtmp was given.
31537 if test "${enable_wtmp+set}" = set; then
31538 enableval=$enable_wtmp;
31539 if test "x$enableval" = "xno" ; then
31540 cat >>confdefs.h <<\_ACEOF
31541 #define DISABLE_WTMP 1
31549 # Check whether --enable-wtmpx was given.
31550 if test "${enable_wtmpx+set}" = set; then
31551 enableval=$enable_wtmpx;
31552 if test "x$enableval" = "xno" ; then
31554 cat >>confdefs.h <<\_ACEOF
31555 #define DISABLE_WTMPX 1
31563 # Check whether --enable-libutil was given.
31564 if test "${enable_libutil+set}" = set; then
31565 enableval=$enable_libutil;
31566 if test "x$enableval" = "xno" ; then
31567 cat >>confdefs.h <<\_ACEOF
31568 #define DISABLE_LOGIN 1
31576 # Check whether --enable-pututline was given.
31577 if test "${enable_pututline+set}" = set; then
31578 enableval=$enable_pututline;
31579 if test "x$enableval" = "xno" ; then
31581 cat >>confdefs.h <<\_ACEOF
31582 #define DISABLE_PUTUTLINE 1
31590 # Check whether --enable-pututxline was given.
31591 if test "${enable_pututxline+set}" = set; then
31592 enableval=$enable_pututxline;
31593 if test "x$enableval" = "xno" ; then
31595 cat >>confdefs.h <<\_ACEOF
31596 #define DISABLE_PUTUTXLINE 1
31605 # Check whether --with-lastlog was given.
31606 if test "${with_lastlog+set}" = set; then
31607 withval=$with_lastlog;
31608 if test "x$withval" = "xno" ; then
31609 cat >>confdefs.h <<\_ACEOF
31610 #define DISABLE_LASTLOG 1
31613 elif test -n "$withval" && test "x${withval}" != "xyes"; then
31614 conf_lastlog_location=$withval
31622 { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
31623 echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
31624 cat >conftest.$ac_ext <<_ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h. */
31631 #include <sys/types.h>
31633 #ifdef HAVE_LASTLOG_H
31634 # include <lastlog.h>
31636 #ifdef HAVE_PATHS_H
31637 # include <paths.h>
31639 #ifdef HAVE_LOGIN_H
31640 # include <login.h>
31646 char *lastlog = LASTLOG_FILE;
31651 rm -f conftest.$ac_objext
31652 if { (ac_try="$ac_compile"
31653 case "(($ac_try" in
31654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655 *) ac_try_echo=$ac_try;;
31657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658 (eval "$ac_compile") 2>conftest.er1
31660 grep -v '^ *+' conftest.er1 >conftest.err
31662 cat conftest.err >&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); } &&
31665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31666 { (case "(($ac_try" in
31667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668 *) ac_try_echo=$ac_try;;
31670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671 (eval "$ac_try") 2>&5
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; } &&
31675 { ac_try='test -s conftest.$ac_objext'
31676 { (case "(($ac_try" in
31677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678 *) ac_try_echo=$ac_try;;
31680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681 (eval "$ac_try") 2>&5
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); }; }; then
31685 { echo "$as_me:$LINENO: result: yes" >&5
31686 echo "${ECHO_T}yes" >&6; }
31688 echo "$as_me: failed program was:" >&5
31689 sed 's/^/| /' conftest.$ac_ext >&5
31692 { echo "$as_me:$LINENO: result: no" >&5
31693 echo "${ECHO_T}no" >&6; }
31694 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
31695 echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
31696 cat >conftest.$ac_ext <<_ACEOF
31699 cat confdefs.h >>conftest.$ac_ext
31700 cat >>conftest.$ac_ext <<_ACEOF
31701 /* end confdefs.h. */
31703 #include <sys/types.h>
31705 #ifdef HAVE_LASTLOG_H
31706 # include <lastlog.h>
31708 #ifdef HAVE_PATHS_H
31709 # include <paths.h>
31715 char *lastlog = _PATH_LASTLOG;
31720 rm -f conftest.$ac_objext
31721 if { (ac_try="$ac_compile"
31722 case "(($ac_try" in
31723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724 *) ac_try_echo=$ac_try;;
31726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727 (eval "$ac_compile") 2>conftest.er1
31729 grep -v '^ *+' conftest.er1 >conftest.err
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } &&
31734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31735 { (case "(($ac_try" in
31736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737 *) ac_try_echo=$ac_try;;
31739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740 (eval "$ac_try") 2>&5
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); }; } &&
31744 { ac_try='test -s conftest.$ac_objext'
31745 { (case "(($ac_try" in
31746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747 *) ac_try_echo=$ac_try;;
31749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750 (eval "$ac_try") 2>&5
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); }; }; then
31754 { echo "$as_me:$LINENO: result: yes" >&5
31755 echo "${ECHO_T}yes" >&6; }
31757 echo "$as_me: failed program was:" >&5
31758 sed 's/^/| /' conftest.$ac_ext >&5
31761 { echo "$as_me:$LINENO: result: no" >&5
31762 echo "${ECHO_T}no" >&6; }
31763 system_lastlog_path=no
31767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31774 if test -z "$conf_lastlog_location"; then
31775 if test x"$system_lastlog_path" = x"no" ; then
31776 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
31777 if (test -d "$f" || test -f "$f") ; then
31778 conf_lastlog_location=$f
31781 if test -z "$conf_lastlog_location"; then
31782 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
31783 echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
31788 if test -n "$conf_lastlog_location"; then
31790 cat >>confdefs.h <<_ACEOF
31791 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
31796 { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
31797 echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
31798 cat >conftest.$ac_ext <<_ACEOF
31801 cat confdefs.h >>conftest.$ac_ext
31802 cat >>conftest.$ac_ext <<_ACEOF
31803 /* end confdefs.h. */
31805 #include <sys/types.h>
31807 #ifdef HAVE_PATHS_H
31808 # include <paths.h>
31814 char *utmp = UTMP_FILE;
31819 rm -f conftest.$ac_objext
31820 if { (ac_try="$ac_compile"
31821 case "(($ac_try" in
31822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823 *) ac_try_echo=$ac_try;;
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826 (eval "$ac_compile") 2>conftest.er1
31828 grep -v '^ *+' conftest.er1 >conftest.err
31830 cat conftest.err >&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } &&
31833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31834 { (case "(($ac_try" in
31835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836 *) ac_try_echo=$ac_try;;
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839 (eval "$ac_try") 2>&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); }; } &&
31843 { ac_try='test -s conftest.$ac_objext'
31844 { (case "(($ac_try" in
31845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846 *) ac_try_echo=$ac_try;;
31848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849 (eval "$ac_try") 2>&5
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); }; }; then
31853 { echo "$as_me:$LINENO: result: yes" >&5
31854 echo "${ECHO_T}yes" >&6; }
31856 echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31859 { echo "$as_me:$LINENO: result: no" >&5
31860 echo "${ECHO_T}no" >&6; }
31861 system_utmp_path=no
31865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31866 if test -z "$conf_utmp_location"; then
31867 if test x"$system_utmp_path" = x"no" ; then
31868 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
31869 if test -f $f ; then
31870 conf_utmp_location=$f
31873 if test -z "$conf_utmp_location"; then
31874 cat >>confdefs.h <<\_ACEOF
31875 #define DISABLE_UTMP 1
31881 if test -n "$conf_utmp_location"; then
31883 cat >>confdefs.h <<_ACEOF
31884 #define CONF_UTMP_FILE "$conf_utmp_location"
31889 { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
31890 echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
31891 cat >conftest.$ac_ext <<_ACEOF
31894 cat confdefs.h >>conftest.$ac_ext
31895 cat >>conftest.$ac_ext <<_ACEOF
31896 /* end confdefs.h. */
31898 #include <sys/types.h>
31900 #ifdef HAVE_PATHS_H
31901 # include <paths.h>
31907 char *wtmp = WTMP_FILE;
31912 rm -f conftest.$ac_objext
31913 if { (ac_try="$ac_compile"
31914 case "(($ac_try" in
31915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31916 *) ac_try_echo=$ac_try;;
31918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31919 (eval "$ac_compile") 2>conftest.er1
31921 grep -v '^ *+' conftest.er1 >conftest.err
31923 cat conftest.err >&5
31924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925 (exit $ac_status); } &&
31926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31927 { (case "(($ac_try" in
31928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31929 *) ac_try_echo=$ac_try;;
31931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31932 (eval "$ac_try") 2>&5
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); }; } &&
31936 { ac_try='test -s conftest.$ac_objext'
31937 { (case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_try") 2>&5
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; }; then
31946 { echo "$as_me:$LINENO: result: yes" >&5
31947 echo "${ECHO_T}yes" >&6; }
31949 echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31952 { echo "$as_me:$LINENO: result: no" >&5
31953 echo "${ECHO_T}no" >&6; }
31954 system_wtmp_path=no
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31959 if test -z "$conf_wtmp_location"; then
31960 if test x"$system_wtmp_path" = x"no" ; then
31961 for f in /usr/adm/wtmp /var/log/wtmp; do
31962 if test -f $f ; then
31963 conf_wtmp_location=$f
31966 if test -z "$conf_wtmp_location"; then
31967 cat >>confdefs.h <<\_ACEOF
31968 #define DISABLE_WTMP 1
31974 if test -n "$conf_wtmp_location"; then
31976 cat >>confdefs.h <<_ACEOF
31977 #define CONF_WTMP_FILE "$conf_wtmp_location"
31983 { echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
31984 echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
31985 cat >conftest.$ac_ext <<_ACEOF
31988 cat confdefs.h >>conftest.$ac_ext
31989 cat >>conftest.$ac_ext <<_ACEOF
31990 /* end confdefs.h. */
31992 #include <sys/types.h>
31994 #ifdef HAVE_UTMPX_H
31997 #ifdef HAVE_PATHS_H
31998 # include <paths.h>
32004 char *utmpx = UTMPX_FILE;
32009 rm -f conftest.$ac_objext
32010 if { (ac_try="$ac_compile"
32011 case "(($ac_try" in
32012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013 *) ac_try_echo=$ac_try;;
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016 (eval "$ac_compile") 2>conftest.er1
32018 grep -v '^ *+' conftest.er1 >conftest.err
32020 cat conftest.err >&5
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); } &&
32023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32024 { (case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest.$ac_objext'
32034 { (case "(($ac_try" in
32035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036 *) ac_try_echo=$ac_try;;
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_try") 2>&5
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; }; then
32043 { echo "$as_me:$LINENO: result: yes" >&5
32044 echo "${ECHO_T}yes" >&6; }
32046 echo "$as_me: failed program was:" >&5
32047 sed 's/^/| /' conftest.$ac_ext >&5
32049 { echo "$as_me:$LINENO: result: no" >&5
32050 echo "${ECHO_T}no" >&6; }
32051 system_utmpx_path=no
32055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32056 if test -z "$conf_utmpx_location"; then
32057 if test x"$system_utmpx_path" = x"no" ; then
32058 cat >>confdefs.h <<\_ACEOF
32059 #define DISABLE_UTMPX 1
32065 cat >>confdefs.h <<_ACEOF
32066 #define CONF_UTMPX_FILE "$conf_utmpx_location"
32071 { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
32072 echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
32073 cat >conftest.$ac_ext <<_ACEOF
32076 cat confdefs.h >>conftest.$ac_ext
32077 cat >>conftest.$ac_ext <<_ACEOF
32078 /* end confdefs.h. */
32080 #include <sys/types.h>
32082 #ifdef HAVE_UTMPX_H
32085 #ifdef HAVE_PATHS_H
32086 # include <paths.h>
32092 char *wtmpx = WTMPX_FILE;
32097 rm -f conftest.$ac_objext
32098 if { (ac_try="$ac_compile"
32099 case "(($ac_try" in
32100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32101 *) ac_try_echo=$ac_try;;
32103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32104 (eval "$ac_compile") 2>conftest.er1
32106 grep -v '^ *+' conftest.er1 >conftest.err
32108 cat conftest.err >&5
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); } &&
32111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32112 { (case "(($ac_try" in
32113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32114 *) ac_try_echo=$ac_try;;
32116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32117 (eval "$ac_try") 2>&5
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); }; } &&
32121 { ac_try='test -s conftest.$ac_objext'
32122 { (case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_try") 2>&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; }; then
32131 { echo "$as_me:$LINENO: result: yes" >&5
32132 echo "${ECHO_T}yes" >&6; }
32134 echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32137 { echo "$as_me:$LINENO: result: no" >&5
32138 echo "${ECHO_T}no" >&6; }
32139 system_wtmpx_path=no
32143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32144 if test -z "$conf_wtmpx_location"; then
32145 if test x"$system_wtmpx_path" = x"no" ; then
32146 cat >>confdefs.h <<\_ACEOF
32147 #define DISABLE_WTMPX 1
32153 cat >>confdefs.h <<_ACEOF
32154 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
32160 if test ! -z "$blibpath" ; then
32161 LDFLAGS="$LDFLAGS $blibflags$blibpath"
32162 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
32163 echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
32166 CFLAGS="$CFLAGS $werror_flags"
32169 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
32171 cat >confcache <<\_ACEOF
32172 # This file is a shell script that caches the results of configure
32173 # tests run on this system so they can be shared between configure
32174 # scripts and configure runs, see configure's option --config-cache.
32175 # It is not useful on other systems. If it contains results you don't
32176 # want to keep, you may remove or edit it.
32178 # config.status only pays attention to the cache file if you give it
32179 # the --recheck option to rerun configure.
32181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32183 # following values.
32187 # The following way of writing the cache mishandles newlines in values,
32188 # but we know of no workaround that is simple, portable, and efficient.
32189 # So, we kill variables containing newlines.
32190 # Ultrix sh set writes to stderr and can't be redirected directly,
32191 # and sets the high bit in the cache file unless we assign to the vars.
32193 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32194 eval ac_val=\$$ac_var
32198 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32199 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32202 _ | IFS | as_nl) ;; #(
32203 *) $as_unset $ac_var ;;
32209 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32210 *${as_nl}ac_space=\ *)
32211 # `set' does not quote correctly, so add quotes (double-quote
32212 # substitution turns \\\\ into \\, and sed turns \\ into \).
32215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32218 # `set' quotes correctly as required by POSIX, so do not add quotes.
32219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32230 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32232 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32233 if test -w "$cache_file"; then
32234 test "x$cache_file" != "x/dev/null" &&
32235 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32236 echo "$as_me: updating cache $cache_file" >&6;}
32237 cat confcache >$cache_file
32239 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32240 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32245 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32246 # Let make expand exec_prefix.
32247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32249 DEFS=-DHAVE_CONFIG_H
32253 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32254 # 1. Remove the extension, and $U if already installed.
32255 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32256 ac_i=`echo "$ac_i" | sed "$ac_script"`
32257 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32258 # will be set to the directory where LIBOBJS objects are built.
32259 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32260 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32262 LIBOBJS=$ac_libobjs
32264 LTLIBOBJS=$ac_ltlibobjs
32268 : ${CONFIG_STATUS=./config.status}
32269 ac_clean_files_save=$ac_clean_files
32270 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32271 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32272 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32273 cat >$CONFIG_STATUS <<_ACEOF
32275 # Generated by $as_me.
32276 # Run this file to recreate the current configuration.
32277 # Compiler output produced by configure, useful for debugging
32278 # configure, is in config.log if it exists.
32281 ac_cs_recheck=false
32283 SHELL=\${CONFIG_SHELL-$SHELL}
32286 cat >>$CONFIG_STATUS <<\_ACEOF
32287 ## --------------------- ##
32288 ## M4sh Initialization. ##
32289 ## --------------------- ##
32291 # Be Bourne compatible
32292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32295 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32296 # is contrary to our usage. Disable this feature.
32297 alias -g '${1+"$@"}'='"$@"'
32298 setopt NO_GLOB_SUBST
32300 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
32302 BIN_SH=xpg4; export BIN_SH # for Tru64
32303 DUALCASE=1; export DUALCASE # for MKS sh
32307 # Avoid depending upon Character Ranges.
32308 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32309 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32310 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32311 as_cr_digits='0123456789'
32312 as_cr_alnum=$as_cr_Letters$as_cr_digits
32314 # The user is always right.
32315 if test "${PATH_SEPARATOR+set}" != set; then
32316 echo "#! /bin/sh" >conf$$.sh
32317 echo "exit 0" >>conf$$.sh
32319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32327 # Support unset when possible.
32328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32336 # We need space, tab and new line, in precisely that order. Quoting is
32337 # there to prevent editors from complaining about space-tab.
32338 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32339 # splitting by setting IFS to empty value.)
32344 # Find who we are. Look in the path if we contain no directory separator.
32346 *[\\/]* ) as_myself=$0 ;;
32347 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32348 for as_dir in $PATH
32351 test -z "$as_dir" && as_dir=.
32352 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32358 # We did not find ourselves, most probably we were run as `sh COMMAND'
32359 # in which case we are not to be found in the path.
32360 if test "x$as_myself" = x; then
32363 if test ! -f "$as_myself"; then
32364 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32365 { (exit 1); exit 1; }
32368 # Work around bugs in pre-3.0 UWIN ksh.
32369 for as_var in ENV MAIL MAILPATH
32370 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32378 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32379 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32380 LC_TELEPHONE LC_TIME
32382 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32383 eval $as_var=C; export $as_var
32385 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32389 # Required to use basename.
32390 if expr a : '\(a\)' >/dev/null 2>&1 &&
32391 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32397 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32398 as_basename=basename
32404 # Name of the executable.
32405 as_me=`$as_basename -- "$0" ||
32406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32407 X"$0" : 'X\(//\)$' \| \
32408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32410 sed '/^.*\/\([^/][^/]*\)\/*$/{
32429 as_lineno_1=$LINENO
32430 as_lineno_2=$LINENO
32431 test "x$as_lineno_1" != "x$as_lineno_2" &&
32432 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32434 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32435 # uniformly replaced by the line number. The first 'sed' inserts a
32436 # line-number line after each line using $LINENO; the second 'sed'
32437 # does the real work. The second script uses 'N' to pair each
32438 # line-number line with the line containing $LINENO, and appends
32439 # trailing '-' during substitution so that $LINENO is not a special
32440 # case at line end.
32441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32442 # scripts with optimization help from Paolo Bonzini. Blame Lee
32443 # E. McMahon (1931-1989) for sed's syntax. :-)
32455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32458 ' >$as_me.lineno &&
32459 chmod +x "$as_me.lineno" ||
32460 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32461 { (exit 1); exit 1; }; }
32463 # Don't try to exec as it changes $[0], causing all sort of problems
32464 # (the dirname of $[0] is not the place where we might find the
32465 # original and so on. Autoconf is especially sensitive to this).
32466 . "./$as_me.lineno"
32467 # Exit status is that of the last command.
32472 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32478 ECHO_C= ECHO_N= ECHO_T=
32479 case `echo -n x` in
32481 case `echo 'x\c'` in
32482 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32489 if expr a : '\(a\)' >/dev/null 2>&1 &&
32490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32496 rm -f conf$$ conf$$.exe conf$$.file
32497 if test -d conf$$.dir; then
32498 rm -f conf$$.dir/conf$$.file
32504 if ln -s conf$$.file conf$$ 2>/dev/null; then
32506 # ... but there are two gotchas:
32507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32509 # In both cases, we have to default to `cp -p'.
32510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32512 elif ln conf$$.file conf$$ 2>/dev/null; then
32517 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32518 rmdir conf$$.dir 2>/dev/null
32520 if mkdir -p . 2>/dev/null; then
32523 test -d ./-p && rmdir ./-p
32527 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
32528 # systems may use methods other than mode bits to determine executability.
32529 cat >conf$$.file <<_ASEOF
32533 chmod +x conf$$.file
32534 if test -x conf$$.file >/dev/null 2>&1; then
32535 as_executable_p="test -x"
32541 # Sed expression to map a string onto a valid CPP name.
32542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32544 # Sed expression to map a string onto a valid variable name.
32545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32550 # Save the log message, to keep $[0] and so on meaningful, and to
32551 # report actual input values of CONFIG_FILES etc. instead of their
32552 # values after options handling.
32554 This file was extended by OpenSSH $as_me Portable, which was
32555 generated by GNU Autoconf 2.60. Invocation command line was
32557 CONFIG_FILES = $CONFIG_FILES
32558 CONFIG_HEADERS = $CONFIG_HEADERS
32559 CONFIG_LINKS = $CONFIG_LINKS
32560 CONFIG_COMMANDS = $CONFIG_COMMANDS
32563 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32568 cat >>$CONFIG_STATUS <<_ACEOF
32569 # Files that config.status was made for.
32570 config_files="$ac_config_files"
32571 config_headers="$ac_config_headers"
32575 cat >>$CONFIG_STATUS <<\_ACEOF
32577 \`$as_me' instantiates files from templates according to the
32578 current configuration.
32580 Usage: $0 [OPTIONS] [FILE]...
32582 -h, --help print this help, then exit
32583 -V, --version print version number, then exit
32584 -q, --quiet do not print progress messages
32585 -d, --debug don't remove temporary files
32586 --recheck update $as_me by reconfiguring in the same conditions
32587 --file=FILE[:TEMPLATE]
32588 instantiate the configuration file FILE
32589 --header=FILE[:TEMPLATE]
32590 instantiate the configuration header FILE
32592 Configuration files:
32595 Configuration headers:
32598 Report bugs to <bug-autoconf@gnu.org>."
32601 cat >>$CONFIG_STATUS <<_ACEOF
32603 OpenSSH config.status Portable
32604 configured by $0, generated by GNU Autoconf 2.60,
32605 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32607 Copyright (C) 2006 Free Software Foundation, Inc.
32608 This config.status script is free software; the Free Software Foundation
32609 gives unlimited permission to copy, distribute and modify it."
32616 cat >>$CONFIG_STATUS <<\_ACEOF
32617 # If no file are specified by the user, then we need to provide default
32618 # value. By we need to know if files were specified by the user.
32624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32636 # Handling of the options.
32637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32640 echo "$ac_cs_version"; exit ;;
32641 --debug | --debu | --deb | --de | --d | -d )
32643 --file | --fil | --fi | --f )
32645 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32646 ac_need_defaults=false;;
32647 --header | --heade | --head | --hea )
32649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32650 ac_need_defaults=false;;
32652 # Conflict between --help and --header
32653 { echo "$as_me: error: ambiguous option: $1
32654 Try \`$0 --help' for more information." >&2
32655 { (exit 1); exit 1; }; };;
32656 --help | --hel | -h )
32657 echo "$ac_cs_usage"; exit ;;
32658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32662 # This is an error.
32663 -*) { echo "$as_me: error: unrecognized option: $1
32664 Try \`$0 --help' for more information." >&2
32665 { (exit 1); exit 1; }; } ;;
32667 *) ac_config_targets="$ac_config_targets $1"
32668 ac_need_defaults=false ;;
32674 ac_configure_extra_args=
32676 if $ac_cs_silent; then
32678 ac_configure_extra_args="$ac_configure_extra_args --silent"
32682 cat >>$CONFIG_STATUS <<_ACEOF
32683 if \$ac_cs_recheck; then
32684 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32685 CONFIG_SHELL=$SHELL
32686 export CONFIG_SHELL
32687 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32691 cat >>$CONFIG_STATUS <<\_ACEOF
32695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32696 ## Running $as_me. ##
32702 cat >>$CONFIG_STATUS <<_ACEOF
32705 cat >>$CONFIG_STATUS <<\_ACEOF
32707 # Handling of arguments.
32708 for ac_config_target in $ac_config_targets
32710 case $ac_config_target in
32711 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32712 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32713 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
32714 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
32715 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
32716 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
32717 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
32718 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
32719 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
32720 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
32722 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32723 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32724 { (exit 1); exit 1; }; };;
32729 # If the user did not use the arguments to specify the items to instantiate,
32730 # then the envvar interface is used. Set only those that are not.
32731 # We use the long form for the default assignment because of an extremely
32732 # bizarre bug on SunOS 4.1.3.
32733 if $ac_need_defaults; then
32734 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32735 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32738 # Have a temporary directory for convenience. Make it in the build tree
32739 # simply because there is no reason against having it here, and in addition,
32740 # creating and moving files from /tmp can sometimes cause problems.
32741 # Hook for its removal unless debugging.
32742 # Note that there is a small window in which the directory will not be cleaned:
32743 # after its creation but before its name has been assigned to `$tmp'.
32747 trap 'exit_status=$?
32748 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32750 trap '{ (exit 1); exit 1; }' 1 2 13 15
32752 # Create a (secure) tmp directory for tmp files.
32755 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32756 test -n "$tmp" && test -d "$tmp"
32759 tmp=./conf$$-$RANDOM
32760 (umask 077 && mkdir "$tmp")
32763 echo "$me: cannot create a temporary directory in ." >&2
32764 { (exit 1); exit 1; }
32768 # Set up the sed scripts for CONFIG_FILES section.
32771 # No need to generate the scripts if there are no CONFIG_FILES.
32772 # This happens for instance when ./config.status config.h
32773 if test -n "$CONFIG_FILES"; then
32780 for ac_last_try in false false false false false :; do
32781 cat >conf$$subs.sed <<_ACEOF
32782 SHELL!$SHELL$ac_delim
32783 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32784 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32785 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32786 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32787 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32788 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32789 exec_prefix!$exec_prefix$ac_delim
32790 prefix!$prefix$ac_delim
32791 program_transform_name!$program_transform_name$ac_delim
32792 bindir!$bindir$ac_delim
32793 sbindir!$sbindir$ac_delim
32794 libexecdir!$libexecdir$ac_delim
32795 datarootdir!$datarootdir$ac_delim
32796 datadir!$datadir$ac_delim
32797 sysconfdir!$sysconfdir$ac_delim
32798 sharedstatedir!$sharedstatedir$ac_delim
32799 localstatedir!$localstatedir$ac_delim
32800 includedir!$includedir$ac_delim
32801 oldincludedir!$oldincludedir$ac_delim
32802 docdir!$docdir$ac_delim
32803 infodir!$infodir$ac_delim
32804 htmldir!$htmldir$ac_delim
32805 dvidir!$dvidir$ac_delim
32806 pdfdir!$pdfdir$ac_delim
32807 psdir!$psdir$ac_delim
32808 libdir!$libdir$ac_delim
32809 localedir!$localedir$ac_delim
32810 mandir!$mandir$ac_delim
32811 DEFS!$DEFS$ac_delim
32812 ECHO_C!$ECHO_C$ac_delim
32813 ECHO_N!$ECHO_N$ac_delim
32814 ECHO_T!$ECHO_T$ac_delim
32815 LIBS!$LIBS$ac_delim
32816 build_alias!$build_alias$ac_delim
32817 host_alias!$host_alias$ac_delim
32818 target_alias!$target_alias$ac_delim
32820 CFLAGS!$CFLAGS$ac_delim
32821 LDFLAGS!$LDFLAGS$ac_delim
32822 CPPFLAGS!$CPPFLAGS$ac_delim
32823 ac_ct_CC!$ac_ct_CC$ac_delim
32824 EXEEXT!$EXEEXT$ac_delim
32825 OBJEXT!$OBJEXT$ac_delim
32826 build!$build$ac_delim
32827 build_cpu!$build_cpu$ac_delim
32828 build_vendor!$build_vendor$ac_delim
32829 build_os!$build_os$ac_delim
32830 host!$host$ac_delim
32831 host_cpu!$host_cpu$ac_delim
32832 host_vendor!$host_vendor$ac_delim
32833 host_os!$host_os$ac_delim
32835 GREP!$GREP$ac_delim
32836 EGREP!$EGREP$ac_delim
32838 RANLIB!$RANLIB$ac_delim
32839 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32840 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32841 INSTALL_DATA!$INSTALL_DATA$ac_delim
32844 KILL!$KILL$ac_delim
32845 PERL!$PERL$ac_delim
32848 TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
32850 TEST_SHELL!$TEST_SHELL$ac_delim
32851 PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
32852 PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
32853 MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
32854 STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
32855 LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
32856 PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
32858 SSHDLIBS!$SSHDLIBS$ac_delim
32859 LIBWRAP!$LIBWRAP$ac_delim
32860 LIBEDIT!$LIBEDIT$ac_delim
32861 LIBPAM!$LIBPAM$ac_delim
32862 INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
32863 SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
32864 PROG_LS!$PROG_LS$ac_delim
32865 PROG_NETSTAT!$PROG_NETSTAT$ac_delim
32866 PROG_ARP!$PROG_ARP$ac_delim
32867 PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
32868 PROG_JSTAT!$PROG_JSTAT$ac_delim
32869 PROG_PS!$PROG_PS$ac_delim
32870 PROG_SAR!$PROG_SAR$ac_delim
32871 PROG_W!$PROG_W$ac_delim
32872 PROG_WHO!$PROG_WHO$ac_delim
32873 PROG_LAST!$PROG_LAST$ac_delim
32874 PROG_LASTLOG!$PROG_LASTLOG$ac_delim
32875 PROG_DF!$PROG_DF$ac_delim
32876 PROG_VMSTAT!$PROG_VMSTAT$ac_delim
32877 PROG_UPTIME!$PROG_UPTIME$ac_delim
32878 PROG_IPCS!$PROG_IPCS$ac_delim
32881 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32883 elif $ac_last_try; then
32884 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32885 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32886 { (exit 1); exit 1; }; }
32888 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32892 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32893 if test -n "$ac_eof"; then
32894 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32895 ac_eof=`expr $ac_eof + 1`
32898 cat >>$CONFIG_STATUS <<_ACEOF
32899 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32903 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32904 s/^/s,@/; s/!/@,|#_!!_#|/
32907 s/'"$ac_delim"'$/,g/; t
32909 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32910 ' >>$CONFIG_STATUS <conf$$subs.sed
32911 rm -f conf$$subs.sed
32912 cat >>$CONFIG_STATUS <<_ACEOF
32918 for ac_last_try in false false false false false :; do
32919 cat >conf$$subs.sed <<_ACEOF
32920 PROG_TAIL!$PROG_TAIL$ac_delim
32921 INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
32922 OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim
32923 LIBSELINUX!$LIBSELINUX$ac_delim
32924 PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
32925 xauth_path!$xauth_path$ac_delim
32926 STRIP_OPT!$STRIP_OPT$ac_delim
32927 XAUTH_PATH!$XAUTH_PATH$ac_delim
32928 NROFF!$NROFF$ac_delim
32929 MANTYPE!$MANTYPE$ac_delim
32930 mansubdir!$mansubdir$ac_delim
32931 user_path!$user_path$ac_delim
32932 piddir!$piddir$ac_delim
32933 LIBOBJS!$LIBOBJS$ac_delim
32934 LTLIBOBJS!$LTLIBOBJS$ac_delim
32937 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
32939 elif $ac_last_try; then
32940 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32941 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32942 { (exit 1); exit 1; }; }
32944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32948 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32949 if test -n "$ac_eof"; then
32950 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32951 ac_eof=`expr $ac_eof + 1`
32954 cat >>$CONFIG_STATUS <<_ACEOF
32955 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32956 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32959 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32960 s/^/s,@/; s/!/@,|#_!!_#|/
32963 s/'"$ac_delim"'$/,g/; t
32965 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32966 ' >>$CONFIG_STATUS <conf$$subs.sed
32967 rm -f conf$$subs.sed
32968 cat >>$CONFIG_STATUS <<_ACEOF
32975 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32976 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32977 # trailing colons and then remove the whole line if VPATH becomes empty
32978 # (actually we leave an empty line to preserve line numbers).
32979 if test "x$srcdir" = x.; then
32980 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32981 s/:*\$(srcdir):*/:/
32982 s/:*\${srcdir}:*/:/
32984 s/^\([^=]*=[ ]*\):*/\1/
32990 cat >>$CONFIG_STATUS <<\_ACEOF
32991 fi # test -n "$CONFIG_FILES"
32994 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
32997 :[FHLC]) ac_mode=$ac_tag; continue;;
32999 case $ac_mode$ac_tag in
33001 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33002 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33003 { (exit 1); exit 1; }; };;
33004 :[FH]-) ac_tag=-:-;;
33005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33022 -) ac_f="$tmp/stdin";;
33023 *) # Look for the file first in the build tree, then in the source tree
33024 # (if the path is not absolute). The absolute path cannot be DOS-style,
33025 # because $ac_f cannot contain `:'.
33029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33031 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33032 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33033 { (exit 1); exit 1; }; };;
33035 ac_file_inputs="$ac_file_inputs $ac_f"
33038 # Let's still pretend it is `configure' which instantiates (i.e., don't
33039 # use $as_me), people would be surprised to read:
33040 # /* config.h. Generated by config.status. */
33041 configure_input="Generated from "`IFS=:
33042 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33043 if test x"$ac_file" != x-; then
33044 configure_input="$ac_file. $configure_input"
33045 { echo "$as_me:$LINENO: creating $ac_file" >&5
33046 echo "$as_me: creating $ac_file" >&6;}
33050 *:-:* | *:-) cat >"$tmp/stdin";;
33055 ac_dir=`$as_dirname -- "$ac_file" ||
33056 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33057 X"$ac_file" : 'X\(//\)[^/]' \| \
33058 X"$ac_file" : 'X\(//\)$' \| \
33059 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33065 /^X\(\/\/\)[^/].*/{
33080 -*) as_dir=./$as_dir;;
33082 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33086 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33087 *) as_qdir=$as_dir;;
33089 as_dirs="'$as_qdir' $as_dirs"
33090 as_dir=`$as_dirname -- "$as_dir" ||
33091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33092 X"$as_dir" : 'X\(//\)[^/]' \| \
33093 X"$as_dir" : 'X\(//\)$' \| \
33094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33100 /^X\(\/\/\)[^/].*/{
33113 test -d "$as_dir" && break
33115 test -z "$as_dirs" || eval "mkdir $as_dirs"
33116 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33117 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33118 { (exit 1); exit 1; }; }; }
33122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33124 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33125 # A ".." for each directory in $ac_dir_suffix.
33126 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33127 case $ac_top_builddir_sub in
33128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33132 ac_abs_top_builddir=$ac_pwd
33133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33134 # for backward compatibility:
33135 ac_top_builddir=$ac_top_build_prefix
33138 .) # We are building in place.
33140 ac_top_srcdir=$ac_top_builddir_sub
33141 ac_abs_top_srcdir=$ac_pwd ;;
33142 [\\/]* | ?:[\\/]* ) # Absolute name.
33143 ac_srcdir=$srcdir$ac_dir_suffix;
33144 ac_top_srcdir=$srcdir
33145 ac_abs_top_srcdir=$srcdir ;;
33146 *) # Relative name.
33147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33148 ac_top_srcdir=$ac_top_build_prefix$srcdir
33149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33166 cat >>$CONFIG_STATUS <<\_ACEOF
33167 # If the template does not know about datarootdir, expand it.
33168 # FIXME: This hack should be removed a few years after 2.60.
33169 ac_datarootdir_hack=; ac_datarootdir_seen=
33171 case `sed -n '/datarootdir/ {
33180 ' $ac_file_inputs` in
33181 *datarootdir*) ac_datarootdir_seen=yes;;
33182 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33183 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33184 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33186 cat >>$CONFIG_STATUS <<_ACEOF
33187 ac_datarootdir_hack='
33188 s&@datadir@&$datadir&g
33189 s&@docdir@&$docdir&g
33190 s&@infodir@&$infodir&g
33191 s&@localedir@&$localedir&g
33192 s&@mandir@&$mandir&g
33193 s&\\\${datarootdir}&$datarootdir&g' ;;
33197 # Neutralize VPATH when `$srcdir' = `.'.
33198 # Shell code in configure.ac might set extrasub.
33199 # FIXME: do we really want to maintain this feature?
33200 cat >>$CONFIG_STATUS <<_ACEOF
33204 cat >>$CONFIG_STATUS <<\_ACEOF
33206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33207 s&@configure_input@&$configure_input&;t t
33208 s&@top_builddir@&$ac_top_builddir_sub&;t t
33209 s&@srcdir@&$ac_srcdir&;t t
33210 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33211 s&@top_srcdir@&$ac_top_srcdir&;t t
33212 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33213 s&@builddir@&$ac_builddir&;t t
33214 s&@abs_builddir@&$ac_abs_builddir&;t t
33215 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33216 s&@INSTALL@&$ac_INSTALL&;t t
33217 $ac_datarootdir_hack
33218 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33220 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33221 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33222 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33223 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33224 which seems to be undefined. Please make sure it is defined." >&5
33225 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33226 which seems to be undefined. Please make sure it is defined." >&2;}
33230 -) cat "$tmp/out"; rm -f "$tmp/out";;
33231 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33240 # Transform confdefs.h into a sed script `conftest.defines', that
33241 # substitutes the proper values into config.h.in to produce config.h.
33242 rm -f conftest.defines conftest.tail
33243 # First, append a space to every undef/define line, to ease matching.
33244 echo 's/$/ /' >conftest.defines
33245 # Then, protect against being on the right side of a sed subst, or in
33246 # an unquoted here document, in config.status. If some macros were
33247 # called several times there might be several #defines for the same
33248 # symbol, which is useless. But do not sort them, since the last
33249 # AC_DEFINE must be honored.
33250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33251 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33252 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33253 # PARAMS is the parameter list in the macro definition--in most cases, it's
33254 # just an empty string.
33255 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33256 ac_dB='\\)[ (].*,\\1define\\2'
33264 s/^[ ]*#[ ]*define[ ][ ]*//
33269 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33270 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33271 ' >>conftest.defines
33273 # Remove the space that was appended to ease matching.
33274 # Then replace #undef with comments. This is necessary, for
33275 # example, in the case of _POSIX_SOURCE, which is predefined and required
33276 # on some systems where configure will not decide to define it.
33277 # (The regexp can be short, since the line contains either #define or #undef.)
33279 s,^[ #]*u.*,/* & */,' >>conftest.defines
33281 # Break up conftest.defines:
33282 ac_max_sed_lines=50
33284 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33285 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33286 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33288 ac_in='$ac_file_inputs'
33289 ac_out='"$tmp/out1"'
33290 ac_nxt='"$tmp/out2"'
33294 # Write a here document:
33295 cat >>$CONFIG_STATUS <<_ACEOF
33296 # First, check the format of the line:
33297 cat >"\$tmp/defines.sed" <<\\CEOF
33298 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33299 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33303 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33305 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33306 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33307 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33308 grep . conftest.tail >/dev/null || break
33309 rm -f conftest.defines
33310 mv conftest.tail conftest.defines
33312 rm -f conftest.defines conftest.tail
33314 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33315 cat >>$CONFIG_STATUS <<\_ACEOF
33316 if test x"$ac_file" != x-; then
33317 echo "/* $configure_input */" >"$tmp/config.h"
33318 cat "$ac_result" >>"$tmp/config.h"
33319 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33320 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33321 echo "$as_me: $ac_file is unchanged" >&6;}
33324 mv "$tmp/config.h" $ac_file
33327 echo "/* $configure_input */"
33339 { (exit 0); exit 0; }
33341 chmod +x $CONFIG_STATUS
33342 ac_clean_files=$ac_clean_files_save
33345 # configure is writing to config.log, and then calls config.status.
33346 # config.status does its own redirection, appending to config.log.
33347 # Unfortunately, on DOS this fails, as config.log is still kept open
33348 # by configure, so config.status won't be able to write to it; its
33349 # output is simply discarded. So we exec the FD to /dev/null,
33350 # effectively closing config.log, so it can be properly (re)opened and
33351 # appended to by config.status. When coming back to configure, we
33352 # need to make the FD available again.
33353 if test "$no_create" != yes; then
33355 ac_config_status_args=
33356 test "$silent" = yes &&
33357 ac_config_status_args="$ac_config_status_args --quiet"
33359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33362 # would make configure fail if this is the last instruction.
33363 $ac_cs_success || { (exit 1); exit 1; }
33367 # Print summary of options
33369 # Someone please show me a better way :)
33370 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
33371 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
33372 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
33373 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
33374 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
33375 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
33376 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
33377 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
33378 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
33379 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
33382 echo "OpenSSH has been configured with the following options:"
33383 echo " User binaries: $B"
33384 echo " System binaries: $C"
33385 echo " Configuration files: $D"
33386 echo " Askpass program: $E"
33387 echo " Manual pages: $F"
33388 echo " PID file: $G"
33389 echo " Privilege separation chroot path: $H"
33390 if test "x$external_path_file" = "x/etc/login.conf" ; then
33391 echo " At runtime, sshd will use the path defined in $external_path_file"
33392 echo " Make sure the path to scp is present, otherwise scp will not work"
33394 echo " sshd default user PATH: $I"
33395 if test ! -z "$external_path_file"; then
33396 echo " (If PATH is set in $external_path_file it will be used instead. If"
33397 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
33400 if test ! -z "$superuser_path" ; then
33401 echo " sshd superuser user PATH: $J"
33403 echo " Manpage format: $MANTYPE"
33404 echo " PAM support: $PAM_MSG"
33405 echo " OSF SIA support: $SIA_MSG"
33406 echo " KerberosV support: $KRB5_MSG"
33407 echo " SELinux support: $SELINUX_MSG"
33408 echo " Smartcard support: $SCARD_MSG"
33409 echo " S/KEY support: $SKEY_MSG"
33410 echo " TCP Wrappers support: $TCPW_MSG"
33411 echo " MD5 password support: $MD5_MSG"
33412 echo " libedit support: $LIBEDIT_MSG"
33413 echo " Solaris process contract support: $SPC_MSG"
33414 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
33415 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
33416 echo " BSD Auth support: $BSD_AUTH_MSG"
33417 echo " Random number source: $RAND_MSG"
33418 if test ! -z "$USE_RAND_HELPER" ; then
33419 echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
33424 echo " Host: ${host}"
33425 echo " Compiler: ${CC}"
33426 echo " Compiler flags: ${CFLAGS}"
33427 echo "Preprocessor flags: ${CPPFLAGS}"
33428 echo " Linker flags: ${LDFLAGS}"
33429 echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
33433 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
33434 echo "SVR4 style packages are supported with \"make package\""
33438 if test "x$PAM_MSG" = "xyes" ; then
33439 echo "PAM is enabled. You may need to install a PAM control file "
33440 echo "for sshd, otherwise password authentication may fail. "
33441 echo "Example PAM control files can be found in the contrib/ "
33442 echo "subdirectory"
33446 if test ! -z "$RAND_HELPER_CMDHASH" ; then
33447 echo "WARNING: you are using the builtin random number collection "
33448 echo "service. Please read WARNING.RNG and request that your OS "
33449 echo "vendor includes kernel-based random number collection in "
33450 echo "future versions of your OS."
33454 if test ! -z "$NO_PEERCHECK" ; then
33455 echo "WARNING: the operating system that you are using does not "
33456 echo "appear to support either the getpeereid() API nor the "
33457 echo "SO_PEERCRED getsockopt() option. These facilities are used to "
33458 echo "enforce security checks to prevent unauthorised connections to "
33459 echo "ssh-agent. Their absence increases the risk that a malicious "
33460 echo "user can connect to your agent. "
33464 if test "$AUDIT_MODULE" = "bsm" ; then
33465 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
33466 echo "See the Solaris section in README.platform for details."