2 # From configure.ac Revision: 1.383 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 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 more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if (set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if (set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix=/usr/local
567 ac_config_libobj_dir=.
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='OpenSSH'
577 PACKAGE_TARNAME='openssh'
578 PACKAGE_VERSION='Portable'
579 PACKAGE_STRING='OpenSSH Portable'
580 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
582 ac_unique_file="ssh.c"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
690 MAKE_PACKAGE_SUPPORTED
692 LOGIN_PROGRAM_FALLBACK
697 INSTALL_SSH_RAND_HELPER
715 INSTALL_SSH_PRNG_CMDS
729 ac_precious_vars='build_alias
740 # Initialize some variables set by options.
742 ac_init_version=false
743 # The variables have the same names as the options, with
744 # dashes changed to underlines.
752 program_transform_name=s,x,x,
760 # Installation directory options.
761 # These are left unexpanded so users can "make install exec_prefix=/foo"
762 # and all the variables that are supposed to be based on exec_prefix
763 # by default will actually change.
764 # Use braces instead of parens because sh, perl, etc. also accept them.
765 # (The list follows the same order as the GNU Coding Standards.)
766 bindir='${exec_prefix}/bin'
767 sbindir='${exec_prefix}/sbin'
768 libexecdir='${exec_prefix}/libexec'
769 datarootdir='${prefix}/share'
770 datadir='${datarootdir}'
771 sysconfdir='${prefix}/etc'
772 sharedstatedir='${prefix}/com'
773 localstatedir='${prefix}/var'
774 includedir='${prefix}/include'
775 oldincludedir='/usr/include'
776 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
777 infodir='${datarootdir}/info'
782 libdir='${exec_prefix}/lib'
783 localedir='${datarootdir}/locale'
784 mandir='${datarootdir}/man'
790 # If the previous option needs an argument, assign it.
791 if test -n "$ac_prev"; then
792 eval $ac_prev=\$ac_option
798 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802 # Accept the important Cygnus configure options, so we can diagnose typos.
804 case $ac_dashdash$ac_option in
808 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 -build | --build | --buil | --bui | --bu)
814 ac_prev=build_alias ;;
815 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816 build_alias=$ac_optarg ;;
818 -cache-file | --cache-file | --cache-fil | --cache-fi \
819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820 ac_prev=cache_file ;;
821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823 cache_file=$ac_optarg ;;
826 cache_file=config.cache ;;
828 -datadir | --datadir | --datadi | --datad)
830 -datadir=* | --datadir=* | --datadi=* | --datad=*)
831 datadir=$ac_optarg ;;
833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834 | --dataroo | --dataro | --datar)
835 ac_prev=datarootdir ;;
836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838 datarootdir=$ac_optarg ;;
840 -disable-* | --disable-*)
841 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
844 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
845 { (exit 1); exit 1; }; }
846 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
847 eval enable_$ac_feature=no ;;
849 -docdir | --docdir | --docdi | --doc | --do)
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
859 -enable-* | --enable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=\$ac_optarg ;;
868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870 | --exec | --exe | --ex)
871 ac_prev=exec_prefix ;;
872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874 | --exec=* | --exe=* | --ex=*)
875 exec_prefix=$ac_optarg ;;
877 -gas | --gas | --ga | --g)
878 # Obsolete; use --with-gas.
881 -help | --help | --hel | --he | -h)
883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884 ac_init_help=recursive ;;
885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886 ac_init_help=short ;;
888 -host | --host | --hos | --ho)
889 ac_prev=host_alias ;;
890 -host=* | --host=* | --hos=* | --ho=*)
891 host_alias=$ac_optarg ;;
893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 htmldir=$ac_optarg ;;
899 -includedir | --includedir | --includedi | --included | --include \
900 | --includ | --inclu | --incl | --inc)
901 ac_prev=includedir ;;
902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903 | --includ=* | --inclu=* | --incl=* | --inc=*)
904 includedir=$ac_optarg ;;
906 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909 infodir=$ac_optarg ;;
911 -libdir | --libdir | --libdi | --libd)
913 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917 | --libexe | --libex | --libe)
918 ac_prev=libexecdir ;;
919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920 | --libexe=* | --libex=* | --libe=*)
921 libexecdir=$ac_optarg ;;
923 -localedir | --localedir | --localedi | --localed | --locale)
925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926 localedir=$ac_optarg ;;
928 -localstatedir | --localstatedir | --localstatedi | --localstated \
929 | --localstate | --localstat | --localsta | --localst | --locals)
930 ac_prev=localstatedir ;;
931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933 localstatedir=$ac_optarg ;;
935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 # Obsolete; use --without-fp.
944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945 | --no-cr | --no-c | -n)
948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954 | --oldin | --oldi | --old | --ol | --o)
955 ac_prev=oldincludedir ;;
956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959 oldincludedir=$ac_optarg ;;
961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 -program-prefix | --program-prefix | --program-prefi | --program-pref \
967 | --program-pre | --program-pr | --program-p)
968 ac_prev=program_prefix ;;
969 -program-prefix=* | --program-prefix=* | --program-prefi=* \
970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971 program_prefix=$ac_optarg ;;
973 -program-suffix | --program-suffix | --program-suffi | --program-suff \
974 | --program-suf | --program-su | --program-s)
975 ac_prev=program_suffix ;;
976 -program-suffix=* | --program-suffix=* | --program-suffi=* \
977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978 program_suffix=$ac_optarg ;;
980 -program-transform-name | --program-transform-name \
981 | --program-transform-nam | --program-transform-na \
982 | --program-transform-n | --program-transform- \
983 | --program-transform | --program-transfor \
984 | --program-transfo | --program-transf \
985 | --program-trans | --program-tran \
986 | --progr-tra | --program-tr | --program-t)
987 ac_prev=program_transform_name ;;
988 -program-transform-name=* | --program-transform-name=* \
989 | --program-transform-nam=* | --program-transform-na=* \
990 | --program-transform-n=* | --program-transform-=* \
991 | --program-transform=* | --program-transfor=* \
992 | --program-transfo=* | --program-transf=* \
993 | --program-trans=* | --program-tran=* \
994 | --progr-tra=* | --program-tr=* | --program-t=*)
995 program_transform_name=$ac_optarg ;;
997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 pdfdir=$ac_optarg ;;
1002 -psdir | --psdir | --psdi | --psd | --ps)
1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 sbindir=$ac_optarg ;;
1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019 | --sharedst | --shareds | --shared | --share | --shar \
1021 ac_prev=sharedstatedir ;;
1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 sharedstatedir=$ac_optarg ;;
1028 -site | --site | --sit)
1030 -site=* | --site=* | --sit=*)
1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036 srcdir=$ac_optarg ;;
1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039 | --syscon | --sysco | --sysc | --sys | --sy)
1040 ac_prev=sysconfdir ;;
1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043 sysconfdir=$ac_optarg ;;
1045 -target | --target | --targe | --targ | --tar | --ta | --t)
1046 ac_prev=target_alias ;;
1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048 target_alias=$ac_optarg ;;
1050 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 -version | --version | --versio | --versi | --vers | -V)
1054 ac_init_version=: ;;
1057 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_$ac_package=\$ac_optarg ;;
1065 -without-* | --without-*)
1066 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_$ac_package=no ;;
1075 # Obsolete; use --with-x.
1078 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1079 | --x-incl | --x-inc | --x-in | --x-i)
1080 ac_prev=x_includes ;;
1081 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1082 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1083 x_includes=$ac_optarg ;;
1085 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1086 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1087 ac_prev=x_libraries ;;
1088 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1089 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1090 x_libraries=$ac_optarg ;;
1092 -*) { echo "$as_me: error: unrecognized option: $ac_option
1093 Try \`$0 --help' for more information." >&2
1094 { (exit 1); exit 1; }; }
1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1102 { (exit 1); exit 1; }; }
1103 eval $ac_envvar=\$ac_optarg
1104 export $ac_envvar ;;
1107 # FIXME: should be removed in autoconf 3.0.
1108 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1109 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1111 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 if test -n "$ac_prev"; then
1118 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1119 { echo "$as_me: error: missing argument to $ac_option" >&2
1120 { (exit 1); exit 1; }; }
1123 # Be sure to have absolute directory names.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1129 eval ac_val=\$$ac_var
1131 [\\/$]* | ?:[\\/]* ) continue;;
1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1135 { (exit 1); exit 1; }; }
1138 # There might be people who depend on the old broken behavior: `$host'
1139 # used to hold the argument of --host etc.
1140 # FIXME: To remove some day.
1143 target=$target_alias
1145 # FIXME: To remove some day.
1146 if test "x$host_alias" != x; then
1147 if test "x$build_alias" = x; then
1148 cross_compiling=maybe
1149 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1150 If a cross compiler is detected then cross compile mode will be used." >&2
1151 elif test "x$build_alias" != "x$host_alias"; then
1157 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159 test "$silent" = yes && exec 6>/dev/null
1162 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1163 ac_ls_di=`ls -di .` &&
1164 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1165 { echo "$as_me: error: Working directory cannot be determined" >&2
1166 { (exit 1); exit 1; }; }
1167 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1168 { echo "$as_me: error: pwd does not report name of working directory" >&2
1169 { (exit 1); exit 1; }; }
1172 # Find the source files, if location was not specified.
1173 if test -z "$srcdir"; then
1174 ac_srcdir_defaulted=yes
1175 # Try the directory containing this script, then the parent directory.
1176 ac_confdir=`$as_dirname -- "$0" ||
1177 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178 X"$0" : 'X\(//\)[^/]' \| \
1179 X"$0" : 'X\(//\)$' \| \
1180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1204 ac_srcdir_defaulted=no
1206 if test ! -r "$srcdir/$ac_unique_file"; then
1207 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1208 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1209 { (exit 1); exit 1; }; }
1211 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1214 { (exit 1); exit 1; }; }
1216 # When building in place, set srcdir=.
1217 if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 # Remove unnecessary trailing slashes from srcdir.
1221 # Double slashes in file names in object file debugging info
1222 # mess up M-x gdb in Emacs.
1224 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 for ac_var in $ac_precious_vars; do
1227 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_env_${ac_var}_value=\$${ac_var}
1229 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234 # Report the --help message.
1236 if test "$ac_init_help" = "long"; then
1237 # Omit some internal or obsolete options to make the list less imposing.
1238 # This message is too long to be a string in the A/UX 3.1 sh.
1240 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1242 Usage: $0 [OPTION]... [VAR=VALUE]...
1244 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1245 VAR=VALUE. See below for descriptions of some of the useful variables.
1247 Defaults for the options are specified in brackets.
1250 -h, --help display this help and exit
1251 --help=short display options specific to this package
1252 --help=recursive display the short help of all the included packages
1253 -V, --version display version information and exit
1254 -q, --quiet, --silent do not print \`checking...' messages
1255 --cache-file=FILE cache test results in FILE [disabled]
1256 -C, --config-cache alias for \`--cache-file=config.cache'
1257 -n, --no-create do not create output files
1258 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260 Installation directories:
1261 --prefix=PREFIX install architecture-independent files in PREFIX
1262 [$ac_default_prefix]
1263 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 By default, \`make install' will install all the files in
1267 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1268 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1269 for instance \`--prefix=\$HOME'.
1271 For better control, use the options below.
1273 Fine tuning of the installation directories:
1274 --bindir=DIR user executables [EPREFIX/bin]
1275 --sbindir=DIR system admin executables [EPREFIX/sbin]
1276 --libexecdir=DIR program executables [EPREFIX/libexec]
1277 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1278 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1279 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1280 --libdir=DIR object code libraries [EPREFIX/lib]
1281 --includedir=DIR C header files [PREFIX/include]
1282 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1283 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1284 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1285 --infodir=DIR info documentation [DATAROOTDIR/info]
1286 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1287 --mandir=DIR man documentation [DATAROOTDIR/man]
1288 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1289 --htmldir=DIR html documentation [DOCDIR]
1290 --dvidir=DIR dvi documentation [DOCDIR]
1291 --pdfdir=DIR pdf documentation [DOCDIR]
1292 --psdir=DIR ps documentation [DOCDIR]
1298 --build=BUILD configure for building on BUILD [guessed]
1299 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1303 if test -n "$ac_init_help"; then
1304 case $ac_init_help in
1305 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1310 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1311 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1312 --disable-largefile omit support for large files
1313 --disable-strip Disable calling strip(1) on install
1314 --disable-etc-default-login Disable using PATH from /etc/default/login no
1315 --disable-lastlog disable use of lastlog even if detected no
1316 --disable-utmp disable use of utmp even if detected no
1317 --disable-utmpx disable use of utmpx even if detected no
1318 --disable-wtmp disable use of wtmp even if detected no
1319 --disable-wtmpx disable use of wtmpx even if detected no
1320 --disable-libutil disable use of libutil (login() etc.) no
1321 --disable-pututline disable use of pututline() etc. (uwtmp) no
1322 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1325 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1326 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1327 --without-rpath Disable auto-added -R linker paths
1328 --with-cflags Specify additional flags to pass to compiler
1329 --with-cppflags Specify additional flags to pass to preprocessor
1330 --with-ldflags Specify additional flags to pass to linker
1331 --with-libs Specify additional libraries to link with
1332 --with-Werror Build main code with -Werror
1333 --with-solaris-contracts Enable Solaris process contracts (experimental)
1334 --with-osfsia Enable Digital Unix SIA
1335 --with-zlib=PATH Use zlib in PATH
1336 --without-zlib-version-check Disable zlib version check
1337 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1338 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1339 --with-libedit[=PATH] Enable libedit support for sftp
1340 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1341 --with-ssl-dir=PATH Specify path to OpenSSL installation
1342 --without-openssl-header-check Disable OpenSSL version consistency check
1343 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1344 --with-pam Enable PAM support
1345 --with-rand-helper Use subprocess to gather strong randomness
1346 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1347 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1348 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1349 --with-privsep-user=user Specify non-privileged user for privilege separation
1350 --with-sectok Enable smartcard support using libsectok
1351 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1352 --with-selinux Enable SELinux support
1353 --with-kerberos5=PATH Enable Kerberos 5 support
1354 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1355 --with-xauth=PATH Specify path to xauth program
1356 --with-mantype=man|cat|doc Set man page type
1357 --with-md5-passwords Enable use of MD5 passwords
1358 --without-shadow Disable shadow password support
1359 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1360 --with-default-path= Specify default \$PATH environment for server
1361 --with-superuser-path= Specify different path for super-user
1362 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1363 --with-bsd-auth Enable BSD auth support
1364 --with-pid-dir=PATH Specify location of ssh.pid file
1365 --with-lastlog=FILE|DIR specify lastlog location common locations
1367 Some influential environment variables:
1368 CC C compiler command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1371 nonstandard directory <lib dir>
1372 LIBS libraries to pass to the linker, e.g. -l<library>
1373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374 you have headers in a nonstandard directory <include dir>
1377 Use these variables to override the choices made by `configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to <openssh-unix-dev@mindrot.org>.
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" || continue
1392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 ac_abs_top_builddir=$ac_pwd
1403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404 # for backward compatibility:
1405 ac_top_builddir=$ac_top_build_prefix
1408 .) # We are building in place.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1441 OpenSSH configure Portable
1442 generated by GNU Autoconf 2.61
1444 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1445 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1451 cat >config.log <<_ACEOF
1452 This file contains any messages produced by compilers while
1453 running configure, to aid debugging if configure makes a mistake.
1455 It was created by OpenSSH $as_me Portable, which was
1456 generated by GNU Autoconf 2.61. Invocation command line was
1468 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1469 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1470 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1471 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1472 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1474 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1475 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1477 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1478 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1479 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1480 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1481 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1482 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1483 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 test -z "$as_dir" && as_dir=.
1492 echo "PATH: $as_dir"
1508 # Keep a trace of the command line.
1509 # Strip out --no-create and --no-recursion so they do not pile up.
1510 # Strip out --silent because we don't want to record it for future runs.
1511 # Also quote any args containing shell meta-characters.
1512 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_must_keep_next=false
1522 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1527 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1530 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1532 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1533 if test $ac_must_keep_next = true; then
1534 ac_must_keep_next=false # Got value, back to normal.
1537 *=* | --config-cache | -C | -disable-* | --disable-* \
1538 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1539 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1540 | -with-* | --with-* | -without-* | --without-* | --x)
1541 case "$ac_configure_args0 " in
1542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 -* ) ac_must_keep_next=true ;;
1548 ac_configure_args="$ac_configure_args '$ac_arg'"
1553 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1554 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1556 # When interrupted or exit'd, cleanup temporary files, and complete
1557 # config.log. We remove comments because anyway the quotes in there
1558 # would cause problems or look ugly.
1559 # WARNING: Use '\'' to represent an apostrophe within the trap.
1560 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1561 trap 'exit_status=$?
1562 # Save into config.log some information that might help in debugging.
1567 ## ---------------- ##
1568 ## Cache variables. ##
1569 ## ---------------- ##
1572 # The following way of writing the cache mishandles newlines in values,
1574 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1575 eval ac_val=\$$ac_var
1579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1580 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583 _ | IFS | as_nl) ;; #(
1584 *) $as_unset $ac_var ;;
1589 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1604 ## ----------------- ##
1605 ## Output variables. ##
1606 ## ----------------- ##
1609 for ac_var in $ac_subst_vars
1611 eval ac_val=\$$ac_var
1613 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 echo "$ac_var='\''$ac_val'\''"
1619 if test -n "$ac_subst_files"; then
1621 ## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##
1626 for ac_var in $ac_subst_files
1628 eval ac_val=\$$ac_var
1630 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 echo "$ac_var='\''$ac_val'\''"
1637 if test -s confdefs.h; then
1647 test "$ac_signal" != 0 &&
1648 echo "$as_me: caught signal $ac_signal"
1649 echo "$as_me: exit $exit_status"
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1661 rm -f -r conftest* confdefs.h
1663 # Predefined preprocessor variables.
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 # Let the site file select an alternate cache file if it wants to.
1691 # Prefer explicitly selected file to automatically selected ones.
1692 if test -n "$CONFIG_SITE"; then
1693 set x "$CONFIG_SITE"
1694 elif test "x$prefix" != xNONE; then
1695 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1697 set x "$ac_default_prefix/share/config.site" \
1698 "$ac_default_prefix/etc/config.site"
1703 if test -r "$ac_site_file"; then
1704 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1705 echo "$as_me: loading site script $ac_site_file" >&6;}
1706 sed 's/^/| /' "$ac_site_file" >&5
1711 if test -r "$cache_file"; then
1712 # Some versions of bash will fail to source /dev/null (special
1713 # files actually), so we avoid doing that.
1714 if test -f "$cache_file"; then
1715 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1716 echo "$as_me: loading cache $cache_file" >&6;}
1718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1719 *) . "./$cache_file";;
1723 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1724 echo "$as_me: creating cache $cache_file" >&6;}
1728 # Check that the precious variables saved in the cache have kept the same
1730 ac_cache_corrupted=false
1731 for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1739 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1751 echo "$as_me: former value: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1753 echo "$as_me: current value: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769 if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1771 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1772 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1773 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 ac_config_headers="$ac_config_headers config.h"
1814 ac_cpp='$CPP $CPPFLAGS'
1815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818 if test -n "$ac_tool_prefix"; then
1819 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1823 if test "${ac_cv_prog_CC+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1826 if test -n "$CC"; then
1827 ac_cv_prog_CC="$CC" # Let the user override the test.
1829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 test -z "$as_dir" && as_dir=.
1834 for ac_exec_ext in '' $ac_executable_extensions; do
1835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1836 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$CC"; then
1848 { echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6; }
1851 { echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6; }
1857 if test -z "$ac_cv_prog_CC"; then
1859 # Extract the first word of "gcc", so it can be a program name with args.
1860 set dummy gcc; ac_word=$2
1861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 if test -n "$ac_ct_CC"; then
1867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1876 ac_cv_prog_ac_ct_CC="gcc"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889 echo "${ECHO_T}$ac_ct_CC" >&6; }
1891 { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1895 if test "x$ac_ct_CC" = x; then
1898 case $cross_compiling:$ac_tool_warned in
1900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1901 whose name does not start with the host triplet. If you think this
1902 configuration is useful to you, please write to autoconf@gnu.org." >&5
1903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1904 whose name does not start with the host triplet. If you think this
1905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1906 ac_tool_warned=yes ;;
1914 if test -z "$CC"; then
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}cc; ac_word=$2
1918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1933 ac_cv_prog_CC="${ac_tool_prefix}cc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 if test -n "$CC"; then
1945 { echo "$as_me:$LINENO: result: $CC" >&5
1946 echo "${ECHO_T}$CC" >&6; }
1948 { echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6; }
1955 if test -z "$CC"; then
1956 # Extract the first word of "cc", so it can be a program name with args.
1957 set dummy cc; ac_word=$2
1958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1975 ac_prog_rejected=yes
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 if test $ac_prog_rejected = yes; then
1987 # We found a bogon in the path, so make sure we never use it.
1988 set dummy $ac_cv_prog_CC
1990 if test $# != 0; then
1991 # We chose a different compiler from the bogus one.
1992 # However, it has the same basename, so the bogon will be chosen
1993 # first if we set CC to just the basename; use the full file name.
1995 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2001 if test -n "$CC"; then
2002 { echo "$as_me:$LINENO: result: $CC" >&5
2003 echo "${ECHO_T}$CC" >&6; }
2005 { echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6; }
2011 if test -z "$CC"; then
2012 if test -n "$ac_tool_prefix"; then
2013 for ac_prog in cl.exe
2015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019 if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 if test -n "$CC"; then
2044 { echo "$as_me:$LINENO: result: $CC" >&5
2045 echo "${ECHO_T}$CC" >&6; }
2047 { echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6; }
2052 test -n "$CC" && break
2055 if test -z "$CC"; then
2057 for ac_prog in cl.exe
2059 # Extract the first word of "$ac_prog", so it can be a program name with args.
2060 set dummy $ac_prog; ac_word=$2
2061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test -n "$ac_ct_CC"; then
2067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2076 ac_cv_prog_ac_ct_CC="$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2087 if test -n "$ac_ct_CC"; then
2088 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2089 echo "${ECHO_T}$ac_ct_CC" >&6; }
2091 { echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6; }
2096 test -n "$ac_ct_CC" && break
2099 if test "x$ac_ct_CC" = x; then
2102 case $cross_compiling:$ac_tool_warned in
2104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2105 whose name does not start with the host triplet. If you think this
2106 configuration is useful to you, please write to autoconf@gnu.org." >&5
2107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2108 whose name does not start with the host triplet. If you think this
2109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2110 ac_tool_warned=yes ;;
2119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2125 # Provide some information about the compiler.
2126 echo "$as_me:$LINENO: checking for C compiler version" >&5
2127 ac_compiler=`set X $ac_compile; echo $2`
2128 { (ac_try="$ac_compiler --version >&5"
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2134 (eval "$ac_compiler --version >&5") 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (ac_try="$ac_compiler -v >&5"
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2144 (eval "$ac_compiler -v >&5") 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148 { (ac_try="$ac_compiler -V >&5"
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2154 (eval "$ac_compiler -V >&5") 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2159 cat >conftest.$ac_ext <<_ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h. */
2174 ac_clean_files_save=$ac_clean_files
2175 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176 # Try to create an executable without -o first, disregard a.out.
2177 # It will help us diagnose broken compilers, and finding out an intuition
2179 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2180 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2181 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183 # List of possible output files, starting from the most likely.
2184 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2185 # only as a last resort. b.out is created by i960 compilers.
2186 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2188 # The IRIX 6 linker writes into existing files which may not be
2189 # executable, retaining their permissions. Remove them first so a
2190 # subsequent execution test works.
2192 for ac_file in $ac_files
2195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2196 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2201 if { (ac_try="$ac_link_default"
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2207 (eval "$ac_link_default") 2>&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; then
2211 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2212 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2213 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2214 # so that the user can short-circuit this test for compilers unknown to
2216 for ac_file in $ac_files ''
2218 test -f "$ac_file" || continue
2220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2223 # We found the default executable, but exeext='' is most
2227 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 # We set ac_cv_exeext here because the later test for it is not
2232 # safe: cross compilers may not add the suffix if given an `-o'
2233 # argument, so we may need to know it at that point already.
2234 # Even if this section looks crufty: it has the advantage of
2241 test "$ac_cv_exeext" = no && ac_cv_exeext=
2247 { echo "$as_me:$LINENO: result: $ac_file" >&5
2248 echo "${ECHO_T}$ac_file" >&6; }
2249 if test -z "$ac_file"; then
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257 { (exit 77); exit 77; }; }
2260 ac_exeext=$ac_cv_exeext
2262 # Check that the compiler produces executables we can run. If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2265 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2266 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2267 # If not cross compiling, check that we can run a simple program.
2268 if test "$cross_compiling" != yes; then
2269 if { ac_try='./$ac_file'
2270 { (case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_try") 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2281 if test "$cross_compiling" = maybe; then
2284 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285 If you meant to cross compile, use \`--host'.
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot run C compiled programs.
2288 If you meant to cross compile, use \`--host'.
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2294 { echo "$as_me:$LINENO: result: yes" >&5
2295 echo "${ECHO_T}yes" >&6; }
2297 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298 ac_clean_files=$ac_clean_files_save
2299 # Check that the compiler produces executables we can run. If not, either
2300 # the compiler is broken, or we cross compile.
2301 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2303 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304 echo "${ECHO_T}$cross_compiling" >&6; }
2306 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2308 if { (ac_try="$ac_link"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314 (eval "$ac_link") 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2319 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2320 # work properly (i.e., refer to `conftest.exe'), while it won't with
2322 for ac_file in conftest.exe conftest conftest.*; do
2323 test -f "$ac_file" || continue
2325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2339 rm -f conftest$ac_cv_exeext
2340 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2341 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2343 rm -f conftest.$ac_ext
2344 EXEEXT=$ac_cv_exeext
2346 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2347 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2348 if test "${ac_cv_objext+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat >conftest.$ac_ext <<_ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2366 rm -f conftest.o conftest.obj
2367 if { (ac_try="$ac_compile"
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; then
2377 for ac_file in conftest.o conftest.obj conftest.*; do
2378 test -f "$ac_file" || continue;
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6; }
2400 OBJEXT=$ac_cv_objext
2402 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 cat >conftest.$ac_ext <<_ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2425 rm -f conftest.$ac_objext
2426 if { (ac_try="$ac_compile"
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_compile") 2>conftest.er1
2434 grep -v '^ *+' conftest.er1 >conftest.err
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } && {
2439 test -z "$ac_c_werror_flag" ||
2440 test ! -s conftest.err
2441 } && test -s conftest.$ac_objext; then
2444 echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2454 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2455 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2456 GCC=`test $ac_compiler_gnu = yes && echo yes`
2457 ac_test_CFLAGS=${CFLAGS+set}
2458 ac_save_CFLAGS=$CFLAGS
2459 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2460 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_cc_g+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 ac_save_c_werror_flag=$ac_c_werror_flag
2465 ac_c_werror_flag=yes
2468 cat >conftest.$ac_ext <<_ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h. */
2483 rm -f conftest.$ac_objext
2484 if { (ac_try="$ac_compile"
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_compile") 2>conftest.er1
2492 grep -v '^ *+' conftest.er1 >conftest.err
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } && {
2497 test -z "$ac_c_werror_flag" ||
2498 test ! -s conftest.err
2499 } && test -s conftest.$ac_objext; then
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2506 cat >conftest.$ac_ext <<_ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2521 rm -f conftest.$ac_objext
2522 if { (ac_try="$ac_compile"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_compile") 2>conftest.er1
2530 grep -v '^ *+' conftest.er1 >conftest.err
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } && {
2535 test -z "$ac_c_werror_flag" ||
2536 test ! -s conftest.err
2537 } && test -s conftest.$ac_objext; then
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2543 ac_c_werror_flag=$ac_save_c_werror_flag
2545 cat >conftest.$ac_ext <<_ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2569 grep -v '^ *+' conftest.er1 >conftest.err
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } && {
2574 test -z "$ac_c_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest.$ac_objext; then
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 ac_c_werror_flag=$ac_save_c_werror_flag
2594 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2595 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2596 if test "$ac_test_CFLAGS" = set; then
2597 CFLAGS=$ac_save_CFLAGS
2598 elif test $ac_cv_prog_cc_g = yes; then
2599 if test "$GCC" = yes; then
2605 if test "$GCC" = yes; then
2611 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2612 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_cc_c89+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 ac_cv_prog_cc_c89=no
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2626 #include <sys/types.h>
2627 #include <sys/stat.h>
2628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2629 struct buf { int x; };
2630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2631 static char *e (p, i)
2637 static char *f (char * (*g) (char **, int), char **p, ...)
2642 s = g (p, va_arg (v,int));
2647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2648 function prototypes and stuff, but not '\xHH' hex character constants.
2649 These don't provoke an error unfortunately, instead are silently treated
2650 as 'x'. The following induces an error, until -std is added to get
2651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2652 array size at least. It's necessary to write '\x00'==0 to get something
2653 that's true only with -std. */
2654 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2656 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2657 inside strings and character constants. */
2659 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2661 int test (int i, double x);
2662 struct s1 {int (*f) (int a);};
2663 struct s2 {int (*f) (double a);};
2664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2675 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2678 CC="$ac_save_CC $ac_arg"
2679 rm -f conftest.$ac_objext
2680 if { (ac_try="$ac_compile"
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_compile") 2>conftest.er1
2688 grep -v '^ *+' conftest.er1 >conftest.err
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } && {
2693 test -z "$ac_c_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest.$ac_objext; then
2696 ac_cv_prog_cc_c89=$ac_arg
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2704 rm -f core conftest.err conftest.$ac_objext
2705 test "x$ac_cv_prog_cc_c89" != "xno" && break
2707 rm -f conftest.$ac_ext
2712 case "x$ac_cv_prog_cc_c89" in
2714 { echo "$as_me:$LINENO: result: none needed" >&5
2715 echo "${ECHO_T}none needed" >&6; } ;;
2717 { echo "$as_me:$LINENO: result: unsupported" >&5
2718 echo "${ECHO_T}unsupported" >&6; } ;;
2720 CC="$CC $ac_cv_prog_cc_c89"
2721 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2722 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2734 if test -f "$ac_dir/install-sh"; then
2736 ac_install_sh="$ac_aux_dir/install-sh -c"
2738 elif test -f "$ac_dir/install.sh"; then
2740 ac_install_sh="$ac_aux_dir/install.sh -c"
2742 elif test -f "$ac_dir/shtool"; then
2744 ac_install_sh="$ac_aux_dir/shtool install -c"
2748 if test -z "$ac_aux_dir"; then
2749 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2750 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2751 { (exit 1); exit 1; }; }
2754 # These three variables are undocumented and unsupported,
2755 # and are intended to be withdrawn in a future Autoconf release.
2756 # They can cause serious problems if a builder's source tree is in a directory
2757 # whose full name contains unusual characters.
2758 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2759 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2760 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763 # Make sure we can run config.sub.
2764 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2765 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2766 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2767 { (exit 1); exit 1; }; }
2769 { echo "$as_me:$LINENO: checking build system type" >&5
2770 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2771 if test "${ac_cv_build+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 ac_build_alias=$build_alias
2775 test "x$ac_build_alias" = x &&
2776 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777 test "x$ac_build_alias" = x &&
2778 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2779 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2780 { (exit 1); exit 1; }; }
2781 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2782 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2783 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2784 { (exit 1); exit 1; }; }
2787 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2788 echo "${ECHO_T}$ac_cv_build" >&6; }
2789 case $ac_cv_build in
2791 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2792 echo "$as_me: error: invalid value of canonical build" >&2;}
2793 { (exit 1); exit 1; }; };;
2796 ac_save_IFS=$IFS; IFS='-'
2802 # Remember, the first character of IFS is used to create $*,
2803 # except with old shells:
2806 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809 { echo "$as_me:$LINENO: checking host system type" >&5
2810 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2811 if test "${ac_cv_host+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 if test "x$host_alias" = x; then
2815 ac_cv_host=$ac_cv_build
2817 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2818 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2819 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2820 { (exit 1); exit 1; }; }
2824 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2825 echo "${ECHO_T}$ac_cv_host" >&6; }
2828 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2829 echo "$as_me: error: invalid value of canonical host" >&2;}
2830 { (exit 1); exit 1; }; };;
2833 ac_save_IFS=$IFS; IFS='-'
2839 # Remember, the first character of IFS is used to create $*,
2840 # except with old shells:
2843 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2853 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2854 # On Suns, sometimes $CPP names a directory.
2855 if test -n "$CPP" && test -d "$CPP"; then
2858 if test -z "$CPP"; then
2859 if test "${ac_cv_prog_CPP+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 # Double quotes because CPP needs to be expanded
2863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2866 for ac_c_preproc_warn_flag in '' yes
2868 # Use a header file that comes with gcc, so configuring glibc
2869 # with a fresh cross-compiler works.
2870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871 # <limits.h> exists even on freestanding compilers.
2872 # On the NeXT, cc -E runs the code through the compiler's parser,
2873 # not just through cpp. "Syntax error" is here to catch this case.
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2881 # include <limits.h>
2883 # include <assert.h>
2887 if { (ac_try="$ac_cpp conftest.$ac_ext"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2895 grep -v '^ *+' conftest.er1 >conftest.err
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } >/dev/null && {
2900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 # Broken: fails on valid input.
2912 rm -f conftest.err conftest.$ac_ext
2914 # OK, works on sane cases. Now check whether nonexistent headers
2915 # can be detected and how.
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <ac_nonexistent.h>
2924 if { (ac_try="$ac_cpp conftest.$ac_ext"
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2932 grep -v '^ *+' conftest.er1 >conftest.err
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null && {
2937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2938 test ! -s conftest.err
2940 # Broken: success on invalid input.
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 # Passes both tests.
2951 rm -f conftest.err conftest.$ac_ext
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err conftest.$ac_ext
2956 if $ac_preproc_ok; then
2968 { echo "$as_me:$LINENO: result: $CPP" >&5
2969 echo "${ECHO_T}$CPP" >&6; }
2971 for ac_c_preproc_warn_flag in '' yes
2973 # Use a header file that comes with gcc, so configuring glibc
2974 # with a fresh cross-compiler works.
2975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2976 # <limits.h> exists even on freestanding compilers.
2977 # On the NeXT, cc -E runs the code through the compiler's parser,
2978 # not just through cpp. "Syntax error" is here to catch this case.
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2986 # include <limits.h>
2988 # include <assert.h>
2992 if { (ac_try="$ac_cpp conftest.$ac_ext"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } >/dev/null && {
3005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3006 test ! -s conftest.err
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3013 # Broken: fails on valid input.
3017 rm -f conftest.err conftest.$ac_ext
3019 # OK, works on sane cases. Now check whether nonexistent headers
3020 # can be detected and how.
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3027 #include <ac_nonexistent.h>
3029 if { (ac_try="$ac_cpp conftest.$ac_ext"
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3037 grep -v '^ *+' conftest.er1 >conftest.err
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null && {
3042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3043 test ! -s conftest.err
3045 # Broken: success on invalid input.
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 # Passes both tests.
3056 rm -f conftest.err conftest.$ac_ext
3059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3060 rm -f conftest.err conftest.$ac_ext
3061 if $ac_preproc_ok; then
3064 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3065 See \`config.log' for more details." >&5
3066 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3067 See \`config.log' for more details." >&2;}
3068 { (exit 1); exit 1; }; }
3072 ac_cpp='$CPP $CPPFLAGS'
3073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3079 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3080 if test "${ac_cv_path_GREP+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 # Extract the first word of "grep ggrep" to use in msg output
3084 if test -z "$GREP"; then
3085 set dummy grep ggrep; ac_prog_name=$2
3086 if test "${ac_cv_path_GREP+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 ac_path_GREP_found=false
3090 # Loop through the user's path and test for each of PROGNAME-LIST
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3095 test -z "$as_dir" && as_dir=.
3096 for ac_prog in grep ggrep; do
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3099 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3100 # Check for GNU ac_path_GREP and select it if it is found.
3101 # Check for GNU $ac_path_GREP
3102 case `"$ac_path_GREP" --version 2>&1` in
3104 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3107 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3110 cat "conftest.in" "conftest.in" >"conftest.tmp"
3111 mv "conftest.tmp" "conftest.in"
3112 cp "conftest.in" "conftest.nl"
3113 echo 'GREP' >> "conftest.nl"
3114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3116 ac_count=`expr $ac_count + 1`
3117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3118 # Best one so far, save it but keep looking for a better one
3119 ac_cv_path_GREP="$ac_path_GREP"
3120 ac_path_GREP_max=$ac_count
3122 # 10*(2^10) chars as input seems more than enough
3123 test $ac_count -gt 10 && break
3125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3129 $ac_path_GREP_found && break 3
3139 GREP="$ac_cv_path_GREP"
3140 if test -z "$GREP"; then
3141 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3142 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3143 { (exit 1); exit 1; }; }
3147 ac_cv_path_GREP=$GREP
3152 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3153 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3154 GREP="$ac_cv_path_GREP"
3157 { echo "$as_me:$LINENO: checking for egrep" >&5
3158 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3159 if test "${ac_cv_path_EGREP+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3163 then ac_cv_path_EGREP="$GREP -E"
3165 # Extract the first word of "egrep" to use in msg output
3166 if test -z "$EGREP"; then
3167 set dummy egrep; ac_prog_name=$2
3168 if test "${ac_cv_path_EGREP+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 ac_path_EGREP_found=false
3172 # Loop through the user's path and test for each of PROGNAME-LIST
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3177 test -z "$as_dir" && as_dir=.
3178 for ac_prog in egrep; do
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3181 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3182 # Check for GNU ac_path_EGREP and select it if it is found.
3183 # Check for GNU $ac_path_EGREP
3184 case `"$ac_path_EGREP" --version 2>&1` in
3186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3189 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3192 cat "conftest.in" "conftest.in" >"conftest.tmp"
3193 mv "conftest.tmp" "conftest.in"
3194 cp "conftest.in" "conftest.nl"
3195 echo 'EGREP' >> "conftest.nl"
3196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3198 ac_count=`expr $ac_count + 1`
3199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3200 # Best one so far, save it but keep looking for a better one
3201 ac_cv_path_EGREP="$ac_path_EGREP"
3202 ac_path_EGREP_max=$ac_count
3204 # 10*(2^10) chars as input seems more than enough
3205 test $ac_count -gt 10 && break
3207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3211 $ac_path_EGREP_found && break 3
3221 EGREP="$ac_cv_path_EGREP"
3222 if test -z "$EGREP"; then
3223 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3224 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3225 { (exit 1); exit 1; }; }
3229 ac_cv_path_EGREP=$EGREP
3235 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3236 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3237 EGREP="$ac_cv_path_EGREP"
3240 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3241 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3242 if test "${ac_cv_header_stdc+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 cat >conftest.$ac_ext <<_ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_compile") 2>conftest.er1
3273 grep -v '^ *+' conftest.er1 >conftest.err
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } && {
3278 test -z "$ac_c_werror_flag" ||
3279 test ! -s conftest.err
3280 } && test -s conftest.$ac_objext; then
3281 ac_cv_header_stdc=yes
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 ac_cv_header_stdc=no
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 if test $ac_cv_header_stdc = yes; then
3292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3293 cat >conftest.$ac_ext <<_ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3303 $EGREP "memchr" >/dev/null 2>&1; then
3306 ac_cv_header_stdc=no
3312 if test $ac_cv_header_stdc = yes; then
3313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3314 cat >conftest.$ac_ext <<_ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324 $EGREP "free" >/dev/null 2>&1; then
3327 ac_cv_header_stdc=no
3333 if test $ac_cv_header_stdc = yes; then
3334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3335 if test "$cross_compiling" = yes; then
3338 cat >conftest.$ac_ext <<_ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3346 #if ((' ' & 0x0FF) == 0x020)
3347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3350 # define ISLOWER(c) \
3351 (('a' <= (c) && (c) <= 'i') \
3352 || ('j' <= (c) && (c) <= 'r') \
3353 || ('s' <= (c) && (c) <= 'z'))
3354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3362 for (i = 0; i < 256; i++)
3363 if (XOR (islower (i), ISLOWER (i))
3364 || toupper (i) != TOUPPER (i))
3369 rm -f conftest$ac_exeext
3370 if { (ac_try="$ac_link"
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_link") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3380 { (case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_try") 2>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3391 echo "$as_me: program exited with status $ac_status" >&5
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3396 ac_cv_header_stdc=no
3398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3404 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3405 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3406 if test $ac_cv_header_stdc = yes; then
3408 cat >>confdefs.h <<\_ACEOF
3409 #define STDC_HEADERS 1
3414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3425 inttypes.h stdint.h unistd.h
3427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 $ac_includes_default
3441 #include <$ac_header>
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3460 eval "$as_ac_Header=yes"
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 eval "$as_ac_Header=no"
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_res=`eval echo '${'$as_ac_Header'}'`
3471 { echo "$as_me:$LINENO: result: $ac_res" >&5
3472 echo "${ECHO_T}$ac_res" >&6; }
3473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3474 cat >>confdefs.h <<_ACEOF
3475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3483 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3484 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3485 if test "${ac_cv_c_bigendian+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 # See if sys/param.h defines the BYTE_ORDER macro.
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <sys/types.h>
3496 #include <sys/param.h>
3501 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3502 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3510 rm -f conftest.$ac_objext
3511 if { (ac_try="$ac_compile"
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_compile") 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } && {
3524 test -z "$ac_c_werror_flag" ||
3525 test ! -s conftest.err
3526 } && test -s conftest.$ac_objext; then
3527 # It does; now see whether it defined to BIG_ENDIAN or not.
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <sys/types.h>
3535 #include <sys/param.h>
3540 #if BYTE_ORDER != BIG_ENDIAN
3548 rm -f conftest.$ac_objext
3549 if { (ac_try="$ac_compile"
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_compile") 2>conftest.er1
3557 grep -v '^ *+' conftest.er1 >conftest.err
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } && {
3562 test -z "$ac_c_werror_flag" ||
3563 test ! -s conftest.err
3564 } && test -s conftest.$ac_objext; then
3565 ac_cv_c_bigendian=yes
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 ac_cv_c_bigendian=no
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 # It does not; compile a test program.
3579 if test "$cross_compiling" = yes; then
3580 # try to guess the endianness by grepping values into an object file
3581 ac_cv_c_bigendian=unknown
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3589 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3590 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3591 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3592 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3593 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3597 _ascii (); _ebcdic ();
3602 rm -f conftest.$ac_objext
3603 if { (ac_try="$ac_compile"
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compile") 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && {
3616 test -z "$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3618 } && test -s conftest.$ac_objext; then
3619 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3620 ac_cv_c_bigendian=yes
3622 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3623 if test "$ac_cv_c_bigendian" = unknown; then
3624 ac_cv_c_bigendian=no
3626 # finding both strings is unlikely to happen, but who knows?
3627 ac_cv_c_bigendian=unknown
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 cat >conftest.$ac_ext <<_ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 $ac_includes_default
3650 /* Are we little or big endian? From Harbison&Steele. */
3654 char c[sizeof (long int)];
3657 return u.c[sizeof (long int) - 1] == 1;
3663 rm -f conftest$ac_exeext
3664 if { (ac_try="$ac_link"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_link") 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3674 { (case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_try") 2>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_c_bigendian=no
3685 echo "$as_me: program exited with status $ac_status" >&5
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_cv_c_bigendian=yes
3692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3701 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3702 case $ac_cv_c_bigendian in
3705 cat >>confdefs.h <<\_ACEOF
3706 #define WORDS_BIGENDIAN 1
3712 { { echo "$as_me:$LINENO: error: unknown endianness
3713 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3714 echo "$as_me: error: unknown endianness
3715 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3716 { (exit 1); exit 1; }; } ;;
3720 # Checks for programs.
3721 for ac_prog in gawk mawk nawk awk
3723 # Extract the first word of "$ac_prog", so it can be a program name with args.
3724 set dummy $ac_prog; ac_word=$2
3725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3727 if test "${ac_cv_prog_AWK+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 if test -n "$AWK"; then
3731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740 ac_cv_prog_AWK="$ac_prog"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 if test -n "$AWK"; then
3752 { echo "$as_me:$LINENO: result: $AWK" >&5
3753 echo "${ECHO_T}$AWK" >&6; }
3755 { echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6; }
3760 test -n "$AWK" && break
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3769 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3770 # On Suns, sometimes $CPP names a directory.
3771 if test -n "$CPP" && test -d "$CPP"; then
3774 if test -z "$CPP"; then
3775 if test "${ac_cv_prog_CPP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 # Double quotes because CPP needs to be expanded
3779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3782 for ac_c_preproc_warn_flag in '' yes
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error" is here to catch this case.
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3797 # include <limits.h>
3799 # include <assert.h>
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 # Broken: fails on valid input.
3828 rm -f conftest.err conftest.$ac_ext
3830 # OK, works on sane cases. Now check whether nonexistent headers
3831 # can be detected and how.
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3840 if { (ac_try="$ac_cpp conftest.$ac_ext"
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null && {
3853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3856 # Broken: success on invalid input.
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 # Passes both tests.
3867 rm -f conftest.err conftest.$ac_ext
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.$ac_ext
3872 if $ac_preproc_ok; then
3884 { echo "$as_me:$LINENO: result: $CPP" >&5
3885 echo "${ECHO_T}$CPP" >&6; }
3887 for ac_c_preproc_warn_flag in '' yes
3889 # Use a header file that comes with gcc, so configuring glibc
3890 # with a fresh cross-compiler works.
3891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892 # <limits.h> exists even on freestanding compilers.
3893 # On the NeXT, cc -E runs the code through the compiler's parser,
3894 # not just through cpp. "Syntax error" is here to catch this case.
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3902 # include <limits.h>
3904 # include <assert.h>
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null && {
3921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 # Broken: fails on valid input.
3933 rm -f conftest.err conftest.$ac_ext
3935 # OK, works on sane cases. Now check whether nonexistent headers
3936 # can be detected and how.
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 #include <ac_nonexistent.h>
3945 if { (ac_try="$ac_cpp conftest.$ac_ext"
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null && {
3958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3961 # Broken: success on invalid input.
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 # Passes both tests.
3972 rm -f conftest.err conftest.$ac_ext
3975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976 rm -f conftest.err conftest.$ac_ext
3977 if $ac_preproc_ok; then
3980 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details." >&5
3982 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3983 See \`config.log' for more details." >&2;}
3984 { (exit 1); exit 1; }; }
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3995 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3998 if test "${ac_cv_prog_RANLIB+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 if test -n "$RANLIB"; then
4002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 RANLIB=$ac_cv_prog_RANLIB
4022 if test -n "$RANLIB"; then
4023 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4024 echo "${ECHO_T}$RANLIB" >&6; }
4026 { echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6; }
4032 if test -z "$ac_cv_prog_RANLIB"; then
4033 ac_ct_RANLIB=$RANLIB
4034 # Extract the first word of "ranlib", so it can be a program name with args.
4035 set dummy ranlib; ac_word=$2
4036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if test -n "$ac_ct_RANLIB"; then
4042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_prog_ac_ct_RANLIB="ranlib"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4062 if test -n "$ac_ct_RANLIB"; then
4063 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4064 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4066 { echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6; }
4070 if test "x$ac_ct_RANLIB" = x; then
4073 case $cross_compiling:$ac_tool_warned in
4075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4076 whose name does not start with the host triplet. If you think this
4077 configuration is useful to you, please write to autoconf@gnu.org." >&5
4078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4079 whose name does not start with the host triplet. If you think this
4080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4081 ac_tool_warned=yes ;;
4083 RANLIB=$ac_ct_RANLIB
4086 RANLIB="$ac_cv_prog_RANLIB"
4089 # Find a good install program. We prefer a C program (faster),
4090 # so one script is as good as another. But avoid the broken or
4091 # incompatible versions:
4092 # SysV /etc/install, /usr/sbin/install
4093 # SunOS /usr/etc/install
4094 # IRIX /sbin/install
4096 # AmigaOS /C/install, which installs bootblocks on floppy discs
4097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4100 # OS/2's system install, which has a completely different semantic
4101 # ./install, which can be erroneously created by make from ./install.sh.
4102 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4103 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4104 if test -z "$INSTALL"; then
4105 if test "${ac_cv_path_install+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 test -z "$as_dir" && as_dir=.
4113 # Account for people who put trailing slashes in PATH elements.
4115 ./ | .// | /cC/* | \
4116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4117 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4120 # OSF1 and SCO ODT 3.0 have their own names for install.
4121 # Don't use installbsd from OSF since it installs stuff as root
4123 for ac_prog in ginstall scoinst install; do
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4126 if test $ac_prog = install &&
4127 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4128 # AIX install. It has an incompatible calling convention.
4130 elif test $ac_prog = install &&
4131 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4132 # program-specific install script used by HP pwplus--don't use.
4135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4148 if test "${ac_cv_path_install+set}" = set; then
4149 INSTALL=$ac_cv_path_install
4151 # As a last resort, use the slow shell script. Don't cache a
4152 # value for INSTALL within a source directory, because that will
4153 # break other packages using the cache if that directory is
4154 # removed, or if the value is a relative name.
4155 INSTALL=$ac_install_sh
4158 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4159 echo "${ECHO_T}$INSTALL" >&6; }
4161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4162 # It thinks the first close brace ends the variable substitution.
4163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4169 { echo "$as_me:$LINENO: checking for egrep" >&5
4170 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4171 if test "${ac_cv_path_EGREP+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4175 then ac_cv_path_EGREP="$GREP -E"
4177 # Extract the first word of "egrep" to use in msg output
4178 if test -z "$EGREP"; then
4179 set dummy egrep; ac_prog_name=$2
4180 if test "${ac_cv_path_EGREP+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 ac_path_EGREP_found=false
4184 # Loop through the user's path and test for each of PROGNAME-LIST
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189 test -z "$as_dir" && as_dir=.
4190 for ac_prog in egrep; do
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4194 # Check for GNU ac_path_EGREP and select it if it is found.
4195 # Check for GNU $ac_path_EGREP
4196 case `"$ac_path_EGREP" --version 2>&1` in
4198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4201 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4204 cat "conftest.in" "conftest.in" >"conftest.tmp"
4205 mv "conftest.tmp" "conftest.in"
4206 cp "conftest.in" "conftest.nl"
4207 echo 'EGREP' >> "conftest.nl"
4208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210 ac_count=`expr $ac_count + 1`
4211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4212 # Best one so far, save it but keep looking for a better one
4213 ac_cv_path_EGREP="$ac_path_EGREP"
4214 ac_path_EGREP_max=$ac_count
4216 # 10*(2^10) chars as input seems more than enough
4217 test $ac_count -gt 10 && break
4219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4223 $ac_path_EGREP_found && break 3
4233 EGREP="$ac_cv_path_EGREP"
4234 if test -z "$EGREP"; then
4235 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4236 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4237 { (exit 1); exit 1; }; }
4241 ac_cv_path_EGREP=$EGREP
4247 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4248 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4249 EGREP="$ac_cv_path_EGREP"
4252 # Extract the first word of "ar", so it can be a program name with args.
4253 set dummy ar; ac_word=$2
4254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4256 if test "${ac_cv_path_AR+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 if test -n "$AR"; then
4284 { echo "$as_me:$LINENO: result: $AR" >&5
4285 echo "${ECHO_T}$AR" >&6; }
4287 { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4292 # Extract the first word of "cat", so it can be a program name with args.
4293 set dummy cat; ac_word=$2
4294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4296 if test "${ac_cv_path_CAT+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 if test -n "$CAT"; then
4324 { echo "$as_me:$LINENO: result: $CAT" >&5
4325 echo "${ECHO_T}$CAT" >&6; }
4327 { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4332 # Extract the first word of "kill", so it can be a program name with args.
4333 set dummy kill; ac_word=$2
4334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4336 if test "${ac_cv_path_KILL+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 KILL=$ac_cv_path_KILL
4363 if test -n "$KILL"; then
4364 { echo "$as_me:$LINENO: result: $KILL" >&5
4365 echo "${ECHO_T}$KILL" >&6; }
4367 { echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6; }
4372 for ac_prog in perl5 perl
4374 # Extract the first word of "$ac_prog", so it can be a program name with args.
4375 set dummy $ac_prog; ac_word=$2
4376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4378 if test "${ac_cv_path_PERL+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 PERL=$ac_cv_path_PERL
4405 if test -n "$PERL"; then
4406 { echo "$as_me:$LINENO: result: $PERL" >&5
4407 echo "${ECHO_T}$PERL" >&6; }
4409 { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
4414 test -n "$PERL" && break
4417 # Extract the first word of "sed", so it can be a program name with args.
4418 set dummy sed; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_path_SED+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 if test -n "$SED"; then
4449 { echo "$as_me:$LINENO: result: $SED" >&5
4450 echo "${ECHO_T}$SED" >&6; }
4452 { echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6; }
4458 # Extract the first word of "ent", so it can be a program name with args.
4459 set dummy ent; 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_ENT+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 ac_cv_path_ENT="$ENT" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_path_ENT="$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 "$ENT"; then
4490 { echo "$as_me:$LINENO: result: $ENT" >&5
4491 echo "${ECHO_T}$ENT" >&6; }
4493 { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4499 # Extract the first word of "bash", so it can be a program name with args.
4500 set dummy bash; ac_word=$2
4501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4503 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 case $TEST_MINUS_S_SH in
4508 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4530 if test -n "$TEST_MINUS_S_SH"; then
4531 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4532 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4534 { echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6; }
4539 # Extract the first word of "ksh", so it can be a program name with args.
4540 set dummy ksh; ac_word=$2
4541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 case $TEST_MINUS_S_SH in
4548 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4570 if test -n "$TEST_MINUS_S_SH"; then
4571 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4572 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4579 # Extract the first word of "sh", so it can be a program name with args.
4580 set dummy sh; ac_word=$2
4581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4583 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 case $TEST_MINUS_S_SH in
4588 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4610 if test -n "$TEST_MINUS_S_SH"; then
4611 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4612 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4614 { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4619 # Extract the first word of "sh", so it can be a program name with args.
4620 set dummy sh; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_path_SH+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 if test -n "$SH"; then
4651 { echo "$as_me:$LINENO: result: $SH" >&5
4652 echo "${ECHO_T}$SH" >&6; }
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4662 # Extract the first word of "groupadd", so it can be a program name with args.
4663 set dummy groupadd; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 case $PATH_GROUPADD_PROG in
4671 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4693 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4694 if test -n "$PATH_GROUPADD_PROG"; then
4695 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4696 echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4703 # Extract the first word of "useradd", so it can be a program name with args.
4704 set dummy useradd; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 case $PATH_USERADD_PROG in
4712 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4734 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4735 if test -n "$PATH_USERADD_PROG"; then
4736 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4737 echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4739 { echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6; }
4744 # Extract the first word of "pkgmk", so it can be a program name with args.
4745 set dummy pkgmk; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4752 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4772 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4773 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4774 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4775 echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4777 { echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6; }
4782 if test -x /sbin/sh; then
4783 STARTUP_SCRIPT_SHELL=/sbin/sh
4786 STARTUP_SCRIPT_SHELL=/bin/sh
4791 # Check whether --enable-largefile was given.
4792 if test "${enable_largefile+set}" = set; then
4793 enableval=$enable_largefile;
4796 if test "$enable_largefile" != no; then
4798 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4799 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4800 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 ac_cv_sys_largefile_CC=no
4804 if test "$GCC" != yes; then
4807 # IRIX 6.2 and later do not support large files by default,
4808 # so use the C compiler's -n32 option if that helps.
4809 cat >conftest.$ac_ext <<_ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 #include <sys/types.h>
4816 /* Check that off_t can represent 2**63 - 1 correctly.
4817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4818 since some C++ compilers masquerading as C compilers
4819 incorrectly reject 9223372036854775807. */
4820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4822 && LARGE_OFF_T % 2147483647 == 1)
4832 rm -f conftest.$ac_objext
4833 if { (ac_try="$ac_compile"
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_compile") 2>conftest.er1
4841 grep -v '^ *+' conftest.er1 >conftest.err
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } && {
4846 test -z "$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4848 } && test -s conftest.$ac_objext; then
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4857 rm -f core conftest.err conftest.$ac_objext
4859 rm -f conftest.$ac_objext
4860 if { (ac_try="$ac_compile"
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_compile") 2>conftest.er1
4868 grep -v '^ *+' conftest.er1 >conftest.err
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest.$ac_objext; then
4876 ac_cv_sys_largefile_CC=' -n32'; break
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4884 rm -f core conftest.err conftest.$ac_objext
4888 rm -f conftest.$ac_ext
4891 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4892 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4893 if test "$ac_cv_sys_largefile_CC" != no; then
4894 CC=$CC$ac_cv_sys_largefile_CC
4897 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4898 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4899 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <sys/types.h>
4910 /* Check that off_t can represent 2**63 - 1 correctly.
4911 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4912 since some C++ compilers masquerading as C compilers
4913 incorrectly reject 9223372036854775807. */
4914 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4915 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4916 && LARGE_OFF_T % 2147483647 == 1)
4926 rm -f conftest.$ac_objext
4927 if { (ac_try="$ac_compile"
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_compile") 2>conftest.er1
4935 grep -v '^ *+' conftest.er1 >conftest.err
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && {
4940 test -z "$ac_c_werror_flag" ||
4941 test ! -s conftest.err
4942 } && test -s conftest.$ac_objext; then
4943 ac_cv_sys_file_offset_bits=no; break
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 cat >conftest.$ac_ext <<_ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 #define _FILE_OFFSET_BITS 64
4959 #include <sys/types.h>
4960 /* Check that off_t can represent 2**63 - 1 correctly.
4961 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4962 since some C++ compilers masquerading as C compilers
4963 incorrectly reject 9223372036854775807. */
4964 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4965 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4966 && LARGE_OFF_T % 2147483647 == 1)
4976 rm -f conftest.$ac_objext
4977 if { (ac_try="$ac_compile"
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_compile") 2>conftest.er1
4985 grep -v '^ *+' conftest.er1 >conftest.err
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && {
4990 test -z "$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 } && test -s conftest.$ac_objext; then
4993 ac_cv_sys_file_offset_bits=64; break
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 ac_cv_sys_file_offset_bits=unknown
5006 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5007 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5008 case $ac_cv_sys_file_offset_bits in #(
5011 cat >>confdefs.h <<_ACEOF
5012 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5017 if test $ac_cv_sys_file_offset_bits = unknown; then
5018 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5019 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5020 if test "${ac_cv_sys_large_files+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 cat >conftest.$ac_ext <<_ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 #include <sys/types.h>
5031 /* Check that off_t can represent 2**63 - 1 correctly.
5032 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5033 since some C++ compilers masquerading as C compilers
5034 incorrectly reject 9223372036854775807. */
5035 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5037 && LARGE_OFF_T % 2147483647 == 1)
5047 rm -f conftest.$ac_objext
5048 if { (ac_try="$ac_compile"
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_compile") 2>conftest.er1
5056 grep -v '^ *+' conftest.er1 >conftest.err
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } && {
5061 test -z "$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 } && test -s conftest.$ac_objext; then
5064 ac_cv_sys_large_files=no; break
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #define _LARGE_FILES 1
5080 #include <sys/types.h>
5081 /* Check that off_t can represent 2**63 - 1 correctly.
5082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5083 since some C++ compilers masquerading as C compilers
5084 incorrectly reject 9223372036854775807. */
5085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5087 && LARGE_OFF_T % 2147483647 == 1)
5097 rm -f conftest.$ac_objext
5098 if { (ac_try="$ac_compile"
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && {
5111 test -z "$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 } && test -s conftest.$ac_objext; then
5114 ac_cv_sys_large_files=1; break
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_cv_sys_large_files=unknown
5127 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5128 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5129 case $ac_cv_sys_large_files in #(
5132 cat >>confdefs.h <<_ACEOF
5133 #define _LARGE_FILES $ac_cv_sys_large_files
5142 if test -z "$AR" ; then
5143 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5144 echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5145 { (exit 1); exit 1; }; }
5148 # Use LOGIN_PROGRAM from environment if possible
5149 if test ! -z "$LOGIN_PROGRAM" ; then
5151 cat >>confdefs.h <<_ACEOF
5152 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5157 # Extract the first word of "login", so it can be a program name with args.
5158 set dummy login; ac_word=$2
5159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5161 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 case $LOGIN_PROGRAM_FALLBACK in
5166 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5188 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5189 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5190 echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5192 { echo "$as_me:$LINENO: result: no" >&5
5193 echo "${ECHO_T}no" >&6; }
5197 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5198 cat >>confdefs.h <<_ACEOF
5199 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5205 # Extract the first word of "passwd", so it can be a program name with args.
5206 set dummy passwd; ac_word=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 case $PATH_PASSWD_PROG in
5214 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5236 if test -n "$PATH_PASSWD_PROG"; then
5237 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5238 echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5240 { echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6; }
5245 if test ! -z "$PATH_PASSWD_PROG" ; then
5247 cat >>confdefs.h <<_ACEOF
5248 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5253 if test -z "$LD" ; then
5258 { echo "$as_me:$LINENO: checking for inline" >&5
5259 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5260 if test "${ac_cv_c_inline+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 for ac_kw in inline __inline__ __inline; do
5265 cat >conftest.$ac_ext <<_ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5273 static $ac_kw foo_t static_foo () {return 0; }
5274 $ac_kw foo_t foo () {return 0; }
5278 rm -f conftest.$ac_objext
5279 if { (ac_try="$ac_compile"
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_compile") 2>conftest.er1
5287 grep -v '^ *+' conftest.er1 >conftest.err
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && {
5292 test -z "$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 } && test -s conftest.$ac_objext; then
5295 ac_cv_c_inline=$ac_kw
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 test "$ac_cv_c_inline" != no && break
5308 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5309 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5312 case $ac_cv_c_inline in
5315 case $ac_cv_c_inline in
5317 *) ac_val=$ac_cv_c_inline;;
5319 cat >>confdefs.h <<_ACEOF
5321 #define inline $ac_val
5328 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5329 echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5330 if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 cat >conftest.$ac_ext <<_ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5352 rm -f conftest.$ac_objext
5353 if { (ac_try="$ac_compile"
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_compile") 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } && {
5366 test -z "$ac_c_werror_flag" ||
5367 test ! -s conftest.err
5368 } && test -s conftest.$ac_objext; then
5369 ac_cv_have_decl_LLONG_MAX=yes
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5374 ac_cv_have_decl_LLONG_MAX=no
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5380 echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5381 if test $ac_cv_have_decl_LLONG_MAX = yes; then
5386 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5387 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5388 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5390 1.*) no_attrib_nonnull=1 ;;
5392 CFLAGS="$CFLAGS -Wsign-compare"
5395 2.*) no_attrib_nonnull=1 ;;
5396 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5397 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;;
5401 if test -z "$have_llong_max"; then
5402 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5403 unset ac_cv_have_decl_LLONG_MAX
5404 saved_CFLAGS="$CFLAGS"
5405 CFLAGS="$CFLAGS -std=gnu99"
5406 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5407 echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5408 if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5431 rm -f conftest.$ac_objext
5432 if { (ac_try="$ac_compile"
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5440 grep -v '^ *+' conftest.er1 >conftest.err
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && {
5445 test -z "$ac_c_werror_flag" ||
5446 test ! -s conftest.err
5447 } && test -s conftest.$ac_objext; then
5448 ac_cv_have_decl_LLONG_MAX=yes
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 ac_cv_have_decl_LLONG_MAX=no
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5459 echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5460 if test $ac_cv_have_decl_LLONG_MAX = yes; then
5463 CFLAGS="$saved_CFLAGS"
5469 if test "x$no_attrib_nonnull" != "x1" ; then
5471 cat >>confdefs.h <<\_ACEOF
5472 #define HAVE_ATTRIBUTE__NONNULL__ 1
5478 # Check whether --with-rpath was given.
5479 if test "${with_rpath+set}" = set; then
5480 withval=$with_rpath;
5481 if test "x$withval" = "xno" ; then
5484 if test "x$withval" = "xyes" ; then
5492 # Allow user to specify flags
5494 # Check whether --with-cflags was given.
5495 if test "${with_cflags+set}" = set; then
5496 withval=$with_cflags;
5497 if test -n "$withval" && test "x$withval" != "xno" && \
5498 test "x${withval}" != "xyes"; then
5499 CFLAGS="$CFLAGS $withval"
5506 # Check whether --with-cppflags was given.
5507 if test "${with_cppflags+set}" = set; then
5508 withval=$with_cppflags;
5509 if test -n "$withval" && test "x$withval" != "xno" && \
5510 test "x${withval}" != "xyes"; then
5511 CPPFLAGS="$CPPFLAGS $withval"
5518 # Check whether --with-ldflags was given.
5519 if test "${with_ldflags+set}" = set; then
5520 withval=$with_ldflags;
5521 if test -n "$withval" && test "x$withval" != "xno" && \
5522 test "x${withval}" != "xyes"; then
5523 LDFLAGS="$LDFLAGS $withval"
5530 # Check whether --with-libs was given.
5531 if test "${with_libs+set}" = set; then
5533 if test -n "$withval" && test "x$withval" != "xno" && \
5534 test "x${withval}" != "xyes"; then
5535 LIBS="$LIBS $withval"
5542 # Check whether --with-Werror was given.
5543 if test "${with_Werror+set}" = set; then
5544 withval=$with_Werror;
5545 if test -n "$withval" && test "x$withval" != "xno"; then
5546 werror_flags="-Werror"
5547 if test "x${withval}" != "xyes"; then
5548 werror_flags="$withval"
5643 security/pam_appl.h \
5681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 ac_res=`eval echo '${'$as_ac_Header'}'`
5689 { echo "$as_me:$LINENO: result: $ac_res" >&5
5690 echo "${ECHO_T}$ac_res" >&6; }
5692 # Is the header compilable?
5693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5702 #include <$ac_header>
5704 rm -f conftest.$ac_objext
5705 if { (ac_try="$ac_compile"
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_compile") 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } && {
5718 test -z "$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5720 } && test -s conftest.$ac_objext; then
5721 ac_header_compiler=yes
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 ac_header_compiler=no
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5731 echo "${ECHO_T}$ac_header_compiler" >&6; }
5733 # Is the header present?
5734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 #include <$ac_header>
5744 if { (ac_try="$ac_cpp conftest.$ac_ext"
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5752 grep -v '^ *+' conftest.er1 >conftest.err
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } >/dev/null && {
5757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5758 test ! -s conftest.err
5760 ac_header_preproc=yes
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 ac_header_preproc=no
5768 rm -f conftest.err conftest.$ac_ext
5769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5770 echo "${ECHO_T}$ac_header_preproc" >&6; }
5772 # So? What about this header?
5773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5779 ac_header_preproc=yes
5782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5795 ## ------------------------------------------- ##
5796 ## Report this to openssh-unix-dev@mindrot.org ##
5797 ## ------------------------------------------- ##
5799 ) | sed "s/^/$as_me: WARNING: /" >&2
5802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 eval "$as_ac_Header=\$ac_header_preproc"
5809 ac_res=`eval echo '${'$as_ac_Header'}'`
5810 { echo "$as_me:$LINENO: result: $ac_res" >&5
5811 echo "${ECHO_T}$ac_res" >&6; }
5814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5815 cat >>confdefs.h <<_ACEOF
5816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5824 # lastlog.h requires sys/time.h to be included first on Solaris
5826 for ac_header in lastlog.h
5828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5841 #ifdef HAVE_SYS_TIME_H
5842 # include <sys/time.h>
5846 #include <$ac_header>
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.$ac_objext; then
5865 eval "$as_ac_Header=yes"
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 eval "$as_ac_Header=no"
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_res=`eval echo '${'$as_ac_Header'}'`
5876 { echo "$as_me:$LINENO: result: $ac_res" >&5
5877 echo "${ECHO_T}$ac_res" >&6; }
5878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5879 cat >>confdefs.h <<_ACEOF
5880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5888 # sys/ptms.h requires sys/stream.h to be included first on Solaris
5890 for ac_header in sys/ptms.h
5892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 cat >conftest.$ac_ext <<_ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5905 #ifdef HAVE_SYS_STREAM_H
5906 # include <sys/stream.h>
5910 #include <$ac_header>
5912 rm -f conftest.$ac_objext
5913 if { (ac_try="$ac_compile"
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_compile") 2>conftest.er1
5921 grep -v '^ *+' conftest.er1 >conftest.err
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } && {
5926 test -z "$ac_c_werror_flag" ||
5927 test ! -s conftest.err
5928 } && test -s conftest.$ac_objext; then
5929 eval "$as_ac_Header=yes"
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 eval "$as_ac_Header=no"
5937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 ac_res=`eval echo '${'$as_ac_Header'}'`
5940 { echo "$as_me:$LINENO: result: $ac_res" >&5
5941 echo "${ECHO_T}$ac_res" >&6; }
5942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5943 cat >>confdefs.h <<_ACEOF
5944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5952 # login_cap.h requires sys/types.h on NetBSD
5954 for ac_header in login_cap.h
5956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5969 #include <sys/types.h>
5972 #include <$ac_header>
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_compile") 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && {
5988 test -z "$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest.$ac_objext; then
5991 eval "$as_ac_Header=yes"
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 eval "$as_ac_Header=no"
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 ac_res=`eval echo '${'$as_ac_Header'}'`
6002 { echo "$as_me:$LINENO: result: $ac_res" >&5
6003 echo "${ECHO_T}$ac_res" >&6; }
6004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6005 cat >>confdefs.h <<_ACEOF
6006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6014 # Messages for features tested for in target-specific section
6018 # Check for some target-specific stuff
6021 # Some versions of VAC won't allow macro redefinitions at
6022 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6023 # particularly with older versions of vac or xlc.
6024 # It also throws errors about null macro argments, but these are
6026 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6027 echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6028 cat >conftest.$ac_ext <<_ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6035 #define testmacro foo
6036 #define testmacro bar
6037 int main(void) { exit(0); }
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 { echo "$as_me:$LINENO: result: yes" >&5
6058 echo "${ECHO_T}yes" >&6; }
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6063 { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6065 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6066 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6067 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6068 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6076 echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6077 if (test -z "$blibpath"); then
6078 blibpath="/usr/lib:/lib"
6080 saved_LDFLAGS="$LDFLAGS"
6081 if test "$GCC" = "yes"; then
6082 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6084 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6086 for tryflags in $flags ;do
6087 if (test -z "$blibflags"); then
6088 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6089 cat >conftest.$ac_ext <<_ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6104 rm -f conftest.$ac_objext conftest$ac_exeext
6105 if { (ac_try="$ac_link"
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_link") 2>conftest.er1
6113 grep -v '^ *+' conftest.er1 >conftest.err
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && {
6118 test -z "$ac_c_werror_flag" ||
6119 test ! -s conftest.err
6120 } && test -s conftest$ac_exeext &&
6121 $as_test_x conftest$ac_exeext; then
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6131 conftest$ac_exeext conftest.$ac_ext
6134 if (test -z "$blibflags"); then
6135 { echo "$as_me:$LINENO: result: not found" >&5
6136 echo "${ECHO_T}not found" >&6; }
6137 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6138 echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6139 { (exit 1); exit 1; }; }
6141 { echo "$as_me:$LINENO: result: $blibflags" >&5
6142 echo "${ECHO_T}$blibflags" >&6; }
6144 LDFLAGS="$saved_LDFLAGS"
6145 { echo "$as_me:$LINENO: checking for authenticate" >&5
6146 echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6147 if test "${ac_cv_func_authenticate+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 cat >conftest.$ac_ext <<_ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6158 #define authenticate innocuous_authenticate
6160 /* System header to define __stub macros and hopefully few prototypes,
6161 which can conflict with char authenticate (); below.
6162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6163 <limits.h> exists even on freestanding compilers. */
6166 # include <limits.h>
6168 # include <assert.h>
6173 /* Override any GCC internal prototype to avoid an error.
6174 Use char because int might match the return type of a GCC
6175 builtin and then its argument prototype would still apply. */
6179 char authenticate ();
6180 /* The GNU C library defines this for functions which it implements
6181 to always fail with ENOSYS. Some functions are actually named
6182 something starting with __ and the normal name is an alias. */
6183 #if defined __stub_authenticate || defined __stub___authenticate
6190 return authenticate ();
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (ac_try="$ac_link"
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_link") 2>conftest.er1
6204 grep -v '^ *+' conftest.er1 >conftest.err
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && {
6209 test -z "$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6211 } && test -s conftest$ac_exeext &&
6212 $as_test_x conftest$ac_exeext; then
6213 ac_cv_func_authenticate=yes
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_cv_func_authenticate=no
6221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6222 conftest$ac_exeext conftest.$ac_ext
6224 { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6225 echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6226 if test $ac_cv_func_authenticate = yes; then
6228 cat >>confdefs.h <<\_ACEOF
6229 #define WITH_AIXAUTHENTICATE 1
6233 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6234 echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6235 if test "${ac_cv_lib_s_authenticate+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 ac_check_lib_save_LIBS=$LIBS
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6247 /* Override any GCC internal prototype to avoid an error.
6248 Use char because int might match the return type of a GCC
6249 builtin and then its argument prototype would still apply. */
6253 char authenticate ();
6257 return authenticate ();
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (ac_try="$ac_link"
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_link") 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest$ac_exeext &&
6279 $as_test_x conftest$ac_exeext; then
6280 ac_cv_lib_s_authenticate=yes
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 ac_cv_lib_s_authenticate=no
6288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6289 conftest$ac_exeext conftest.$ac_ext
6290 LIBS=$ac_check_lib_save_LIBS
6292 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6293 echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6294 if test $ac_cv_lib_s_authenticate = yes; then
6295 cat >>confdefs.h <<\_ACEOF
6296 #define WITH_AIXAUTHENTICATE 1
6306 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6307 echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6308 if test "${ac_cv_have_decl_authenticate+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 #include <usersec.h>
6322 #ifndef authenticate
6323 (void) authenticate;
6330 rm -f conftest.$ac_objext
6331 if { (ac_try="$ac_compile"
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_compile") 2>conftest.er1
6339 grep -v '^ *+' conftest.er1 >conftest.err
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest.$ac_objext; then
6347 ac_cv_have_decl_authenticate=yes
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_cv_have_decl_authenticate=no
6355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6358 echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6359 if test $ac_cv_have_decl_authenticate = yes; then
6361 cat >>confdefs.h <<_ACEOF
6362 #define HAVE_DECL_AUTHENTICATE 1
6367 cat >>confdefs.h <<_ACEOF
6368 #define HAVE_DECL_AUTHENTICATE 0
6373 { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6374 echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6375 if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 #include <usersec.h>
6389 #ifndef loginrestrictions
6390 (void) loginrestrictions;
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6406 grep -v '^ *+' conftest.er1 >conftest.err
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
6414 ac_cv_have_decl_loginrestrictions=yes
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_cv_have_decl_loginrestrictions=no
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6425 echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6426 if test $ac_cv_have_decl_loginrestrictions = yes; then
6428 cat >>confdefs.h <<_ACEOF
6429 #define HAVE_DECL_LOGINRESTRICTIONS 1
6434 cat >>confdefs.h <<_ACEOF
6435 #define HAVE_DECL_LOGINRESTRICTIONS 0
6440 { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6441 echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6442 if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 cat >conftest.$ac_ext <<_ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6451 #include <usersec.h>
6456 #ifndef loginsuccess
6457 (void) loginsuccess;
6464 rm -f conftest.$ac_objext
6465 if { (ac_try="$ac_compile"
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_compile") 2>conftest.er1
6473 grep -v '^ *+' conftest.er1 >conftest.err
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } && {
6478 test -z "$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 } && test -s conftest.$ac_objext; then
6481 ac_cv_have_decl_loginsuccess=yes
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6486 ac_cv_have_decl_loginsuccess=no
6489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6492 echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6493 if test $ac_cv_have_decl_loginsuccess = yes; then
6495 cat >>confdefs.h <<_ACEOF
6496 #define HAVE_DECL_LOGINSUCCESS 1
6501 cat >>confdefs.h <<_ACEOF
6502 #define HAVE_DECL_LOGINSUCCESS 0
6507 { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6508 echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6509 if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 #include <usersec.h>
6523 #ifndef passwdexpired
6524 (void) passwdexpired;
6531 rm -f conftest.$ac_objext
6532 if { (ac_try="$ac_compile"
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_compile") 2>conftest.er1
6540 grep -v '^ *+' conftest.er1 >conftest.err
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
6548 ac_cv_have_decl_passwdexpired=yes
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 ac_cv_have_decl_passwdexpired=no
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6559 echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6560 if test $ac_cv_have_decl_passwdexpired = yes; then
6562 cat >>confdefs.h <<_ACEOF
6563 #define HAVE_DECL_PASSWDEXPIRED 1
6568 cat >>confdefs.h <<_ACEOF
6569 #define HAVE_DECL_PASSWDEXPIRED 0
6574 { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6575 echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6576 if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 cat >conftest.$ac_ext <<_ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 #include <usersec.h>
6598 rm -f conftest.$ac_objext
6599 if { (ac_try="$ac_compile"
6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605 (eval "$ac_compile") 2>conftest.er1
6607 grep -v '^ *+' conftest.er1 >conftest.err
6609 cat conftest.err >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } && {
6612 test -z "$ac_c_werror_flag" ||
6613 test ! -s conftest.err
6614 } && test -s conftest.$ac_objext; then
6615 ac_cv_have_decl_setauthdb=yes
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 ac_cv_have_decl_setauthdb=no
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6626 echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6627 if test $ac_cv_have_decl_setauthdb = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630 #define HAVE_DECL_SETAUTHDB 1
6635 cat >>confdefs.h <<_ACEOF
6636 #define HAVE_DECL_SETAUTHDB 0
6643 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6644 echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6645 if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 #include <usersec.h>
6668 rm -f conftest.$ac_objext
6669 if { (ac_try="$ac_compile"
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_compile") 2>conftest.er1
6677 grep -v '^ *+' conftest.er1 >conftest.err
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
6684 } && test -s conftest.$ac_objext; then
6685 ac_cv_have_decl_loginfailed=yes
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 ac_cv_have_decl_loginfailed=no
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6696 echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6697 if test $ac_cv_have_decl_loginfailed = yes; then
6699 cat >>confdefs.h <<_ACEOF
6700 #define HAVE_DECL_LOGINFAILED 1
6703 { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6704 echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6705 cat >conftest.$ac_ext <<_ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 #include <usersec.h>
6715 (void)loginfailed("user","host","tty",0);
6720 rm -f conftest.$ac_objext
6721 if { (ac_try="$ac_compile"
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_compile") 2>conftest.er1
6729 grep -v '^ *+' conftest.er1 >conftest.err
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && {
6734 test -z "$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 } && test -s conftest.$ac_objext; then
6737 { echo "$as_me:$LINENO: result: yes" >&5
6738 echo "${ECHO_T}yes" >&6; }
6740 cat >>confdefs.h <<\_ACEOF
6741 #define AIX_LOGINFAILED_4ARG 1
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 cat >>confdefs.h <<_ACEOF
6756 #define HAVE_DECL_LOGINFAILED 0
6764 for ac_func in setauthdb
6766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 cat >conftest.$ac_ext <<_ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6780 #define $ac_func innocuous_$ac_func
6782 /* System header to define __stub macros and hopefully few prototypes,
6783 which can conflict with char $ac_func (); below.
6784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6785 <limits.h> exists even on freestanding compilers. */
6788 # include <limits.h>
6790 # include <assert.h>
6795 /* Override any GCC internal prototype to avoid an error.
6796 Use char because int might match the return type of a GCC
6797 builtin and then its argument prototype would still apply. */
6802 /* The GNU C library defines this for functions which it implements
6803 to always fail with ENOSYS. Some functions are actually named
6804 something starting with __ and the normal name is an alias. */
6805 #if defined __stub_$ac_func || defined __stub___$ac_func
6817 rm -f conftest.$ac_objext conftest$ac_exeext
6818 if { (ac_try="$ac_link"
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_link") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest$ac_exeext &&
6834 $as_test_x conftest$ac_exeext; then
6835 eval "$as_ac_var=yes"
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 eval "$as_ac_var=no"
6843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6844 conftest$ac_exeext conftest.$ac_ext
6846 ac_res=`eval echo '${'$as_ac_var'}'`
6847 { echo "$as_me:$LINENO: result: $ac_res" >&5
6848 echo "${ECHO_T}$ac_res" >&6; }
6849 if test `eval echo '${'$as_ac_var'}'` = yes; then
6850 cat >>confdefs.h <<_ACEOF
6851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6857 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
6858 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
6859 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1 >conftest.err
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 ac_cv_have_decl_F_CLOSEM=yes
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 ac_cv_have_decl_F_CLOSEM=no
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
6911 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
6912 if test $ac_cv_have_decl_F_CLOSEM = yes; then
6914 cat >>confdefs.h <<\_ACEOF
6915 #define HAVE_FCNTL_CLOSEM 1
6920 check_for_aix_broken_getaddrinfo=1
6922 cat >>confdefs.h <<\_ACEOF
6923 #define BROKEN_REALPATH 1
6927 cat >>confdefs.h <<\_ACEOF
6928 #define SETEUID_BREAKS_SETUID 1
6932 cat >>confdefs.h <<\_ACEOF
6933 #define BROKEN_SETREUID 1
6937 cat >>confdefs.h <<\_ACEOF
6938 #define BROKEN_SETREGID 1
6942 cat >>confdefs.h <<\_ACEOF
6943 #define DISABLE_LASTLOG 1
6947 cat >>confdefs.h <<\_ACEOF
6948 #define LOGIN_NEEDS_UTMPX 1
6952 cat >>confdefs.h <<\_ACEOF
6953 #define SPT_TYPE SPT_REUSEARGV
6957 cat >>confdefs.h <<\_ACEOF
6958 #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
6962 cat >>confdefs.h <<\_ACEOF
6963 #define PTY_ZEROREAD 1
6968 check_for_libcrypt_later=1
6969 LIBS="$LIBS /usr/lib/textreadmode.o"
6971 cat >>confdefs.h <<\_ACEOF
6972 #define HAVE_CYGWIN 1
6976 cat >>confdefs.h <<\_ACEOF
6981 cat >>confdefs.h <<\_ACEOF
6982 #define DISABLE_SHADOW 1
6986 cat >>confdefs.h <<\_ACEOF
6987 #define IP_TOS_IS_BROKEN 1
6991 cat >>confdefs.h <<\_ACEOF
6992 #define NO_X11_UNIX_SOCKETS 1
6996 cat >>confdefs.h <<\_ACEOF
6997 #define NO_IPPORT_RESERVED_CONCEPT 1
7001 cat >>confdefs.h <<\_ACEOF
7002 #define DISABLE_FD_PASSING 1
7007 cat >>confdefs.h <<\_ACEOF
7008 #define IP_TOS_IS_BROKEN 1
7011 cat >>confdefs.h <<\_ACEOF
7012 #define SETEUID_BREAKS_SETUID 1
7015 cat >>confdefs.h <<\_ACEOF
7016 #define BROKEN_SETREUID 1
7019 cat >>confdefs.h <<\_ACEOF
7020 #define BROKEN_SETREGID 1
7025 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7026 echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7027 if test "$cross_compiling" = yes; then
7028 { echo "$as_me:$LINENO: result: assume it is working" >&5
7029 echo "${ECHO_T}assume it is working" >&6; }
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <mach-o/dyld.h>
7038 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7044 rm -f conftest$ac_exeext
7045 if { (ac_try="$ac_link"
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_link") 2>&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7055 { (case "(($ac_try" in
7056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7057 *) ac_try_echo=$ac_try;;
7059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7060 (eval "$ac_try") 2>&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 { echo "$as_me:$LINENO: result: working" >&5
7065 echo "${ECHO_T}working" >&6; }
7067 echo "$as_me: program exited with status $ac_status" >&5
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7072 { echo "$as_me:$LINENO: result: buggy" >&5
7073 echo "${ECHO_T}buggy" >&6; }
7075 cat >>confdefs.h <<\_ACEOF
7076 #define BROKEN_GETADDRINFO 1
7080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7084 cat >>confdefs.h <<\_ACEOF
7085 #define SETEUID_BREAKS_SETUID 1
7088 cat >>confdefs.h <<\_ACEOF
7089 #define BROKEN_SETREUID 1
7092 cat >>confdefs.h <<\_ACEOF
7093 #define BROKEN_SETREGID 1
7097 cat >>confdefs.h <<_ACEOF
7098 #define BIND_8_COMPAT 1
7102 cat >>confdefs.h <<\_ACEOF
7103 #define SSH_TUN_FREEBSD 1
7107 cat >>confdefs.h <<\_ACEOF
7108 #define SSH_TUN_COMPAT_AF 1
7112 cat >>confdefs.h <<\_ACEOF
7113 #define SSH_TUN_PREPEND_AF 1
7118 SSHDLIBS="$SSHDLIBS -lcrypt"
7121 # first we define all of the options common to all HP-UX releases
7122 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7123 IPADDR_IN_DISPLAY=yes
7124 cat >>confdefs.h <<\_ACEOF
7129 cat >>confdefs.h <<\_ACEOF
7130 #define LOGIN_NO_ENDOPT 1
7133 cat >>confdefs.h <<\_ACEOF
7134 #define LOGIN_NEEDS_UTMPX 1
7138 cat >>confdefs.h <<\_ACEOF
7139 #define LOCKED_PASSWD_STRING "*"
7142 cat >>confdefs.h <<\_ACEOF
7143 #define SPT_TYPE SPT_PSTAT
7146 MAIL="/var/mail/username"
7149 { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7150 echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7151 if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 ac_check_lib_save_LIBS=$LIBS
7156 cat >conftest.$ac_ext <<_ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7163 /* Override any GCC internal prototype to avoid an error.
7164 Use char because int might match the return type of a GCC
7165 builtin and then its argument prototype would still apply. */
7178 rm -f conftest.$ac_objext conftest$ac_exeext
7179 if { (ac_try="$ac_link"
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_link") 2>conftest.er1
7187 grep -v '^ *+' conftest.er1 >conftest.err
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && {
7192 test -z "$ac_c_werror_flag" ||
7193 test ! -s conftest.err
7194 } && test -s conftest$ac_exeext &&
7195 $as_test_x conftest$ac_exeext; then
7196 ac_cv_lib_xnet_t_error=yes
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 ac_cv_lib_xnet_t_error=no
7204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7205 conftest$ac_exeext conftest.$ac_ext
7206 LIBS=$ac_check_lib_save_LIBS
7208 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7209 echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7210 if test $ac_cv_lib_xnet_t_error = yes; then
7211 cat >>confdefs.h <<_ACEOF
7212 #define HAVE_LIBXNET 1
7218 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7219 echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7220 { (exit 1); exit 1; }; }
7224 # next, we define all of the options specific to major releases
7227 if test -z "$GCC"; then
7228 CFLAGS="$CFLAGS -Ae"
7233 cat >>confdefs.h <<\_ACEOF
7234 #define PAM_SUN_CODEBASE 1
7238 cat >>confdefs.h <<\_ACEOF
7239 #define DISABLE_UTMP 1
7243 cat >>confdefs.h <<\_ACEOF
7247 check_for_hpux_broken_getaddrinfo=1
7248 check_for_conflicting_getspnam=1
7252 # lastly, we define options specific to minor releases
7256 cat >>confdefs.h <<\_ACEOF
7257 #define HAVE_SECUREWARE 1
7260 disable_ptmx_check=yes
7261 LIBS="$LIBS -lsecpw"
7266 PATH="$PATH:/usr/etc"
7268 cat >>confdefs.h <<\_ACEOF
7269 #define BROKEN_INET_NTOA 1
7272 cat >>confdefs.h <<\_ACEOF
7273 #define SETEUID_BREAKS_SETUID 1
7276 cat >>confdefs.h <<\_ACEOF
7277 #define BROKEN_SETREUID 1
7280 cat >>confdefs.h <<\_ACEOF
7281 #define BROKEN_SETREGID 1
7285 cat >>confdefs.h <<\_ACEOF
7286 #define WITH_ABBREV_NO_TTY 1
7289 cat >>confdefs.h <<\_ACEOF
7290 #define LOCKED_PASSWD_STRING "*LK*"
7295 PATH="$PATH:/usr/etc"
7297 cat >>confdefs.h <<\_ACEOF
7298 #define WITH_IRIX_ARRAY 1
7302 cat >>confdefs.h <<\_ACEOF
7303 #define WITH_IRIX_PROJECT 1
7307 cat >>confdefs.h <<\_ACEOF
7308 #define WITH_IRIX_AUDIT 1
7311 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7312 echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7313 if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 cat >conftest.$ac_ext <<_ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7324 #define jlimit_startjob innocuous_jlimit_startjob
7326 /* System header to define __stub macros and hopefully few prototypes,
7327 which can conflict with char jlimit_startjob (); below.
7328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7329 <limits.h> exists even on freestanding compilers. */
7332 # include <limits.h>
7334 # include <assert.h>
7337 #undef jlimit_startjob
7339 /* Override any GCC internal prototype to avoid an error.
7340 Use char because int might match the return type of a GCC
7341 builtin and then its argument prototype would still apply. */
7345 char jlimit_startjob ();
7346 /* The GNU C library defines this for functions which it implements
7347 to always fail with ENOSYS. Some functions are actually named
7348 something starting with __ and the normal name is an alias. */
7349 #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7356 return jlimit_startjob ();
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (ac_try="$ac_link"
7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_link") 2>conftest.er1
7370 grep -v '^ *+' conftest.er1 >conftest.err
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest$ac_exeext &&
7378 $as_test_x conftest$ac_exeext; then
7379 ac_cv_func_jlimit_startjob=yes
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7384 ac_cv_func_jlimit_startjob=no
7387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7388 conftest$ac_exeext conftest.$ac_ext
7390 { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7391 echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7392 if test $ac_cv_func_jlimit_startjob = yes; then
7394 cat >>confdefs.h <<\_ACEOF
7395 #define WITH_IRIX_JOBS 1
7400 cat >>confdefs.h <<\_ACEOF
7401 #define BROKEN_INET_NTOA 1
7404 cat >>confdefs.h <<\_ACEOF
7405 #define SETEUID_BREAKS_SETUID 1
7408 cat >>confdefs.h <<\_ACEOF
7409 #define BROKEN_SETREUID 1
7412 cat >>confdefs.h <<\_ACEOF
7413 #define BROKEN_SETREGID 1
7417 cat >>confdefs.h <<\_ACEOF
7418 #define BROKEN_UPDWTMPX 1
7421 cat >>confdefs.h <<\_ACEOF
7422 #define WITH_ABBREV_NO_TTY 1
7425 cat >>confdefs.h <<\_ACEOF
7426 #define LOCKED_PASSWD_STRING "*LK*"
7432 check_for_libcrypt_later=1
7433 check_for_openpty_ctty_bug=1
7435 cat >>confdefs.h <<\_ACEOF
7436 #define DONT_TRY_OTHER_AF 1
7440 cat >>confdefs.h <<\_ACEOF
7441 #define PAM_TTY_KLUDGE 1
7445 cat >>confdefs.h <<\_ACEOF
7446 #define LOCKED_PASSWD_PREFIX "!"
7449 cat >>confdefs.h <<\_ACEOF
7450 #define SPT_TYPE SPT_REUSEARGV
7454 cat >>confdefs.h <<\_ACEOF
7455 #define LINK_OPNOTSUPP_ERRNO EPERM
7459 cat >>confdefs.h <<\_ACEOF
7460 #define _PATH_BTMP "/var/log/btmp"
7463 cat >>confdefs.h <<\_ACEOF
7467 inet6_default_4in6=yes
7471 cat >>confdefs.h <<\_ACEOF
7472 #define BROKEN_CMSG_TYPE 1
7477 # tun(4) forwarding compat code
7479 for ac_header in linux/if_tun.h
7481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 ac_res=`eval echo '${'$as_ac_Header'}'`
7489 { echo "$as_me:$LINENO: result: $ac_res" >&5
7490 echo "${ECHO_T}$ac_res" >&6; }
7492 # Is the header compilable?
7493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7495 cat >conftest.$ac_ext <<_ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7502 #include <$ac_header>
7504 rm -f conftest.$ac_objext
7505 if { (ac_try="$ac_compile"
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7513 grep -v '^ *+' conftest.er1 >conftest.err
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 ac_header_compiler=yes
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 ac_header_compiler=no
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7531 echo "${ECHO_T}$ac_header_compiler" >&6; }
7533 # Is the header present?
7534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7536 cat >conftest.$ac_ext <<_ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 #include <$ac_header>
7544 if { (ac_try="$ac_cpp conftest.$ac_ext"
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7552 grep -v '^ *+' conftest.er1 >conftest.err
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } >/dev/null && {
7557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7560 ac_header_preproc=yes
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 ac_header_preproc=no
7568 rm -f conftest.err conftest.$ac_ext
7569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7570 echo "${ECHO_T}$ac_header_preproc" >&6; }
7572 # So? What about this header?
7573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7579 ac_header_preproc=yes
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7595 ## ------------------------------------------- ##
7596 ## Report this to openssh-unix-dev@mindrot.org ##
7597 ## ------------------------------------------- ##
7599 ) | sed "s/^/$as_me: WARNING: /" >&2
7602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 eval "$as_ac_Header=\$ac_header_preproc"
7609 ac_res=`eval echo '${'$as_ac_Header'}'`
7610 { echo "$as_me:$LINENO: result: $ac_res" >&5
7611 echo "${ECHO_T}$ac_res" >&6; }
7614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7615 cat >>confdefs.h <<_ACEOF
7616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7623 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7625 cat >>confdefs.h <<\_ACEOF
7626 #define SSH_TUN_LINUX 1
7630 cat >>confdefs.h <<\_ACEOF
7631 #define SSH_TUN_COMPAT_AF 1
7635 cat >>confdefs.h <<\_ACEOF
7636 #define SSH_TUN_PREPEND_AF 1
7641 mips-sony-bsd|mips-sony-newsos4)
7643 cat >>confdefs.h <<\_ACEOF
7644 #define NEED_SETPGRP 1
7650 check_for_libcrypt_before=1
7651 if test "x$withval" != "xno" ; then
7655 cat >>confdefs.h <<\_ACEOF
7656 #define SSH_TUN_FREEBSD 1
7659 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7660 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7661 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7662 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7666 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7668 # Is the header compilable?
7669 { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7670 echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7671 cat >conftest.$ac_ext <<_ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 $ac_includes_default
7678 #include <net/if_tap.h>
7680 rm -f conftest.$ac_objext
7681 if { (ac_try="$ac_compile"
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_compile") 2>conftest.er1
7689 grep -v '^ *+' conftest.er1 >conftest.err
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } && {
7694 test -z "$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7696 } && test -s conftest.$ac_objext; then
7697 ac_header_compiler=yes
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 ac_header_compiler=no
7705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7707 echo "${ECHO_T}$ac_header_compiler" >&6; }
7709 # Is the header present?
7710 { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7711 echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 #include <net/if_tap.h>
7720 if { (ac_try="$ac_cpp conftest.$ac_ext"
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7728 grep -v '^ *+' conftest.er1 >conftest.err
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } >/dev/null && {
7733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7736 ac_header_preproc=yes
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7741 ac_header_preproc=no
7744 rm -f conftest.err conftest.$ac_ext
7745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7746 echo "${ECHO_T}$ac_header_preproc" >&6; }
7748 # So? What about this header?
7749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7751 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7752 echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7753 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
7754 echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
7755 ac_header_preproc=yes
7758 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
7759 echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
7761 echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
7763 echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
7765 echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
7767 echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
7768 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
7769 echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
7771 ## ------------------------------------------- ##
7772 ## Report this to openssh-unix-dev@mindrot.org ##
7773 ## ------------------------------------------- ##
7775 ) | sed "s/^/$as_me: WARNING: /" >&2
7778 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7779 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7780 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 ac_cv_header_net_if_tap_h=$ac_header_preproc
7785 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7786 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7789 if test $ac_cv_header_net_if_tap_h = yes; then
7793 cat >>confdefs.h <<\_ACEOF
7794 #define SSH_TUN_NO_L2 1
7801 cat >>confdefs.h <<\_ACEOF
7802 #define SSH_TUN_PREPEND_AF 1
7807 check_for_libcrypt_later=1
7809 cat >>confdefs.h <<\_ACEOF
7810 #define LOCKED_PASSWD_PREFIX "*LOCKED*"
7814 cat >>confdefs.h <<\_ACEOF
7815 #define SSH_TUN_FREEBSD 1
7818 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7819 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7820 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7821 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7825 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7827 # Is the header compilable?
7828 { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7829 echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7830 cat >conftest.$ac_ext <<_ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7836 $ac_includes_default
7837 #include <net/if_tap.h>
7839 rm -f conftest.$ac_objext
7840 if { (ac_try="$ac_compile"
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846 (eval "$ac_compile") 2>conftest.er1
7848 grep -v '^ *+' conftest.er1 >conftest.err
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } && {
7853 test -z "$ac_c_werror_flag" ||
7854 test ! -s conftest.err
7855 } && test -s conftest.$ac_objext; then
7856 ac_header_compiler=yes
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 ac_header_compiler=no
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7866 echo "${ECHO_T}$ac_header_compiler" >&6; }
7868 # Is the header present?
7869 { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7870 echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7871 cat >conftest.$ac_ext <<_ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 #include <net/if_tap.h>
7879 if { (ac_try="$ac_cpp conftest.$ac_ext"
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7887 grep -v '^ *+' conftest.er1 >conftest.err
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } >/dev/null && {
7892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7895 ac_header_preproc=yes
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 ac_header_preproc=no
7903 rm -f conftest.err conftest.$ac_ext
7904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7905 echo "${ECHO_T}$ac_header_preproc" >&6; }
7907 # So? What about this header?
7908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7910 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7911 echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
7913 echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
7914 ac_header_preproc=yes
7917 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
7918 echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
7920 echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
7921 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
7922 echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
7923 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
7924 echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7925 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
7926 echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
7927 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
7928 echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
7930 ## ------------------------------------------- ##
7931 ## Report this to openssh-unix-dev@mindrot.org ##
7932 ## ------------------------------------------- ##
7934 ) | sed "s/^/$as_me: WARNING: /" >&2
7937 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7938 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7939 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 ac_cv_header_net_if_tap_h=$ac_header_preproc
7944 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7945 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7948 if test $ac_cv_header_net_if_tap_h = yes; then
7952 cat >>confdefs.h <<\_ACEOF
7953 #define SSH_TUN_NO_L2 1
7961 cat >>confdefs.h <<\_ACEOF
7962 #define SETEUID_BREAKS_SETUID 1
7965 cat >>confdefs.h <<\_ACEOF
7966 #define BROKEN_SETREUID 1
7969 cat >>confdefs.h <<\_ACEOF
7970 #define BROKEN_SETREGID 1
7975 conf_lastlog_location="/usr/adm/lastlog"
7976 conf_utmp_location=/etc/utmp
7977 conf_wtmp_location=/usr/adm/wtmp
7978 MAIL=/usr/spool/mail
7980 cat >>confdefs.h <<\_ACEOF
7984 cat >>confdefs.h <<\_ACEOF
7985 #define BROKEN_REALPATH 1
7988 cat >>confdefs.h <<\_ACEOF
7993 cat >>confdefs.h <<\_ACEOF
7994 #define BROKEN_SAVED_UIDS 1
8000 cat >>confdefs.h <<\_ACEOF
8001 #define HAVE_ATTRIBUTE__SENTINEL__ 1
8005 cat >>confdefs.h <<\_ACEOF
8006 #define HAVE_ATTRIBUTE__BOUNDED__ 1
8010 cat >>confdefs.h <<\_ACEOF
8011 #define SSH_TUN_OPENBSD 1
8015 cat >>confdefs.h <<\_ACEOF
8016 #define SYSLOG_R_SAFE_IN_SIGHAND 1
8021 if test "x$withval" != "xno" ; then
8024 cat >>confdefs.h <<\_ACEOF
8025 #define PAM_SUN_CODEBASE 1
8028 cat >>confdefs.h <<\_ACEOF
8029 #define LOGIN_NEEDS_UTMPX 1
8033 cat >>confdefs.h <<\_ACEOF
8034 #define LOGIN_NEEDS_TERM 1
8037 cat >>confdefs.h <<\_ACEOF
8038 #define PAM_TTY_KLUDGE 1
8042 cat >>confdefs.h <<\_ACEOF
8043 #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8046 cat >>confdefs.h <<\_ACEOF
8047 #define LOCKED_PASSWD_STRING "*LK*"
8050 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8052 cat >>confdefs.h <<\_ACEOF
8053 #define SSHD_ACQUIRES_CTTY 1
8057 cat >>confdefs.h <<\_ACEOF
8058 #define PASSWD_NEEDS_USERNAME 1
8061 external_path_file=/etc/default/login
8062 # hardwire lastlog location (can't detect it on some versions)
8063 conf_lastlog_location="/var/adm/lastlog"
8064 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8065 echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8066 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8067 if test "$sol2ver" -ge 8; then
8068 { echo "$as_me:$LINENO: result: yes" >&5
8069 echo "${ECHO_T}yes" >&6; }
8070 cat >>confdefs.h <<\_ACEOF
8071 #define DISABLE_UTMP 1
8075 cat >>confdefs.h <<\_ACEOF
8076 #define DISABLE_WTMP 1
8080 { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8084 # Check whether --with-solaris-contracts was given.
8085 if test "${with_solaris_contracts+set}" = set; then
8086 withval=$with_solaris_contracts;
8087 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8088 echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8089 if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 ac_check_lib_save_LIBS=$LIBS
8093 LIBS="-lcontract $LIBS"
8094 cat >conftest.$ac_ext <<_ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8101 /* Override any GCC internal prototype to avoid an error.
8102 Use char because int might match the return type of a GCC
8103 builtin and then its argument prototype would still apply. */
8107 char ct_tmpl_activate ();
8111 return ct_tmpl_activate ();
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (ac_try="$ac_link"
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_link") 2>conftest.er1
8125 grep -v '^ *+' conftest.er1 >conftest.err
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest$ac_exeext &&
8133 $as_test_x conftest$ac_exeext; then
8134 ac_cv_lib_contract_ct_tmpl_activate=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_lib_contract_ct_tmpl_activate=no
8142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8143 conftest$ac_exeext conftest.$ac_ext
8144 LIBS=$ac_check_lib_save_LIBS
8146 { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8147 echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8148 if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8150 cat >>confdefs.h <<\_ACEOF
8151 #define USE_SOLARIS_PROCESS_CONTRACTS 1
8154 SSHDLIBS="$SSHDLIBS -lcontract"
8164 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8166 for ac_func in getpwanam
8168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 cat >conftest.$ac_ext <<_ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h. */
8180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8182 #define $ac_func innocuous_$ac_func
8184 /* System header to define __stub macros and hopefully few prototypes,
8185 which can conflict with char $ac_func (); below.
8186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8187 <limits.h> exists even on freestanding compilers. */
8190 # include <limits.h>
8192 # include <assert.h>
8197 /* Override any GCC internal prototype to avoid an error.
8198 Use char because int might match the return type of a GCC
8199 builtin and then its argument prototype would still apply. */
8204 /* The GNU C library defines this for functions which it implements
8205 to always fail with ENOSYS. Some functions are actually named
8206 something starting with __ and the normal name is an alias. */
8207 #if defined __stub_$ac_func || defined __stub___$ac_func
8219 rm -f conftest.$ac_objext conftest$ac_exeext
8220 if { (ac_try="$ac_link"
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_link") 2>conftest.er1
8228 grep -v '^ *+' conftest.er1 >conftest.err
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } && {
8233 test -z "$ac_c_werror_flag" ||
8234 test ! -s conftest.err
8235 } && test -s conftest$ac_exeext &&
8236 $as_test_x conftest$ac_exeext; then
8237 eval "$as_ac_var=yes"
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 eval "$as_ac_var=no"
8245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8246 conftest$ac_exeext conftest.$ac_ext
8248 ac_res=`eval echo '${'$as_ac_var'}'`
8249 { echo "$as_me:$LINENO: result: $ac_res" >&5
8250 echo "${ECHO_T}$ac_res" >&6; }
8251 if test `eval echo '${'$as_ac_var'}'` = yes; then
8252 cat >>confdefs.h <<_ACEOF
8253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8259 cat >>confdefs.h <<\_ACEOF
8260 #define PAM_SUN_CODEBASE 1
8263 conf_utmp_location=/etc/utmp
8264 conf_wtmp_location=/var/adm/wtmp
8265 conf_lastlog_location=/var/adm/lastlog
8266 cat >>confdefs.h <<\_ACEOF
8273 cat >>confdefs.h <<\_ACEOF
8277 cat >>confdefs.h <<\_ACEOF
8278 #define SSHD_ACQUIRES_CTTY 1
8281 cat >>confdefs.h <<\_ACEOF
8282 #define SETEUID_BREAKS_SETUID 1
8285 cat >>confdefs.h <<\_ACEOF
8286 #define BROKEN_SETREUID 1
8289 cat >>confdefs.h <<\_ACEOF
8290 #define BROKEN_SETREGID 1
8295 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8297 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8298 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8299 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 ac_check_lib_save_LIBS=$LIBS
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8311 /* Override any GCC internal prototype to avoid an error.
8312 Use char because int might match the return type of a GCC
8313 builtin and then its argument prototype would still apply. */
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (ac_try="$ac_link"
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_link") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest$ac_exeext &&
8343 $as_test_x conftest$ac_exeext; then
8344 ac_cv_lib_dl_dlsym=yes
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 ac_cv_lib_dl_dlsym=no
8352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8353 conftest$ac_exeext conftest.$ac_ext
8354 LIBS=$ac_check_lib_save_LIBS
8356 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8357 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8358 if test $ac_cv_lib_dl_dlsym = yes; then
8359 cat >>confdefs.h <<_ACEOF
8360 #define HAVE_LIBDL 1
8367 # -lresolv needs to be at the end of LIBS or DNS lookups break
8368 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8369 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8370 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 ac_check_lib_save_LIBS=$LIBS
8374 LIBS="-lresolv $LIBS"
8375 cat >conftest.$ac_ext <<_ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8382 /* Override any GCC internal prototype to avoid an error.
8383 Use char because int might match the return type of a GCC
8384 builtin and then its argument prototype would still apply. */
8392 return res_query ();
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (ac_try="$ac_link"
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_link") 2>conftest.er1
8406 grep -v '^ *+' conftest.er1 >conftest.err
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && {
8411 test -z "$ac_c_werror_flag" ||
8412 test ! -s conftest.err
8413 } && test -s conftest$ac_exeext &&
8414 $as_test_x conftest$ac_exeext; then
8415 ac_cv_lib_resolv_res_query=yes
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 ac_cv_lib_resolv_res_query=no
8423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8424 conftest$ac_exeext conftest.$ac_ext
8425 LIBS=$ac_check_lib_save_LIBS
8427 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8428 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8429 if test $ac_cv_lib_resolv_res_query = yes; then
8430 LIBS="$LIBS -lresolv"
8433 IPADDR_IN_DISPLAY=yes
8434 cat >>confdefs.h <<\_ACEOF
8438 cat >>confdefs.h <<\_ACEOF
8439 #define IP_TOS_IS_BROKEN 1
8442 cat >>confdefs.h <<\_ACEOF
8443 #define SETEUID_BREAKS_SETUID 1
8446 cat >>confdefs.h <<\_ACEOF
8447 #define BROKEN_SETREUID 1
8450 cat >>confdefs.h <<\_ACEOF
8451 #define BROKEN_SETREGID 1
8454 cat >>confdefs.h <<\_ACEOF
8455 #define SSHD_ACQUIRES_CTTY 1
8458 external_path_file=/etc/default/login
8459 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8460 # Attention: always take care to bind libsocket and libnsl before libc,
8461 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8463 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8465 cat >>confdefs.h <<\_ACEOF
8469 cat >>confdefs.h <<\_ACEOF
8470 #define SETEUID_BREAKS_SETUID 1
8473 cat >>confdefs.h <<\_ACEOF
8474 #define BROKEN_SETREUID 1
8477 cat >>confdefs.h <<\_ACEOF
8478 #define BROKEN_SETREGID 1
8482 cat >>confdefs.h <<\_ACEOF
8483 #define PASSWD_NEEDS_USERNAME 1
8486 cat >>confdefs.h <<\_ACEOF
8487 #define LOCKED_PASSWD_STRING "*LK*"
8491 # UnixWare 7.x, OpenUNIX 8
8493 check_for_libcrypt_later=1
8495 cat >>confdefs.h <<\_ACEOF
8496 #define UNIXWARE_LONG_PASSWORDS 1
8499 cat >>confdefs.h <<\_ACEOF
8503 cat >>confdefs.h <<\_ACEOF
8504 #define SETEUID_BREAKS_SETUID 1
8507 cat >>confdefs.h <<\_ACEOF
8508 #define BROKEN_SETREUID 1
8511 cat >>confdefs.h <<\_ACEOF
8512 #define BROKEN_SETREGID 1
8515 cat >>confdefs.h <<\_ACEOF
8516 #define PASSWD_NEEDS_USERNAME 1
8520 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8521 TEST_SHELL=/u95/bin/sh
8523 cat >>confdefs.h <<\_ACEOF
8524 #define BROKEN_LIBIAF 1
8527 cat >>confdefs.h <<\_ACEOF
8528 #define BROKEN_UPDWTMPX 1
8532 *) cat >>confdefs.h <<\_ACEOF
8533 #define LOCKED_PASSWD_STRING "*LK*"
8541 # SCO UNIX and OEM versions of SCO UNIX
8543 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
8544 echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
8545 { (exit 1); exit 1; }; }
8547 # SCO OpenServer 5.x
8549 if test -z "$GCC"; then
8550 CFLAGS="$CFLAGS -belf"
8552 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8554 cat >>confdefs.h <<\_ACEOF
8558 cat >>confdefs.h <<\_ACEOF
8559 #define HAVE_SECUREWARE 1
8562 cat >>confdefs.h <<\_ACEOF
8563 #define DISABLE_SHADOW 1
8566 cat >>confdefs.h <<\_ACEOF
8567 #define DISABLE_FD_PASSING 1
8570 cat >>confdefs.h <<\_ACEOF
8571 #define SETEUID_BREAKS_SETUID 1
8574 cat >>confdefs.h <<\_ACEOF
8575 #define BROKEN_SETREUID 1
8578 cat >>confdefs.h <<\_ACEOF
8579 #define BROKEN_SETREGID 1
8582 cat >>confdefs.h <<\_ACEOF
8583 #define WITH_ABBREV_NO_TTY 1
8586 cat >>confdefs.h <<\_ACEOF
8587 #define BROKEN_UPDWTMPX 1
8590 cat >>confdefs.h <<\_ACEOF
8591 #define PASSWD_NEEDS_USERNAME 1
8596 for ac_func in getluid setluid
8598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8612 #define $ac_func innocuous_$ac_func
8614 /* System header to define __stub macros and hopefully few prototypes,
8615 which can conflict with char $ac_func (); below.
8616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8617 <limits.h> exists even on freestanding compilers. */
8620 # include <limits.h>
8622 # include <assert.h>
8627 /* Override any GCC internal prototype to avoid an error.
8628 Use char because int might match the return type of a GCC
8629 builtin and then its argument prototype would still apply. */
8634 /* The GNU C library defines this for functions which it implements
8635 to always fail with ENOSYS. Some functions are actually named
8636 something starting with __ and the normal name is an alias. */
8637 #if defined __stub_$ac_func || defined __stub___$ac_func
8649 rm -f conftest.$ac_objext conftest$ac_exeext
8650 if { (ac_try="$ac_link"
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_link") 2>conftest.er1
8658 grep -v '^ *+' conftest.er1 >conftest.err
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_c_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest$ac_exeext &&
8666 $as_test_x conftest$ac_exeext; then
8667 eval "$as_ac_var=yes"
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 eval "$as_ac_var=no"
8675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8676 conftest$ac_exeext conftest.$ac_ext
8678 ac_res=`eval echo '${'$as_ac_var'}'`
8679 { echo "$as_me:$LINENO: result: $ac_res" >&5
8680 echo "${ECHO_T}$ac_res" >&6; }
8681 if test `eval echo '${'$as_ac_var'}'` = yes; then
8682 cat >>confdefs.h <<_ACEOF
8683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8694 cat >>confdefs.h <<\_ACEOF
8695 #define NO_SSH_LASTLOG 1
8698 cat >>confdefs.h <<\_ACEOF
8699 #define SETEUID_BREAKS_SETUID 1
8702 cat >>confdefs.h <<\_ACEOF
8703 #define BROKEN_SETREUID 1
8706 cat >>confdefs.h <<\_ACEOF
8707 #define BROKEN_SETREGID 1
8710 cat >>confdefs.h <<\_ACEOF
8714 cat >>confdefs.h <<\_ACEOF
8715 #define DISABLE_FD_PASSING 1
8719 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8723 cat >>confdefs.h <<\_ACEOF
8724 #define SETEUID_BREAKS_SETUID 1
8727 cat >>confdefs.h <<\_ACEOF
8728 #define BROKEN_SETREUID 1
8731 cat >>confdefs.h <<\_ACEOF
8732 #define BROKEN_SETREGID 1
8735 cat >>confdefs.h <<\_ACEOF
8736 #define WITH_ABBREV_NO_TTY 1
8739 cat >>confdefs.h <<\_ACEOF
8743 cat >>confdefs.h <<\_ACEOF
8744 #define DISABLE_FD_PASSING 1
8748 LIBS="$LIBS -lgen -lacid -ldb"
8752 cat >>confdefs.h <<\_ACEOF
8753 #define SETEUID_BREAKS_SETUID 1
8756 cat >>confdefs.h <<\_ACEOF
8757 #define BROKEN_SETREUID 1
8760 cat >>confdefs.h <<\_ACEOF
8761 #define BROKEN_SETREGID 1
8764 cat >>confdefs.h <<\_ACEOF
8768 cat >>confdefs.h <<\_ACEOF
8769 #define DISABLE_FD_PASSING 1
8772 cat >>confdefs.h <<\_ACEOF
8773 #define NO_SSH_LASTLOG 1
8776 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
8777 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8781 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
8782 echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
8785 # Check whether --with-osfsia was given.
8786 if test "${with_osfsia+set}" = set; then
8787 withval=$with_osfsia;
8788 if test "x$withval" = "xno" ; then
8789 { echo "$as_me:$LINENO: result: disabled" >&5
8790 echo "${ECHO_T}disabled" >&6; }
8796 if test -z "$no_osfsia" ; then
8797 if test -f /etc/sia/matrix.conf; then
8798 { echo "$as_me:$LINENO: result: yes" >&5
8799 echo "${ECHO_T}yes" >&6; }
8801 cat >>confdefs.h <<\_ACEOF
8802 #define HAVE_OSF_SIA 1
8806 cat >>confdefs.h <<\_ACEOF
8807 #define DISABLE_LOGIN 1
8810 cat >>confdefs.h <<\_ACEOF
8811 #define DISABLE_FD_PASSING 1
8814 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8817 { echo "$as_me:$LINENO: result: no" >&5
8818 echo "${ECHO_T}no" >&6; }
8820 cat >>confdefs.h <<\_ACEOF
8821 #define LOCKED_PASSWD_SUBSTR "Nologin"
8826 cat >>confdefs.h <<\_ACEOF
8827 #define BROKEN_GETADDRINFO 1
8830 cat >>confdefs.h <<\_ACEOF
8831 #define SETEUID_BREAKS_SETUID 1
8834 cat >>confdefs.h <<\_ACEOF
8835 #define BROKEN_SETREUID 1
8838 cat >>confdefs.h <<\_ACEOF
8839 #define BROKEN_SETREGID 1
8845 cat >>confdefs.h <<\_ACEOF
8849 cat >>confdefs.h <<\_ACEOF
8850 #define NO_X11_UNIX_SOCKETS 1
8854 cat >>confdefs.h <<\_ACEOF
8855 #define MISSING_NFDBITS 1
8859 cat >>confdefs.h <<\_ACEOF
8860 #define MISSING_HOWMANY 1
8864 cat >>confdefs.h <<\_ACEOF
8865 #define MISSING_FD_MASK 1
8868 cat >>confdefs.h <<\_ACEOF
8869 #define DISABLE_LASTLOG 1
8872 cat >>confdefs.h <<\_ACEOF
8873 #define SSHD_ACQUIRES_CTTY 1
8876 enable_etc_default_login=no # has incompatible /etc/default/login
8879 cat >>confdefs.h <<\_ACEOF
8880 #define DISABLE_FD_PASSING 1
8889 cat >>confdefs.h <<\_ACEOF
8890 #define BROKEN_GETGROUPS 1
8894 cat >>confdefs.h <<\_ACEOF
8895 #define BROKEN_MMAP 1
8898 cat >>confdefs.h <<\_ACEOF
8899 #define NEED_SETPGRP 1
8903 cat >>confdefs.h <<\_ACEOF
8904 #define HAVE_SYS_SYSLOG_H 1
8910 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8911 cat >>confdefs.h <<\_ACEOF
8912 #define MISSING_HOWMANY 1
8916 cat >>confdefs.h <<\_ACEOF
8917 #define BROKEN_SETVBUF 1
8923 { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
8924 echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
8925 if test "$cross_compiling" = yes; then
8926 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
8927 echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8930 cat >conftest.$ac_ext <<_ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8938 int main(){exit(0);}
8941 rm -f conftest$ac_exeext
8942 if { (ac_try="$ac_link"
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_link") 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8952 { (case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_try") 2>&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 { echo "$as_me:$LINENO: result: yes" >&5
8962 echo "${ECHO_T}yes" >&6; }
8964 echo "$as_me: program exited with status $ac_status" >&5
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8970 { echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6; }
8972 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
8973 echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
8974 { (exit 1); exit 1; }; }
8977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8982 # Checks for libraries.
8983 { echo "$as_me:$LINENO: checking for yp_match" >&5
8984 echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
8985 if test "${ac_cv_func_yp_match+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
8995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8996 #define yp_match innocuous_yp_match
8998 /* System header to define __stub macros and hopefully few prototypes,
8999 which can conflict with char yp_match (); below.
9000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9001 <limits.h> exists even on freestanding compilers. */
9004 # include <limits.h>
9006 # include <assert.h>
9011 /* Override any GCC internal prototype to avoid an error.
9012 Use char because int might match the return type of a GCC
9013 builtin and then its argument prototype would still apply. */
9018 /* The GNU C library defines this for functions which it implements
9019 to always fail with ENOSYS. Some functions are actually named
9020 something starting with __ and the normal name is an alias. */
9021 #if defined __stub_yp_match || defined __stub___yp_match
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_link") 2>conftest.er1
9042 grep -v '^ *+' conftest.er1 >conftest.err
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && {
9047 test -z "$ac_c_werror_flag" ||
9048 test ! -s conftest.err
9049 } && test -s conftest$ac_exeext &&
9050 $as_test_x conftest$ac_exeext; then
9051 ac_cv_func_yp_match=yes
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9056 ac_cv_func_yp_match=no
9059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9060 conftest$ac_exeext conftest.$ac_ext
9062 { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9063 echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9064 if test $ac_cv_func_yp_match = yes; then
9068 { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9069 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9070 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 ac_check_lib_save_LIBS=$LIBS
9075 cat >conftest.$ac_ext <<_ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9082 /* Override any GCC internal prototype to avoid an error.
9083 Use char because int might match the return type of a GCC
9084 builtin and then its argument prototype would still apply. */
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (ac_try="$ac_link"
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_link") 2>conftest.er1
9106 grep -v '^ *+' conftest.er1 >conftest.err
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest$ac_exeext &&
9114 $as_test_x conftest$ac_exeext; then
9115 ac_cv_lib_nsl_yp_match=yes
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 ac_cv_lib_nsl_yp_match=no
9123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9124 conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9127 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9128 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9129 if test $ac_cv_lib_nsl_yp_match = yes; then
9130 cat >>confdefs.h <<_ACEOF
9131 #define HAVE_LIBNSL 1
9140 { echo "$as_me:$LINENO: checking for setsockopt" >&5
9141 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9142 if test "${ac_cv_func_setsockopt+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
9152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9153 #define setsockopt innocuous_setsockopt
9155 /* System header to define __stub macros and hopefully few prototypes,
9156 which can conflict with char setsockopt (); below.
9157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9158 <limits.h> exists even on freestanding compilers. */
9161 # include <limits.h>
9163 # include <assert.h>
9168 /* Override any GCC internal prototype to avoid an error.
9169 Use char because int might match the return type of a GCC
9170 builtin and then its argument prototype would still apply. */
9175 /* The GNU C library defines this for functions which it implements
9176 to always fail with ENOSYS. Some functions are actually named
9177 something starting with __ and the normal name is an alias. */
9178 #if defined __stub_setsockopt || defined __stub___setsockopt
9185 return setsockopt ();
9190 rm -f conftest.$ac_objext conftest$ac_exeext
9191 if { (ac_try="$ac_link"
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_link") 2>conftest.er1
9199 grep -v '^ *+' conftest.er1 >conftest.err
9201 cat conftest.err >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && {
9204 test -z "$ac_c_werror_flag" ||
9205 test ! -s conftest.err
9206 } && test -s conftest$ac_exeext &&
9207 $as_test_x conftest$ac_exeext; then
9208 ac_cv_func_setsockopt=yes
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 ac_cv_func_setsockopt=no
9216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9217 conftest$ac_exeext conftest.$ac_ext
9219 { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9220 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
9221 if test $ac_cv_func_setsockopt = yes; then
9225 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9226 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
9227 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 ac_check_lib_save_LIBS=$LIBS
9231 LIBS="-lsocket $LIBS"
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9239 /* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
9249 return setsockopt ();
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (ac_try="$ac_link"
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_link") 2>conftest.er1
9263 grep -v '^ *+' conftest.er1 >conftest.err
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && {
9268 test -z "$ac_c_werror_flag" ||
9269 test ! -s conftest.err
9270 } && test -s conftest$ac_exeext &&
9271 $as_test_x conftest$ac_exeext; then
9272 ac_cv_lib_socket_setsockopt=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 ac_cv_lib_socket_setsockopt=no
9280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9284 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9285 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
9286 if test $ac_cv_lib_socket_setsockopt = yes; then
9287 cat >>confdefs.h <<_ACEOF
9288 #define HAVE_LIBSOCKET 1
9291 LIBS="-lsocket $LIBS"
9299 for ac_func in dirname
9301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 cat >conftest.$ac_ext <<_ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9315 #define $ac_func innocuous_$ac_func
9317 /* System header to define __stub macros and hopefully few prototypes,
9318 which can conflict with char $ac_func (); below.
9319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9320 <limits.h> exists even on freestanding compilers. */
9323 # include <limits.h>
9325 # include <assert.h>
9330 /* Override any GCC internal prototype to avoid an error.
9331 Use char because int might match the return type of a GCC
9332 builtin and then its argument prototype would still apply. */
9337 /* The GNU C library defines this for functions which it implements
9338 to always fail with ENOSYS. Some functions are actually named
9339 something starting with __ and the normal name is an alias. */
9340 #if defined __stub_$ac_func || defined __stub___$ac_func
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (ac_try="$ac_link"
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$ac_link") 2>conftest.er1
9361 grep -v '^ *+' conftest.er1 >conftest.err
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } && {
9366 test -z "$ac_c_werror_flag" ||
9367 test ! -s conftest.err
9368 } && test -s conftest$ac_exeext &&
9369 $as_test_x conftest$ac_exeext; then
9370 eval "$as_ac_var=yes"
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 eval "$as_ac_var=no"
9378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9379 conftest$ac_exeext conftest.$ac_ext
9381 ac_res=`eval echo '${'$as_ac_var'}'`
9382 { echo "$as_me:$LINENO: result: $ac_res" >&5
9383 echo "${ECHO_T}$ac_res" >&6; }
9384 if test `eval echo '${'$as_ac_var'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389 for ac_header in libgen.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 test -z "$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 } && test -s conftest.$ac_objext; then
9431 ac_header_compiler=yes
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_header_compiler=no
9439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9441 echo "${ECHO_T}$ac_header_compiler" >&6; }
9443 # Is the header present?
9444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9446 cat >conftest.$ac_ext <<_ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 #include <$ac_header>
9454 if { (ac_try="$ac_cpp conftest.$ac_ext"
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9462 grep -v '^ *+' conftest.er1 >conftest.err
9464 cat conftest.err >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } >/dev/null && {
9467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9468 test ! -s conftest.err
9470 ac_header_preproc=yes
9472 echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9475 ac_header_preproc=no
9478 rm -f conftest.err conftest.$ac_ext
9479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9480 echo "${ECHO_T}$ac_header_preproc" >&6; }
9482 # So? What about this header?
9483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9489 ac_header_preproc=yes
9492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9505 ## ------------------------------------------- ##
9506 ## Report this to openssh-unix-dev@mindrot.org ##
9507 ## ------------------------------------------- ##
9509 ) | sed "s/^/$as_me: WARNING: /" >&2
9512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 eval "$as_ac_Header=\$ac_header_preproc"
9519 ac_res=`eval echo '${'$as_ac_Header'}'`
9520 { echo "$as_me:$LINENO: result: $ac_res" >&5
9521 echo "${ECHO_T}$ac_res" >&6; }
9524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9525 cat >>confdefs.h <<_ACEOF
9526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9535 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
9536 echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
9537 if test "${ac_cv_lib_gen_dirname+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 ac_check_lib_save_LIBS=$LIBS
9542 cat >conftest.$ac_ext <<_ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9549 /* Override any GCC internal prototype to avoid an error.
9550 Use char because int might match the return type of a GCC
9551 builtin and then its argument prototype would still apply. */
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (ac_try="$ac_link"
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_link") 2>conftest.er1
9573 grep -v '^ *+' conftest.er1 >conftest.err
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest$ac_exeext &&
9581 $as_test_x conftest$ac_exeext; then
9582 ac_cv_lib_gen_dirname=yes
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 ac_cv_lib_gen_dirname=no
9590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9591 conftest$ac_exeext conftest.$ac_ext
9592 LIBS=$ac_check_lib_save_LIBS
9594 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
9595 echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
9596 if test $ac_cv_lib_gen_dirname = yes; then
9598 { echo "$as_me:$LINENO: checking for broken dirname" >&5
9599 echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
9600 if test "${ac_cv_have_broken_dirname+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 if test "$cross_compiling" = yes; then
9607 ac_cv_have_broken_dirname="no"
9609 cat >conftest.$ac_ext <<_ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9619 int main(int argc, char **argv) {
9622 strncpy(buf,"/etc", 32);
9624 if (!s || strncmp(s, "/", 32) != 0) {
9632 rm -f conftest$ac_exeext
9633 if { (ac_try="$ac_link"
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_link") 2>&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9643 { (case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_try") 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_cv_have_broken_dirname="no"
9654 echo "$as_me: program exited with status $ac_status" >&5
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9659 ac_cv_have_broken_dirname="yes"
9661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9668 { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
9669 echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
9670 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
9672 cat >>confdefs.h <<\_ACEOF
9673 #define HAVE_DIRNAME 1
9677 for ac_header in libgen.h
9679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 ac_res=`eval echo '${'$as_ac_Header'}'`
9687 { echo "$as_me:$LINENO: result: $ac_res" >&5
9688 echo "${ECHO_T}$ac_res" >&6; }
9690 # Is the header compilable?
9691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 $ac_includes_default
9700 #include <$ac_header>
9702 rm -f conftest.$ac_objext
9703 if { (ac_try="$ac_compile"
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_compile") 2>conftest.er1
9711 grep -v '^ *+' conftest.er1 >conftest.err
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } && {
9716 test -z "$ac_c_werror_flag" ||
9717 test ! -s conftest.err
9718 } && test -s conftest.$ac_objext; then
9719 ac_header_compiler=yes
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_header_compiler=no
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9729 echo "${ECHO_T}$ac_header_compiler" >&6; }
9731 # Is the header present?
9732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9734 cat >conftest.$ac_ext <<_ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 #include <$ac_header>
9742 if { (ac_try="$ac_cpp conftest.$ac_ext"
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9750 grep -v '^ *+' conftest.er1 >conftest.err
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } >/dev/null && {
9755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9756 test ! -s conftest.err
9758 ac_header_preproc=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_header_preproc=no
9766 rm -f conftest.err conftest.$ac_ext
9767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9768 echo "${ECHO_T}$ac_header_preproc" >&6; }
9770 # So? What about this header?
9771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9777 ac_header_preproc=yes
9780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9793 ## ------------------------------------------- ##
9794 ## Report this to openssh-unix-dev@mindrot.org ##
9795 ## ------------------------------------------- ##
9797 ) | sed "s/^/$as_me: WARNING: /" >&2
9800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 eval "$as_ac_Header=\$ac_header_preproc"
9807 ac_res=`eval echo '${'$as_ac_Header'}'`
9808 { echo "$as_me:$LINENO: result: $ac_res" >&5
9809 echo "${ECHO_T}$ac_res" >&6; }
9812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9813 cat >>confdefs.h <<_ACEOF
9814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9830 { echo "$as_me:$LINENO: checking for getspnam" >&5
9831 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
9832 if test "${ac_cv_func_getspnam+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
9842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9843 #define getspnam innocuous_getspnam
9845 /* System header to define __stub macros and hopefully few prototypes,
9846 which can conflict with char getspnam (); below.
9847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9848 <limits.h> exists even on freestanding compilers. */
9851 # include <limits.h>
9853 # include <assert.h>
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9865 /* The GNU C library defines this for functions which it implements
9866 to always fail with ENOSYS. Some functions are actually named
9867 something starting with __ and the normal name is an alias. */
9868 #if defined __stub_getspnam || defined __stub___getspnam
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (ac_try="$ac_link"
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_link") 2>conftest.er1
9889 grep -v '^ *+' conftest.er1 >conftest.err
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } && {
9894 test -z "$ac_c_werror_flag" ||
9895 test ! -s conftest.err
9896 } && test -s conftest$ac_exeext &&
9897 $as_test_x conftest$ac_exeext; then
9898 ac_cv_func_getspnam=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_cv_func_getspnam=no
9906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9907 conftest$ac_exeext conftest.$ac_ext
9909 { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
9910 echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
9911 if test $ac_cv_func_getspnam = yes; then
9914 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
9915 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
9916 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 ac_check_lib_save_LIBS=$LIBS
9921 cat >conftest.$ac_ext <<_ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9928 /* Override any GCC internal prototype to avoid an error.
9929 Use char because int might match the return type of a GCC
9930 builtin and then its argument prototype would still apply. */
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9952 grep -v '^ *+' conftest.er1 >conftest.err
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && {
9957 test -z "$ac_c_werror_flag" ||
9958 test ! -s conftest.err
9959 } && test -s conftest$ac_exeext &&
9960 $as_test_x conftest$ac_exeext; then
9961 ac_cv_lib_gen_getspnam=yes
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9966 ac_cv_lib_gen_getspnam=no
9969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9970 conftest$ac_exeext conftest.$ac_ext
9971 LIBS=$ac_check_lib_save_LIBS
9973 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
9974 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
9975 if test $ac_cv_lib_gen_getspnam = yes; then
9981 { echo "$as_me:$LINENO: checking for library containing basename" >&5
9982 echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
9983 if test "${ac_cv_search_basename+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 ac_func_search_save_LIBS=$LIBS
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
10004 return basename ();
10009 for ac_lib in '' gen; do
10010 if test -z "$ac_lib"; then
10011 ac_res="none required"
10014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (ac_try="$ac_link"
10018 case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_link") 2>conftest.er1
10025 grep -v '^ *+' conftest.er1 >conftest.err
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } && {
10030 test -z "$ac_c_werror_flag" ||
10031 test ! -s conftest.err
10032 } && test -s conftest$ac_exeext &&
10033 $as_test_x conftest$ac_exeext; then
10034 ac_cv_search_basename=$ac_res
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10044 if test "${ac_cv_search_basename+set}" = set; then
10048 if test "${ac_cv_search_basename+set}" = set; then
10051 ac_cv_search_basename=no
10053 rm conftest.$ac_ext
10054 LIBS=$ac_func_search_save_LIBS
10056 { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
10057 echo "${ECHO_T}$ac_cv_search_basename" >&6; }
10058 ac_res=$ac_cv_search_basename
10059 if test "$ac_res" != no; then
10060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10062 cat >>confdefs.h <<\_ACEOF
10063 #define HAVE_BASENAME 1
10070 # Check whether --with-zlib was given.
10071 if test "${with_zlib+set}" = set; then
10072 withval=$with_zlib; if test "x$withval" = "xno" ; then
10073 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
10074 echo "$as_me: error: *** zlib is required ***" >&2;}
10075 { (exit 1); exit 1; }; }
10076 elif test "x$withval" != "xyes"; then
10077 if test -d "$withval/lib"; then
10078 if test -n "${need_dash_r}"; then
10079 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10081 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10084 if test -n "${need_dash_r}"; then
10085 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10087 LDFLAGS="-L${withval} ${LDFLAGS}"
10090 if test -d "$withval/include"; then
10091 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10093 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10101 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10102 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10103 if test "${ac_cv_lib_z_deflate+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 ac_check_lib_save_LIBS=$LIBS
10108 cat >conftest.$ac_ext <<_ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10115 /* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (ac_try="$ac_link"
10132 case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_link") 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest$ac_exeext &&
10147 $as_test_x conftest$ac_exeext; then
10148 ac_cv_lib_z_deflate=yes
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_cv_lib_z_deflate=no
10156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10157 conftest$ac_exeext conftest.$ac_ext
10158 LIBS=$ac_check_lib_save_LIBS
10160 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10161 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10162 if test $ac_cv_lib_z_deflate = yes; then
10163 cat >>confdefs.h <<_ACEOF
10164 #define HAVE_LIBZ 1
10171 saved_CPPFLAGS="$CPPFLAGS"
10172 saved_LDFLAGS="$LDFLAGS"
10174 if test -n "${need_dash_r}"; then
10175 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
10177 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
10179 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10188 /* Override any GCC internal prototype to avoid an error.
10189 Use char because int might match the return type of a GCC
10190 builtin and then its argument prototype would still apply. */
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
10212 grep -v '^ *+' conftest.er1 >conftest.err
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && {
10217 test -z "$ac_c_werror_flag" ||
10218 test ! -s conftest.err
10219 } && test -s conftest$ac_exeext &&
10220 $as_test_x conftest$ac_exeext; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_LIBZ 1
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10230 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
10231 echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
10232 { (exit 1); exit 1; }; }
10237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10238 conftest$ac_exeext conftest.$ac_ext
10243 if test "${ac_cv_header_zlib_h+set}" = set; then
10244 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10245 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10246 if test "${ac_cv_header_zlib_h+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10250 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10252 # Is the header compilable?
10253 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10254 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10255 cat >conftest.$ac_ext <<_ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10261 $ac_includes_default
10264 rm -f conftest.$ac_objext
10265 if { (ac_try="$ac_compile"
10266 case "(($ac_try" in
10267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268 *) ac_try_echo=$ac_try;;
10270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271 (eval "$ac_compile") 2>conftest.er1
10273 grep -v '^ *+' conftest.er1 >conftest.err
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } && {
10278 test -z "$ac_c_werror_flag" ||
10279 test ! -s conftest.err
10280 } && test -s conftest.$ac_objext; then
10281 ac_header_compiler=yes
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 ac_header_compiler=no
10289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10291 echo "${ECHO_T}$ac_header_compiler" >&6; }
10293 # Is the header present?
10294 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10295 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10296 cat >conftest.$ac_ext <<_ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10304 if { (ac_try="$ac_cpp conftest.$ac_ext"
10305 case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10312 grep -v '^ *+' conftest.er1 >conftest.err
10314 cat conftest.err >&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } >/dev/null && {
10317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10318 test ! -s conftest.err
10320 ac_header_preproc=yes
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_header_preproc=no
10328 rm -f conftest.err conftest.$ac_ext
10329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10330 echo "${ECHO_T}$ac_header_preproc" >&6; }
10332 # So? What about this header?
10333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10335 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10336 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10337 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10338 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10339 ac_header_preproc=yes
10342 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10343 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10345 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10347 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10349 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10351 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10352 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10353 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10355 ## ------------------------------------------- ##
10356 ## Report this to openssh-unix-dev@mindrot.org ##
10357 ## ------------------------------------------- ##
10359 ) | sed "s/^/$as_me: WARNING: /" >&2
10362 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10363 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10364 if test "${ac_cv_header_zlib_h+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 ac_cv_header_zlib_h=$ac_header_preproc
10369 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10370 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10373 if test $ac_cv_header_zlib_h = yes; then
10376 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
10377 echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
10378 { (exit 1); exit 1; }; }
10384 # Check whether --with-zlib-version-check was given.
10385 if test "${with_zlib_version_check+set}" = set; then
10386 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
10387 zlib_check_nonfatal=1
10394 { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
10395 echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
10396 if test "$cross_compiling" = yes; then
10397 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
10398 echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
10401 cat >conftest.$ac_ext <<_ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10412 int a=0, b=0, c=0, d=0, n, v;
10413 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
10414 if (n != 3 && n != 4)
10416 v = a*1000000 + b*10000 + c*100 + d;
10417 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
10420 if (a == 1 && b == 1 && c >= 4)
10423 /* 1.2.3 and up are OK */
10431 rm -f conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_link") 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10442 { (case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_try") 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 { echo "$as_me:$LINENO: result: no" >&5
10452 echo "${ECHO_T}no" >&6; }
10454 echo "$as_me: program exited with status $ac_status" >&5
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 ( exit $ac_status )
10459 { echo "$as_me:$LINENO: result: yes" >&5
10460 echo "${ECHO_T}yes" >&6; }
10461 if test -z "$zlib_check_nonfatal" ; then
10462 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
10463 Your reported zlib version has known security problems. It's possible your
10464 vendor has fixed these problems without changing the version number. If you
10465 are sure this is the case, you can disable the check by running
10466 \"./configure --without-zlib-version-check\".
10467 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10468 See http://www.gzip.org/zlib/ for details." >&5
10469 echo "$as_me: error: *** zlib too old - check config.log ***
10470 Your reported zlib version has known security problems. It's possible your
10471 vendor has fixed these problems without changing the version number. If you
10472 are sure this is the case, you can disable the check by running
10473 \"./configure --without-zlib-version-check\".
10474 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
10475 See http://www.gzip.org/zlib/ for details." >&2;}
10476 { (exit 1); exit 1; }; }
10478 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
10479 echo "$as_me: WARNING: zlib version may have security problems" >&2;}
10483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10488 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
10489 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
10490 if test "${ac_cv_func_strcasecmp+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 cat >conftest.$ac_ext <<_ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
10500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10501 #define strcasecmp innocuous_strcasecmp
10503 /* System header to define __stub macros and hopefully few prototypes,
10504 which can conflict with char strcasecmp (); below.
10505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10506 <limits.h> exists even on freestanding compilers. */
10509 # include <limits.h>
10511 # include <assert.h>
10516 /* Override any GCC internal prototype to avoid an error.
10517 Use char because int might match the return type of a GCC
10518 builtin and then its argument prototype would still apply. */
10522 char strcasecmp ();
10523 /* The GNU C library defines this for functions which it implements
10524 to always fail with ENOSYS. Some functions are actually named
10525 something starting with __ and the normal name is an alias. */
10526 #if defined __stub_strcasecmp || defined __stub___strcasecmp
10533 return strcasecmp ();
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_link") 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest$ac_exeext &&
10555 $as_test_x conftest$ac_exeext; then
10556 ac_cv_func_strcasecmp=yes
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 ac_cv_func_strcasecmp=no
10564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10565 conftest$ac_exeext conftest.$ac_ext
10567 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
10568 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
10569 if test $ac_cv_func_strcasecmp = yes; then
10572 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
10573 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
10574 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 ac_check_lib_save_LIBS=$LIBS
10578 LIBS="-lresolv $LIBS"
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10586 /* Override any GCC internal prototype to avoid an error.
10587 Use char because int might match the return type of a GCC
10588 builtin and then its argument prototype would still apply. */
10592 char strcasecmp ();
10596 return strcasecmp ();
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest$ac_exeext &&
10618 $as_test_x conftest$ac_exeext; then
10619 ac_cv_lib_resolv_strcasecmp=yes
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_cv_lib_resolv_strcasecmp=no
10627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10631 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
10632 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
10633 if test $ac_cv_lib_resolv_strcasecmp = yes; then
10634 LIBS="$LIBS -lresolv"
10641 for ac_func in utimes
10643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 cat >conftest.$ac_ext <<_ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10657 #define $ac_func innocuous_$ac_func
10659 /* System header to define __stub macros and hopefully few prototypes,
10660 which can conflict with char $ac_func (); below.
10661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10662 <limits.h> exists even on freestanding compilers. */
10665 # include <limits.h>
10667 # include <assert.h>
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10679 /* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682 #if defined __stub_$ac_func || defined __stub___$ac_func
10689 return $ac_func ();
10694 rm -f conftest.$ac_objext conftest$ac_exeext
10695 if { (ac_try="$ac_link"
10696 case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_link") 2>conftest.er1
10703 grep -v '^ *+' conftest.er1 >conftest.err
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && {
10708 test -z "$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 } && test -s conftest$ac_exeext &&
10711 $as_test_x conftest$ac_exeext; then
10712 eval "$as_ac_var=yes"
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 eval "$as_ac_var=no"
10720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10721 conftest$ac_exeext conftest.$ac_ext
10723 ac_res=`eval echo '${'$as_ac_var'}'`
10724 { echo "$as_me:$LINENO: result: $ac_res" >&5
10725 echo "${ECHO_T}$ac_res" >&6; }
10726 if test `eval echo '${'$as_ac_var'}'` = yes; then
10727 cat >>confdefs.h <<_ACEOF
10728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10732 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
10733 echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
10734 if test "${ac_cv_lib_c89_utimes+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 ac_check_lib_save_LIBS=$LIBS
10739 cat >conftest.$ac_ext <<_ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_link") 2>conftest.er1
10770 grep -v '^ *+' conftest.er1 >conftest.err
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest$ac_exeext &&
10778 $as_test_x conftest$ac_exeext; then
10779 ac_cv_lib_c89_utimes=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_cv_lib_c89_utimes=no
10787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10788 conftest$ac_exeext conftest.$ac_ext
10789 LIBS=$ac_check_lib_save_LIBS
10791 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
10792 echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
10793 if test $ac_cv_lib_c89_utimes = yes; then
10794 cat >>confdefs.h <<\_ACEOF
10795 #define HAVE_UTIMES 1
10807 for ac_header in libutil.h
10809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 ac_res=`eval echo '${'$as_ac_Header'}'`
10817 { echo "$as_me:$LINENO: result: $ac_res" >&5
10818 echo "${ECHO_T}$ac_res" >&6; }
10820 # Is the header compilable?
10821 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 $ac_includes_default
10830 #include <$ac_header>
10832 rm -f conftest.$ac_objext
10833 if { (ac_try="$ac_compile"
10834 case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_compile") 2>conftest.er1
10841 grep -v '^ *+' conftest.er1 >conftest.err
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } && {
10846 test -z "$ac_c_werror_flag" ||
10847 test ! -s conftest.err
10848 } && test -s conftest.$ac_objext; then
10849 ac_header_compiler=yes
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 ac_header_compiler=no
10857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10859 echo "${ECHO_T}$ac_header_compiler" >&6; }
10861 # Is the header present?
10862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 #include <$ac_header>
10872 if { (ac_try="$ac_cpp conftest.$ac_ext"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10880 grep -v '^ *+' conftest.er1 >conftest.err
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } >/dev/null && {
10885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10886 test ! -s conftest.err
10888 ac_header_preproc=yes
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_header_preproc=no
10896 rm -f conftest.err conftest.$ac_ext
10897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10898 echo "${ECHO_T}$ac_header_preproc" >&6; }
10900 # So? What about this header?
10901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10907 ac_header_preproc=yes
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10923 ## ------------------------------------------- ##
10924 ## Report this to openssh-unix-dev@mindrot.org ##
10925 ## ------------------------------------------- ##
10927 ) | sed "s/^/$as_me: WARNING: /" >&2
10930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 eval "$as_ac_Header=\$ac_header_preproc"
10937 ac_res=`eval echo '${'$as_ac_Header'}'`
10938 { echo "$as_me:$LINENO: result: $ac_res" >&5
10939 echo "${ECHO_T}$ac_res" >&6; }
10942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10943 cat >>confdefs.h <<_ACEOF
10944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10951 { echo "$as_me:$LINENO: checking for library containing login" >&5
10952 echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
10953 if test "${ac_cv_search_login+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 ac_func_search_save_LIBS=$LIBS
10957 cat >conftest.$ac_ext <<_ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10964 /* Override any GCC internal prototype to avoid an error.
10965 Use char because int might match the return type of a GCC
10966 builtin and then its argument prototype would still apply. */
10979 for ac_lib in '' util bsd; do
10980 if test -z "$ac_lib"; then
10981 ac_res="none required"
10984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10986 rm -f conftest.$ac_objext conftest$ac_exeext
10987 if { (ac_try="$ac_link"
10988 case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_link") 2>conftest.er1
10995 grep -v '^ *+' conftest.er1 >conftest.err
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && {
11000 test -z "$ac_c_werror_flag" ||
11001 test ! -s conftest.err
11002 } && test -s conftest$ac_exeext &&
11003 $as_test_x conftest$ac_exeext; then
11004 ac_cv_search_login=$ac_res
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014 if test "${ac_cv_search_login+set}" = set; then
11018 if test "${ac_cv_search_login+set}" = set; then
11021 ac_cv_search_login=no
11023 rm conftest.$ac_ext
11024 LIBS=$ac_func_search_save_LIBS
11026 { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
11027 echo "${ECHO_T}$ac_cv_search_login" >&6; }
11028 ac_res=$ac_cv_search_login
11029 if test "$ac_res" != no; then
11030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11032 cat >>confdefs.h <<\_ACEOF
11033 #define HAVE_LOGIN 1
11041 for ac_func in logout updwtmp logwtmp
11043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11057 #define $ac_func innocuous_$ac_func
11059 /* System header to define __stub macros and hopefully few prototypes,
11060 which can conflict with char $ac_func (); below.
11061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11062 <limits.h> exists even on freestanding compilers. */
11065 # include <limits.h>
11067 # include <assert.h>
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11079 /* The GNU C library defines this for functions which it implements
11080 to always fail with ENOSYS. Some functions are actually named
11081 something starting with __ and the normal name is an alias. */
11082 #if defined __stub_$ac_func || defined __stub___$ac_func
11089 return $ac_func ();
11094 rm -f conftest.$ac_objext conftest$ac_exeext
11095 if { (ac_try="$ac_link"
11096 case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_link") 2>conftest.er1
11103 grep -v '^ *+' conftest.er1 >conftest.err
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } && {
11108 test -z "$ac_c_werror_flag" ||
11109 test ! -s conftest.err
11110 } && test -s conftest$ac_exeext &&
11111 $as_test_x conftest$ac_exeext; then
11112 eval "$as_ac_var=yes"
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 eval "$as_ac_var=no"
11120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11121 conftest$ac_exeext conftest.$ac_ext
11123 ac_res=`eval echo '${'$as_ac_var'}'`
11124 { echo "$as_me:$LINENO: result: $ac_res" >&5
11125 echo "${ECHO_T}$ac_res" >&6; }
11126 if test `eval echo '${'$as_ac_var'}'` = yes; then
11127 cat >>confdefs.h <<_ACEOF
11128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11136 for ac_func in strftime
11138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 cat >conftest.$ac_ext <<_ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h. */
11150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11152 #define $ac_func innocuous_$ac_func
11154 /* System header to define __stub macros and hopefully few prototypes,
11155 which can conflict with char $ac_func (); below.
11156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11157 <limits.h> exists even on freestanding compilers. */
11160 # include <limits.h>
11162 # include <assert.h>
11167 /* Override any GCC internal prototype to avoid an error.
11168 Use char because int might match the return type of a GCC
11169 builtin and then its argument prototype would still apply. */
11174 /* The GNU C library defines this for functions which it implements
11175 to always fail with ENOSYS. Some functions are actually named
11176 something starting with __ and the normal name is an alias. */
11177 #if defined __stub_$ac_func || defined __stub___$ac_func
11184 return $ac_func ();
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (ac_try="$ac_link"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_link") 2>conftest.er1
11198 grep -v '^ *+' conftest.er1 >conftest.err
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && {
11203 test -z "$ac_c_werror_flag" ||
11204 test ! -s conftest.err
11205 } && test -s conftest$ac_exeext &&
11206 $as_test_x conftest$ac_exeext; then
11207 eval "$as_ac_var=yes"
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 eval "$as_ac_var=no"
11215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11216 conftest$ac_exeext conftest.$ac_ext
11218 ac_res=`eval echo '${'$as_ac_var'}'`
11219 { echo "$as_me:$LINENO: result: $ac_res" >&5
11220 echo "${ECHO_T}$ac_res" >&6; }
11221 if test `eval echo '${'$as_ac_var'}'` = yes; then
11222 cat >>confdefs.h <<_ACEOF
11223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11227 # strftime is in -lintl on SCO UNIX.
11228 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11229 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
11230 if test "${ac_cv_lib_intl_strftime+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 ac_check_lib_save_LIBS=$LIBS
11234 LIBS="-lintl $LIBS"
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11242 /* Override any GCC internal prototype to avoid an error.
11243 Use char because int might match the return type of a GCC
11244 builtin and then its argument prototype would still apply. */
11252 return strftime ();
11257 rm -f conftest.$ac_objext conftest$ac_exeext
11258 if { (ac_try="$ac_link"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_link") 2>conftest.er1
11266 grep -v '^ *+' conftest.er1 >conftest.err
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest$ac_exeext &&
11274 $as_test_x conftest$ac_exeext; then
11275 ac_cv_lib_intl_strftime=yes
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_cv_lib_intl_strftime=no
11283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11284 conftest$ac_exeext conftest.$ac_ext
11285 LIBS=$ac_check_lib_save_LIBS
11287 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11288 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
11289 if test $ac_cv_lib_intl_strftime = yes; then
11290 cat >>confdefs.h <<\_ACEOF
11291 #define HAVE_STRFTIME 1
11294 LIBS="-lintl $LIBS"
11301 # Check for ALTDIRFUNC glob() extension
11302 { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
11303 echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11312 #ifdef GLOB_ALTDIRFUNC
11317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11318 $EGREP "FOUNDIT" >/dev/null 2>&1; then
11321 cat >>confdefs.h <<\_ACEOF
11322 #define GLOB_HAS_ALTDIRFUNC 1
11325 { echo "$as_me:$LINENO: result: yes" >&5
11326 echo "${ECHO_T}yes" >&6; }
11330 { echo "$as_me:$LINENO: result: no" >&5
11331 echo "${ECHO_T}no" >&6; }
11338 # Check for g.gl_matchc glob() extension
11339 { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
11340 echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11351 glob_t g; g.gl_matchc = 1;
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11365 grep -v '^ *+' conftest.er1 >conftest.err
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.$ac_objext; then
11375 cat >>confdefs.h <<\_ACEOF
11376 #define GLOB_HAS_GL_MATCHC 1
11379 { echo "$as_me:$LINENO: result: yes" >&5
11380 echo "${ECHO_T}yes" >&6; }
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11387 { echo "$as_me:$LINENO: result: no" >&5
11388 echo "${ECHO_T}no" >&6; }
11393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395 { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
11396 echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
11397 if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 cat >conftest.$ac_ext <<_ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11411 #ifndef GLOB_NOMATCH
11412 (void) GLOB_NOMATCH;
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_compile") 2>conftest.er1
11428 grep -v '^ *+' conftest.er1 >conftest.err
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest.$ac_objext; then
11436 ac_cv_have_decl_GLOB_NOMATCH=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ac_cv_have_decl_GLOB_NOMATCH=no
11444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11446 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
11447 echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
11448 if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
11450 cat >>confdefs.h <<_ACEOF
11451 #define HAVE_DECL_GLOB_NOMATCH 1
11456 cat >>confdefs.h <<_ACEOF
11457 #define HAVE_DECL_GLOB_NOMATCH 0
11465 { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
11466 echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
11467 if test "$cross_compiling" = yes; then
11469 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
11470 echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
11471 cat >>confdefs.h <<\_ACEOF
11472 #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11478 cat >conftest.$ac_ext <<_ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11485 #include <sys/types.h>
11486 #include <dirent.h>
11487 int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
11490 rm -f conftest$ac_exeext
11491 if { (ac_try="$ac_link"
11492 case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_link") 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 { echo "$as_me:$LINENO: result: yes" >&5
11511 echo "${ECHO_T}yes" >&6; }
11513 echo "$as_me: program exited with status $ac_status" >&5
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ( exit $ac_status )
11519 { echo "$as_me:$LINENO: result: no" >&5
11520 echo "${ECHO_T}no" >&6; }
11522 cat >>confdefs.h <<\_ACEOF
11523 #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
11528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11533 { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
11534 echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
11535 if test -d "/proc/$$/fd" ; then
11537 cat >>confdefs.h <<\_ACEOF
11538 #define HAVE_PROC_PID 1
11541 { echo "$as_me:$LINENO: result: yes" >&5
11542 echo "${ECHO_T}yes" >&6; }
11544 { echo "$as_me:$LINENO: result: no" >&5
11545 echo "${ECHO_T}no" >&6; }
11548 # Check whether user wants S/Key support
11551 # Check whether --with-skey was given.
11552 if test "${with_skey+set}" = set; then
11553 withval=$with_skey;
11554 if test "x$withval" != "xno" ; then
11556 if test "x$withval" != "xyes" ; then
11557 CPPFLAGS="$CPPFLAGS -I${withval}/include"
11558 LDFLAGS="$LDFLAGS -L${withval}/lib"
11562 cat >>confdefs.h <<\_ACEOF
11566 LIBS="-lskey $LIBS"
11569 { echo "$as_me:$LINENO: checking for s/key support" >&5
11570 echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
11571 cat >conftest.$ac_ext <<_ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11580 int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
11583 rm -f conftest.$ac_objext conftest$ac_exeext
11584 if { (ac_try="$ac_link"
11585 case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_link") 2>conftest.er1
11592 grep -v '^ *+' conftest.er1 >conftest.err
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } && {
11597 test -z "$ac_c_werror_flag" ||
11598 test ! -s conftest.err
11599 } && test -s conftest$ac_exeext &&
11600 $as_test_x conftest$ac_exeext; then
11601 { echo "$as_me:$LINENO: result: yes" >&5
11602 echo "${ECHO_T}yes" >&6; }
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11608 { echo "$as_me:$LINENO: result: no" >&5
11609 echo "${ECHO_T}no" >&6; }
11610 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
11611 echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
11612 { (exit 1); exit 1; }; }
11616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11617 conftest$ac_exeext conftest.$ac_ext
11618 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
11619 echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
11620 cat >conftest.$ac_ext <<_ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11631 (void)skeychallenge(NULL,"name","",0);
11636 rm -f conftest.$ac_objext
11637 if { (ac_try="$ac_compile"
11638 case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_compile") 2>conftest.er1
11645 grep -v '^ *+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest.$ac_objext; then
11653 { echo "$as_me:$LINENO: result: yes" >&5
11654 echo "${ECHO_T}yes" >&6; }
11656 cat >>confdefs.h <<\_ACEOF
11657 #define SKEYCHALLENGE_4ARG 1
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 { echo "$as_me:$LINENO: result: no" >&5
11665 echo "${ECHO_T}no" >&6; }
11669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 # Check whether user wants TCP wrappers support
11679 # Check whether --with-tcp-wrappers was given.
11680 if test "${with_tcp_wrappers+set}" = set; then
11681 withval=$with_tcp_wrappers;
11682 if test "x$withval" != "xno" ; then
11684 saved_LDFLAGS="$LDFLAGS"
11685 saved_CPPFLAGS="$CPPFLAGS"
11686 if test -n "${withval}" && \
11687 test "x${withval}" != "xyes"; then
11688 if test -d "${withval}/lib"; then
11689 if test -n "${need_dash_r}"; then
11690 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11692 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11695 if test -n "${need_dash_r}"; then
11696 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11698 LDFLAGS="-L${withval} ${LDFLAGS}"
11701 if test -d "${withval}/include"; then
11702 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11704 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11707 LIBS="-lwrap $LIBS"
11708 { echo "$as_me:$LINENO: checking for libwrap" >&5
11709 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
11710 cat >conftest.$ac_ext <<_ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11717 #include <sys/types.h>
11718 #include <sys/socket.h>
11719 #include <netinet/in.h>
11721 int deny_severity = 0, allow_severity = 0;
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest$ac_exeext &&
11748 $as_test_x conftest$ac_exeext; then
11750 { echo "$as_me:$LINENO: result: yes" >&5
11751 echo "${ECHO_T}yes" >&6; }
11753 cat >>confdefs.h <<\_ACEOF
11757 SSHDLIBS="$SSHDLIBS -lwrap"
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11765 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
11766 echo "$as_me: error: *** libwrap missing" >&2;}
11767 { (exit 1); exit 1; }; }
11772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11773 conftest$ac_exeext conftest.$ac_ext
11781 # Check whether user wants libedit support
11784 # Check whether --with-libedit was given.
11785 if test "${with_libedit+set}" = set; then
11786 withval=$with_libedit; if test "x$withval" != "xno" ; then
11787 if test "x$withval" != "xyes"; then
11788 CPPFLAGS="$CPPFLAGS -I${withval}/include"
11789 if test -n "${need_dash_r}"; then
11790 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11792 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11795 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
11796 echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
11797 if test "${ac_cv_lib_edit_el_init+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 ac_check_lib_save_LIBS=$LIBS
11801 LIBS="-ledit -lcurses
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11825 rm -f conftest.$ac_objext conftest$ac_exeext
11826 if { (ac_try="$ac_link"
11827 case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_link") 2>conftest.er1
11834 grep -v '^ *+' conftest.er1 >conftest.err
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } && {
11839 test -z "$ac_c_werror_flag" ||
11840 test ! -s conftest.err
11841 } && test -s conftest$ac_exeext &&
11842 $as_test_x conftest$ac_exeext; then
11843 ac_cv_lib_edit_el_init=yes
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_cv_lib_edit_el_init=no
11851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11855 { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
11856 echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
11857 if test $ac_cv_lib_edit_el_init = yes; then
11859 cat >>confdefs.h <<\_ACEOF
11860 #define USE_LIBEDIT 1
11863 LIBEDIT="-ledit -lcurses"
11868 { { echo "$as_me:$LINENO: error: libedit not found" >&5
11869 echo "$as_me: error: libedit not found" >&2;}
11870 { (exit 1); exit 1; }; }
11873 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
11874 echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11882 #include <histedit.h>
11886 el_init("", NULL, NULL, NULL);
11891 rm -f conftest.$ac_objext
11892 if { (ac_try="$ac_compile"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_compile") 2>conftest.er1
11900 grep -v '^ *+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && {
11905 test -z "$ac_c_werror_flag" ||
11906 test ! -s conftest.err
11907 } && test -s conftest.$ac_objext; then
11908 { echo "$as_me:$LINENO: result: yes" >&5
11909 echo "${ECHO_T}yes" >&6; }
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 { echo "$as_me:$LINENO: result: no" >&5
11915 echo "${ECHO_T}no" >&6; }
11916 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
11917 echo "$as_me: error: libedit version is not compatible" >&2;}
11918 { (exit 1); exit 1; }; }
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 # Check whether --with-audit was given.
11931 if test "${with_audit+set}" = set; then
11932 withval=$with_audit;
11933 { echo "$as_me:$LINENO: checking for supported audit module" >&5
11934 echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
11937 { echo "$as_me:$LINENO: result: bsm" >&5
11938 echo "${ECHO_T}bsm" >&6; }
11941 for ac_header in bsm/audit.h
11943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 cat >conftest.$ac_ext <<_ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11962 #include <$ac_header>
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_compile") 2>conftest.er1
11973 grep -v '^ *+' conftest.er1 >conftest.err
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest.$ac_objext; then
11981 eval "$as_ac_Header=yes"
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 eval "$as_ac_Header=no"
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 ac_res=`eval echo '${'$as_ac_Header'}'`
11992 { echo "$as_me:$LINENO: result: $ac_res" >&5
11993 echo "${ECHO_T}$ac_res" >&6; }
11994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11995 cat >>confdefs.h <<_ACEOF
11996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12000 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
12001 echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
12002 { (exit 1); exit 1; }; }
12008 { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
12009 echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
12010 if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 ac_check_lib_save_LIBS=$LIBS
12015 cat >conftest.$ac_ext <<_ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12032 return getaudit ();
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_link") 2>conftest.er1
12046 grep -v '^ *+' conftest.er1 >conftest.err
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest$ac_exeext &&
12054 $as_test_x conftest$ac_exeext; then
12055 ac_cv_lib_bsm_getaudit=yes
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 ac_cv_lib_bsm_getaudit=no
12063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12064 conftest$ac_exeext conftest.$ac_ext
12065 LIBS=$ac_check_lib_save_LIBS
12067 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
12068 echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
12069 if test $ac_cv_lib_bsm_getaudit = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071 #define HAVE_LIBBSM 1
12077 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
12078 echo "$as_me: error: BSM enabled and required library not found" >&2;}
12079 { (exit 1); exit 1; }; }
12083 for ac_func in getaudit
12085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 cat >conftest.$ac_ext <<_ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12099 #define $ac_func innocuous_$ac_func
12101 /* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char $ac_func (); below.
12103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 <limits.h> exists even on freestanding compilers. */
12107 # include <limits.h>
12109 # include <assert.h>
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12121 /* The GNU C library defines this for functions which it implements
12122 to always fail with ENOSYS. Some functions are actually named
12123 something starting with __ and the normal name is an alias. */
12124 #if defined __stub_$ac_func || defined __stub___$ac_func
12131 return $ac_func ();
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1 >conftest.err
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
12154 eval "$as_ac_var=yes"
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 eval "$as_ac_var=no"
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163 conftest$ac_exeext conftest.$ac_ext
12165 ac_res=`eval echo '${'$as_ac_var'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12168 if test `eval echo '${'$as_ac_var'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12174 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
12175 echo "$as_me: error: BSM enabled and required function not found" >&2;}
12176 { (exit 1); exit 1; }; }
12180 # These are optional
12182 for ac_func in getaudit_addr
12184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12198 #define $ac_func innocuous_$ac_func
12200 /* System header to define __stub macros and hopefully few prototypes,
12201 which can conflict with char $ac_func (); below.
12202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12203 <limits.h> exists even on freestanding compilers. */
12206 # include <limits.h>
12208 # include <assert.h>
12213 /* Override any GCC internal prototype to avoid an error.
12214 Use char because int might match the return type of a GCC
12215 builtin and then its argument prototype would still apply. */
12220 /* The GNU C library defines this for functions which it implements
12221 to always fail with ENOSYS. Some functions are actually named
12222 something starting with __ and the normal name is an alias. */
12223 #if defined __stub_$ac_func || defined __stub___$ac_func
12230 return $ac_func ();
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (ac_try="$ac_link"
12237 case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_link") 2>conftest.er1
12244 grep -v '^ *+' conftest.er1 >conftest.err
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } && {
12249 test -z "$ac_c_werror_flag" ||
12250 test ! -s conftest.err
12251 } && test -s conftest$ac_exeext &&
12252 $as_test_x conftest$ac_exeext; then
12253 eval "$as_ac_var=yes"
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 eval "$as_ac_var=no"
12261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12262 conftest$ac_exeext conftest.$ac_ext
12264 ac_res=`eval echo '${'$as_ac_var'}'`
12265 { echo "$as_me:$LINENO: result: $ac_res" >&5
12266 echo "${ECHO_T}$ac_res" >&6; }
12267 if test `eval echo '${'$as_ac_var'}'` = yes; then
12268 cat >>confdefs.h <<_ACEOF
12269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12276 cat >>confdefs.h <<\_ACEOF
12277 #define USE_BSM_AUDIT 1
12283 { echo "$as_me:$LINENO: result: debug" >&5
12284 echo "${ECHO_T}debug" >&6; }
12286 cat >>confdefs.h <<\_ACEOF
12287 #define SSH_AUDIT_EVENTS 1
12292 { echo "$as_me:$LINENO: result: no" >&5
12293 echo "${ECHO_T}no" >&6; }
12296 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
12297 echo "$as_me: error: Unknown audit module $withval" >&2;}
12298 { (exit 1); exit 1; }; }
12476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 cat >conftest.$ac_ext <<_ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12490 #define $ac_func innocuous_$ac_func
12492 /* System header to define __stub macros and hopefully few prototypes,
12493 which can conflict with char $ac_func (); below.
12494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12495 <limits.h> exists even on freestanding compilers. */
12498 # include <limits.h>
12500 # include <assert.h>
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12512 /* The GNU C library defines this for functions which it implements
12513 to always fail with ENOSYS. Some functions are actually named
12514 something starting with __ and the normal name is an alias. */
12515 #if defined __stub_$ac_func || defined __stub___$ac_func
12522 return $ac_func ();
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_link") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && {
12541 test -z "$ac_c_werror_flag" ||
12542 test ! -s conftest.err
12543 } && test -s conftest$ac_exeext &&
12544 $as_test_x conftest$ac_exeext; then
12545 eval "$as_ac_var=yes"
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 eval "$as_ac_var=no"
12553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12554 conftest$ac_exeext conftest.$ac_ext
12556 ac_res=`eval echo '${'$as_ac_var'}'`
12557 { echo "$as_me:$LINENO: result: $ac_res" >&5
12558 echo "${ECHO_T}$ac_res" >&6; }
12559 if test `eval echo '${'$as_ac_var'}'` = yes; then
12560 cat >>confdefs.h <<_ACEOF
12561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12568 # IRIX has a const char return value for gai_strerror()
12570 for ac_func in gai_strerror
12572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 cat >conftest.$ac_ext <<_ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12586 #define $ac_func innocuous_$ac_func
12588 /* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char $ac_func (); below.
12590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 <limits.h> exists even on freestanding compilers. */
12594 # include <limits.h>
12596 # include <assert.h>
12601 /* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12608 /* The GNU C library defines this for functions which it implements
12609 to always fail with ENOSYS. Some functions are actually named
12610 something starting with __ and the normal name is an alias. */
12611 #if defined __stub_$ac_func || defined __stub___$ac_func
12618 return $ac_func ();
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (ac_try="$ac_link"
12625 case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_link") 2>conftest.er1
12632 grep -v '^ *+' conftest.er1 >conftest.err
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest$ac_exeext &&
12640 $as_test_x conftest$ac_exeext; then
12641 eval "$as_ac_var=yes"
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 eval "$as_ac_var=no"
12649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12650 conftest$ac_exeext conftest.$ac_ext
12652 ac_res=`eval echo '${'$as_ac_var'}'`
12653 { echo "$as_me:$LINENO: result: $ac_res" >&5
12654 echo "${ECHO_T}$ac_res" >&6; }
12655 if test `eval echo '${'$as_ac_var'}'` = yes; then
12656 cat >>confdefs.h <<_ACEOF
12657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12660 cat >>confdefs.h <<\_ACEOF
12661 #define HAVE_GAI_STRERROR 1
12664 cat >conftest.$ac_ext <<_ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12671 #include <sys/types.h>
12672 #include <sys/socket.h>
12675 const char *gai_strerror(int);
12682 str = gai_strerror(0);
12687 rm -f conftest.$ac_objext
12688 if { (ac_try="$ac_compile"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_compile") 2>conftest.er1
12696 grep -v '^ *+' conftest.er1 >conftest.err
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && {
12701 test -z "$ac_c_werror_flag" ||
12702 test ! -s conftest.err
12703 } && test -s conftest.$ac_objext; then
12706 cat >>confdefs.h <<\_ACEOF
12707 #define HAVE_CONST_GAI_STRERROR_PROTO 1
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12722 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
12723 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
12724 if test "${ac_cv_search_nanosleep+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 ac_func_search_save_LIBS=$LIBS
12728 cat >conftest.$ac_ext <<_ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h. */
12735 /* Override any GCC internal prototype to avoid an error.
12736 Use char because int might match the return type of a GCC
12737 builtin and then its argument prototype would still apply. */
12745 return nanosleep ();
12750 for ac_lib in '' rt posix4; do
12751 if test -z "$ac_lib"; then
12752 ac_res="none required"
12755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12757 rm -f conftest.$ac_objext conftest$ac_exeext
12758 if { (ac_try="$ac_link"
12759 case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764 (eval "$ac_link") 2>conftest.er1
12766 grep -v '^ *+' conftest.er1 >conftest.err
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } && {
12771 test -z "$ac_c_werror_flag" ||
12772 test ! -s conftest.err
12773 } && test -s conftest$ac_exeext &&
12774 $as_test_x conftest$ac_exeext; then
12775 ac_cv_search_nanosleep=$ac_res
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785 if test "${ac_cv_search_nanosleep+set}" = set; then
12789 if test "${ac_cv_search_nanosleep+set}" = set; then
12792 ac_cv_search_nanosleep=no
12794 rm conftest.$ac_ext
12795 LIBS=$ac_func_search_save_LIBS
12797 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
12798 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
12799 ac_res=$ac_cv_search_nanosleep
12800 if test "$ac_res" != no; then
12801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12803 cat >>confdefs.h <<\_ACEOF
12804 #define HAVE_NANOSLEEP 1
12810 { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
12811 echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
12812 if test "${ac_cv_have_decl_getrusage+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 cat >conftest.$ac_ext <<_ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12821 $ac_includes_default
12833 rm -f conftest.$ac_objext
12834 if { (ac_try="$ac_compile"
12835 case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_compile") 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && {
12847 test -z "$ac_c_werror_flag" ||
12848 test ! -s conftest.err
12849 } && test -s conftest.$ac_objext; then
12850 ac_cv_have_decl_getrusage=yes
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12855 ac_cv_have_decl_getrusage=no
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
12861 echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
12862 if test $ac_cv_have_decl_getrusage = yes; then
12864 for ac_func in getrusage
12866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12880 #define $ac_func innocuous_$ac_func
12882 /* System header to define __stub macros and hopefully few prototypes,
12883 which can conflict with char $ac_func (); below.
12884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12885 <limits.h> exists even on freestanding compilers. */
12888 # include <limits.h>
12890 # include <assert.h>
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12902 /* The GNU C library defines this for functions which it implements
12903 to always fail with ENOSYS. Some functions are actually named
12904 something starting with __ and the normal name is an alias. */
12905 #if defined __stub_$ac_func || defined __stub___$ac_func
12912 return $ac_func ();
12917 rm -f conftest.$ac_objext conftest$ac_exeext
12918 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12926 grep -v '^ *+' conftest.er1 >conftest.err
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } && {
12931 test -z "$ac_c_werror_flag" ||
12932 test ! -s conftest.err
12933 } && test -s conftest$ac_exeext &&
12934 $as_test_x conftest$ac_exeext; then
12935 eval "$as_ac_var=yes"
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 eval "$as_ac_var=no"
12943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12944 conftest$ac_exeext conftest.$ac_ext
12946 ac_res=`eval echo '${'$as_ac_var'}'`
12947 { echo "$as_me:$LINENO: result: $ac_res" >&5
12948 echo "${ECHO_T}$ac_res" >&6; }
12949 if test `eval echo '${'$as_ac_var'}'` = yes; then
12950 cat >>confdefs.h <<_ACEOF
12951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12959 { echo "$as_me:$LINENO: checking whether strsep is declared" >&5
12960 echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
12961 if test "${ac_cv_have_decl_strsep+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 cat >conftest.$ac_ext <<_ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12971 #ifdef HAVE_STRING_H
12972 # include <string.h>
12987 rm -f conftest.$ac_objext
12988 if { (ac_try="$ac_compile"
12989 case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994 (eval "$ac_compile") 2>conftest.er1
12996 grep -v '^ *+' conftest.er1 >conftest.err
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } && {
13001 test -z "$ac_c_werror_flag" ||
13002 test ! -s conftest.err
13003 } && test -s conftest.$ac_objext; then
13004 ac_cv_have_decl_strsep=yes
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ac_cv_have_decl_strsep=no
13012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
13015 echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
13016 if test $ac_cv_have_decl_strsep = yes; then
13018 for ac_func in strsep
13020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 cat >conftest.$ac_ext <<_ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13034 #define $ac_func innocuous_$ac_func
13036 /* System header to define __stub macros and hopefully few prototypes,
13037 which can conflict with char $ac_func (); below.
13038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13039 <limits.h> exists even on freestanding compilers. */
13042 # include <limits.h>
13044 # include <assert.h>
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13056 /* The GNU C library defines this for functions which it implements
13057 to always fail with ENOSYS. Some functions are actually named
13058 something starting with __ and the normal name is an alias. */
13059 #if defined __stub_$ac_func || defined __stub___$ac_func
13066 return $ac_func ();
13071 rm -f conftest.$ac_objext conftest$ac_exeext
13072 if { (ac_try="$ac_link"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_link") 2>conftest.er1
13080 grep -v '^ *+' conftest.er1 >conftest.err
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } && {
13085 test -z "$ac_c_werror_flag" ||
13086 test ! -s conftest.err
13087 } && test -s conftest$ac_exeext &&
13088 $as_test_x conftest$ac_exeext; then
13089 eval "$as_ac_var=yes"
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 eval "$as_ac_var=no"
13097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13098 conftest$ac_exeext conftest.$ac_ext
13100 ac_res=`eval echo '${'$as_ac_var'}'`
13101 { echo "$as_me:$LINENO: result: $ac_res" >&5
13102 echo "${ECHO_T}$ac_res" >&6; }
13103 if test `eval echo '${'$as_ac_var'}'` = yes; then
13104 cat >>confdefs.h <<_ACEOF
13105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13114 { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
13115 echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
13116 if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 cat >conftest.$ac_ext <<_ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 #include <termios.h>
13131 #ifndef tcsendbreak
13132 (void) tcsendbreak;
13139 rm -f conftest.$ac_objext
13140 if { (ac_try="$ac_compile"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compile") 2>conftest.er1
13148 grep -v '^ *+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && {
13153 test -z "$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13155 } && test -s conftest.$ac_objext; then
13156 ac_cv_have_decl_tcsendbreak=yes
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13161 ac_cv_have_decl_tcsendbreak=no
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
13167 echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
13168 if test $ac_cv_have_decl_tcsendbreak = yes; then
13169 cat >>confdefs.h <<\_ACEOF
13170 #define HAVE_TCSENDBREAK 1
13175 for ac_func in tcsendbreak
13177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 cat >conftest.$ac_ext <<_ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13191 #define $ac_func innocuous_$ac_func
13193 /* System header to define __stub macros and hopefully few prototypes,
13194 which can conflict with char $ac_func (); below.
13195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13196 <limits.h> exists even on freestanding compilers. */
13199 # include <limits.h>
13201 # include <assert.h>
13206 /* Override any GCC internal prototype to avoid an error.
13207 Use char because int might match the return type of a GCC
13208 builtin and then its argument prototype would still apply. */
13213 /* The GNU C library defines this for functions which it implements
13214 to always fail with ENOSYS. Some functions are actually named
13215 something starting with __ and the normal name is an alias. */
13216 #if defined __stub_$ac_func || defined __stub___$ac_func
13223 return $ac_func ();
13228 rm -f conftest.$ac_objext conftest$ac_exeext
13229 if { (ac_try="$ac_link"
13230 case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_link") 2>conftest.er1
13237 grep -v '^ *+' conftest.er1 >conftest.err
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest$ac_exeext &&
13245 $as_test_x conftest$ac_exeext; then
13246 eval "$as_ac_var=yes"
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 eval "$as_ac_var=no"
13254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255 conftest$ac_exeext conftest.$ac_ext
13257 ac_res=`eval echo '${'$as_ac_var'}'`
13258 { echo "$as_me:$LINENO: result: $ac_res" >&5
13259 echo "${ECHO_T}$ac_res" >&6; }
13260 if test `eval echo '${'$as_ac_var'}'` = yes; then
13261 cat >>confdefs.h <<_ACEOF
13262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13271 { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
13272 echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
13273 if test "${ac_cv_have_decl_h_errno+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 cat >conftest.$ac_ext <<_ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13295 rm -f conftest.$ac_objext
13296 if { (ac_try="$ac_compile"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_compile") 2>conftest.er1
13304 grep -v '^ *+' conftest.er1 >conftest.err
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } && {
13309 test -z "$ac_c_werror_flag" ||
13310 test ! -s conftest.err
13311 } && test -s conftest.$ac_objext; then
13312 ac_cv_have_decl_h_errno=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_cv_have_decl_h_errno=no
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
13323 echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
13324 if test $ac_cv_have_decl_h_errno = yes; then
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_DECL_H_ERRNO 1
13332 cat >>confdefs.h <<_ACEOF
13333 #define HAVE_DECL_H_ERRNO 0
13341 { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
13342 echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
13343 if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 cat >conftest.$ac_ext <<_ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13353 #include <sys/types.h>
13354 #include <sys/socket.h>
13368 rm -f conftest.$ac_objext
13369 if { (ac_try="$ac_compile"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_compile") 2>conftest.er1
13377 grep -v '^ *+' conftest.er1 >conftest.err
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } && {
13382 test -z "$ac_c_werror_flag" ||
13383 test ! -s conftest.err
13384 } && test -s conftest.$ac_objext; then
13385 ac_cv_have_decl_SHUT_RD=yes
13387 echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13390 ac_cv_have_decl_SHUT_RD=no
13393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
13396 echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
13397 if test $ac_cv_have_decl_SHUT_RD = yes; then
13399 cat >>confdefs.h <<_ACEOF
13400 #define HAVE_DECL_SHUT_RD 1
13405 cat >>confdefs.h <<_ACEOF
13406 #define HAVE_DECL_SHUT_RD 0
13414 { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
13415 echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
13416 if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 cat >conftest.$ac_ext <<_ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h. */
13426 #include <sys/types.h>
13427 #ifdef HAVE_SYS_STAT_H
13428 # include <sys/stat.h>
13430 #ifdef HAVE_FCNTL_H
13431 # include <fcntl.h>
13446 rm -f conftest.$ac_objext
13447 if { (ac_try="$ac_compile"
13448 case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_compile") 2>conftest.er1
13455 grep -v '^ *+' conftest.er1 >conftest.err
13457 cat conftest.err >&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } && {
13460 test -z "$ac_c_werror_flag" ||
13461 test ! -s conftest.err
13462 } && test -s conftest.$ac_objext; then
13463 ac_cv_have_decl_O_NONBLOCK=yes
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ac_cv_have_decl_O_NONBLOCK=no
13471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13473 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
13474 echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
13475 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
13477 cat >>confdefs.h <<_ACEOF
13478 #define HAVE_DECL_O_NONBLOCK 1
13483 cat >>confdefs.h <<_ACEOF
13484 #define HAVE_DECL_O_NONBLOCK 0
13492 { echo "$as_me:$LINENO: checking whether writev is declared" >&5
13493 echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
13494 if test "${ac_cv_have_decl_writev+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 cat >conftest.$ac_ext <<_ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13504 #include <sys/types.h>
13505 #include <sys/uio.h>
13506 #include <unistd.h>
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_compile") 2>conftest.er1
13529 grep -v '^ *+' conftest.er1 >conftest.err
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } && {
13534 test -z "$ac_c_werror_flag" ||
13535 test ! -s conftest.err
13536 } && test -s conftest.$ac_objext; then
13537 ac_cv_have_decl_writev=yes
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_cv_have_decl_writev=no
13545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
13548 echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
13549 if test $ac_cv_have_decl_writev = yes; then
13551 cat >>confdefs.h <<_ACEOF
13552 #define HAVE_DECL_WRITEV 1
13557 cat >>confdefs.h <<_ACEOF
13558 #define HAVE_DECL_WRITEV 0
13566 { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
13567 echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
13568 if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 cat >conftest.$ac_ext <<_ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13578 #include <sys/param.h>
13584 #ifndef MAXSYMLINKS
13585 (void) MAXSYMLINKS;
13592 rm -f conftest.$ac_objext
13593 if { (ac_try="$ac_compile"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_compile") 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } && {
13606 test -z "$ac_c_werror_flag" ||
13607 test ! -s conftest.err
13608 } && test -s conftest.$ac_objext; then
13609 ac_cv_have_decl_MAXSYMLINKS=yes
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13614 ac_cv_have_decl_MAXSYMLINKS=no
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13619 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
13620 echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
13621 if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
13623 cat >>confdefs.h <<_ACEOF
13624 #define HAVE_DECL_MAXSYMLINKS 1
13629 cat >>confdefs.h <<_ACEOF
13630 #define HAVE_DECL_MAXSYMLINKS 0
13638 { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
13639 echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
13640 if test "${ac_cv_have_decl_offsetof+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 cat >conftest.$ac_ext <<_ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13650 #include <stddef.h>
13664 rm -f conftest.$ac_objext
13665 if { (ac_try="$ac_compile"
13666 case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_compile") 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } && {
13678 test -z "$ac_c_werror_flag" ||
13679 test ! -s conftest.err
13680 } && test -s conftest.$ac_objext; then
13681 ac_cv_have_decl_offsetof=yes
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_cv_have_decl_offsetof=no
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
13692 echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
13693 if test $ac_cv_have_decl_offsetof = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696 #define HAVE_DECL_OFFSETOF 1
13701 cat >>confdefs.h <<_ACEOF
13702 #define HAVE_DECL_OFFSETOF 0
13711 for ac_func in setresuid
13713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13719 cat >conftest.$ac_ext <<_ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13727 #define $ac_func innocuous_$ac_func
13729 /* System header to define __stub macros and hopefully few prototypes,
13730 which can conflict with char $ac_func (); below.
13731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13732 <limits.h> exists even on freestanding compilers. */
13735 # include <limits.h>
13737 # include <assert.h>
13742 /* Override any GCC internal prototype to avoid an error.
13743 Use char because int might match the return type of a GCC
13744 builtin and then its argument prototype would still apply. */
13749 /* The GNU C library defines this for functions which it implements
13750 to always fail with ENOSYS. Some functions are actually named
13751 something starting with __ and the normal name is an alias. */
13752 #if defined __stub_$ac_func || defined __stub___$ac_func
13759 return $ac_func ();
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (ac_try="$ac_link"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_link") 2>conftest.er1
13773 grep -v '^ *+' conftest.er1 >conftest.err
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } && {
13778 test -z "$ac_c_werror_flag" ||
13779 test ! -s conftest.err
13780 } && test -s conftest$ac_exeext &&
13781 $as_test_x conftest$ac_exeext; then
13782 eval "$as_ac_var=yes"
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 eval "$as_ac_var=no"
13790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13791 conftest$ac_exeext conftest.$ac_ext
13793 ac_res=`eval echo '${'$as_ac_var'}'`
13794 { echo "$as_me:$LINENO: result: $ac_res" >&5
13795 echo "${ECHO_T}$ac_res" >&6; }
13796 if test `eval echo '${'$as_ac_var'}'` = yes; then
13797 cat >>confdefs.h <<_ACEOF
13798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13801 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
13802 echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
13803 if test "$cross_compiling" = yes; then
13804 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
13805 echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
13808 cat >conftest.$ac_ext <<_ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13815 #include <stdlib.h>
13817 int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
13820 rm -f conftest$ac_exeext
13821 if { (ac_try="$ac_link"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_link") 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13831 { (case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_try") 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 { echo "$as_me:$LINENO: result: yes" >&5
13841 echo "${ECHO_T}yes" >&6; }
13843 echo "$as_me: program exited with status $ac_status" >&5
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13847 ( exit $ac_status )
13849 cat >>confdefs.h <<\_ACEOF
13850 #define BROKEN_SETRESUID 1
13853 { echo "$as_me:$LINENO: result: not implemented" >&5
13854 echo "${ECHO_T}not implemented" >&6; }
13856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13866 for ac_func in setresgid
13868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 cat >conftest.$ac_ext <<_ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13882 #define $ac_func innocuous_$ac_func
13884 /* System header to define __stub macros and hopefully few prototypes,
13885 which can conflict with char $ac_func (); below.
13886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13887 <limits.h> exists even on freestanding compilers. */
13890 # include <limits.h>
13892 # include <assert.h>
13897 /* Override any GCC internal prototype to avoid an error.
13898 Use char because int might match the return type of a GCC
13899 builtin and then its argument prototype would still apply. */
13904 /* The GNU C library defines this for functions which it implements
13905 to always fail with ENOSYS. Some functions are actually named
13906 something starting with __ and the normal name is an alias. */
13907 #if defined __stub_$ac_func || defined __stub___$ac_func
13914 return $ac_func ();
13919 rm -f conftest.$ac_objext conftest$ac_exeext
13920 if { (ac_try="$ac_link"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_link") 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } && {
13933 test -z "$ac_c_werror_flag" ||
13934 test ! -s conftest.err
13935 } && test -s conftest$ac_exeext &&
13936 $as_test_x conftest$ac_exeext; then
13937 eval "$as_ac_var=yes"
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 eval "$as_ac_var=no"
13945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13946 conftest$ac_exeext conftest.$ac_ext
13948 ac_res=`eval echo '${'$as_ac_var'}'`
13949 { echo "$as_me:$LINENO: result: $ac_res" >&5
13950 echo "${ECHO_T}$ac_res" >&6; }
13951 if test `eval echo '${'$as_ac_var'}'` = yes; then
13952 cat >>confdefs.h <<_ACEOF
13953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13956 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
13957 echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
13958 if test "$cross_compiling" = yes; then
13959 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
13960 echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
13963 cat >conftest.$ac_ext <<_ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13970 #include <stdlib.h>
13972 int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
13975 rm -f conftest$ac_exeext
13976 if { (ac_try="$ac_link"
13977 case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_link") 2>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 { echo "$as_me:$LINENO: result: yes" >&5
13996 echo "${ECHO_T}yes" >&6; }
13998 echo "$as_me: program exited with status $ac_status" >&5
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14002 ( exit $ac_status )
14004 cat >>confdefs.h <<\_ACEOF
14005 #define BROKEN_SETRESGID 1
14008 { echo "$as_me:$LINENO: result: not implemented" >&5
14009 echo "${ECHO_T}not implemented" >&6; }
14011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14022 for ac_func in gettimeofday time
14024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 cat >conftest.$ac_ext <<_ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14038 #define $ac_func innocuous_$ac_func
14040 /* System header to define __stub macros and hopefully few prototypes,
14041 which can conflict with char $ac_func (); below.
14042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14043 <limits.h> exists even on freestanding compilers. */
14046 # include <limits.h>
14048 # include <assert.h>
14053 /* Override any GCC internal prototype to avoid an error.
14054 Use char because int might match the return type of a GCC
14055 builtin and then its argument prototype would still apply. */
14060 /* The GNU C library defines this for functions which it implements
14061 to always fail with ENOSYS. Some functions are actually named
14062 something starting with __ and the normal name is an alias. */
14063 #if defined __stub_$ac_func || defined __stub___$ac_func
14070 return $ac_func ();
14075 rm -f conftest.$ac_objext conftest$ac_exeext
14076 if { (ac_try="$ac_link"
14077 case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_link") 2>conftest.er1
14084 grep -v '^ *+' conftest.er1 >conftest.err
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } && {
14089 test -z "$ac_c_werror_flag" ||
14090 test ! -s conftest.err
14091 } && test -s conftest$ac_exeext &&
14092 $as_test_x conftest$ac_exeext; then
14093 eval "$as_ac_var=yes"
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 eval "$as_ac_var=no"
14101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14102 conftest$ac_exeext conftest.$ac_ext
14104 ac_res=`eval echo '${'$as_ac_var'}'`
14105 { echo "$as_me:$LINENO: result: $ac_res" >&5
14106 echo "${ECHO_T}$ac_res" >&6; }
14107 if test `eval echo '${'$as_ac_var'}'` = yes; then
14108 cat >>confdefs.h <<_ACEOF
14109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14121 for ac_func in endutent getutent getutid getutline pututline setutent
14123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 cat >conftest.$ac_ext <<_ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14137 #define $ac_func innocuous_$ac_func
14139 /* System header to define __stub macros and hopefully few prototypes,
14140 which can conflict with char $ac_func (); below.
14141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14142 <limits.h> exists even on freestanding compilers. */
14145 # include <limits.h>
14147 # include <assert.h>
14152 /* Override any GCC internal prototype to avoid an error.
14153 Use char because int might match the return type of a GCC
14154 builtin and then its argument prototype would still apply. */
14159 /* The GNU C library defines this for functions which it implements
14160 to always fail with ENOSYS. Some functions are actually named
14161 something starting with __ and the normal name is an alias. */
14162 #if defined __stub_$ac_func || defined __stub___$ac_func
14169 return $ac_func ();
14174 rm -f conftest.$ac_objext conftest$ac_exeext
14175 if { (ac_try="$ac_link"
14176 case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_link") 2>conftest.er1
14183 grep -v '^ *+' conftest.er1 >conftest.err
14185 cat conftest.err >&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); } && {
14188 test -z "$ac_c_werror_flag" ||
14189 test ! -s conftest.err
14190 } && test -s conftest$ac_exeext &&
14191 $as_test_x conftest$ac_exeext; then
14192 eval "$as_ac_var=yes"
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14197 eval "$as_ac_var=no"
14200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14201 conftest$ac_exeext conftest.$ac_ext
14203 ac_res=`eval echo '${'$as_ac_var'}'`
14204 { echo "$as_me:$LINENO: result: $ac_res" >&5
14205 echo "${ECHO_T}$ac_res" >&6; }
14206 if test `eval echo '${'$as_ac_var'}'` = yes; then
14207 cat >>confdefs.h <<_ACEOF
14208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14215 for ac_func in utmpname
14217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14231 #define $ac_func innocuous_$ac_func
14233 /* System header to define __stub macros and hopefully few prototypes,
14234 which can conflict with char $ac_func (); below.
14235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14236 <limits.h> exists even on freestanding compilers. */
14239 # include <limits.h>
14241 # include <assert.h>
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14253 /* The GNU C library defines this for functions which it implements
14254 to always fail with ENOSYS. Some functions are actually named
14255 something starting with __ and the normal name is an alias. */
14256 #if defined __stub_$ac_func || defined __stub___$ac_func
14263 return $ac_func ();
14268 rm -f conftest.$ac_objext conftest$ac_exeext
14269 if { (ac_try="$ac_link"
14270 case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_link") 2>conftest.er1
14277 grep -v '^ *+' conftest.er1 >conftest.err
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } && {
14282 test -z "$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14284 } && test -s conftest$ac_exeext &&
14285 $as_test_x conftest$ac_exeext; then
14286 eval "$as_ac_var=yes"
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14291 eval "$as_ac_var=no"
14294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14295 conftest$ac_exeext conftest.$ac_ext
14297 ac_res=`eval echo '${'$as_ac_var'}'`
14298 { echo "$as_me:$LINENO: result: $ac_res" >&5
14299 echo "${ECHO_T}$ac_res" >&6; }
14300 if test `eval echo '${'$as_ac_var'}'` = yes; then
14301 cat >>confdefs.h <<_ACEOF
14302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14313 for ac_func in endutxent getutxent getutxid getutxline pututxline
14315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 cat >conftest.$ac_ext <<_ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14329 #define $ac_func innocuous_$ac_func
14331 /* System header to define __stub macros and hopefully few prototypes,
14332 which can conflict with char $ac_func (); below.
14333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14334 <limits.h> exists even on freestanding compilers. */
14337 # include <limits.h>
14339 # include <assert.h>
14344 /* Override any GCC internal prototype to avoid an error.
14345 Use char because int might match the return type of a GCC
14346 builtin and then its argument prototype would still apply. */
14351 /* The GNU C library defines this for functions which it implements
14352 to always fail with ENOSYS. Some functions are actually named
14353 something starting with __ and the normal name is an alias. */
14354 #if defined __stub_$ac_func || defined __stub___$ac_func
14361 return $ac_func ();
14366 rm -f conftest.$ac_objext conftest$ac_exeext
14367 if { (ac_try="$ac_link"
14368 case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_link") 2>conftest.er1
14375 grep -v '^ *+' conftest.er1 >conftest.err
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest$ac_exeext &&
14383 $as_test_x conftest$ac_exeext; then
14384 eval "$as_ac_var=yes"
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14389 eval "$as_ac_var=no"
14392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14393 conftest$ac_exeext conftest.$ac_ext
14395 ac_res=`eval echo '${'$as_ac_var'}'`
14396 { echo "$as_me:$LINENO: result: $ac_res" >&5
14397 echo "${ECHO_T}$ac_res" >&6; }
14398 if test `eval echo '${'$as_ac_var'}'` = yes; then
14399 cat >>confdefs.h <<_ACEOF
14400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14408 for ac_func in setutxent utmpxname
14410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14414 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 cat >conftest.$ac_ext <<_ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14424 #define $ac_func innocuous_$ac_func
14426 /* System header to define __stub macros and hopefully few prototypes,
14427 which can conflict with char $ac_func (); below.
14428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14429 <limits.h> exists even on freestanding compilers. */
14432 # include <limits.h>
14434 # include <assert.h>
14439 /* Override any GCC internal prototype to avoid an error.
14440 Use char because int might match the return type of a GCC
14441 builtin and then its argument prototype would still apply. */
14446 /* The GNU C library defines this for functions which it implements
14447 to always fail with ENOSYS. Some functions are actually named
14448 something starting with __ and the normal name is an alias. */
14449 #if defined __stub_$ac_func || defined __stub___$ac_func
14456 return $ac_func ();
14461 rm -f conftest.$ac_objext conftest$ac_exeext
14462 if { (ac_try="$ac_link"
14463 case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_link") 2>conftest.er1
14470 grep -v '^ *+' conftest.er1 >conftest.err
14472 cat conftest.err >&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } && {
14475 test -z "$ac_c_werror_flag" ||
14476 test ! -s conftest.err
14477 } && test -s conftest$ac_exeext &&
14478 $as_test_x conftest$ac_exeext; then
14479 eval "$as_ac_var=yes"
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 eval "$as_ac_var=no"
14487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14488 conftest$ac_exeext conftest.$ac_ext
14490 ac_res=`eval echo '${'$as_ac_var'}'`
14491 { echo "$as_me:$LINENO: result: $ac_res" >&5
14492 echo "${ECHO_T}$ac_res" >&6; }
14493 if test `eval echo '${'$as_ac_var'}'` = yes; then
14494 cat >>confdefs.h <<_ACEOF
14495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14502 { echo "$as_me:$LINENO: checking for daemon" >&5
14503 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
14504 if test "${ac_cv_func_daemon+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14507 cat >conftest.$ac_ext <<_ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14513 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
14514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14515 #define daemon innocuous_daemon
14517 /* System header to define __stub macros and hopefully few prototypes,
14518 which can conflict with char daemon (); below.
14519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14520 <limits.h> exists even on freestanding compilers. */
14523 # include <limits.h>
14525 # include <assert.h>
14530 /* Override any GCC internal prototype to avoid an error.
14531 Use char because int might match the return type of a GCC
14532 builtin and then its argument prototype would still apply. */
14537 /* The GNU C library defines this for functions which it implements
14538 to always fail with ENOSYS. Some functions are actually named
14539 something starting with __ and the normal name is an alias. */
14540 #if defined __stub_daemon || defined __stub___daemon
14552 rm -f conftest.$ac_objext conftest$ac_exeext
14553 if { (ac_try="$ac_link"
14554 case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_link") 2>conftest.er1
14561 grep -v '^ *+' conftest.er1 >conftest.err
14563 cat conftest.err >&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } && {
14566 test -z "$ac_c_werror_flag" ||
14567 test ! -s conftest.err
14568 } && test -s conftest$ac_exeext &&
14569 $as_test_x conftest$ac_exeext; then
14570 ac_cv_func_daemon=yes
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_cv_func_daemon=no
14578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14579 conftest$ac_exeext conftest.$ac_ext
14581 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
14582 echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
14583 if test $ac_cv_func_daemon = yes; then
14585 cat >>confdefs.h <<\_ACEOF
14586 #define HAVE_DAEMON 1
14590 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
14591 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
14592 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 ac_check_lib_save_LIBS=$LIBS
14597 cat >conftest.$ac_ext <<_ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14604 /* Override any GCC internal prototype to avoid an error.
14605 Use char because int might match the return type of a GCC
14606 builtin and then its argument prototype would still apply. */
14619 rm -f conftest.$ac_objext conftest$ac_exeext
14620 if { (ac_try="$ac_link"
14621 case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_link") 2>conftest.er1
14628 grep -v '^ *+' conftest.er1 >conftest.err
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest$ac_exeext &&
14636 $as_test_x conftest$ac_exeext; then
14637 ac_cv_lib_bsd_daemon=yes
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 ac_cv_lib_bsd_daemon=no
14645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14646 conftest$ac_exeext conftest.$ac_ext
14647 LIBS=$ac_check_lib_save_LIBS
14649 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
14650 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
14651 if test $ac_cv_lib_bsd_daemon = yes; then
14652 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
14653 #define HAVE_DAEMON 1
14662 { echo "$as_me:$LINENO: checking for getpagesize" >&5
14663 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
14664 if test "${ac_cv_func_getpagesize+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14667 cat >conftest.$ac_ext <<_ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
14674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14675 #define getpagesize innocuous_getpagesize
14677 /* System header to define __stub macros and hopefully few prototypes,
14678 which can conflict with char getpagesize (); below.
14679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14680 <limits.h> exists even on freestanding compilers. */
14683 # include <limits.h>
14685 # include <assert.h>
14690 /* Override any GCC internal prototype to avoid an error.
14691 Use char because int might match the return type of a GCC
14692 builtin and then its argument prototype would still apply. */
14696 char getpagesize ();
14697 /* The GNU C library defines this for functions which it implements
14698 to always fail with ENOSYS. Some functions are actually named
14699 something starting with __ and the normal name is an alias. */
14700 #if defined __stub_getpagesize || defined __stub___getpagesize
14707 return getpagesize ();
14712 rm -f conftest.$ac_objext conftest$ac_exeext
14713 if { (ac_try="$ac_link"
14714 case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_link") 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } && {
14726 test -z "$ac_c_werror_flag" ||
14727 test ! -s conftest.err
14728 } && test -s conftest$ac_exeext &&
14729 $as_test_x conftest$ac_exeext; then
14730 ac_cv_func_getpagesize=yes
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 ac_cv_func_getpagesize=no
14738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14739 conftest$ac_exeext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
14742 echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
14743 if test $ac_cv_func_getpagesize = yes; then
14745 cat >>confdefs.h <<\_ACEOF
14746 #define HAVE_GETPAGESIZE 1
14750 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
14751 echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
14752 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 ac_check_lib_save_LIBS=$LIBS
14757 cat >conftest.$ac_ext <<_ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14764 /* Override any GCC internal prototype to avoid an error.
14765 Use char because int might match the return type of a GCC
14766 builtin and then its argument prototype would still apply. */
14770 char getpagesize ();
14774 return getpagesize ();
14779 rm -f conftest.$ac_objext conftest$ac_exeext
14780 if { (ac_try="$ac_link"
14781 case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_link") 2>conftest.er1
14788 grep -v '^ *+' conftest.er1 >conftest.err
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } && {
14793 test -z "$ac_c_werror_flag" ||
14794 test ! -s conftest.err
14795 } && test -s conftest$ac_exeext &&
14796 $as_test_x conftest$ac_exeext; then
14797 ac_cv_lib_ucb_getpagesize=yes
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 ac_cv_lib_ucb_getpagesize=no
14805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14806 conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14809 { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
14810 echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
14811 if test $ac_cv_lib_ucb_getpagesize = yes; then
14812 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
14813 #define HAVE_GETPAGESIZE 1
14822 # Check for broken snprintf
14823 if test "x$ac_cv_func_snprintf" = "xyes" ; then
14824 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
14825 echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
14826 if test "$cross_compiling" = yes; then
14827 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
14828 echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
14831 cat >conftest.$ac_ext <<_ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14839 int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
14842 rm -f conftest$ac_exeext
14843 if { (ac_try="$ac_link"
14844 case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_link") 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14853 { (case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_try") 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 { echo "$as_me:$LINENO: result: yes" >&5
14863 echo "${ECHO_T}yes" >&6; }
14865 echo "$as_me: program exited with status $ac_status" >&5
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 ( exit $ac_status )
14871 { echo "$as_me:$LINENO: result: no" >&5
14872 echo "${ECHO_T}no" >&6; }
14874 cat >>confdefs.h <<\_ACEOF
14875 #define BROKEN_SNPRINTF 1
14878 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
14879 echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
14882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14888 # If we don't have a working asprintf, then we strongly depend on vsnprintf
14889 # returning the right thing on overflow: the number of characters it tried to
14890 # create (as per SUSv3)
14891 if test "x$ac_cv_func_asprintf" != "xyes" && \
14892 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
14893 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
14894 echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
14895 if test "$cross_compiling" = yes; then
14896 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
14897 echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
14900 cat >conftest.$ac_ext <<_ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14907 #include <sys/types.h>
14909 #include <stdarg.h>
14911 int x_snprintf(char *str,size_t count,const char *fmt,...)
14913 size_t ret; va_list ap;
14914 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
14920 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
14923 rm -f conftest$ac_exeext
14924 if { (ac_try="$ac_link"
14925 case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_link") 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14934 { (case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_try") 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 { echo "$as_me:$LINENO: result: yes" >&5
14944 echo "${ECHO_T}yes" >&6; }
14946 echo "$as_me: program exited with status $ac_status" >&5
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ( exit $ac_status )
14952 { echo "$as_me:$LINENO: result: no" >&5
14953 echo "${ECHO_T}no" >&6; }
14955 cat >>confdefs.h <<\_ACEOF
14956 #define BROKEN_SNPRINTF 1
14959 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
14960 echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
14963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14969 # On systems where [v]snprintf is broken, but is declared in stdio,
14970 # check that the fmt argument is const char * or just char *.
14971 # This is only useful for when BROKEN_SNPRINTF
14972 { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
14973 echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
14974 cat >conftest.$ac_ext <<_ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14981 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
14982 int main(void) { snprintf(0, 0, 0); }
14985 rm -f conftest.$ac_objext
14986 if { (ac_try="$ac_compile"
14987 case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_compile") 2>conftest.er1
14994 grep -v '^ *+' conftest.er1 >conftest.err
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } && {
14999 test -z "$ac_c_werror_flag" ||
15000 test ! -s conftest.err
15001 } && test -s conftest.$ac_objext; then
15002 { echo "$as_me:$LINENO: result: yes" >&5
15003 echo "${ECHO_T}yes" >&6; }
15005 cat >>confdefs.h <<\_ACEOF
15006 #define SNPRINTF_CONST const
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 { echo "$as_me:$LINENO: result: no" >&5
15014 echo "${ECHO_T}no" >&6; }
15015 cat >>confdefs.h <<\_ACEOF
15016 #define SNPRINTF_CONST /* not const */
15021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15023 # Check for missing getpeereid (or equiv) support
15025 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
15026 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
15027 echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 #include <sys/types.h>
15035 #include <sys/socket.h>
15039 int i = SO_PEERCRED;
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 test -z "$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 } && test -s conftest.$ac_objext; then
15061 { echo "$as_me:$LINENO: result: yes" >&5
15062 echo "${ECHO_T}yes" >&6; }
15064 cat >>confdefs.h <<\_ACEOF
15065 #define HAVE_SO_PEERCRED 1
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 { echo "$as_me:$LINENO: result: no" >&5
15074 echo "${ECHO_T}no" >&6; }
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
15083 { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
15084 echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
15085 if test "$cross_compiling" = yes; then
15087 { echo "$as_me:$LINENO: result: yes" >&5
15088 echo "${ECHO_T}yes" >&6; }
15089 cat >>confdefs.h <<\_ACEOF
15090 #define HAVE_STRICT_MKSTEMP 1
15096 cat >conftest.$ac_ext <<_ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15103 #include <stdlib.h>
15104 main() { char template[]="conftest.mkstemp-test";
15105 if (mkstemp(template) == -1)
15107 unlink(template); exit(0);
15111 rm -f conftest$ac_exeext
15112 if { (ac_try="$ac_link"
15113 case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_link") 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15122 { (case "(($ac_try" in
15123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15124 *) ac_try_echo=$ac_try;;
15126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15127 (eval "$ac_try") 2>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15132 { echo "$as_me:$LINENO: result: no" >&5
15133 echo "${ECHO_T}no" >&6; }
15136 echo "$as_me: program exited with status $ac_status" >&5
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ( exit $ac_status )
15142 { echo "$as_me:$LINENO: result: yes" >&5
15143 echo "${ECHO_T}yes" >&6; }
15145 cat >>confdefs.h <<\_ACEOF
15146 #define HAVE_STRICT_MKSTEMP 1
15151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15157 if test ! -z "$check_for_openpty_ctty_bug"; then
15158 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
15159 echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
15160 if test "$cross_compiling" = yes; then
15162 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15163 echo "${ECHO_T}cross-compiling" >&6; }
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15175 #include <sys/fcntl.h>
15176 #include <sys/types.h>
15177 #include <sys/wait.h>
15183 int fd, ptyfd, ttyfd, status;
15186 if (pid < 0) { /* failed */
15188 } else if (pid > 0) { /* parent */
15189 waitpid(pid, &status, 0);
15190 if (WIFEXITED(status))
15191 exit(WEXITSTATUS(status));
15194 } else { /* child */
15195 close(0); close(1); close(2);
15197 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
15198 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
15200 exit(3); /* Acquired ctty: broken */
15202 exit(0); /* Did not acquire ctty: OK */
15207 rm -f conftest$ac_exeext
15208 if { (ac_try="$ac_link"
15209 case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214 (eval "$ac_link") 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15218 { (case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15228 { echo "$as_me:$LINENO: result: yes" >&5
15229 echo "${ECHO_T}yes" >&6; }
15232 echo "$as_me: program exited with status $ac_status" >&5
15233 echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15236 ( exit $ac_status )
15238 { echo "$as_me:$LINENO: result: no" >&5
15239 echo "${ECHO_T}no" >&6; }
15240 cat >>confdefs.h <<\_ACEOF
15241 #define SSHD_ACQUIRES_CTTY 1
15246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15252 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15253 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
15254 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15255 echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15256 if test "$cross_compiling" = yes; then
15258 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15259 echo "${ECHO_T}cross-compiling" >&6; }
15263 cat >conftest.$ac_ext <<_ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15271 #include <sys/socket.h>
15274 #include <netinet/in.h>
15276 #define TEST_PORT "2222"
15282 struct addrinfo *gai_ai, *ai, hints;
15283 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15285 memset(&hints, 0, sizeof(hints));
15286 hints.ai_family = PF_UNSPEC;
15287 hints.ai_socktype = SOCK_STREAM;
15288 hints.ai_flags = AI_PASSIVE;
15290 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15292 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15296 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15297 if (ai->ai_family != AF_INET6)
15300 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15301 sizeof(ntop), strport, sizeof(strport),
15302 NI_NUMERICHOST|NI_NUMERICSERV);
15305 if (err == EAI_SYSTEM)
15306 perror("getnameinfo EAI_SYSTEM");
15308 fprintf(stderr, "getnameinfo failed: %s\n",
15309 gai_strerror(err));
15313 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
15316 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
15317 if (errno == EBADF)
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
15346 { echo "$as_me:$LINENO: result: yes" >&5
15347 echo "${ECHO_T}yes" >&6; }
15350 echo "$as_me: program exited with status $ac_status" >&5
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 ( exit $ac_status )
15356 { echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6; }
15358 cat >>confdefs.h <<\_ACEOF
15359 #define BROKEN_GETADDRINFO 1
15364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15370 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15371 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
15372 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
15373 echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
15374 if test "$cross_compiling" = yes; then
15376 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15377 echo "${ECHO_T}cross-compiling" >&6; }
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15389 #include <sys/socket.h>
15392 #include <netinet/in.h>
15394 #define TEST_PORT "2222"
15400 struct addrinfo *gai_ai, *ai, hints;
15401 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
15403 memset(&hints, 0, sizeof(hints));
15404 hints.ai_family = PF_UNSPEC;
15405 hints.ai_socktype = SOCK_STREAM;
15406 hints.ai_flags = AI_PASSIVE;
15408 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
15410 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
15414 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
15415 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
15418 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
15419 sizeof(ntop), strport, sizeof(strport),
15420 NI_NUMERICHOST|NI_NUMERICSERV);
15422 if (ai->ai_family == AF_INET && err != 0) {
15423 perror("getnameinfo");
15431 rm -f conftest$ac_exeext
15432 if { (ac_try="$ac_link"
15433 case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_link") 2>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15442 { (case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_try") 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15452 { echo "$as_me:$LINENO: result: yes" >&5
15453 echo "${ECHO_T}yes" >&6; }
15455 cat >>confdefs.h <<\_ACEOF
15456 #define AIX_GETNAMEINFO_HACK 1
15461 echo "$as_me: program exited with status $ac_status" >&5
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 ( exit $ac_status )
15467 { echo "$as_me:$LINENO: result: no" >&5
15468 echo "${ECHO_T}no" >&6; }
15469 cat >>confdefs.h <<\_ACEOF
15470 #define BROKEN_GETADDRINFO 1
15475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15481 if test "x$check_for_conflicting_getspnam" = "x1"; then
15482 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
15483 echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
15484 cat >conftest.$ac_ext <<_ACEOF
15486 #include <shadow.h>
15487 int main(void) {exit(0);}
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_compile") 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } && {
15504 test -z "$ac_c_werror_flag" ||
15505 test ! -s conftest.err
15506 } && test -s conftest.$ac_objext; then
15508 { echo "$as_me:$LINENO: result: no" >&5
15509 echo "${ECHO_T}no" >&6; }
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15516 { echo "$as_me:$LINENO: result: yes" >&5
15517 echo "${ECHO_T}yes" >&6; }
15519 cat >>confdefs.h <<\_ACEOF
15520 #define GETSPNAM_CONFLICTING_DEFS 1
15527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15531 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
15532 if test "${ac_cv_func_getpgrp_void+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 # Use it with a single arg.
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 $ac_includes_default
15551 rm -f conftest.$ac_objext
15552 if { (ac_try="$ac_compile"
15553 case "(($ac_try" in
15554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555 *) ac_try_echo=$ac_try;;
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558 (eval "$ac_compile") 2>conftest.er1
15560 grep -v '^ *+' conftest.er1 >conftest.err
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } && {
15565 test -z "$ac_c_werror_flag" ||
15566 test ! -s conftest.err
15567 } && test -s conftest.$ac_objext; then
15568 ac_cv_func_getpgrp_void=no
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_cv_func_getpgrp_void=yes
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15579 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15580 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
15581 if test $ac_cv_func_getpgrp_void = yes; then
15583 cat >>confdefs.h <<\_ACEOF
15584 #define GETPGRP_VOID 1
15590 # Search for OpenSSL
15591 saved_CPPFLAGS="$CPPFLAGS"
15592 saved_LDFLAGS="$LDFLAGS"
15594 # Check whether --with-ssl-dir was given.
15595 if test "${with_ssl_dir+set}" = set; then
15596 withval=$with_ssl_dir;
15597 if test "x$withval" != "xno" ; then
15600 ./*|../*) withval="`pwd`/$withval"
15602 if test -d "$withval/lib"; then
15603 if test -n "${need_dash_r}"; then
15604 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15606 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15609 if test -n "${need_dash_r}"; then
15610 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
15612 LDFLAGS="-L${withval} ${LDFLAGS}"
15615 if test -d "$withval/include"; then
15616 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
15618 CPPFLAGS="-I${withval} ${CPPFLAGS}"
15625 LIBS="-lcrypto $LIBS"
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15633 /* Override any GCC internal prototype to avoid an error.
15634 Use char because int might match the return type of a GCC
15635 builtin and then its argument prototype would still apply. */
15643 return RAND_add ();
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (ac_try="$ac_link"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_link") 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } && {
15662 test -z "$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15664 } && test -s conftest$ac_exeext &&
15665 $as_test_x conftest$ac_exeext; then
15667 cat >>confdefs.h <<\_ACEOF
15668 #define HAVE_OPENSSL 1
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15676 if test -n "${need_dash_r}"; then
15677 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
15679 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
15681 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
15682 cat >conftest.$ac_ext <<_ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.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. */
15699 return RAND_add ();
15704 rm -f conftest.$ac_objext conftest$ac_exeext
15705 if { (ac_try="$ac_link"
15706 case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_link") 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } && {
15718 test -z "$ac_c_werror_flag" ||
15719 test ! -s conftest.err
15720 } && test -s conftest$ac_exeext &&
15721 $as_test_x conftest$ac_exeext; then
15722 cat >>confdefs.h <<\_ACEOF
15723 #define HAVE_OPENSSL 1
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15731 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
15732 echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
15733 { (exit 1); exit 1; }; }
15738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15739 conftest$ac_exeext conftest.$ac_ext
15744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15745 conftest$ac_exeext conftest.$ac_ext
15747 # Determine OpenSSL header version
15748 { echo "$as_me:$LINENO: checking OpenSSL header version" >&5
15749 echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
15750 if test "$cross_compiling" = yes; then
15752 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
15753 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15765 #include <string.h>
15766 #include <openssl/opensslv.h>
15767 #define DATA "conftest.sslincver"
15772 fd = fopen(DATA,"w");
15776 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
15783 rm -f conftest$ac_exeext
15784 if { (ac_try="$ac_link"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_link") 2>&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15794 { (case "(($ac_try" in
15795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796 *) ac_try_echo=$ac_try;;
15798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15799 (eval "$ac_try") 2>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }; then
15804 ssl_header_ver=`cat conftest.sslincver`
15805 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
15806 echo "${ECHO_T}$ssl_header_ver" >&6; }
15809 echo "$as_me: program exited with status $ac_status" >&5
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ( exit $ac_status )
15815 { echo "$as_me:$LINENO: result: not found" >&5
15816 echo "${ECHO_T}not found" >&6; }
15817 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
15818 echo "$as_me: error: OpenSSL version header not found." >&2;}
15819 { (exit 1); exit 1; }; }
15822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15827 # Determine OpenSSL library version
15828 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
15829 echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
15830 if test "$cross_compiling" = yes; then
15832 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
15833 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
15837 cat >conftest.$ac_ext <<_ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15845 #include <string.h>
15846 #include <openssl/opensslv.h>
15847 #include <openssl/crypto.h>
15848 #define DATA "conftest.ssllibver"
15853 fd = fopen(DATA,"w");
15857 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
15864 rm -f conftest$ac_exeext
15865 if { (ac_try="$ac_link"
15866 case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_link") 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15875 { (case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_try") 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15885 ssl_library_ver=`cat conftest.ssllibver`
15886 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
15887 echo "${ECHO_T}$ssl_library_ver" >&6; }
15890 echo "$as_me: program exited with status $ac_status" >&5
15891 echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15894 ( exit $ac_status )
15896 { echo "$as_me:$LINENO: result: not found" >&5
15897 echo "${ECHO_T}not found" >&6; }
15898 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
15899 echo "$as_me: error: OpenSSL library not found." >&2;}
15900 { (exit 1); exit 1; }; }
15903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15909 # Check whether --with-openssl-header-check was given.
15910 if test "${with_openssl_header_check+set}" = set; then
15911 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
15912 openssl_check_nonfatal=1
15919 # Sanity check OpenSSL headers
15920 { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
15921 echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
15922 if test "$cross_compiling" = yes; then
15924 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
15925 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
15929 cat >conftest.$ac_ext <<_ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15936 #include <string.h>
15937 #include <openssl/opensslv.h>
15938 int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
15941 rm -f conftest$ac_exeext
15942 if { (ac_try="$ac_link"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_link") 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15952 { (case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_try") 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15962 { echo "$as_me:$LINENO: result: yes" >&5
15963 echo "${ECHO_T}yes" >&6; }
15966 echo "$as_me: program exited with status $ac_status" >&5
15967 echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ( exit $ac_status )
15972 { echo "$as_me:$LINENO: result: no" >&5
15973 echo "${ECHO_T}no" >&6; }
15974 if test "x$openssl_check_nonfatal" = "x"; then
15975 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
15976 library. Check config.log for details.
15977 If you are sure your installation is consistent, you can disable the check
15978 by running \"./configure --without-openssl-header-check\".
15979 Also see contrib/findssl.sh for help identifying header/library mismatches.
15981 echo "$as_me: error: Your OpenSSL headers do not match your
15982 library. Check config.log for details.
15983 If you are sure your installation is consistent, you can disable the check
15984 by running \"./configure --without-openssl-header-check\".
15985 Also see contrib/findssl.sh for help identifying header/library mismatches.
15987 { (exit 1); exit 1; }; }
15989 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
15990 library. Check config.log for details.
15991 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
15992 echo "$as_me: WARNING: Your OpenSSL headers do not match your
15993 library. Check config.log for details.
15994 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
15998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16003 { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
16004 echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
16005 cat >conftest.$ac_ext <<_ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16012 #include <openssl/evp.h>
16013 int main(void) { SSLeay_add_all_algorithms(); }
16016 rm -f conftest.$ac_objext conftest$ac_exeext
16017 if { (ac_try="$ac_link"
16018 case "(($ac_try" in
16019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020 *) ac_try_echo=$ac_try;;
16022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_link") 2>conftest.er1
16025 grep -v '^ *+' conftest.er1 >conftest.err
16027 cat conftest.err >&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } && {
16030 test -z "$ac_c_werror_flag" ||
16031 test ! -s conftest.err
16032 } && test -s conftest$ac_exeext &&
16033 $as_test_x conftest$ac_exeext; then
16035 { echo "$as_me:$LINENO: result: yes" >&5
16036 echo "${ECHO_T}yes" >&6; }
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16043 { echo "$as_me:$LINENO: result: no" >&5
16044 echo "${ECHO_T}no" >&6; }
16047 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
16048 echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
16049 cat >conftest.$ac_ext <<_ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16056 #include <openssl/evp.h>
16057 int main(void) { SSLeay_add_all_algorithms(); }
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_link") 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } && {
16074 test -z "$ac_c_werror_flag" ||
16075 test ! -s conftest.err
16076 } && test -s conftest$ac_exeext &&
16077 $as_test_x conftest$ac_exeext; then
16079 { echo "$as_me:$LINENO: result: yes" >&5
16080 echo "${ECHO_T}yes" >&6; }
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16087 { echo "$as_me:$LINENO: result: no" >&5
16088 echo "${ECHO_T}no" >&6; }
16094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16095 conftest$ac_exeext conftest.$ac_ext
16100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16101 conftest$ac_exeext conftest.$ac_ext
16104 # Check whether --with-ssl-engine was given.
16105 if test "${with_ssl_engine+set}" = set; then
16106 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
16107 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
16108 echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
16109 cat >conftest.$ac_ext <<_ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 #include <openssl/engine.h>
16120 ENGINE_load_builtin_engines();ENGINE_register_all_complete();
16126 rm -f conftest.$ac_objext
16127 if { (ac_try="$ac_compile"
16128 case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_compile") 2>conftest.er1
16135 grep -v '^ *+' conftest.er1 >conftest.err
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } && {
16140 test -z "$ac_c_werror_flag" ||
16141 test ! -s conftest.err
16142 } && test -s conftest.$ac_objext; then
16143 { echo "$as_me:$LINENO: result: yes" >&5
16144 echo "${ECHO_T}yes" >&6; }
16146 cat >>confdefs.h <<\_ACEOF
16147 #define USE_OPENSSL_ENGINE 1
16152 echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
16156 echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
16157 { (exit 1); exit 1; }; }
16161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167 # Check for OpenSSL without EVP_aes_{192,256}_cbc
16168 { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
16169 echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
16170 cat >conftest.$ac_ext <<_ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16177 #include <string.h>
16178 #include <openssl/evp.h>
16179 int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
16182 rm -f conftest.$ac_objext conftest$ac_exeext
16183 if { (ac_try="$ac_link"
16184 case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_link") 2>conftest.er1
16191 grep -v '^ *+' conftest.er1 >conftest.err
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } && {
16196 test -z "$ac_c_werror_flag" ||
16197 test ! -s conftest.err
16198 } && test -s conftest$ac_exeext &&
16199 $as_test_x conftest$ac_exeext; then
16201 { echo "$as_me:$LINENO: result: no" >&5
16202 echo "${ECHO_T}no" >&6; }
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16209 { echo "$as_me:$LINENO: result: yes" >&5
16210 echo "${ECHO_T}yes" >&6; }
16212 cat >>confdefs.h <<\_ACEOF
16213 #define OPENSSL_LOBOTOMISED_AES 1
16220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16221 conftest$ac_exeext conftest.$ac_ext
16223 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
16224 # because the system crypt() is more featureful.
16225 if test "x$check_for_libcrypt_before" = "x1"; then
16227 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16228 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16229 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 ac_check_lib_save_LIBS=$LIBS
16233 LIBS="-lcrypt $LIBS"
16234 cat >conftest.$ac_ext <<_ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16241 /* Override any GCC internal prototype to avoid an error.
16242 Use char because int might match the return type of a GCC
16243 builtin and then its argument prototype would still apply. */
16256 rm -f conftest.$ac_objext conftest$ac_exeext
16257 if { (ac_try="$ac_link"
16258 case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_link") 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } && {
16270 test -z "$ac_c_werror_flag" ||
16271 test ! -s conftest.err
16272 } && test -s conftest$ac_exeext &&
16273 $as_test_x conftest$ac_exeext; then
16274 ac_cv_lib_crypt_crypt=yes
16276 echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16279 ac_cv_lib_crypt_crypt=no
16282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16283 conftest$ac_exeext conftest.$ac_ext
16284 LIBS=$ac_check_lib_save_LIBS
16286 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16287 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16288 if test $ac_cv_lib_crypt_crypt = yes; then
16289 cat >>confdefs.h <<_ACEOF
16290 #define HAVE_LIBCRYPT 1
16293 LIBS="-lcrypt $LIBS"
16299 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
16300 # version in OpenSSL.
16301 if test "x$check_for_libcrypt_later" = "x1"; then
16302 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16303 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
16304 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 ac_check_lib_save_LIBS=$LIBS
16308 LIBS="-lcrypt $LIBS"
16309 cat >conftest.$ac_ext <<_ACEOF
16312 cat confdefs.h >>conftest.$ac_ext
16313 cat >>conftest.$ac_ext <<_ACEOF
16314 /* end confdefs.h. */
16316 /* Override any GCC internal prototype to avoid an error.
16317 Use char because int might match the return type of a GCC
16318 builtin and then its argument prototype would still apply. */
16331 rm -f conftest.$ac_objext conftest$ac_exeext
16332 if { (ac_try="$ac_link"
16333 case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_link") 2>conftest.er1
16340 grep -v '^ *+' conftest.er1 >conftest.err
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } && {
16345 test -z "$ac_c_werror_flag" ||
16346 test ! -s conftest.err
16347 } && test -s conftest$ac_exeext &&
16348 $as_test_x conftest$ac_exeext; then
16349 ac_cv_lib_crypt_crypt=yes
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16354 ac_cv_lib_crypt_crypt=no
16357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16358 conftest$ac_exeext conftest.$ac_ext
16359 LIBS=$ac_check_lib_save_LIBS
16361 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16362 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
16363 if test $ac_cv_lib_crypt_crypt = yes; then
16364 LIBS="$LIBS -lcrypt"
16369 # Search for SHA256 support in libc and/or OpenSSL
16372 for ac_func in SHA256_Update EVP_sha256
16374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16380 cat >conftest.$ac_ext <<_ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16388 #define $ac_func innocuous_$ac_func
16390 /* System header to define __stub macros and hopefully few prototypes,
16391 which can conflict with char $ac_func (); below.
16392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16393 <limits.h> exists even on freestanding compilers. */
16396 # include <limits.h>
16398 # include <assert.h>
16403 /* Override any GCC internal prototype to avoid an error.
16404 Use char because int might match the return type of a GCC
16405 builtin and then its argument prototype would still apply. */
16410 /* The GNU C library defines this for functions which it implements
16411 to always fail with ENOSYS. Some functions are actually named
16412 something starting with __ and the normal name is an alias. */
16413 #if defined __stub_$ac_func || defined __stub___$ac_func
16420 return $ac_func ();
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (ac_try="$ac_link"
16427 case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_link") 2>conftest.er1
16434 grep -v '^ *+' conftest.er1 >conftest.err
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } && {
16439 test -z "$ac_c_werror_flag" ||
16440 test ! -s conftest.err
16441 } && test -s conftest$ac_exeext &&
16442 $as_test_x conftest$ac_exeext; then
16443 eval "$as_ac_var=yes"
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16448 eval "$as_ac_var=no"
16451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16452 conftest$ac_exeext conftest.$ac_ext
16454 ac_res=`eval echo '${'$as_ac_var'}'`
16455 { echo "$as_me:$LINENO: result: $ac_res" >&5
16456 echo "${ECHO_T}$ac_res" >&6; }
16457 if test `eval echo '${'$as_ac_var'}'` = yes; then
16458 cat >>confdefs.h <<_ACEOF
16459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16467 { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
16468 echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
16469 if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 ac_check_lib_save_LIBS=$LIBS
16474 cat >conftest.$ac_ext <<_ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16481 /* Override any GCC internal prototype to avoid an error.
16482 Use char because int might match the return type of a GCC
16483 builtin and then its argument prototype would still apply. */
16487 char ia_openinfo ();
16491 return ia_openinfo ();
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (ac_try="$ac_link"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_link") 2>conftest.er1
16505 grep -v '^ *+' conftest.er1 >conftest.err
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && {
16510 test -z "$ac_c_werror_flag" ||
16511 test ! -s conftest.err
16512 } && test -s conftest$ac_exeext &&
16513 $as_test_x conftest$ac_exeext; then
16514 ac_cv_lib_iaf_ia_openinfo=yes
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_cv_lib_iaf_ia_openinfo=no
16522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16526 { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
16527 echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
16528 if test $ac_cv_lib_iaf_ia_openinfo = yes; then
16532 for ac_func in set_id
16534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 cat >conftest.$ac_ext <<_ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16548 #define $ac_func innocuous_$ac_func
16550 /* System header to define __stub macros and hopefully few prototypes,
16551 which can conflict with char $ac_func (); below.
16552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16553 <limits.h> exists even on freestanding compilers. */
16556 # include <limits.h>
16558 # include <assert.h>
16563 /* Override any GCC internal prototype to avoid an error.
16564 Use char because int might match the return type of a GCC
16565 builtin and then its argument prototype would still apply. */
16570 /* The GNU C library defines this for functions which it implements
16571 to always fail with ENOSYS. Some functions are actually named
16572 something starting with __ and the normal name is an alias. */
16573 #if defined __stub_$ac_func || defined __stub___$ac_func
16580 return $ac_func ();
16585 rm -f conftest.$ac_objext conftest$ac_exeext
16586 if { (ac_try="$ac_link"
16587 case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592 (eval "$ac_link") 2>conftest.er1
16594 grep -v '^ *+' conftest.er1 >conftest.err
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } && {
16599 test -z "$ac_c_werror_flag" ||
16600 test ! -s conftest.err
16601 } && test -s conftest$ac_exeext &&
16602 $as_test_x conftest$ac_exeext; then
16603 eval "$as_ac_var=yes"
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16608 eval "$as_ac_var=no"
16611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16612 conftest$ac_exeext conftest.$ac_ext
16614 ac_res=`eval echo '${'$as_ac_var'}'`
16615 { echo "$as_me:$LINENO: result: $ac_res" >&5
16616 echo "${ECHO_T}$ac_res" >&6; }
16617 if test `eval echo '${'$as_ac_var'}'` = yes; then
16618 cat >>confdefs.h <<_ACEOF
16619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16621 SSHDLIBS="$SSHDLIBS -liaf"
16630 ### Configure cryptographic random number support
16632 # Check wheter OpenSSL seeds itself
16633 { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
16634 echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
16635 if test "$cross_compiling" = yes; then
16637 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
16638 echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
16639 # This is safe, since all recent OpenSSL versions will
16640 # complain at runtime if not seeded correctly.
16641 OPENSSL_SEEDS_ITSELF=yes
16645 cat >conftest.$ac_ext <<_ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16652 #include <string.h>
16653 #include <openssl/rand.h>
16654 int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
16657 rm -f conftest$ac_exeext
16658 if { (ac_try="$ac_link"
16659 case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_link") 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16668 { (case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673 (eval "$ac_try") 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16678 OPENSSL_SEEDS_ITSELF=yes
16679 { echo "$as_me:$LINENO: result: yes" >&5
16680 echo "${ECHO_T}yes" >&6; }
16683 echo "$as_me: program exited with status $ac_status" >&5
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 ( exit $ac_status )
16689 { echo "$as_me:$LINENO: result: no" >&5
16690 echo "${ECHO_T}no" >&6; }
16691 # Default to use of the rand helper if OpenSSL doesn't
16693 USE_RAND_HELPER=yes
16696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16701 # Check for PAM libs
16704 # Check whether --with-pam was given.
16705 if test "${with_pam+set}" = set; then
16707 if test "x$withval" != "xno" ; then
16708 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
16709 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
16710 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
16711 echo "$as_me: error: PAM headers not found" >&2;}
16712 { (exit 1); exit 1; }; }
16717 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 ac_check_lib_save_LIBS=$LIBS
16724 cat >conftest.$ac_ext <<_ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16731 /* Override any GCC internal prototype to avoid an error.
16732 Use char because int might match the return type of a GCC
16733 builtin and then its argument prototype would still apply. */
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (ac_try="$ac_link"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_link") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1 >conftest.err
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest$ac_exeext &&
16763 $as_test_x conftest$ac_exeext; then
16764 ac_cv_lib_dl_dlopen=yes
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 ac_cv_lib_dl_dlopen=no
16772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16773 conftest$ac_exeext conftest.$ac_ext
16774 LIBS=$ac_check_lib_save_LIBS
16776 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16778 if test $ac_cv_lib_dl_dlopen = yes; then
16779 cat >>confdefs.h <<_ACEOF
16780 #define HAVE_LIBDL 1
16788 { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
16789 echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
16790 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 ac_check_lib_save_LIBS=$LIBS
16795 cat >conftest.$ac_ext <<_ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h. */
16802 /* Override any GCC internal prototype to avoid an error.
16803 Use char because int might match the return type of a GCC
16804 builtin and then its argument prototype would still apply. */
16808 char pam_set_item ();
16812 return pam_set_item ();
16817 rm -f conftest.$ac_objext conftest$ac_exeext
16818 if { (ac_try="$ac_link"
16819 case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_link") 2>conftest.er1
16826 grep -v '^ *+' conftest.er1 >conftest.err
16828 cat conftest.err >&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } && {
16831 test -z "$ac_c_werror_flag" ||
16832 test ! -s conftest.err
16833 } && test -s conftest$ac_exeext &&
16834 $as_test_x conftest$ac_exeext; then
16835 ac_cv_lib_pam_pam_set_item=yes
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 ac_cv_lib_pam_pam_set_item=no
16843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16844 conftest$ac_exeext conftest.$ac_ext
16845 LIBS=$ac_check_lib_save_LIBS
16847 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
16848 echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
16849 if test $ac_cv_lib_pam_pam_set_item = yes; then
16850 cat >>confdefs.h <<_ACEOF
16851 #define HAVE_LIBPAM 1
16857 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
16858 echo "$as_me: error: *** libpam missing" >&2;}
16859 { (exit 1); exit 1; }; }
16863 for ac_func in pam_getenvlist
16865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16879 #define $ac_func innocuous_$ac_func
16881 /* System header to define __stub macros and hopefully few prototypes,
16882 which can conflict with char $ac_func (); below.
16883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16884 <limits.h> exists even on freestanding compilers. */
16887 # include <limits.h>
16889 # include <assert.h>
16894 /* Override any GCC internal prototype to avoid an error.
16895 Use char because int might match the return type of a GCC
16896 builtin and then its argument prototype would still apply. */
16901 /* The GNU C library defines this for functions which it implements
16902 to always fail with ENOSYS. Some functions are actually named
16903 something starting with __ and the normal name is an alias. */
16904 #if defined __stub_$ac_func || defined __stub___$ac_func
16911 return $ac_func ();
16916 rm -f conftest.$ac_objext conftest$ac_exeext
16917 if { (ac_try="$ac_link"
16918 case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_link") 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } && {
16930 test -z "$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 } && test -s conftest$ac_exeext &&
16933 $as_test_x conftest$ac_exeext; then
16934 eval "$as_ac_var=yes"
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 eval "$as_ac_var=no"
16942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16943 conftest$ac_exeext conftest.$ac_ext
16945 ac_res=`eval echo '${'$as_ac_var'}'`
16946 { echo "$as_me:$LINENO: result: $ac_res" >&5
16947 echo "${ECHO_T}$ac_res" >&6; }
16948 if test `eval echo '${'$as_ac_var'}'` = yes; then
16949 cat >>confdefs.h <<_ACEOF
16950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16957 for ac_func in pam_putenv
16959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 cat >conftest.$ac_ext <<_ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16973 #define $ac_func innocuous_$ac_func
16975 /* System header to define __stub macros and hopefully few prototypes,
16976 which can conflict with char $ac_func (); below.
16977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16978 <limits.h> exists even on freestanding compilers. */
16981 # include <limits.h>
16983 # include <assert.h>
16988 /* Override any GCC internal prototype to avoid an error.
16989 Use char because int might match the return type of a GCC
16990 builtin and then its argument prototype would still apply. */
16995 /* The GNU C library defines this for functions which it implements
16996 to always fail with ENOSYS. Some functions are actually named
16997 something starting with __ and the normal name is an alias. */
16998 #if defined __stub_$ac_func || defined __stub___$ac_func
17005 return $ac_func ();
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (ac_try="$ac_link"
17012 case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_link") 2>conftest.er1
17019 grep -v '^ *+' conftest.er1 >conftest.err
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } && {
17024 test -z "$ac_c_werror_flag" ||
17025 test ! -s conftest.err
17026 } && test -s conftest$ac_exeext &&
17027 $as_test_x conftest$ac_exeext; then
17028 eval "$as_ac_var=yes"
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 eval "$as_ac_var=no"
17036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17037 conftest$ac_exeext conftest.$ac_ext
17039 ac_res=`eval echo '${'$as_ac_var'}'`
17040 { echo "$as_me:$LINENO: result: $ac_res" >&5
17041 echo "${ECHO_T}$ac_res" >&6; }
17042 if test `eval echo '${'$as_ac_var'}'` = yes; then
17043 cat >>confdefs.h <<_ACEOF
17044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17054 SSHDLIBS="$SSHDLIBS -lpam"
17056 cat >>confdefs.h <<\_ACEOF
17061 if test $ac_cv_lib_dl_dlopen = yes; then
17064 # libdl already in LIBS
17067 SSHDLIBS="$SSHDLIBS -ldl"
17077 # Check for older PAM
17078 if test "x$PAM_MSG" = "xyes" ; then
17079 # Check PAM strerror arguments (old PAM)
17080 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
17081 echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
17082 cat >conftest.$ac_ext <<_ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17089 #include <stdlib.h>
17090 #if defined(HAVE_SECURITY_PAM_APPL_H)
17091 #include <security/pam_appl.h>
17092 #elif defined (HAVE_PAM_PAM_APPL_H)
17093 #include <pam/pam_appl.h>
17099 (void)pam_strerror((pam_handle_t *)NULL, -1);
17104 rm -f conftest.$ac_objext
17105 if { (ac_try="$ac_compile"
17106 case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_compile") 2>conftest.er1
17113 grep -v '^ *+' conftest.er1 >conftest.err
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } && {
17118 test -z "$ac_c_werror_flag" ||
17119 test ! -s conftest.err
17120 } && test -s conftest.$ac_objext; then
17121 { echo "$as_me:$LINENO: result: no" >&5
17122 echo "${ECHO_T}no" >&6; }
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17129 cat >>confdefs.h <<\_ACEOF
17130 #define HAVE_OLD_PAM 1
17133 { echo "$as_me:$LINENO: result: yes" >&5
17134 echo "${ECHO_T}yes" >&6; }
17135 PAM_MSG="yes (old library)"
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17143 # Do we want to force the use of the rand helper?
17145 # Check whether --with-rand-helper was given.
17146 if test "${with_rand_helper+set}" = set; then
17147 withval=$with_rand_helper;
17148 if test "x$withval" = "xno" ; then
17149 # Force use of OpenSSL's internal RNG, even if
17150 # the previous test showed it to be unseeded.
17151 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
17152 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
17153 echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
17154 OPENSSL_SEEDS_ITSELF=yes
17158 USE_RAND_HELPER=yes
17164 # Which randomness source do we use?
17165 if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
17168 cat >>confdefs.h <<\_ACEOF
17169 #define OPENSSL_PRNG_ONLY 1
17172 RAND_MSG="OpenSSL internal ONLY"
17173 INSTALL_SSH_RAND_HELPER=""
17174 elif test ! -z "$USE_RAND_HELPER" ; then
17175 # install rand helper
17176 RAND_MSG="ssh-rand-helper"
17177 INSTALL_SSH_RAND_HELPER="yes"
17181 ### Configuration of ssh-rand-helper
17185 # Check whether --with-prngd-port was given.
17186 if test "${with_prngd_port+set}" = set; then
17187 withval=$with_prngd_port;
17195 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
17196 echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
17197 { (exit 1); exit 1; }; }
17200 if test ! -z "$withval" ; then
17201 PRNGD_PORT="$withval"
17203 cat >>confdefs.h <<_ACEOF
17204 #define PRNGD_PORT $PRNGD_PORT
17213 # PRNGD Unix domain socket
17215 # Check whether --with-prngd-socket was given.
17216 if test "${with_prngd_socket+set}" = set; then
17217 withval=$with_prngd_socket;
17220 withval="/var/run/egd-pool"
17228 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
17229 echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
17230 { (exit 1); exit 1; }; }
17234 if test ! -z "$withval" ; then
17235 if test ! -z "$PRNGD_PORT" ; then
17236 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
17237 echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
17238 { (exit 1); exit 1; }; }
17240 if test ! -r "$withval" ; then
17241 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
17242 echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
17244 PRNGD_SOCKET="$withval"
17246 cat >>confdefs.h <<_ACEOF
17247 #define PRNGD_SOCKET "$PRNGD_SOCKET"
17254 # Check for existing socket only if we don't have a random device already
17255 if test "$USE_RAND_HELPER" = yes ; then
17256 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
17257 echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
17258 # Insert other locations here
17259 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
17260 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
17261 PRNGD_SOCKET="$sock"
17262 cat >>confdefs.h <<_ACEOF
17263 #define PRNGD_SOCKET "$PRNGD_SOCKET"
17269 if test ! -z "$PRNGD_SOCKET" ; then
17270 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
17271 echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
17273 { echo "$as_me:$LINENO: result: not found" >&5
17274 echo "${ECHO_T}not found" >&6; }
17282 # Change default command timeout for hashing entropy source
17283 entropy_timeout=200
17285 # Check whether --with-entropy-timeout was given.
17286 if test "${with_entropy_timeout+set}" = set; then
17287 withval=$with_entropy_timeout;
17288 if test -n "$withval" && test "x$withval" != "xno" && \
17289 test "x${withval}" != "xyes"; then
17290 entropy_timeout=$withval
17297 cat >>confdefs.h <<_ACEOF
17298 #define ENTROPY_TIMEOUT_MSEC $entropy_timeout
17302 SSH_PRIVSEP_USER=sshd
17304 # Check whether --with-privsep-user was given.
17305 if test "${with_privsep_user+set}" = set; then
17306 withval=$with_privsep_user;
17307 if test -n "$withval" && test "x$withval" != "xno" && \
17308 test "x${withval}" != "xyes"; then
17309 SSH_PRIVSEP_USER=$withval
17316 cat >>confdefs.h <<_ACEOF
17317 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
17322 # We do this little dance with the search path to insure
17323 # that programs that we select for use by installed programs
17324 # (which may be run by the super-user) come from trusted
17325 # locations before they come from the user's private area.
17326 # This should help avoid accidentally configuring some
17327 # random version of a program in someone's personal bin.
17331 test -h /bin 2> /dev/null && PATH=/usr/bin
17332 test -d /sbin && PATH=$PATH:/sbin
17333 test -d /usr/sbin && PATH=$PATH:/usr/sbin
17334 PATH=$PATH:/etc:$OPATH
17336 # These programs are used by the command hashing source to gather entropy
17338 # Extract the first word of "ls", so it can be a program name with args.
17339 set dummy ls; ac_word=$2
17340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17342 if test "${ac_cv_path_PROG_LS+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
17350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17351 for as_dir in $PATH
17354 test -z "$as_dir" && as_dir=.
17355 for ac_exec_ext in '' $ac_executable_extensions; do
17356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17357 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
17358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17368 PROG_LS=$ac_cv_path_PROG_LS
17369 if test -n "$PROG_LS"; then
17370 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
17371 echo "${ECHO_T}$PROG_LS" >&6; }
17373 { echo "$as_me:$LINENO: result: no" >&5
17374 echo "${ECHO_T}no" >&6; }
17378 if test -z "$PROG_LS" ; then
17384 # Extract the first word of "netstat", so it can be a program name with args.
17385 set dummy netstat; ac_word=$2
17386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17388 if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17391 case $PROG_NETSTAT in
17393 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
17396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17397 for as_dir in $PATH
17400 test -z "$as_dir" && as_dir=.
17401 for ac_exec_ext in '' $ac_executable_extensions; do
17402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17403 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
17404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17414 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
17415 if test -n "$PROG_NETSTAT"; then
17416 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
17417 echo "${ECHO_T}$PROG_NETSTAT" >&6; }
17419 { echo "$as_me:$LINENO: result: no" >&5
17420 echo "${ECHO_T}no" >&6; }
17424 if test -z "$PROG_NETSTAT" ; then
17425 PROG_NETSTAT="undef"
17430 # Extract the first word of "arp", so it can be a program name with args.
17431 set dummy arp; ac_word=$2
17432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17434 if test "${ac_cv_path_PROG_ARP+set}" = set; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
17442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17443 for as_dir in $PATH
17446 test -z "$as_dir" && as_dir=.
17447 for ac_exec_ext in '' $ac_executable_extensions; do
17448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17449 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
17450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17460 PROG_ARP=$ac_cv_path_PROG_ARP
17461 if test -n "$PROG_ARP"; then
17462 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
17463 echo "${ECHO_T}$PROG_ARP" >&6; }
17465 { echo "$as_me:$LINENO: result: no" >&5
17466 echo "${ECHO_T}no" >&6; }
17470 if test -z "$PROG_ARP" ; then
17476 # Extract the first word of "ifconfig", so it can be a program name with args.
17477 set dummy ifconfig; ac_word=$2
17478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17480 if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
17481 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 case $PROG_IFCONFIG in
17485 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
17488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17489 for as_dir in $PATH
17492 test -z "$as_dir" && as_dir=.
17493 for ac_exec_ext in '' $ac_executable_extensions; do
17494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17495 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
17496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17506 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
17507 if test -n "$PROG_IFCONFIG"; then
17508 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
17509 echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
17511 { echo "$as_me:$LINENO: result: no" >&5
17512 echo "${ECHO_T}no" >&6; }
17516 if test -z "$PROG_IFCONFIG" ; then
17517 PROG_IFCONFIG="undef"
17522 # Extract the first word of "jstat", so it can be a program name with args.
17523 set dummy jstat; ac_word=$2
17524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17526 if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 case $PROG_JSTAT in
17531 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
17534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17535 for as_dir in $PATH
17538 test -z "$as_dir" && as_dir=.
17539 for ac_exec_ext in '' $ac_executable_extensions; do
17540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17541 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
17542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17552 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
17553 if test -n "$PROG_JSTAT"; then
17554 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
17555 echo "${ECHO_T}$PROG_JSTAT" >&6; }
17557 { echo "$as_me:$LINENO: result: no" >&5
17558 echo "${ECHO_T}no" >&6; }
17562 if test -z "$PROG_JSTAT" ; then
17568 # Extract the first word of "ps", so it can be a program name with args.
17569 set dummy ps; ac_word=$2
17570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17572 if test "${ac_cv_path_PROG_PS+set}" = set; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
17580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17581 for as_dir in $PATH
17584 test -z "$as_dir" && as_dir=.
17585 for ac_exec_ext in '' $ac_executable_extensions; do
17586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17587 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
17588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17598 PROG_PS=$ac_cv_path_PROG_PS
17599 if test -n "$PROG_PS"; then
17600 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
17601 echo "${ECHO_T}$PROG_PS" >&6; }
17603 { echo "$as_me:$LINENO: result: no" >&5
17604 echo "${ECHO_T}no" >&6; }
17608 if test -z "$PROG_PS" ; then
17614 # Extract the first word of "sar", so it can be a program name with args.
17615 set dummy sar; ac_word=$2
17616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17618 if test "${ac_cv_path_PROG_SAR+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
17626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17627 for as_dir in $PATH
17630 test -z "$as_dir" && as_dir=.
17631 for ac_exec_ext in '' $ac_executable_extensions; do
17632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17633 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
17634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17644 PROG_SAR=$ac_cv_path_PROG_SAR
17645 if test -n "$PROG_SAR"; then
17646 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
17647 echo "${ECHO_T}$PROG_SAR" >&6; }
17649 { echo "$as_me:$LINENO: result: no" >&5
17650 echo "${ECHO_T}no" >&6; }
17654 if test -z "$PROG_SAR" ; then
17660 # Extract the first word of "w", so it can be a program name with args.
17661 set dummy w; ac_word=$2
17662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17664 if test "${ac_cv_path_PROG_W+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
17672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17673 for as_dir in $PATH
17676 test -z "$as_dir" && as_dir=.
17677 for ac_exec_ext in '' $ac_executable_extensions; do
17678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17679 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
17680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17690 PROG_W=$ac_cv_path_PROG_W
17691 if test -n "$PROG_W"; then
17692 { echo "$as_me:$LINENO: result: $PROG_W" >&5
17693 echo "${ECHO_T}$PROG_W" >&6; }
17695 { echo "$as_me:$LINENO: result: no" >&5
17696 echo "${ECHO_T}no" >&6; }
17700 if test -z "$PROG_W" ; then
17706 # Extract the first word of "who", so it can be a program name with args.
17707 set dummy who; ac_word=$2
17708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17710 if test "${ac_cv_path_PROG_WHO+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
17718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17719 for as_dir in $PATH
17722 test -z "$as_dir" && as_dir=.
17723 for ac_exec_ext in '' $ac_executable_extensions; do
17724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17725 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
17726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17736 PROG_WHO=$ac_cv_path_PROG_WHO
17737 if test -n "$PROG_WHO"; then
17738 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
17739 echo "${ECHO_T}$PROG_WHO" >&6; }
17741 { echo "$as_me:$LINENO: result: no" >&5
17742 echo "${ECHO_T}no" >&6; }
17746 if test -z "$PROG_WHO" ; then
17752 # Extract the first word of "last", so it can be a program name with args.
17753 set dummy last; ac_word=$2
17754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17756 if test "${ac_cv_path_PROG_LAST+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17761 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
17764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17765 for as_dir in $PATH
17768 test -z "$as_dir" && as_dir=.
17769 for ac_exec_ext in '' $ac_executable_extensions; do
17770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17771 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
17772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17782 PROG_LAST=$ac_cv_path_PROG_LAST
17783 if test -n "$PROG_LAST"; then
17784 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
17785 echo "${ECHO_T}$PROG_LAST" >&6; }
17787 { echo "$as_me:$LINENO: result: no" >&5
17788 echo "${ECHO_T}no" >&6; }
17792 if test -z "$PROG_LAST" ; then
17798 # Extract the first word of "lastlog", so it can be a program name with args.
17799 set dummy lastlog; ac_word=$2
17800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17802 if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 case $PROG_LASTLOG in
17807 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
17810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17811 for as_dir in $PATH
17814 test -z "$as_dir" && as_dir=.
17815 for ac_exec_ext in '' $ac_executable_extensions; do
17816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17817 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
17818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17828 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
17829 if test -n "$PROG_LASTLOG"; then
17830 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
17831 echo "${ECHO_T}$PROG_LASTLOG" >&6; }
17833 { echo "$as_me:$LINENO: result: no" >&5
17834 echo "${ECHO_T}no" >&6; }
17838 if test -z "$PROG_LASTLOG" ; then
17839 PROG_LASTLOG="undef"
17844 # Extract the first word of "df", so it can be a program name with args.
17845 set dummy df; ac_word=$2
17846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17848 if test "${ac_cv_path_PROG_DF+set}" = set; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
17856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17857 for as_dir in $PATH
17860 test -z "$as_dir" && as_dir=.
17861 for ac_exec_ext in '' $ac_executable_extensions; do
17862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17863 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
17864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17874 PROG_DF=$ac_cv_path_PROG_DF
17875 if test -n "$PROG_DF"; then
17876 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
17877 echo "${ECHO_T}$PROG_DF" >&6; }
17879 { echo "$as_me:$LINENO: result: no" >&5
17880 echo "${ECHO_T}no" >&6; }
17884 if test -z "$PROG_DF" ; then
17890 # Extract the first word of "vmstat", so it can be a program name with args.
17891 set dummy vmstat; ac_word=$2
17892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17894 if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 case $PROG_VMSTAT in
17899 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
17902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17903 for as_dir in $PATH
17906 test -z "$as_dir" && as_dir=.
17907 for ac_exec_ext in '' $ac_executable_extensions; do
17908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17909 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
17910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17920 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
17921 if test -n "$PROG_VMSTAT"; then
17922 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
17923 echo "${ECHO_T}$PROG_VMSTAT" >&6; }
17925 { echo "$as_me:$LINENO: result: no" >&5
17926 echo "${ECHO_T}no" >&6; }
17930 if test -z "$PROG_VMSTAT" ; then
17931 PROG_VMSTAT="undef"
17936 # Extract the first word of "uptime", so it can be a program name with args.
17937 set dummy uptime; ac_word=$2
17938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17940 if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17943 case $PROG_UPTIME in
17945 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
17948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17949 for as_dir in $PATH
17952 test -z "$as_dir" && as_dir=.
17953 for ac_exec_ext in '' $ac_executable_extensions; do
17954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17955 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
17956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17966 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
17967 if test -n "$PROG_UPTIME"; then
17968 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
17969 echo "${ECHO_T}$PROG_UPTIME" >&6; }
17971 { echo "$as_me:$LINENO: result: no" >&5
17972 echo "${ECHO_T}no" >&6; }
17976 if test -z "$PROG_UPTIME" ; then
17977 PROG_UPTIME="undef"
17982 # Extract the first word of "ipcs", so it can be a program name with args.
17983 set dummy ipcs; ac_word=$2
17984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17986 if test "${ac_cv_path_PROG_IPCS+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
17994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17995 for as_dir in $PATH
17998 test -z "$as_dir" && as_dir=.
17999 for ac_exec_ext in '' $ac_executable_extensions; do
18000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18001 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
18002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18012 PROG_IPCS=$ac_cv_path_PROG_IPCS
18013 if test -n "$PROG_IPCS"; then
18014 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
18015 echo "${ECHO_T}$PROG_IPCS" >&6; }
18017 { echo "$as_me:$LINENO: result: no" >&5
18018 echo "${ECHO_T}no" >&6; }
18022 if test -z "$PROG_IPCS" ; then
18028 # Extract the first word of "tail", so it can be a program name with args.
18029 set dummy tail; ac_word=$2
18030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18032 if test "${ac_cv_path_PROG_TAIL+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
18040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18041 for as_dir in $PATH
18044 test -z "$as_dir" && as_dir=.
18045 for ac_exec_ext in '' $ac_executable_extensions; do
18046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18047 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
18048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18058 PROG_TAIL=$ac_cv_path_PROG_TAIL
18059 if test -n "$PROG_TAIL"; then
18060 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
18061 echo "${ECHO_T}$PROG_TAIL" >&6; }
18063 { echo "$as_me:$LINENO: result: no" >&5
18064 echo "${ECHO_T}no" >&6; }
18068 if test -z "$PROG_TAIL" ; then
18076 # Where does ssh-rand-helper get its randomness from?
18077 INSTALL_SSH_PRNG_CMDS=""
18078 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
18079 if test ! -z "$PRNGD_PORT" ; then
18080 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
18081 elif test ! -z "$PRNGD_SOCKET" ; then
18082 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
18084 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
18085 RAND_HELPER_CMDHASH=yes
18086 INSTALL_SSH_PRNG_CMDS="yes"
18092 # Cheap hack to ensure NEWS-OS libraries are arranged right.
18093 if test ! -z "$SONY" ; then
18094 LIBS="$LIBS -liberty";
18097 # Check for long long datatypes
18098 { echo "$as_me:$LINENO: checking for long long" >&5
18099 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18100 if test "${ac_cv_type_long_long+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 cat >conftest.$ac_ext <<_ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h. */
18109 $ac_includes_default
18110 typedef long long ac__type_new_;
18114 if ((ac__type_new_ *) 0)
18116 if (sizeof (ac__type_new_))
18122 rm -f conftest.$ac_objext
18123 if { (ac_try="$ac_compile"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_compile") 2>conftest.er1
18131 grep -v '^ *+' conftest.er1 >conftest.err
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } && {
18136 test -z "$ac_c_werror_flag" ||
18137 test ! -s conftest.err
18138 } && test -s conftest.$ac_objext; then
18139 ac_cv_type_long_long=yes
18141 echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18144 ac_cv_type_long_long=no
18147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18150 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18151 if test $ac_cv_type_long_long = yes; then
18153 cat >>confdefs.h <<_ACEOF
18154 #define HAVE_LONG_LONG 1
18159 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
18160 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
18161 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18164 cat >conftest.$ac_ext <<_ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 $ac_includes_default
18171 typedef unsigned long long ac__type_new_;
18175 if ((ac__type_new_ *) 0)
18177 if (sizeof (ac__type_new_))
18183 rm -f conftest.$ac_objext
18184 if { (ac_try="$ac_compile"
18185 case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_compile") 2>conftest.er1
18192 grep -v '^ *+' conftest.er1 >conftest.err
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } && {
18197 test -z "$ac_c_werror_flag" ||
18198 test ! -s conftest.err
18199 } && test -s conftest.$ac_objext; then
18200 ac_cv_type_unsigned_long_long=yes
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18205 ac_cv_type_unsigned_long_long=no
18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
18211 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
18212 if test $ac_cv_type_unsigned_long_long = yes; then
18214 cat >>confdefs.h <<_ACEOF
18215 #define HAVE_UNSIGNED_LONG_LONG 1
18220 { echo "$as_me:$LINENO: checking for long double" >&5
18221 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18222 if test "${ac_cv_type_long_double+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 $ac_includes_default
18232 typedef long double ac__type_new_;
18236 if ((ac__type_new_ *) 0)
18238 if (sizeof (ac__type_new_))
18244 rm -f conftest.$ac_objext
18245 if { (ac_try="$ac_compile"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_compile") 2>conftest.er1
18253 grep -v '^ *+' conftest.er1 >conftest.err
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } && {
18258 test -z "$ac_c_werror_flag" ||
18259 test ! -s conftest.err
18260 } && test -s conftest.$ac_objext; then
18261 ac_cv_type_long_double=yes
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18266 ac_cv_type_long_double=no
18269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
18272 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
18273 if test $ac_cv_type_long_double = yes; then
18275 cat >>confdefs.h <<_ACEOF
18276 #define HAVE_LONG_DOUBLE 1
18283 # Check datatype sizes
18284 { echo "$as_me:$LINENO: checking for char" >&5
18285 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
18286 if test "${ac_cv_type_char+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 cat >conftest.$ac_ext <<_ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18295 $ac_includes_default
18296 typedef char ac__type_new_;
18300 if ((ac__type_new_ *) 0)
18302 if (sizeof (ac__type_new_))
18308 rm -f conftest.$ac_objext
18309 if { (ac_try="$ac_compile"
18310 case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_compile") 2>conftest.er1
18317 grep -v '^ *+' conftest.er1 >conftest.err
18319 cat conftest.err >&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } && {
18322 test -z "$ac_c_werror_flag" ||
18323 test ! -s conftest.err
18324 } && test -s conftest.$ac_objext; then
18325 ac_cv_type_char=yes
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18335 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18336 echo "${ECHO_T}$ac_cv_type_char" >&6; }
18338 # The cast to long int works around a bug in the HP C Compiler
18339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18341 # This bug is HP SR number 8606223364.
18342 { echo "$as_me:$LINENO: checking size of char" >&5
18343 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
18344 if test "${ac_cv_sizeof_char+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18347 if test "$cross_compiling" = yes; then
18348 # Depending upon the size, compute the lo and hi bounds.
18349 cat >conftest.$ac_ext <<_ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h. */
18355 $ac_includes_default
18356 typedef char ac__type_sizeof_;
18360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18367 rm -f conftest.$ac_objext
18368 if { (ac_try="$ac_compile"
18369 case "(($ac_try" in
18370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18371 *) ac_try_echo=$ac_try;;
18373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18374 (eval "$ac_compile") 2>conftest.er1
18376 grep -v '^ *+' conftest.er1 >conftest.err
18378 cat conftest.err >&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); } && {
18381 test -z "$ac_c_werror_flag" ||
18382 test ! -s conftest.err
18383 } && test -s conftest.$ac_objext; then
18386 cat >conftest.$ac_ext <<_ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18392 $ac_includes_default
18393 typedef char ac__type_sizeof_;
18397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18404 rm -f conftest.$ac_objext
18405 if { (ac_try="$ac_compile"
18406 case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_compile") 2>conftest.er1
18413 grep -v '^ *+' conftest.er1 >conftest.err
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && {
18418 test -z "$ac_c_werror_flag" ||
18419 test ! -s conftest.err
18420 } && test -s conftest.$ac_objext; then
18421 ac_hi=$ac_mid; break
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 ac_lo=`expr $ac_mid + 1`
18427 if test $ac_lo -le $ac_mid; then
18431 ac_mid=`expr 2 '*' $ac_mid + 1`
18434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 $ac_includes_default
18447 typedef char ac__type_sizeof_;
18451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18458 rm -f conftest.$ac_objext
18459 if { (ac_try="$ac_compile"
18460 case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_compile") 2>conftest.er1
18467 grep -v '^ *+' conftest.er1 >conftest.err
18469 cat conftest.err >&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } && {
18472 test -z "$ac_c_werror_flag" ||
18473 test ! -s conftest.err
18474 } && test -s conftest.$ac_objext; then
18477 cat >conftest.$ac_ext <<_ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18483 $ac_includes_default
18484 typedef char ac__type_sizeof_;
18488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18495 rm -f conftest.$ac_objext
18496 if { (ac_try="$ac_compile"
18497 case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_compile") 2>conftest.er1
18504 grep -v '^ *+' conftest.er1 >conftest.err
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest.$ac_objext; then
18512 ac_lo=$ac_mid; break
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18517 ac_hi=`expr '(' $ac_mid ')' - 1`
18518 if test $ac_mid -le $ac_hi; then
18522 ac_mid=`expr 2 '*' $ac_mid`
18525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18528 echo "$as_me: failed program was:" >&5
18529 sed 's/^/| /' conftest.$ac_ext >&5
18534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538 # Binary search between lo and hi bounds.
18539 while test "x$ac_lo" != "x$ac_hi"; do
18540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18541 cat >conftest.$ac_ext <<_ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 $ac_includes_default
18548 typedef char ac__type_sizeof_;
18552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18559 rm -f conftest.$ac_objext
18560 if { (ac_try="$ac_compile"
18561 case "(($ac_try" in
18562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563 *) ac_try_echo=$ac_try;;
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566 (eval "$ac_compile") 2>conftest.er1
18568 grep -v '^ *+' conftest.er1 >conftest.err
18570 cat conftest.err >&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } && {
18573 test -z "$ac_c_werror_flag" ||
18574 test ! -s conftest.err
18575 } && test -s conftest.$ac_objext; then
18578 echo "$as_me: failed program was:" >&5
18579 sed 's/^/| /' conftest.$ac_ext >&5
18581 ac_lo=`expr '(' $ac_mid ')' + 1`
18584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18587 ?*) ac_cv_sizeof_char=$ac_lo;;
18588 '') if test "$ac_cv_type_char" = yes; then
18589 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18590 See \`config.log' for more details." >&5
18591 echo "$as_me: error: cannot compute sizeof (char)
18592 See \`config.log' for more details." >&2;}
18593 { (exit 77); exit 77; }; }
18595 ac_cv_sizeof_char=0
18599 cat >conftest.$ac_ext <<_ACEOF
18602 cat confdefs.h >>conftest.$ac_ext
18603 cat >>conftest.$ac_ext <<_ACEOF
18604 /* end confdefs.h. */
18605 $ac_includes_default
18606 typedef char ac__type_sizeof_;
18607 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18608 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18610 #include <stdlib.h>
18615 FILE *f = fopen ("conftest.val", "w");
18618 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18620 long int i = longval ();
18621 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18623 fprintf (f, "%ld\n", i);
18627 unsigned long int i = ulongval ();
18628 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18630 fprintf (f, "%lu\n", i);
18632 return ferror (f) || fclose (f) != 0;
18638 rm -f conftest$ac_exeext
18639 if { (ac_try="$ac_link"
18640 case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645 (eval "$ac_link") 2>&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18649 { (case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_try") 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 ac_cv_sizeof_char=`cat conftest.val`
18660 echo "$as_me: program exited with status $ac_status" >&5
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18664 ( exit $ac_status )
18665 if test "$ac_cv_type_char" = yes; then
18666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18667 See \`config.log' for more details." >&5
18668 echo "$as_me: error: cannot compute sizeof (char)
18669 See \`config.log' for more details." >&2;}
18670 { (exit 77); exit 77; }; }
18672 ac_cv_sizeof_char=0
18675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18680 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
18684 cat >>confdefs.h <<_ACEOF
18685 #define SIZEOF_CHAR $ac_cv_sizeof_char
18689 { echo "$as_me:$LINENO: checking for short int" >&5
18690 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
18691 if test "${ac_cv_type_short_int+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 cat >conftest.$ac_ext <<_ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18700 $ac_includes_default
18701 typedef short int ac__type_new_;
18705 if ((ac__type_new_ *) 0)
18707 if (sizeof (ac__type_new_))
18713 rm -f conftest.$ac_objext
18714 if { (ac_try="$ac_compile"
18715 case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_compile") 2>conftest.er1
18722 grep -v '^ *+' conftest.er1 >conftest.err
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } && {
18727 test -z "$ac_c_werror_flag" ||
18728 test ! -s conftest.err
18729 } && test -s conftest.$ac_objext; then
18730 ac_cv_type_short_int=yes
18732 echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18735 ac_cv_type_short_int=no
18738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18740 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
18741 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
18743 # The cast to long int works around a bug in the HP C Compiler
18744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18746 # This bug is HP SR number 8606223364.
18747 { echo "$as_me:$LINENO: checking size of short int" >&5
18748 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
18749 if test "${ac_cv_sizeof_short_int+set}" = set; then
18750 echo $ECHO_N "(cached) $ECHO_C" >&6
18752 if test "$cross_compiling" = yes; then
18753 # Depending upon the size, compute the lo and hi bounds.
18754 cat >conftest.$ac_ext <<_ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18760 $ac_includes_default
18761 typedef short int ac__type_sizeof_;
18765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18772 rm -f conftest.$ac_objext
18773 if { (ac_try="$ac_compile"
18774 case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_compile") 2>conftest.er1
18781 grep -v '^ *+' conftest.er1 >conftest.err
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } && {
18786 test -z "$ac_c_werror_flag" ||
18787 test ! -s conftest.err
18788 } && test -s conftest.$ac_objext; then
18791 cat >conftest.$ac_ext <<_ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18797 $ac_includes_default
18798 typedef short int ac__type_sizeof_;
18802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18809 rm -f conftest.$ac_objext
18810 if { (ac_try="$ac_compile"
18811 case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_compile") 2>conftest.er1
18818 grep -v '^ *+' conftest.er1 >conftest.err
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } && {
18823 test -z "$ac_c_werror_flag" ||
18824 test ! -s conftest.err
18825 } && test -s conftest.$ac_objext; then
18826 ac_hi=$ac_mid; break
18828 echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18831 ac_lo=`expr $ac_mid + 1`
18832 if test $ac_lo -le $ac_mid; then
18836 ac_mid=`expr 2 '*' $ac_mid + 1`
18839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 cat >conftest.$ac_ext <<_ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 $ac_includes_default
18852 typedef short int ac__type_sizeof_;
18856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18863 rm -f conftest.$ac_objext
18864 if { (ac_try="$ac_compile"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_compile") 2>conftest.er1
18872 grep -v '^ *+' conftest.er1 >conftest.err
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } && {
18877 test -z "$ac_c_werror_flag" ||
18878 test ! -s conftest.err
18879 } && test -s conftest.$ac_objext; then
18882 cat >conftest.$ac_ext <<_ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 $ac_includes_default
18889 typedef short int ac__type_sizeof_;
18893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18900 rm -f conftest.$ac_objext
18901 if { (ac_try="$ac_compile"
18902 case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_compile") 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } && {
18914 test -z "$ac_c_werror_flag" ||
18915 test ! -s conftest.err
18916 } && test -s conftest.$ac_objext; then
18917 ac_lo=$ac_mid; break
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 ac_hi=`expr '(' $ac_mid ')' - 1`
18923 if test $ac_mid -le $ac_hi; then
18927 ac_mid=`expr 2 '*' $ac_mid`
18930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18943 # Binary search between lo and hi bounds.
18944 while test "x$ac_lo" != "x$ac_hi"; do
18945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18946 cat >conftest.$ac_ext <<_ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18952 $ac_includes_default
18953 typedef short int ac__type_sizeof_;
18957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18964 rm -f conftest.$ac_objext
18965 if { (ac_try="$ac_compile"
18966 case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_compile") 2>conftest.er1
18973 grep -v '^ *+' conftest.er1 >conftest.err
18975 cat conftest.err >&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } && {
18978 test -z "$ac_c_werror_flag" ||
18979 test ! -s conftest.err
18980 } && test -s conftest.$ac_objext; then
18983 echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18986 ac_lo=`expr '(' $ac_mid ')' + 1`
18989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18992 ?*) ac_cv_sizeof_short_int=$ac_lo;;
18993 '') if test "$ac_cv_type_short_int" = yes; then
18994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
18995 See \`config.log' for more details." >&5
18996 echo "$as_me: error: cannot compute sizeof (short int)
18997 See \`config.log' for more details." >&2;}
18998 { (exit 77); exit 77; }; }
19000 ac_cv_sizeof_short_int=0
19004 cat >conftest.$ac_ext <<_ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19010 $ac_includes_default
19011 typedef short int ac__type_sizeof_;
19012 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19013 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19015 #include <stdlib.h>
19020 FILE *f = fopen ("conftest.val", "w");
19023 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19025 long int i = longval ();
19026 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19028 fprintf (f, "%ld\n", i);
19032 unsigned long int i = ulongval ();
19033 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19035 fprintf (f, "%lu\n", i);
19037 return ferror (f) || fclose (f) != 0;
19043 rm -f conftest$ac_exeext
19044 if { (ac_try="$ac_link"
19045 case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050 (eval "$ac_link") 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19054 { (case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059 (eval "$ac_try") 2>&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; }; then
19063 ac_cv_sizeof_short_int=`cat conftest.val`
19065 echo "$as_me: program exited with status $ac_status" >&5
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ( exit $ac_status )
19070 if test "$ac_cv_type_short_int" = yes; then
19071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
19072 See \`config.log' for more details." >&5
19073 echo "$as_me: error: cannot compute sizeof (short int)
19074 See \`config.log' for more details." >&2;}
19075 { (exit 77); exit 77; }; }
19077 ac_cv_sizeof_short_int=0
19080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19084 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
19085 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
19089 cat >>confdefs.h <<_ACEOF
19090 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
19094 { echo "$as_me:$LINENO: checking for int" >&5
19095 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19096 if test "${ac_cv_type_int+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19099 cat >conftest.$ac_ext <<_ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19105 $ac_includes_default
19106 typedef int ac__type_new_;
19110 if ((ac__type_new_ *) 0)
19112 if (sizeof (ac__type_new_))
19118 rm -f conftest.$ac_objext
19119 if { (ac_try="$ac_compile"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_compile") 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && {
19132 test -z "$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19134 } && test -s conftest.$ac_objext; then
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19145 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19146 echo "${ECHO_T}$ac_cv_type_int" >&6; }
19148 # The cast to long int works around a bug in the HP C Compiler
19149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19151 # This bug is HP SR number 8606223364.
19152 { echo "$as_me:$LINENO: checking size of int" >&5
19153 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
19154 if test "${ac_cv_sizeof_int+set}" = set; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 if test "$cross_compiling" = yes; then
19158 # Depending upon the size, compute the lo and hi bounds.
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 $ac_includes_default
19166 typedef int ac__type_sizeof_;
19170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19177 rm -f conftest.$ac_objext
19178 if { (ac_try="$ac_compile"
19179 case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_compile") 2>conftest.er1
19186 grep -v '^ *+' conftest.er1 >conftest.err
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest.$ac_objext; then
19196 cat >conftest.$ac_ext <<_ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h. */
19202 $ac_includes_default
19203 typedef int ac__type_sizeof_;
19207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19214 rm -f conftest.$ac_objext
19215 if { (ac_try="$ac_compile"
19216 case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_compile") 2>conftest.er1
19223 grep -v '^ *+' conftest.er1 >conftest.err
19225 cat conftest.err >&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } && {
19228 test -z "$ac_c_werror_flag" ||
19229 test ! -s conftest.err
19230 } && test -s conftest.$ac_objext; then
19231 ac_hi=$ac_mid; break
19233 echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19236 ac_lo=`expr $ac_mid + 1`
19237 if test $ac_lo -le $ac_mid; then
19241 ac_mid=`expr 2 '*' $ac_mid + 1`
19244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 $ac_includes_default
19257 typedef int ac__type_sizeof_;
19261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19268 rm -f conftest.$ac_objext
19269 if { (ac_try="$ac_compile"
19270 case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_compile") 2>conftest.er1
19277 grep -v '^ *+' conftest.er1 >conftest.err
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } && {
19282 test -z "$ac_c_werror_flag" ||
19283 test ! -s conftest.err
19284 } && test -s conftest.$ac_objext; then
19287 cat >conftest.$ac_ext <<_ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 $ac_includes_default
19294 typedef int ac__type_sizeof_;
19298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19305 rm -f conftest.$ac_objext
19306 if { (ac_try="$ac_compile"
19307 case "(($ac_try" in
19308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309 *) ac_try_echo=$ac_try;;
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312 (eval "$ac_compile") 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && {
19319 test -z "$ac_c_werror_flag" ||
19320 test ! -s conftest.err
19321 } && test -s conftest.$ac_objext; then
19322 ac_lo=$ac_mid; break
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_hi=`expr '(' $ac_mid ')' - 1`
19328 if test $ac_mid -le $ac_hi; then
19332 ac_mid=`expr 2 '*' $ac_mid`
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348 # Binary search between lo and hi bounds.
19349 while test "x$ac_lo" != "x$ac_hi"; do
19350 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19351 cat >conftest.$ac_ext <<_ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19357 $ac_includes_default
19358 typedef int ac__type_sizeof_;
19362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19369 rm -f conftest.$ac_objext
19370 if { (ac_try="$ac_compile"
19371 case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_compile") 2>conftest.er1
19378 grep -v '^ *+' conftest.er1 >conftest.err
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } && {
19383 test -z "$ac_c_werror_flag" ||
19384 test ! -s conftest.err
19385 } && test -s conftest.$ac_objext; then
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_lo=`expr '(' $ac_mid ')' + 1`
19394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397 ?*) ac_cv_sizeof_int=$ac_lo;;
19398 '') if test "$ac_cv_type_int" = yes; then
19399 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19400 See \`config.log' for more details." >&5
19401 echo "$as_me: error: cannot compute sizeof (int)
19402 See \`config.log' for more details." >&2;}
19403 { (exit 77); exit 77; }; }
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 $ac_includes_default
19416 typedef int ac__type_sizeof_;
19417 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19418 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19420 #include <stdlib.h>
19425 FILE *f = fopen ("conftest.val", "w");
19428 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19430 long int i = longval ();
19431 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19433 fprintf (f, "%ld\n", i);
19437 unsigned long int i = ulongval ();
19438 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19440 fprintf (f, "%lu\n", i);
19442 return ferror (f) || fclose (f) != 0;
19448 rm -f conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_link") 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 ac_cv_sizeof_int=`cat conftest.val`
19470 echo "$as_me: program exited with status $ac_status" >&5
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ( exit $ac_status )
19475 if test "$ac_cv_type_int" = yes; then
19476 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19477 See \`config.log' for more details." >&5
19478 echo "$as_me: error: cannot compute sizeof (int)
19479 See \`config.log' for more details." >&2;}
19480 { (exit 77); exit 77; }; }
19485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19489 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19490 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
19494 cat >>confdefs.h <<_ACEOF
19495 #define SIZEOF_INT $ac_cv_sizeof_int
19499 { echo "$as_me:$LINENO: checking for long int" >&5
19500 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
19501 if test "${ac_cv_type_long_int+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 cat >conftest.$ac_ext <<_ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 $ac_includes_default
19511 typedef long int ac__type_new_;
19515 if ((ac__type_new_ *) 0)
19517 if (sizeof (ac__type_new_))
19523 rm -f conftest.$ac_objext
19524 if { (ac_try="$ac_compile"
19525 case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_compile") 2>conftest.er1
19532 grep -v '^ *+' conftest.er1 >conftest.err
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } && {
19537 test -z "$ac_c_werror_flag" ||
19538 test ! -s conftest.err
19539 } && test -s conftest.$ac_objext; then
19540 ac_cv_type_long_int=yes
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 ac_cv_type_long_int=no
19548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19550 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
19551 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
19553 # The cast to long int works around a bug in the HP C Compiler
19554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19556 # This bug is HP SR number 8606223364.
19557 { echo "$as_me:$LINENO: checking size of long int" >&5
19558 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
19559 if test "${ac_cv_sizeof_long_int+set}" = set; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 if test "$cross_compiling" = yes; then
19563 # Depending upon the size, compute the lo and hi bounds.
19564 cat >conftest.$ac_ext <<_ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19570 $ac_includes_default
19571 typedef long int ac__type_sizeof_;
19575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19582 rm -f conftest.$ac_objext
19583 if { (ac_try="$ac_compile"
19584 case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_compile") 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } && {
19596 test -z "$ac_c_werror_flag" ||
19597 test ! -s conftest.err
19598 } && test -s conftest.$ac_objext; then
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 $ac_includes_default
19608 typedef long int ac__type_sizeof_;
19612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19619 rm -f conftest.$ac_objext
19620 if { (ac_try="$ac_compile"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_compile") 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } && {
19633 test -z "$ac_c_werror_flag" ||
19634 test ! -s conftest.err
19635 } && test -s conftest.$ac_objext; then
19636 ac_hi=$ac_mid; break
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19641 ac_lo=`expr $ac_mid + 1`
19642 if test $ac_lo -le $ac_mid; then
19646 ac_mid=`expr 2 '*' $ac_mid + 1`
19649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 cat >conftest.$ac_ext <<_ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 $ac_includes_default
19662 typedef long int ac__type_sizeof_;
19666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19673 rm -f conftest.$ac_objext
19674 if { (ac_try="$ac_compile"
19675 case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_compile") 2>conftest.er1
19682 grep -v '^ *+' conftest.er1 >conftest.err
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } && {
19687 test -z "$ac_c_werror_flag" ||
19688 test ! -s conftest.err
19689 } && test -s conftest.$ac_objext; then
19692 cat >conftest.$ac_ext <<_ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698 $ac_includes_default
19699 typedef long int ac__type_sizeof_;
19703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19710 rm -f conftest.$ac_objext
19711 if { (ac_try="$ac_compile"
19712 case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_compile") 2>conftest.er1
19719 grep -v '^ *+' conftest.er1 >conftest.err
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } && {
19724 test -z "$ac_c_werror_flag" ||
19725 test ! -s conftest.err
19726 } && test -s conftest.$ac_objext; then
19727 ac_lo=$ac_mid; break
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_hi=`expr '(' $ac_mid ')' - 1`
19733 if test $ac_mid -le $ac_hi; then
19737 ac_mid=`expr 2 '*' $ac_mid`
19740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19743 echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19753 # Binary search between lo and hi bounds.
19754 while test "x$ac_lo" != "x$ac_hi"; do
19755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19756 cat >conftest.$ac_ext <<_ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19762 $ac_includes_default
19763 typedef long int ac__type_sizeof_;
19767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19774 rm -f conftest.$ac_objext
19775 if { (ac_try="$ac_compile"
19776 case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_compile") 2>conftest.er1
19783 grep -v '^ *+' conftest.er1 >conftest.err
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } && {
19788 test -z "$ac_c_werror_flag" ||
19789 test ! -s conftest.err
19790 } && test -s conftest.$ac_objext; then
19793 echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19796 ac_lo=`expr '(' $ac_mid ')' + 1`
19799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19802 ?*) ac_cv_sizeof_long_int=$ac_lo;;
19803 '') if test "$ac_cv_type_long_int" = yes; then
19804 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
19805 See \`config.log' for more details." >&5
19806 echo "$as_me: error: cannot compute sizeof (long int)
19807 See \`config.log' for more details." >&2;}
19808 { (exit 77); exit 77; }; }
19810 ac_cv_sizeof_long_int=0
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 $ac_includes_default
19821 typedef long int ac__type_sizeof_;
19822 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19823 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19825 #include <stdlib.h>
19830 FILE *f = fopen ("conftest.val", "w");
19833 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19835 long int i = longval ();
19836 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19838 fprintf (f, "%ld\n", i);
19842 unsigned long int i = ulongval ();
19843 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19845 fprintf (f, "%lu\n", i);
19847 return ferror (f) || fclose (f) != 0;
19853 rm -f conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_link") 2>&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19864 { (case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_try") 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 ac_cv_sizeof_long_int=`cat conftest.val`
19875 echo "$as_me: program exited with status $ac_status" >&5
19876 echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ( exit $ac_status )
19880 if test "$ac_cv_type_long_int" = yes; then
19881 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
19882 See \`config.log' for more details." >&5
19883 echo "$as_me: error: cannot compute sizeof (long int)
19884 See \`config.log' for more details." >&2;}
19885 { (exit 77); exit 77; }; }
19887 ac_cv_sizeof_long_int=0
19890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19894 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
19895 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
19899 cat >>confdefs.h <<_ACEOF
19900 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
19904 { echo "$as_me:$LINENO: checking for long long int" >&5
19905 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
19906 if test "${ac_cv_type_long_long_int+set}" = set; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 cat >conftest.$ac_ext <<_ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19915 $ac_includes_default
19916 typedef long long int ac__type_new_;
19920 if ((ac__type_new_ *) 0)
19922 if (sizeof (ac__type_new_))
19928 rm -f conftest.$ac_objext
19929 if { (ac_try="$ac_compile"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_compile") 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest.$ac_objext; then
19945 ac_cv_type_long_long_int=yes
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_cv_type_long_long_int=no
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19955 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19956 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
19958 # The cast to long int works around a bug in the HP C Compiler
19959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19961 # This bug is HP SR number 8606223364.
19962 { echo "$as_me:$LINENO: checking size of long long int" >&5
19963 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
19964 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 if test "$cross_compiling" = yes; then
19968 # Depending upon the size, compute the lo and hi bounds.
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19976 typedef long long int ac__type_sizeof_;
19980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19987 rm -f conftest.$ac_objext
19988 if { (ac_try="$ac_compile"
19989 case "(($ac_try" in
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991 *) ac_try_echo=$ac_try;;
19993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994 (eval "$ac_compile") 2>conftest.er1
19996 grep -v '^ *+' conftest.er1 >conftest.err
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } && {
20001 test -z "$ac_c_werror_flag" ||
20002 test ! -s conftest.err
20003 } && test -s conftest.$ac_objext; then
20006 cat >conftest.$ac_ext <<_ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012 $ac_includes_default
20013 typedef long long int ac__type_sizeof_;
20017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20024 rm -f conftest.$ac_objext
20025 if { (ac_try="$ac_compile"
20026 case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_compile") 2>conftest.er1
20033 grep -v '^ *+' conftest.er1 >conftest.err
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } && {
20038 test -z "$ac_c_werror_flag" ||
20039 test ! -s conftest.err
20040 } && test -s conftest.$ac_objext; then
20041 ac_hi=$ac_mid; break
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 ac_lo=`expr $ac_mid + 1`
20047 if test $ac_lo -le $ac_mid; then
20051 ac_mid=`expr 2 '*' $ac_mid + 1`
20054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20060 cat >conftest.$ac_ext <<_ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 $ac_includes_default
20067 typedef long long int ac__type_sizeof_;
20071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20078 rm -f conftest.$ac_objext
20079 if { (ac_try="$ac_compile"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_compile") 2>conftest.er1
20087 grep -v '^ *+' conftest.er1 >conftest.err
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && {
20092 test -z "$ac_c_werror_flag" ||
20093 test ! -s conftest.err
20094 } && test -s conftest.$ac_objext; then
20097 cat >conftest.$ac_ext <<_ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103 $ac_includes_default
20104 typedef long long int ac__type_sizeof_;
20108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20115 rm -f conftest.$ac_objext
20116 if { (ac_try="$ac_compile"
20117 case "(($ac_try" in
20118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119 *) ac_try_echo=$ac_try;;
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_compile") 2>conftest.er1
20124 grep -v '^ *+' conftest.er1 >conftest.err
20126 cat conftest.err >&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } && {
20129 test -z "$ac_c_werror_flag" ||
20130 test ! -s conftest.err
20131 } && test -s conftest.$ac_objext; then
20132 ac_lo=$ac_mid; break
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20137 ac_hi=`expr '(' $ac_mid ')' - 1`
20138 if test $ac_mid -le $ac_hi; then
20142 ac_mid=`expr 2 '*' $ac_mid`
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148 echo "$as_me: failed program was:" >&5
20149 sed 's/^/| /' conftest.$ac_ext >&5
20154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20158 # Binary search between lo and hi bounds.
20159 while test "x$ac_lo" != "x$ac_hi"; do
20160 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20161 cat >conftest.$ac_ext <<_ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 $ac_includes_default
20168 typedef long long int ac__type_sizeof_;
20172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20179 rm -f conftest.$ac_objext
20180 if { (ac_try="$ac_compile"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_compile") 2>conftest.er1
20188 grep -v '^ *+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && {
20193 test -z "$ac_c_werror_flag" ||
20194 test ! -s conftest.err
20195 } && test -s conftest.$ac_objext; then
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_lo=`expr '(' $ac_mid ')' + 1`
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20207 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
20208 '') if test "$ac_cv_type_long_long_int" = yes; then
20209 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20210 See \`config.log' for more details." >&5
20211 echo "$as_me: error: cannot compute sizeof (long long int)
20212 See \`config.log' for more details." >&2;}
20213 { (exit 77); exit 77; }; }
20215 ac_cv_sizeof_long_long_int=0
20219 cat >conftest.$ac_ext <<_ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225 $ac_includes_default
20226 typedef long long int ac__type_sizeof_;
20227 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20228 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20230 #include <stdlib.h>
20235 FILE *f = fopen ("conftest.val", "w");
20238 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20240 long int i = longval ();
20241 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20243 fprintf (f, "%ld\n", i);
20247 unsigned long int i = ulongval ();
20248 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20250 fprintf (f, "%lu\n", i);
20252 return ferror (f) || fclose (f) != 0;
20258 rm -f conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20269 { (case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_try") 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
20278 ac_cv_sizeof_long_long_int=`cat conftest.val`
20280 echo "$as_me: program exited with status $ac_status" >&5
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ( exit $ac_status )
20285 if test "$ac_cv_type_long_long_int" = yes; then
20286 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
20287 See \`config.log' for more details." >&5
20288 echo "$as_me: error: cannot compute sizeof (long long int)
20289 See \`config.log' for more details." >&2;}
20290 { (exit 77); exit 77; }; }
20292 ac_cv_sizeof_long_long_int=0
20295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20299 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
20300 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
20304 cat >>confdefs.h <<_ACEOF
20305 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
20310 # Sanity check long long for some platforms (AIX)
20311 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
20312 ac_cv_sizeof_long_long_int=0
20315 # compute LLONG_MIN and LLONG_MAX if we don't know them.
20316 if test -z "$have_llong_max"; then
20317 { echo "$as_me:$LINENO: checking for max value of long long" >&5
20318 echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
20319 if test "$cross_compiling" = yes; then
20321 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20322 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20326 cat >conftest.$ac_ext <<_ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20334 /* Why is this so damn hard? */
20338 #define __USE_ISOC99
20339 #include <limits.h>
20340 #define DATA "conftest.llminmax"
20341 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
20344 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
20345 * we do this the hard way.
20348 fprint_ll(FILE *f, long long n)
20351 int l[sizeof(long long) * 8];
20354 if (fprintf(f, "-") < 0)
20356 for (i = 0; n != 0; i++) {
20357 l[i] = my_abs(n % 10);
20361 if (fprintf(f, "%d", l[--i]) < 0)
20364 if (fprintf(f, " ") < 0)
20371 long long i, llmin, llmax = 0;
20373 if((f = fopen(DATA,"w")) == NULL)
20376 #if defined(LLONG_MIN) && defined(LLONG_MAX)
20377 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
20381 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
20382 /* This will work on one's complement and two's complement */
20383 for (i = 1; i > llmax; i <<= 1, i++)
20385 llmin = llmax + 1LL; /* wrap */
20389 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
20390 || llmax - 1 > llmax || llmin == llmax || llmin == 0
20391 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
20392 fprintf(f, "unknown unknown\n");
20396 if (fprint_ll(f, llmin) < 0)
20398 if (fprint_ll(f, llmax) < 0)
20406 rm -f conftest$ac_exeext
20407 if { (ac_try="$ac_link"
20408 case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413 (eval "$ac_link") 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20417 { (case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_try") 2>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20427 llong_min=`$AWK '{print $1}' conftest.llminmax`
20428 llong_max=`$AWK '{print $2}' conftest.llminmax`
20430 { echo "$as_me:$LINENO: result: $llong_max" >&5
20431 echo "${ECHO_T}$llong_max" >&6; }
20433 cat >>confdefs.h <<_ACEOF
20434 #define LLONG_MAX ${llong_max}LL
20437 { echo "$as_me:$LINENO: checking for min value of long long" >&5
20438 echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
20439 { echo "$as_me:$LINENO: result: $llong_min" >&5
20440 echo "${ECHO_T}$llong_min" >&6; }
20442 cat >>confdefs.h <<_ACEOF
20443 #define LLONG_MIN ${llong_min}LL
20448 echo "$as_me: program exited with status $ac_status" >&5
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20452 ( exit $ac_status )
20454 { echo "$as_me:$LINENO: result: not found" >&5
20455 echo "${ECHO_T}not found" >&6; }
20458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20465 # More checks for data types
20466 { echo "$as_me:$LINENO: checking for u_int type" >&5
20467 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
20468 if test "${ac_cv_have_u_int+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 #include <sys/types.h>
20487 rm -f conftest.$ac_objext
20488 if { (ac_try="$ac_compile"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_compile") 2>conftest.er1
20496 grep -v '^ *+' conftest.er1 >conftest.err
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest.$ac_objext; then
20504 ac_cv_have_u_int="yes"
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 ac_cv_have_u_int="no"
20513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20516 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
20517 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
20518 if test "x$ac_cv_have_u_int" = "xyes" ; then
20520 cat >>confdefs.h <<\_ACEOF
20521 #define HAVE_U_INT 1
20527 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
20528 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
20529 if test "${ac_cv_have_intxx_t+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539 #include <sys/types.h>
20543 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20548 rm -f conftest.$ac_objext
20549 if { (ac_try="$ac_compile"
20550 case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555 (eval "$ac_compile") 2>conftest.er1
20557 grep -v '^ *+' conftest.er1 >conftest.err
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } && {
20562 test -z "$ac_c_werror_flag" ||
20563 test ! -s conftest.err
20564 } && test -s conftest.$ac_objext; then
20565 ac_cv_have_intxx_t="yes"
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20570 ac_cv_have_intxx_t="no"
20574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
20578 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
20579 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
20581 cat >>confdefs.h <<\_ACEOF
20582 #define HAVE_INTXX_T 1
20588 if (test -z "$have_intxx_t" && \
20589 test "x$ac_cv_header_stdint_h" = "xyes")
20591 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
20592 echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
20593 cat >conftest.$ac_ext <<_ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20599 #include <stdint.h>
20603 int8_t a; int16_t b; int32_t c; a = b = c = 1;
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20617 grep -v '^ *+' conftest.er1 >conftest.err
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest.$ac_objext; then
20626 cat >>confdefs.h <<\_ACEOF
20627 #define HAVE_INTXX_T 1
20630 { echo "$as_me:$LINENO: result: yes" >&5
20631 echo "${ECHO_T}yes" >&6; }
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 { echo "$as_me:$LINENO: result: no" >&5
20638 echo "${ECHO_T}no" >&6; }
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: checking for int64_t type" >&5
20646 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
20647 if test "${ac_cv_have_int64_t+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 #include <sys/types.h>
20659 #ifdef HAVE_STDINT_H
20660 # include <stdint.h>
20662 #include <sys/socket.h>
20663 #ifdef HAVE_SYS_BITYPES_H
20664 # include <sys/bitypes.h>
20675 rm -f conftest.$ac_objext
20676 if { (ac_try="$ac_compile"
20677 case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_compile") 2>conftest.er1
20684 grep -v '^ *+' conftest.er1 >conftest.err
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } && {
20689 test -z "$ac_c_werror_flag" ||
20690 test ! -s conftest.err
20691 } && test -s conftest.$ac_objext; then
20692 ac_cv_have_int64_t="yes"
20694 echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20697 ac_cv_have_int64_t="no"
20701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
20705 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
20706 if test "x$ac_cv_have_int64_t" = "xyes" ; then
20708 cat >>confdefs.h <<\_ACEOF
20709 #define HAVE_INT64_T 1
20714 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
20715 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
20716 if test "${ac_cv_have_u_intxx_t+set}" = set; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 cat >conftest.$ac_ext <<_ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20726 #include <sys/types.h>
20730 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
20735 rm -f conftest.$ac_objext
20736 if { (ac_try="$ac_compile"
20737 case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_compile") 2>conftest.er1
20744 grep -v '^ *+' conftest.er1 >conftest.err
20746 cat conftest.err >&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && {
20749 test -z "$ac_c_werror_flag" ||
20750 test ! -s conftest.err
20751 } && test -s conftest.$ac_objext; then
20752 ac_cv_have_u_intxx_t="yes"
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_cv_have_u_intxx_t="no"
20761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20764 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
20765 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
20766 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
20768 cat >>confdefs.h <<\_ACEOF
20769 #define HAVE_U_INTXX_T 1
20775 if test -z "$have_u_intxx_t" ; then
20776 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
20777 echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
20778 cat >conftest.$ac_ext <<_ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 #include <sys/socket.h>
20788 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
20793 rm -f conftest.$ac_objext
20794 if { (ac_try="$ac_compile"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_compile") 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest.$ac_objext; then
20811 cat >>confdefs.h <<\_ACEOF
20812 #define HAVE_U_INTXX_T 1
20815 { echo "$as_me:$LINENO: result: yes" >&5
20816 echo "${ECHO_T}yes" >&6; }
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 { echo "$as_me:$LINENO: result: no" >&5
20823 echo "${ECHO_T}no" >&6; }
20827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
20831 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
20832 if test "${ac_cv_have_u_int64_t+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 cat >conftest.$ac_ext <<_ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 #include <sys/types.h>
20846 u_int64_t a; a = 1;
20851 rm -f conftest.$ac_objext
20852 if { (ac_try="$ac_compile"
20853 case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858 (eval "$ac_compile") 2>conftest.er1
20860 grep -v '^ *+' conftest.er1 >conftest.err
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } && {
20865 test -z "$ac_c_werror_flag" ||
20866 test ! -s conftest.err
20867 } && test -s conftest.$ac_objext; then
20868 ac_cv_have_u_int64_t="yes"
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ac_cv_have_u_int64_t="no"
20877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20880 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
20881 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
20882 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
20884 cat >>confdefs.h <<\_ACEOF
20885 #define HAVE_U_INT64_T 1
20891 if test -z "$have_u_int64_t" ; then
20892 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
20893 echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900 #include <sys/bitypes.h>
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20918 grep -v '^ *+' conftest.er1 >conftest.err
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest.$ac_objext; then
20927 cat >>confdefs.h <<\_ACEOF
20928 #define HAVE_U_INT64_T 1
20931 { echo "$as_me:$LINENO: result: yes" >&5
20932 echo "${ECHO_T}yes" >&6; }
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 { echo "$as_me:$LINENO: result: no" >&5
20939 echo "${ECHO_T}no" >&6; }
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946 if test -z "$have_u_intxx_t" ; then
20947 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
20948 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
20949 if test "${ac_cv_have_uintxx_t+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 cat >conftest.$ac_ext <<_ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20960 #include <sys/types.h>
20965 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
20970 rm -f conftest.$ac_objext
20971 if { (ac_try="$ac_compile"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_compile") 2>conftest.er1
20979 grep -v '^ *+' conftest.er1 >conftest.err
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } && {
20984 test -z "$ac_c_werror_flag" ||
20985 test ! -s conftest.err
20986 } && test -s conftest.$ac_objext; then
20987 ac_cv_have_uintxx_t="yes"
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20992 ac_cv_have_uintxx_t="no"
20996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20999 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
21000 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
21001 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
21003 cat >>confdefs.h <<\_ACEOF
21004 #define HAVE_UINTXX_T 1
21010 if test -z "$have_uintxx_t" ; then
21011 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
21012 echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 #include <stdint.h>
21023 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21037 grep -v '^ *+' conftest.er1 >conftest.err
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } && {
21042 test -z "$ac_c_werror_flag" ||
21043 test ! -s conftest.err
21044 } && test -s conftest.$ac_objext; then
21046 cat >>confdefs.h <<\_ACEOF
21047 #define HAVE_UINTXX_T 1
21050 { echo "$as_me:$LINENO: result: yes" >&5
21051 echo "${ECHO_T}yes" >&6; }
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 { echo "$as_me:$LINENO: result: no" >&5
21058 echo "${ECHO_T}no" >&6; }
21062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21065 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
21066 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
21068 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
21069 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
21070 cat >conftest.$ac_ext <<_ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21077 #include <sys/bitypes.h>
21083 int8_t a; int16_t b; int32_t c;
21084 u_int8_t e; u_int16_t f; u_int32_t g;
21085 a = b = c = e = f = g = 1;
21091 rm -f conftest.$ac_objext
21092 if { (ac_try="$ac_compile"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_compile") 2>conftest.er1
21100 grep -v '^ *+' conftest.er1 >conftest.err
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && {
21105 test -z "$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 } && test -s conftest.$ac_objext; then
21109 cat >>confdefs.h <<\_ACEOF
21110 #define HAVE_U_INTXX_T 1
21113 cat >>confdefs.h <<\_ACEOF
21114 #define HAVE_INTXX_T 1
21117 { echo "$as_me:$LINENO: result: yes" >&5
21118 echo "${ECHO_T}yes" >&6; }
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 { echo "$as_me:$LINENO: result: no" >&5
21125 echo "${ECHO_T}no" >&6; }
21129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21133 { echo "$as_me:$LINENO: checking for u_char" >&5
21134 echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
21135 if test "${ac_cv_have_u_char+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21146 #include <sys/types.h>
21151 u_char foo; foo = 125;
21156 rm -f conftest.$ac_objext
21157 if { (ac_try="$ac_compile"
21158 case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163 (eval "$ac_compile") 2>conftest.er1
21165 grep -v '^ *+' conftest.er1 >conftest.err
21167 cat conftest.err >&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } && {
21170 test -z "$ac_c_werror_flag" ||
21171 test ! -s conftest.err
21172 } && test -s conftest.$ac_objext; then
21173 ac_cv_have_u_char="yes"
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21178 ac_cv_have_u_char="no"
21182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
21186 echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
21187 if test "x$ac_cv_have_u_char" = "xyes" ; then
21189 cat >>confdefs.h <<\_ACEOF
21190 #define HAVE_U_CHAR 1
21196 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21197 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21198 if test "${ac_cv_type_socklen_t+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21201 cat >conftest.$ac_ext <<_ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h. */
21207 #include <sys/types.h>
21208 #include <sys/socket.h>
21210 typedef socklen_t ac__type_new_;
21214 if ((ac__type_new_ *) 0)
21216 if (sizeof (ac__type_new_))
21222 rm -f conftest.$ac_objext
21223 if { (ac_try="$ac_compile"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_compile") 2>conftest.er1
21231 grep -v '^ *+' conftest.er1 >conftest.err
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest.$ac_objext; then
21239 ac_cv_type_socklen_t=yes
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_cv_type_socklen_t=no
21247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21249 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21250 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
21251 if test $ac_cv_type_socklen_t = yes; then
21255 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
21256 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
21257 if test "${curl_cv_socklen_t_equiv+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 # Systems have either "struct sockaddr *" or
21262 # "void *" as the second argument to getpeername
21263 curl_cv_socklen_t_equiv=
21264 for arg2 in "struct sockaddr" void; do
21265 for t in int size_t unsigned long "unsigned long"; do
21266 cat >conftest.$ac_ext <<_ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h. */
21273 #include <sys/types.h>
21274 #include <sys/socket.h>
21276 int getpeername (int, $arg2 *, $t *);
21283 getpeername(0,0,&len);
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21307 curl_cv_socklen_t_equiv="$t"
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21321 if test "x$curl_cv_socklen_t_equiv" = x; then
21322 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
21323 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
21324 { (exit 1); exit 1; }; }
21329 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
21330 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
21332 cat >>confdefs.h <<_ACEOF
21333 #define socklen_t $curl_cv_socklen_t_equiv
21340 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21341 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
21342 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21345 cat >conftest.$ac_ext <<_ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21351 #include <signal.h>
21353 typedef sig_atomic_t ac__type_new_;
21357 if ((ac__type_new_ *) 0)
21359 if (sizeof (ac__type_new_))
21365 rm -f conftest.$ac_objext
21366 if { (ac_try="$ac_compile"
21367 case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_compile") 2>conftest.er1
21374 grep -v '^ *+' conftest.er1 >conftest.err
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } && {
21379 test -z "$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21381 } && test -s conftest.$ac_objext; then
21382 ac_cv_type_sig_atomic_t=yes
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 ac_cv_type_sig_atomic_t=no
21390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21392 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21393 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
21394 if test $ac_cv_type_sig_atomic_t = yes; then
21396 cat >>confdefs.h <<_ACEOF
21397 #define HAVE_SIG_ATOMIC_T 1
21404 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
21405 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
21406 if test "${ac_cv_type_in_addr_t+set}" = set; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21409 cat >conftest.$ac_ext <<_ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415 #include <sys/types.h>
21416 #include <netinet/in.h>
21418 typedef in_addr_t ac__type_new_;
21422 if ((ac__type_new_ *) 0)
21424 if (sizeof (ac__type_new_))
21430 rm -f conftest.$ac_objext
21431 if { (ac_try="$ac_compile"
21432 case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437 (eval "$ac_compile") 2>conftest.er1
21439 grep -v '^ *+' conftest.er1 >conftest.err
21441 cat conftest.err >&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } && {
21444 test -z "$ac_c_werror_flag" ||
21445 test ! -s conftest.err
21446 } && test -s conftest.$ac_objext; then
21447 ac_cv_type_in_addr_t=yes
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 ac_cv_type_in_addr_t=no
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
21458 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
21459 if test $ac_cv_type_in_addr_t = yes; then
21461 cat >>confdefs.h <<_ACEOF
21462 #define HAVE_IN_ADDR_T 1
21469 { echo "$as_me:$LINENO: checking for size_t" >&5
21470 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21471 if test "${ac_cv_have_size_t+set}" = set; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21475 cat >conftest.$ac_ext <<_ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21482 #include <sys/types.h>
21487 size_t foo; foo = 1235;
21492 rm -f conftest.$ac_objext
21493 if { (ac_try="$ac_compile"
21494 case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_compile") 2>conftest.er1
21501 grep -v '^ *+' conftest.er1 >conftest.err
21503 cat conftest.err >&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } && {
21506 test -z "$ac_c_werror_flag" ||
21507 test ! -s conftest.err
21508 } && test -s conftest.$ac_objext; then
21509 ac_cv_have_size_t="yes"
21511 echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21514 ac_cv_have_size_t="no"
21518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
21522 echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
21523 if test "x$ac_cv_have_size_t" = "xyes" ; then
21525 cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_SIZE_T 1
21531 { echo "$as_me:$LINENO: checking for ssize_t" >&5
21532 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21533 if test "${ac_cv_have_ssize_t+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21537 cat >conftest.$ac_ext <<_ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21544 #include <sys/types.h>
21549 ssize_t foo; foo = 1235;
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 test -z "$ac_c_werror_flag" ||
21569 test ! -s conftest.err
21570 } && test -s conftest.$ac_objext; then
21571 ac_cv_have_ssize_t="yes"
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_cv_have_ssize_t="no"
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21583 { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
21584 echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
21585 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
21587 cat >>confdefs.h <<\_ACEOF
21588 #define HAVE_SSIZE_T 1
21593 { echo "$as_me:$LINENO: checking for clock_t" >&5
21594 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
21595 if test "${ac_cv_have_clock_t+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 cat >conftest.$ac_ext <<_ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21611 clock_t foo; foo = 1235;
21616 rm -f conftest.$ac_objext
21617 if { (ac_try="$ac_compile"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_compile") 2>conftest.er1
21625 grep -v '^ *+' conftest.er1 >conftest.err
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest.$ac_objext; then
21633 ac_cv_have_clock_t="yes"
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_cv_have_clock_t="no"
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21645 { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
21646 echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
21647 if test "x$ac_cv_have_clock_t" = "xyes" ; then
21649 cat >>confdefs.h <<\_ACEOF
21650 #define HAVE_CLOCK_T 1
21655 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
21656 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
21657 if test "${ac_cv_have_sa_family_t+set}" = set; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21668 #include <sys/types.h>
21669 #include <sys/socket.h>
21674 sa_family_t foo; foo = 1235;
21679 rm -f conftest.$ac_objext
21680 if { (ac_try="$ac_compile"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_compile") 2>conftest.er1
21688 grep -v '^ *+' conftest.er1 >conftest.err
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } && {
21693 test -z "$ac_c_werror_flag" ||
21694 test ! -s conftest.err
21695 } && test -s conftest.$ac_objext; then
21696 ac_cv_have_sa_family_t="yes"
21698 echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 cat >conftest.$ac_ext <<_ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h. */
21708 #include <sys/types.h>
21709 #include <sys/socket.h>
21710 #include <netinet/in.h>
21715 sa_family_t foo; foo = 1235;
21720 rm -f conftest.$ac_objext
21721 if { (ac_try="$ac_compile"
21722 case "(($ac_try" in
21723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724 *) ac_try_echo=$ac_try;;
21726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21727 (eval "$ac_compile") 2>conftest.er1
21729 grep -v '^ *+' conftest.er1 >conftest.err
21731 cat conftest.err >&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } && {
21734 test -z "$ac_c_werror_flag" ||
21735 test ! -s conftest.err
21736 } && test -s conftest.$ac_objext; then
21737 ac_cv_have_sa_family_t="yes"
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21742 ac_cv_have_sa_family_t="no"
21746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21753 { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
21754 echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
21755 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
21757 cat >>confdefs.h <<\_ACEOF
21758 #define HAVE_SA_FAMILY_T 1
21763 { echo "$as_me:$LINENO: checking for pid_t" >&5
21764 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21765 if test "${ac_cv_have_pid_t+set}" = set; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21769 cat >conftest.$ac_ext <<_ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21776 #include <sys/types.h>
21781 pid_t foo; foo = 1235;
21786 rm -f conftest.$ac_objext
21787 if { (ac_try="$ac_compile"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_compile") 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && {
21800 test -z "$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 } && test -s conftest.$ac_objext; then
21803 ac_cv_have_pid_t="yes"
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ac_cv_have_pid_t="no"
21812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815 { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
21816 echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
21817 if test "x$ac_cv_have_pid_t" = "xyes" ; then
21819 cat >>confdefs.h <<\_ACEOF
21820 #define HAVE_PID_T 1
21825 { echo "$as_me:$LINENO: checking for mode_t" >&5
21826 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
21827 if test "${ac_cv_have_mode_t+set}" = set; then
21828 echo $ECHO_N "(cached) $ECHO_C" >&6
21831 cat >conftest.$ac_ext <<_ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21838 #include <sys/types.h>
21843 mode_t foo; foo = 1235;
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 test -z "$ac_c_werror_flag" ||
21863 test ! -s conftest.err
21864 } && test -s conftest.$ac_objext; then
21865 ac_cv_have_mode_t="yes"
21867 echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 ac_cv_have_mode_t="no"
21874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877 { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
21878 echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
21879 if test "x$ac_cv_have_mode_t" = "xyes" ; then
21881 cat >>confdefs.h <<\_ACEOF
21882 #define HAVE_MODE_T 1
21888 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
21889 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
21890 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21894 cat >conftest.$ac_ext <<_ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h. */
21901 #include <sys/types.h>
21902 #include <sys/socket.h>
21907 struct sockaddr_storage s;
21912 rm -f conftest.$ac_objext
21913 if { (ac_try="$ac_compile"
21914 case "(($ac_try" in
21915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916 *) ac_try_echo=$ac_try;;
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919 (eval "$ac_compile") 2>conftest.er1
21921 grep -v '^ *+' conftest.er1 >conftest.err
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } && {
21926 test -z "$ac_c_werror_flag" ||
21927 test ! -s conftest.err
21928 } && test -s conftest.$ac_objext; then
21929 ac_cv_have_struct_sockaddr_storage="yes"
21931 echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 ac_cv_have_struct_sockaddr_storage="no"
21938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21941 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
21942 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
21943 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
21945 cat >>confdefs.h <<\_ACEOF
21946 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
21951 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
21952 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
21953 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21957 cat >conftest.$ac_ext <<_ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h. */
21964 #include <sys/types.h>
21965 #include <netinet/in.h>
21970 struct sockaddr_in6 s; s.sin6_family = 0;
21975 rm -f conftest.$ac_objext
21976 if { (ac_try="$ac_compile"
21977 case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_compile") 2>conftest.er1
21984 grep -v '^ *+' conftest.er1 >conftest.err
21986 cat conftest.err >&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } && {
21989 test -z "$ac_c_werror_flag" ||
21990 test ! -s conftest.err
21991 } && test -s conftest.$ac_objext; then
21992 ac_cv_have_struct_sockaddr_in6="yes"
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21997 ac_cv_have_struct_sockaddr_in6="no"
22001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
22005 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
22006 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
22008 cat >>confdefs.h <<\_ACEOF
22009 #define HAVE_STRUCT_SOCKADDR_IN6 1
22014 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22015 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22016 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 cat >conftest.$ac_ext <<_ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22027 #include <sys/types.h>
22028 #include <netinet/in.h>
22033 struct in6_addr s; s.s6_addr[0] = 0;
22038 rm -f conftest.$ac_objext
22039 if { (ac_try="$ac_compile"
22040 case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_compile") 2>conftest.er1
22047 grep -v '^ *+' conftest.er1 >conftest.err
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } && {
22052 test -z "$ac_c_werror_flag" ||
22053 test ! -s conftest.err
22054 } && test -s conftest.$ac_objext; then
22055 ac_cv_have_struct_in6_addr="yes"
22057 echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22060 ac_cv_have_struct_in6_addr="no"
22064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22067 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
22068 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
22069 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
22071 cat >>confdefs.h <<\_ACEOF
22072 #define HAVE_STRUCT_IN6_ADDR 1
22077 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22078 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
22079 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 cat >conftest.$ac_ext <<_ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h. */
22090 #include <sys/types.h>
22091 #include <sys/socket.h>
22097 struct addrinfo s; s.ai_flags = AI_PASSIVE;
22102 rm -f conftest.$ac_objext
22103 if { (ac_try="$ac_compile"
22104 case "(($ac_try" in
22105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_compile") 2>conftest.er1
22111 grep -v '^ *+' conftest.er1 >conftest.err
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } && {
22116 test -z "$ac_c_werror_flag" ||
22117 test ! -s conftest.err
22118 } && test -s conftest.$ac_objext; then
22119 ac_cv_have_struct_addrinfo="yes"
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 ac_cv_have_struct_addrinfo="no"
22128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
22132 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
22133 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
22135 cat >>confdefs.h <<\_ACEOF
22136 #define HAVE_STRUCT_ADDRINFO 1
22141 { echo "$as_me:$LINENO: checking for struct timeval" >&5
22142 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
22143 if test "${ac_cv_have_struct_timeval+set}" = set; then
22144 echo $ECHO_N "(cached) $ECHO_C" >&6
22147 cat >conftest.$ac_ext <<_ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 #include <sys/time.h>
22157 struct timeval tv; tv.tv_sec = 1;
22162 rm -f conftest.$ac_objext
22163 if { (ac_try="$ac_compile"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169 (eval "$ac_compile") 2>conftest.er1
22171 grep -v '^ *+' conftest.er1 >conftest.err
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest.$ac_objext; then
22179 ac_cv_have_struct_timeval="yes"
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 ac_cv_have_struct_timeval="no"
22188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
22192 echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
22193 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
22195 cat >>confdefs.h <<\_ACEOF
22196 #define HAVE_STRUCT_TIMEVAL 1
22199 have_struct_timeval=1
22202 { echo "$as_me:$LINENO: checking for struct timespec" >&5
22203 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
22204 if test "${ac_cv_type_struct_timespec+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22207 cat >conftest.$ac_ext <<_ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22213 $ac_includes_default
22214 typedef struct timespec ac__type_new_;
22218 if ((ac__type_new_ *) 0)
22220 if (sizeof (ac__type_new_))
22226 rm -f conftest.$ac_objext
22227 if { (ac_try="$ac_compile"
22228 case "(($ac_try" in
22229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233 (eval "$ac_compile") 2>conftest.er1
22235 grep -v '^ *+' conftest.er1 >conftest.err
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } && {
22240 test -z "$ac_c_werror_flag" ||
22241 test ! -s conftest.err
22242 } && test -s conftest.$ac_objext; then
22243 ac_cv_type_struct_timespec=yes
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22248 ac_cv_type_struct_timespec=no
22251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22253 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
22254 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
22255 if test $ac_cv_type_struct_timespec = yes; then
22257 cat >>confdefs.h <<_ACEOF
22258 #define HAVE_STRUCT_TIMESPEC 1
22265 # We need int64_t or else certian parts of the compile will fail.
22266 if test "x$ac_cv_have_int64_t" = "xno" && \
22267 test "x$ac_cv_sizeof_long_int" != "x8" && \
22268 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
22269 echo "OpenSSH requires int64_t support. Contact your vendor or install"
22270 echo "an alternative compiler (I.E., GCC) before continuing."
22274 if test "$cross_compiling" = yes; then
22275 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
22276 echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
22279 cat >conftest.$ac_ext <<_ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22287 #include <string.h>
22288 #ifdef HAVE_SNPRINTF
22292 char expected_out[50];
22294 #if (SIZEOF_LONG_INT == 8)
22295 long int num = 0x7fffffffffffffff;
22297 long long num = 0x7fffffffffffffffll;
22299 strcpy(expected_out, "9223372036854775807");
22300 snprintf(buf, mazsize, "%lld", num);
22301 if(strcmp(buf, expected_out) != 0)
22306 main() { exit(0); }
22310 rm -f conftest$ac_exeext
22311 if { (ac_try="$ac_link"
22312 case "(($ac_try" in
22313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314 *) ac_try_echo=$ac_try;;
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317 (eval "$ac_link") 2>&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22321 { (case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326 (eval "$ac_try") 2>&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; }; then
22332 echo "$as_me: program exited with status $ac_status" >&5
22333 echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22336 ( exit $ac_status )
22337 cat >>confdefs.h <<\_ACEOF
22338 #define BROKEN_SNPRINTF 1
22342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22349 # look for field 'ut_host' in header 'utmp.h'
22350 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22351 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22352 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
22353 echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
22354 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22358 cat >conftest.$ac_ext <<_ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22368 $EGREP "ut_host" >/dev/null 2>&1; then
22369 eval "$ossh_varname=yes"
22371 eval "$ossh_varname=no"
22377 ossh_result=`eval 'echo $'"$ossh_varname"`
22378 if test -n "`echo $ossh_varname`"; then
22379 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22380 echo "${ECHO_T}$ossh_result" >&6; }
22381 if test "x$ossh_result" = "xyes"; then
22383 cat >>confdefs.h <<\_ACEOF
22384 #define HAVE_HOST_IN_UTMP 1
22389 { echo "$as_me:$LINENO: result: no" >&5
22390 echo "${ECHO_T}no" >&6; }
22394 # look for field 'ut_host' in header 'utmpx.h'
22395 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22396 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
22397 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
22398 echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
22399 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22403 cat >conftest.$ac_ext <<_ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h. */
22412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22413 $EGREP "ut_host" >/dev/null 2>&1; then
22414 eval "$ossh_varname=yes"
22416 eval "$ossh_varname=no"
22422 ossh_result=`eval 'echo $'"$ossh_varname"`
22423 if test -n "`echo $ossh_varname`"; then
22424 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22425 echo "${ECHO_T}$ossh_result" >&6; }
22426 if test "x$ossh_result" = "xyes"; then
22428 cat >>confdefs.h <<\_ACEOF
22429 #define HAVE_HOST_IN_UTMPX 1
22434 { echo "$as_me:$LINENO: result: no" >&5
22435 echo "${ECHO_T}no" >&6; }
22439 # look for field 'syslen' in header 'utmpx.h'
22440 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22441 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
22442 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
22443 echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
22444 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 cat >conftest.$ac_ext <<_ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22458 $EGREP "syslen" >/dev/null 2>&1; then
22459 eval "$ossh_varname=yes"
22461 eval "$ossh_varname=no"
22467 ossh_result=`eval 'echo $'"$ossh_varname"`
22468 if test -n "`echo $ossh_varname`"; then
22469 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22470 echo "${ECHO_T}$ossh_result" >&6; }
22471 if test "x$ossh_result" = "xyes"; then
22473 cat >>confdefs.h <<\_ACEOF
22474 #define HAVE_SYSLEN_IN_UTMPX 1
22479 { echo "$as_me:$LINENO: result: no" >&5
22480 echo "${ECHO_T}no" >&6; }
22484 # look for field 'ut_pid' in header 'utmp.h'
22485 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22486 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
22487 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
22488 echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
22489 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22493 cat >conftest.$ac_ext <<_ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h. */
22502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22503 $EGREP "ut_pid" >/dev/null 2>&1; then
22504 eval "$ossh_varname=yes"
22506 eval "$ossh_varname=no"
22512 ossh_result=`eval 'echo $'"$ossh_varname"`
22513 if test -n "`echo $ossh_varname`"; then
22514 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22515 echo "${ECHO_T}$ossh_result" >&6; }
22516 if test "x$ossh_result" = "xyes"; then
22518 cat >>confdefs.h <<\_ACEOF
22519 #define HAVE_PID_IN_UTMP 1
22524 { echo "$as_me:$LINENO: result: no" >&5
22525 echo "${ECHO_T}no" >&6; }
22529 # look for field 'ut_type' in header 'utmp.h'
22530 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22531 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
22532 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
22533 echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
22534 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22538 cat >conftest.$ac_ext <<_ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22548 $EGREP "ut_type" >/dev/null 2>&1; then
22549 eval "$ossh_varname=yes"
22551 eval "$ossh_varname=no"
22557 ossh_result=`eval 'echo $'"$ossh_varname"`
22558 if test -n "`echo $ossh_varname`"; then
22559 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22560 echo "${ECHO_T}$ossh_result" >&6; }
22561 if test "x$ossh_result" = "xyes"; then
22563 cat >>confdefs.h <<\_ACEOF
22564 #define HAVE_TYPE_IN_UTMP 1
22569 { echo "$as_me:$LINENO: result: no" >&5
22570 echo "${ECHO_T}no" >&6; }
22574 # look for field 'ut_type' in header 'utmpx.h'
22575 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22576 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
22577 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
22578 echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
22579 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22593 $EGREP "ut_type" >/dev/null 2>&1; then
22594 eval "$ossh_varname=yes"
22596 eval "$ossh_varname=no"
22602 ossh_result=`eval 'echo $'"$ossh_varname"`
22603 if test -n "`echo $ossh_varname`"; then
22604 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22605 echo "${ECHO_T}$ossh_result" >&6; }
22606 if test "x$ossh_result" = "xyes"; then
22608 cat >>confdefs.h <<\_ACEOF
22609 #define HAVE_TYPE_IN_UTMPX 1
22614 { echo "$as_me:$LINENO: result: no" >&5
22615 echo "${ECHO_T}no" >&6; }
22619 # look for field 'ut_tv' in header 'utmp.h'
22620 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22621 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
22622 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
22623 echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
22624 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22628 cat >conftest.$ac_ext <<_ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22638 $EGREP "ut_tv" >/dev/null 2>&1; then
22639 eval "$ossh_varname=yes"
22641 eval "$ossh_varname=no"
22647 ossh_result=`eval 'echo $'"$ossh_varname"`
22648 if test -n "`echo $ossh_varname`"; then
22649 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22650 echo "${ECHO_T}$ossh_result" >&6; }
22651 if test "x$ossh_result" = "xyes"; then
22653 cat >>confdefs.h <<\_ACEOF
22654 #define HAVE_TV_IN_UTMP 1
22659 { echo "$as_me:$LINENO: result: no" >&5
22660 echo "${ECHO_T}no" >&6; }
22664 # look for field 'ut_id' in header 'utmp.h'
22665 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22666 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
22667 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
22668 echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
22669 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22670 echo $ECHO_N "(cached) $ECHO_C" >&6
22673 cat >conftest.$ac_ext <<_ACEOF
22676 cat confdefs.h >>conftest.$ac_ext
22677 cat >>conftest.$ac_ext <<_ACEOF
22678 /* end confdefs.h. */
22682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22683 $EGREP "ut_id" >/dev/null 2>&1; then
22684 eval "$ossh_varname=yes"
22686 eval "$ossh_varname=no"
22692 ossh_result=`eval 'echo $'"$ossh_varname"`
22693 if test -n "`echo $ossh_varname`"; then
22694 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22695 echo "${ECHO_T}$ossh_result" >&6; }
22696 if test "x$ossh_result" = "xyes"; then
22698 cat >>confdefs.h <<\_ACEOF
22699 #define HAVE_ID_IN_UTMP 1
22704 { echo "$as_me:$LINENO: result: no" >&5
22705 echo "${ECHO_T}no" >&6; }
22709 # look for field 'ut_id' in header 'utmpx.h'
22710 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22711 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
22712 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
22713 echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
22714 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 cat >conftest.$ac_ext <<_ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22728 $EGREP "ut_id" >/dev/null 2>&1; then
22729 eval "$ossh_varname=yes"
22731 eval "$ossh_varname=no"
22737 ossh_result=`eval 'echo $'"$ossh_varname"`
22738 if test -n "`echo $ossh_varname`"; then
22739 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22740 echo "${ECHO_T}$ossh_result" >&6; }
22741 if test "x$ossh_result" = "xyes"; then
22743 cat >>confdefs.h <<\_ACEOF
22744 #define HAVE_ID_IN_UTMPX 1
22749 { echo "$as_me:$LINENO: result: no" >&5
22750 echo "${ECHO_T}no" >&6; }
22754 # look for field 'ut_addr' in header 'utmp.h'
22755 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22756 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
22757 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
22758 echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
22759 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22760 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 cat >conftest.$ac_ext <<_ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22773 $EGREP "ut_addr" >/dev/null 2>&1; then
22774 eval "$ossh_varname=yes"
22776 eval "$ossh_varname=no"
22782 ossh_result=`eval 'echo $'"$ossh_varname"`
22783 if test -n "`echo $ossh_varname`"; then
22784 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22785 echo "${ECHO_T}$ossh_result" >&6; }
22786 if test "x$ossh_result" = "xyes"; then
22788 cat >>confdefs.h <<\_ACEOF
22789 #define HAVE_ADDR_IN_UTMP 1
22794 { echo "$as_me:$LINENO: result: no" >&5
22795 echo "${ECHO_T}no" >&6; }
22799 # look for field 'ut_addr' in header 'utmpx.h'
22800 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22801 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
22802 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
22803 echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
22804 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22805 echo $ECHO_N "(cached) $ECHO_C" >&6
22808 cat >conftest.$ac_ext <<_ACEOF
22811 cat confdefs.h >>conftest.$ac_ext
22812 cat >>conftest.$ac_ext <<_ACEOF
22813 /* end confdefs.h. */
22817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22818 $EGREP "ut_addr" >/dev/null 2>&1; then
22819 eval "$ossh_varname=yes"
22821 eval "$ossh_varname=no"
22827 ossh_result=`eval 'echo $'"$ossh_varname"`
22828 if test -n "`echo $ossh_varname`"; then
22829 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22830 echo "${ECHO_T}$ossh_result" >&6; }
22831 if test "x$ossh_result" = "xyes"; then
22833 cat >>confdefs.h <<\_ACEOF
22834 #define HAVE_ADDR_IN_UTMPX 1
22839 { echo "$as_me:$LINENO: result: no" >&5
22840 echo "${ECHO_T}no" >&6; }
22844 # look for field 'ut_addr_v6' in header 'utmp.h'
22845 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22846 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
22847 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
22848 echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
22849 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22853 cat >conftest.$ac_ext <<_ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h. */
22862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22863 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
22864 eval "$ossh_varname=yes"
22866 eval "$ossh_varname=no"
22872 ossh_result=`eval 'echo $'"$ossh_varname"`
22873 if test -n "`echo $ossh_varname`"; then
22874 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22875 echo "${ECHO_T}$ossh_result" >&6; }
22876 if test "x$ossh_result" = "xyes"; then
22878 cat >>confdefs.h <<\_ACEOF
22879 #define HAVE_ADDR_V6_IN_UTMP 1
22884 { echo "$as_me:$LINENO: result: no" >&5
22885 echo "${ECHO_T}no" >&6; }
22889 # look for field 'ut_addr_v6' in header 'utmpx.h'
22890 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
22891 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
22892 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
22893 echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
22894 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 cat >conftest.$ac_ext <<_ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h. */
22907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22908 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
22909 eval "$ossh_varname=yes"
22911 eval "$ossh_varname=no"
22917 ossh_result=`eval 'echo $'"$ossh_varname"`
22918 if test -n "`echo $ossh_varname`"; then
22919 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22920 echo "${ECHO_T}$ossh_result" >&6; }
22921 if test "x$ossh_result" = "xyes"; then
22923 cat >>confdefs.h <<\_ACEOF
22924 #define HAVE_ADDR_V6_IN_UTMPX 1
22929 { echo "$as_me:$LINENO: result: no" >&5
22930 echo "${ECHO_T}no" >&6; }
22934 # look for field 'ut_exit' in header 'utmp.h'
22935 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22936 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
22937 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
22938 echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
22939 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22943 cat >conftest.$ac_ext <<_ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22953 $EGREP "ut_exit" >/dev/null 2>&1; then
22954 eval "$ossh_varname=yes"
22956 eval "$ossh_varname=no"
22962 ossh_result=`eval 'echo $'"$ossh_varname"`
22963 if test -n "`echo $ossh_varname`"; then
22964 { echo "$as_me:$LINENO: result: $ossh_result" >&5
22965 echo "${ECHO_T}$ossh_result" >&6; }
22966 if test "x$ossh_result" = "xyes"; then
22968 cat >>confdefs.h <<\_ACEOF
22969 #define HAVE_EXIT_IN_UTMP 1
22974 { echo "$as_me:$LINENO: result: no" >&5
22975 echo "${ECHO_T}no" >&6; }
22979 # look for field 'ut_time' in header 'utmp.h'
22980 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
22981 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
22982 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
22983 echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
22984 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
22985 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 cat >conftest.$ac_ext <<_ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h. */
22997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22998 $EGREP "ut_time" >/dev/null 2>&1; then
22999 eval "$ossh_varname=yes"
23001 eval "$ossh_varname=no"
23007 ossh_result=`eval 'echo $'"$ossh_varname"`
23008 if test -n "`echo $ossh_varname`"; then
23009 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23010 echo "${ECHO_T}$ossh_result" >&6; }
23011 if test "x$ossh_result" = "xyes"; then
23013 cat >>confdefs.h <<\_ACEOF
23014 #define HAVE_TIME_IN_UTMP 1
23019 { echo "$as_me:$LINENO: result: no" >&5
23020 echo "${ECHO_T}no" >&6; }
23024 # look for field 'ut_time' in header 'utmpx.h'
23025 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23026 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
23027 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
23028 echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
23029 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23030 echo $ECHO_N "(cached) $ECHO_C" >&6
23033 cat >conftest.$ac_ext <<_ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h. */
23042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23043 $EGREP "ut_time" >/dev/null 2>&1; then
23044 eval "$ossh_varname=yes"
23046 eval "$ossh_varname=no"
23052 ossh_result=`eval 'echo $'"$ossh_varname"`
23053 if test -n "`echo $ossh_varname`"; then
23054 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23055 echo "${ECHO_T}$ossh_result" >&6; }
23056 if test "x$ossh_result" = "xyes"; then
23058 cat >>confdefs.h <<\_ACEOF
23059 #define HAVE_TIME_IN_UTMPX 1
23064 { echo "$as_me:$LINENO: result: no" >&5
23065 echo "${ECHO_T}no" >&6; }
23069 # look for field 'ut_tv' in header 'utmpx.h'
23070 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23071 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
23072 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
23073 echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
23074 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23078 cat >conftest.$ac_ext <<_ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23088 $EGREP "ut_tv" >/dev/null 2>&1; then
23089 eval "$ossh_varname=yes"
23091 eval "$ossh_varname=no"
23097 ossh_result=`eval 'echo $'"$ossh_varname"`
23098 if test -n "`echo $ossh_varname`"; then
23099 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23100 echo "${ECHO_T}$ossh_result" >&6; }
23101 if test "x$ossh_result" = "xyes"; then
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_TV_IN_UTMPX 1
23109 { echo "$as_me:$LINENO: result: no" >&5
23110 echo "${ECHO_T}no" >&6; }
23114 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
23115 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
23116 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
23117 echo $ECHO_N "(cached) $ECHO_C" >&6
23119 cat >conftest.$ac_ext <<_ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h. */
23125 $ac_includes_default
23129 static struct stat ac_aggr;
23130 if (ac_aggr.st_blksize)
23136 rm -f conftest.$ac_objext
23137 if { (ac_try="$ac_compile"
23138 case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_compile") 2>conftest.er1
23145 grep -v '^ *+' conftest.er1 >conftest.err
23147 cat conftest.err >&5
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); } && {
23150 test -z "$ac_c_werror_flag" ||
23151 test ! -s conftest.err
23152 } && test -s conftest.$ac_objext; then
23153 ac_cv_member_struct_stat_st_blksize=yes
23155 echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23158 cat >conftest.$ac_ext <<_ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h. */
23164 $ac_includes_default
23168 static struct stat ac_aggr;
23169 if (sizeof ac_aggr.st_blksize)
23175 rm -f conftest.$ac_objext
23176 if { (ac_try="$ac_compile"
23177 case "(($ac_try" in
23178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179 *) ac_try_echo=$ac_try;;
23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182 (eval "$ac_compile") 2>conftest.er1
23184 grep -v '^ *+' conftest.er1 >conftest.err
23186 cat conftest.err >&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } && {
23189 test -z "$ac_c_werror_flag" ||
23190 test ! -s conftest.err
23191 } && test -s conftest.$ac_objext; then
23192 ac_cv_member_struct_stat_st_blksize=yes
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 ac_cv_member_struct_stat_st_blksize=no
23200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
23206 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
23207 if test $ac_cv_member_struct_stat_st_blksize = yes; then
23209 cat >>confdefs.h <<_ACEOF
23210 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23216 { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
23217 echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
23218 if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
23219 echo $ECHO_N "(cached) $ECHO_C" >&6
23221 cat >conftest.$ac_ext <<_ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h. */
23229 #if HAVE_SYS_TYPES_H
23230 # include <sys/types.h>
23232 #include <netinet/in.h>
23233 #include <arpa/nameser.h>
23234 #include <resolv.h>
23240 static struct __res_state ac_aggr;
23241 if (ac_aggr.retrans)
23247 rm -f conftest.$ac_objext
23248 if { (ac_try="$ac_compile"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23254 (eval "$ac_compile") 2>conftest.er1
23256 grep -v '^ *+' conftest.er1 >conftest.err
23258 cat conftest.err >&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } && {
23261 test -z "$ac_c_werror_flag" ||
23262 test ! -s conftest.err
23263 } && test -s conftest.$ac_objext; then
23264 ac_cv_member_struct___res_state_retrans=yes
23266 echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23269 cat >conftest.$ac_ext <<_ACEOF
23272 cat confdefs.h >>conftest.$ac_ext
23273 cat >>conftest.$ac_ext <<_ACEOF
23274 /* end confdefs.h. */
23277 #if HAVE_SYS_TYPES_H
23278 # include <sys/types.h>
23280 #include <netinet/in.h>
23281 #include <arpa/nameser.h>
23282 #include <resolv.h>
23288 static struct __res_state ac_aggr;
23289 if (sizeof ac_aggr.retrans)
23295 rm -f conftest.$ac_objext
23296 if { (ac_try="$ac_compile"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_compile") 2>conftest.er1
23304 grep -v '^ *+' conftest.er1 >conftest.err
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest.$ac_objext; then
23312 ac_cv_member_struct___res_state_retrans=yes
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23317 ac_cv_member_struct___res_state_retrans=no
23320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23325 { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
23326 echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
23327 if test $ac_cv_member_struct___res_state_retrans = yes; then
23331 cat >>confdefs.h <<\_ACEOF
23332 #define __res_state state
23338 { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
23339 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23340 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23344 cat >conftest.$ac_ext <<_ACEOF
23347 cat confdefs.h >>conftest.$ac_ext
23348 cat >>conftest.$ac_ext <<_ACEOF
23349 /* end confdefs.h. */
23351 #include <sys/types.h>
23352 #include <sys/socket.h>
23357 struct sockaddr_storage s; s.ss_family = 1;
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_compile") 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest.$ac_objext; then
23379 ac_cv_have_ss_family_in_struct_ss="yes"
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ac_cv_have_ss_family_in_struct_ss="no"
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
23391 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
23392 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
23394 cat >>confdefs.h <<\_ACEOF
23395 #define HAVE_SS_FAMILY_IN_SS 1
23400 { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
23401 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
23402 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
23403 echo $ECHO_N "(cached) $ECHO_C" >&6
23406 cat >conftest.$ac_ext <<_ACEOF
23409 cat confdefs.h >>conftest.$ac_ext
23410 cat >>conftest.$ac_ext <<_ACEOF
23411 /* end confdefs.h. */
23413 #include <sys/types.h>
23414 #include <sys/socket.h>
23419 struct sockaddr_storage s; s.__ss_family = 1;
23424 rm -f conftest.$ac_objext
23425 if { (ac_try="$ac_compile"
23426 case "(($ac_try" in
23427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431 (eval "$ac_compile") 2>conftest.er1
23433 grep -v '^ *+' conftest.er1 >conftest.err
23435 cat conftest.err >&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } && {
23438 test -z "$ac_c_werror_flag" ||
23439 test ! -s conftest.err
23440 } && test -s conftest.$ac_objext; then
23441 ac_cv_have___ss_family_in_struct_ss="yes"
23443 echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23446 ac_cv_have___ss_family_in_struct_ss="no"
23450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23453 { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
23454 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
23455 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
23457 cat >>confdefs.h <<\_ACEOF
23458 #define HAVE___SS_FAMILY_IN_SS 1
23463 { echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
23464 echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
23465 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
23466 echo $ECHO_N "(cached) $ECHO_C" >&6
23469 cat >conftest.$ac_ext <<_ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h. */
23481 struct passwd p; p.pw_class = 0;
23486 rm -f conftest.$ac_objext
23487 if { (ac_try="$ac_compile"
23488 case "(($ac_try" in
23489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490 *) ac_try_echo=$ac_try;;
23492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493 (eval "$ac_compile") 2>conftest.er1
23495 grep -v '^ *+' conftest.er1 >conftest.err
23497 cat conftest.err >&5
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); } && {
23500 test -z "$ac_c_werror_flag" ||
23501 test ! -s conftest.err
23502 } && test -s conftest.$ac_objext; then
23503 ac_cv_have_pw_class_in_struct_passwd="yes"
23505 echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23508 ac_cv_have_pw_class_in_struct_passwd="no"
23512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23515 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
23516 echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
23517 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
23519 cat >>confdefs.h <<\_ACEOF
23520 #define HAVE_PW_CLASS_IN_PASSWD 1
23525 { echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
23526 echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
23527 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
23528 echo $ECHO_N "(cached) $ECHO_C" >&6
23531 cat >conftest.$ac_ext <<_ACEOF
23534 cat confdefs.h >>conftest.$ac_ext
23535 cat >>conftest.$ac_ext <<_ACEOF
23536 /* end confdefs.h. */
23543 struct passwd p; p.pw_expire = 0;
23548 rm -f conftest.$ac_objext
23549 if { (ac_try="$ac_compile"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23555 (eval "$ac_compile") 2>conftest.er1
23557 grep -v '^ *+' conftest.er1 >conftest.err
23559 cat conftest.err >&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } && {
23562 test -z "$ac_c_werror_flag" ||
23563 test ! -s conftest.err
23564 } && test -s conftest.$ac_objext; then
23565 ac_cv_have_pw_expire_in_struct_passwd="yes"
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23570 ac_cv_have_pw_expire_in_struct_passwd="no"
23574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23577 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
23578 echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
23579 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
23581 cat >>confdefs.h <<\_ACEOF
23582 #define HAVE_PW_EXPIRE_IN_PASSWD 1
23587 { echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
23588 echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
23589 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
23590 echo $ECHO_N "(cached) $ECHO_C" >&6
23593 cat >conftest.$ac_ext <<_ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h. */
23605 struct passwd p; p.pw_change = 0;
23610 rm -f conftest.$ac_objext
23611 if { (ac_try="$ac_compile"
23612 case "(($ac_try" in
23613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614 *) ac_try_echo=$ac_try;;
23616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23617 (eval "$ac_compile") 2>conftest.er1
23619 grep -v '^ *+' conftest.er1 >conftest.err
23621 cat conftest.err >&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } && {
23624 test -z "$ac_c_werror_flag" ||
23625 test ! -s conftest.err
23626 } && test -s conftest.$ac_objext; then
23627 ac_cv_have_pw_change_in_struct_passwd="yes"
23629 echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23632 ac_cv_have_pw_change_in_struct_passwd="no"
23636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23639 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
23640 echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
23641 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
23643 cat >>confdefs.h <<\_ACEOF
23644 #define HAVE_PW_CHANGE_IN_PASSWD 1
23649 { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
23650 echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
23651 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
23652 echo $ECHO_N "(cached) $ECHO_C" >&6
23655 cat >conftest.$ac_ext <<_ACEOF
23657 #include <sys/types.h>
23658 #include <sys/socket.h>
23659 #include <sys/uio.h>
23661 #ifdef msg_accrights
23662 #error "msg_accrights is a macro"
23666 m.msg_accrights = 0;
23671 rm -f conftest.$ac_objext
23672 if { (ac_try="$ac_compile"
23673 case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23678 (eval "$ac_compile") 2>conftest.er1
23680 grep -v '^ *+' conftest.er1 >conftest.err
23682 cat conftest.err >&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } && {
23685 test -z "$ac_c_werror_flag" ||
23686 test ! -s conftest.err
23687 } && test -s conftest.$ac_objext; then
23688 ac_cv_have_accrights_in_msghdr="yes"
23690 echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23693 ac_cv_have_accrights_in_msghdr="no"
23697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23700 { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
23701 echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
23702 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
23704 cat >>confdefs.h <<\_ACEOF
23705 #define HAVE_ACCRIGHTS_IN_MSGHDR 1
23710 { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
23711 echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
23712 if test "${ac_cv_have_control_in_msghdr+set}" = set; then
23713 echo $ECHO_N "(cached) $ECHO_C" >&6
23716 cat >conftest.$ac_ext <<_ACEOF
23718 #include <sys/types.h>
23719 #include <sys/socket.h>
23720 #include <sys/uio.h>
23723 #error "msg_control is a macro"
23732 rm -f conftest.$ac_objext
23733 if { (ac_try="$ac_compile"
23734 case "(($ac_try" in
23735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736 *) ac_try_echo=$ac_try;;
23738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739 (eval "$ac_compile") 2>conftest.er1
23741 grep -v '^ *+' conftest.er1 >conftest.err
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } && {
23746 test -z "$ac_c_werror_flag" ||
23747 test ! -s conftest.err
23748 } && test -s conftest.$ac_objext; then
23749 ac_cv_have_control_in_msghdr="yes"
23751 echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23754 ac_cv_have_control_in_msghdr="no"
23758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761 { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
23762 echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
23763 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
23765 cat >>confdefs.h <<\_ACEOF
23766 #define HAVE_CONTROL_IN_MSGHDR 1
23771 { echo "$as_me:$LINENO: checking if libc defines __progname" >&5
23772 echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
23773 if test "${ac_cv_libc_defines___progname+set}" = set; then
23774 echo $ECHO_N "(cached) $ECHO_C" >&6
23777 cat >conftest.$ac_ext <<_ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23787 extern char *__progname; printf("%s", __progname);
23792 rm -f conftest.$ac_objext conftest$ac_exeext
23793 if { (ac_try="$ac_link"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_link") 2>conftest.er1
23801 grep -v '^ *+' conftest.er1 >conftest.err
23803 cat conftest.err >&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } && {
23806 test -z "$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 } && test -s conftest$ac_exeext &&
23809 $as_test_x conftest$ac_exeext; then
23810 ac_cv_libc_defines___progname="yes"
23812 echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23815 ac_cv_libc_defines___progname="no"
23819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23820 conftest$ac_exeext conftest.$ac_ext
23823 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
23824 echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
23825 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
23827 cat >>confdefs.h <<\_ACEOF
23828 #define HAVE___PROGNAME 1
23833 { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
23834 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
23835 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
23836 echo $ECHO_N "(cached) $ECHO_C" >&6
23839 cat >conftest.$ac_ext <<_ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h. */
23851 printf("%s", __FUNCTION__);
23856 rm -f conftest.$ac_objext conftest$ac_exeext
23857 if { (ac_try="$ac_link"
23858 case "(($ac_try" in
23859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860 *) ac_try_echo=$ac_try;;
23862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23863 (eval "$ac_link") 2>conftest.er1
23865 grep -v '^ *+' conftest.er1 >conftest.err
23867 cat conftest.err >&5
23868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869 (exit $ac_status); } && {
23870 test -z "$ac_c_werror_flag" ||
23871 test ! -s conftest.err
23872 } && test -s conftest$ac_exeext &&
23873 $as_test_x conftest$ac_exeext; then
23874 ac_cv_cc_implements___FUNCTION__="yes"
23876 echo "$as_me: failed program was:" >&5
23877 sed 's/^/| /' conftest.$ac_ext >&5
23879 ac_cv_cc_implements___FUNCTION__="no"
23883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23884 conftest$ac_exeext conftest.$ac_ext
23887 { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
23888 echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
23889 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
23891 cat >>confdefs.h <<\_ACEOF
23892 #define HAVE___FUNCTION__ 1
23897 { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
23898 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
23899 if test "${ac_cv_cc_implements___func__+set}" = set; then
23900 echo $ECHO_N "(cached) $ECHO_C" >&6
23903 cat >conftest.$ac_ext <<_ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h. */
23915 printf("%s", __func__);
23920 rm -f conftest.$ac_objext conftest$ac_exeext
23921 if { (ac_try="$ac_link"
23922 case "(($ac_try" in
23923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23924 *) ac_try_echo=$ac_try;;
23926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23927 (eval "$ac_link") 2>conftest.er1
23929 grep -v '^ *+' conftest.er1 >conftest.err
23931 cat conftest.err >&5
23932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); } && {
23934 test -z "$ac_c_werror_flag" ||
23935 test ! -s conftest.err
23936 } && test -s conftest$ac_exeext &&
23937 $as_test_x conftest$ac_exeext; then
23938 ac_cv_cc_implements___func__="yes"
23940 echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23943 ac_cv_cc_implements___func__="no"
23947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23948 conftest$ac_exeext conftest.$ac_ext
23951 { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
23952 echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
23953 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
23955 cat >>confdefs.h <<\_ACEOF
23956 #define HAVE___func__ 1
23961 { echo "$as_me:$LINENO: checking whether va_copy exists" >&5
23962 echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
23963 if test "${ac_cv_have_va_copy+set}" = set; then
23964 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 <stdarg.h>
23983 rm -f conftest.$ac_objext conftest$ac_exeext
23984 if { (ac_try="$ac_link"
23985 case "(($ac_try" in
23986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987 *) ac_try_echo=$ac_try;;
23989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23990 (eval "$ac_link") 2>conftest.er1
23992 grep -v '^ *+' conftest.er1 >conftest.err
23994 cat conftest.err >&5
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); } && {
23997 test -z "$ac_c_werror_flag" ||
23998 test ! -s conftest.err
23999 } && test -s conftest$ac_exeext &&
24000 $as_test_x conftest$ac_exeext; then
24001 ac_cv_have_va_copy="yes"
24003 echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24006 ac_cv_have_va_copy="no"
24010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24011 conftest$ac_exeext conftest.$ac_ext
24014 { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
24015 echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
24016 if test "x$ac_cv_have_va_copy" = "xyes" ; then
24018 cat >>confdefs.h <<\_ACEOF
24019 #define HAVE_VA_COPY 1
24024 { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
24025 echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
24026 if test "${ac_cv_have___va_copy+set}" = set; then
24027 echo $ECHO_N "(cached) $ECHO_C" >&6
24030 cat >conftest.$ac_ext <<_ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 #include <stdarg.h>
24046 rm -f conftest.$ac_objext conftest$ac_exeext
24047 if { (ac_try="$ac_link"
24048 case "(($ac_try" in
24049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050 *) ac_try_echo=$ac_try;;
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053 (eval "$ac_link") 2>conftest.er1
24055 grep -v '^ *+' conftest.er1 >conftest.err
24057 cat conftest.err >&5
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); } && {
24060 test -z "$ac_c_werror_flag" ||
24061 test ! -s conftest.err
24062 } && test -s conftest$ac_exeext &&
24063 $as_test_x conftest$ac_exeext; then
24064 ac_cv_have___va_copy="yes"
24066 echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24069 ac_cv_have___va_copy="no"
24073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24074 conftest$ac_exeext conftest.$ac_ext
24077 { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
24078 echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
24079 if test "x$ac_cv_have___va_copy" = "xyes" ; then
24081 cat >>confdefs.h <<\_ACEOF
24082 #define HAVE___VA_COPY 1
24087 { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
24088 echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
24089 if test "${ac_cv_have_getopt_optreset+set}" = set; then
24090 echo $ECHO_N "(cached) $ECHO_C" >&6
24093 cat >conftest.$ac_ext <<_ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h. */
24100 #include <getopt.h>
24105 extern int optreset; optreset = 0;
24110 rm -f conftest.$ac_objext conftest$ac_exeext
24111 if { (ac_try="$ac_link"
24112 case "(($ac_try" in
24113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114 *) ac_try_echo=$ac_try;;
24116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24117 (eval "$ac_link") 2>conftest.er1
24119 grep -v '^ *+' conftest.er1 >conftest.err
24121 cat conftest.err >&5
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); } && {
24124 test -z "$ac_c_werror_flag" ||
24125 test ! -s conftest.err
24126 } && test -s conftest$ac_exeext &&
24127 $as_test_x conftest$ac_exeext; then
24128 ac_cv_have_getopt_optreset="yes"
24130 echo "$as_me: failed program was:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24133 ac_cv_have_getopt_optreset="no"
24137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24138 conftest$ac_exeext conftest.$ac_ext
24141 { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
24142 echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
24143 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
24145 cat >>confdefs.h <<\_ACEOF
24146 #define HAVE_GETOPT_OPTRESET 1
24151 { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
24152 echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
24153 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24157 cat >conftest.$ac_ext <<_ACEOF
24160 cat confdefs.h >>conftest.$ac_ext
24161 cat >>conftest.$ac_ext <<_ACEOF
24162 /* end confdefs.h. */
24167 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
24172 rm -f conftest.$ac_objext conftest$ac_exeext
24173 if { (ac_try="$ac_link"
24174 case "(($ac_try" in
24175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176 *) ac_try_echo=$ac_try;;
24178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24179 (eval "$ac_link") 2>conftest.er1
24181 grep -v '^ *+' conftest.er1 >conftest.err
24183 cat conftest.err >&5
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); } && {
24186 test -z "$ac_c_werror_flag" ||
24187 test ! -s conftest.err
24188 } && test -s conftest$ac_exeext &&
24189 $as_test_x conftest$ac_exeext; then
24190 ac_cv_libc_defines_sys_errlist="yes"
24192 echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24195 ac_cv_libc_defines_sys_errlist="no"
24199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24200 conftest$ac_exeext conftest.$ac_ext
24203 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
24204 echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
24205 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
24207 cat >>confdefs.h <<\_ACEOF
24208 #define HAVE_SYS_ERRLIST 1
24214 { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
24215 echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
24216 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
24217 echo $ECHO_N "(cached) $ECHO_C" >&6
24220 cat >conftest.$ac_ext <<_ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h. */
24230 extern int sys_nerr; printf("%i", sys_nerr);
24235 rm -f conftest.$ac_objext conftest$ac_exeext
24236 if { (ac_try="$ac_link"
24237 case "(($ac_try" in
24238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24239 *) ac_try_echo=$ac_try;;
24241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24242 (eval "$ac_link") 2>conftest.er1
24244 grep -v '^ *+' conftest.er1 >conftest.err
24246 cat conftest.err >&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } && {
24249 test -z "$ac_c_werror_flag" ||
24250 test ! -s conftest.err
24251 } && test -s conftest$ac_exeext &&
24252 $as_test_x conftest$ac_exeext; then
24253 ac_cv_libc_defines_sys_nerr="yes"
24255 echo "$as_me: failed program was:" >&5
24256 sed 's/^/| /' conftest.$ac_ext >&5
24258 ac_cv_libc_defines_sys_nerr="no"
24262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24263 conftest$ac_exeext conftest.$ac_ext
24266 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
24267 echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
24268 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
24270 cat >>confdefs.h <<\_ACEOF
24271 #define HAVE_SYS_NERR 1
24277 # Check whether user wants sectok support
24279 # Check whether --with-sectok was given.
24280 if test "${with_sectok+set}" = set; then
24281 withval=$with_sectok;
24282 if test "x$withval" != "xno" ; then
24283 if test "x$withval" != "xyes" ; then
24284 CPPFLAGS="$CPPFLAGS -I${withval}"
24285 LDFLAGS="$LDFLAGS -L${withval}"
24286 if test ! -z "$need_dash_r" ; then
24287 LDFLAGS="$LDFLAGS -R${withval}"
24289 if test ! -z "$blibpath" ; then
24290 blibpath="$blibpath:${withval}"
24294 for ac_header in sectok.h
24296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 ac_res=`eval echo '${'$as_ac_Header'}'`
24304 { echo "$as_me:$LINENO: result: $ac_res" >&5
24305 echo "${ECHO_T}$ac_res" >&6; }
24307 # Is the header compilable?
24308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24310 cat >conftest.$ac_ext <<_ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h. */
24316 $ac_includes_default
24317 #include <$ac_header>
24319 rm -f conftest.$ac_objext
24320 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24328 grep -v '^ *+' conftest.er1 >conftest.err
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } && {
24333 test -z "$ac_c_werror_flag" ||
24334 test ! -s conftest.err
24335 } && test -s conftest.$ac_objext; then
24336 ac_header_compiler=yes
24338 echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24341 ac_header_compiler=no
24344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24346 echo "${ECHO_T}$ac_header_compiler" >&6; }
24348 # Is the header present?
24349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24351 cat >conftest.$ac_ext <<_ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h. */
24357 #include <$ac_header>
24359 if { (ac_try="$ac_cpp conftest.$ac_ext"
24360 case "(($ac_try" in
24361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362 *) ac_try_echo=$ac_try;;
24364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24367 grep -v '^ *+' conftest.er1 >conftest.err
24369 cat conftest.err >&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } >/dev/null && {
24372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24373 test ! -s conftest.err
24375 ac_header_preproc=yes
24377 echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 ac_header_preproc=no
24383 rm -f conftest.err conftest.$ac_ext
24384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24385 echo "${ECHO_T}$ac_header_preproc" >&6; }
24387 # So? What about this header?
24388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24394 ac_header_preproc=yes
24397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24410 ## ------------------------------------------- ##
24411 ## Report this to openssh-unix-dev@mindrot.org ##
24412 ## ------------------------------------------- ##
24414 ) | sed "s/^/$as_me: WARNING: /" >&2
24417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24422 eval "$as_ac_Header=\$ac_header_preproc"
24424 ac_res=`eval echo '${'$as_ac_Header'}'`
24425 { echo "$as_me:$LINENO: result: $ac_res" >&5
24426 echo "${ECHO_T}$ac_res" >&6; }
24429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24430 cat >>confdefs.h <<_ACEOF
24431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24438 if test "$ac_cv_header_sectok_h" != yes; then
24439 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
24440 echo "$as_me: error: Can't find sectok.h" >&2;}
24441 { (exit 1); exit 1; }; }
24444 { echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
24445 echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; }
24446 if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24449 ac_check_lib_save_LIBS=$LIBS
24450 LIBS="-lsectok $LIBS"
24451 cat >conftest.$ac_ext <<_ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h. */
24458 /* Override any GCC internal prototype to avoid an error.
24459 Use char because int might match the return type of a GCC
24460 builtin and then its argument prototype would still apply. */
24464 char sectok_open ();
24468 return sectok_open ();
24473 rm -f conftest.$ac_objext conftest$ac_exeext
24474 if { (ac_try="$ac_link"
24475 case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480 (eval "$ac_link") 2>conftest.er1
24482 grep -v '^ *+' conftest.er1 >conftest.err
24484 cat conftest.err >&5
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); } && {
24487 test -z "$ac_c_werror_flag" ||
24488 test ! -s conftest.err
24489 } && test -s conftest$ac_exeext &&
24490 $as_test_x conftest$ac_exeext; then
24491 ac_cv_lib_sectok_sectok_open=yes
24493 echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24496 ac_cv_lib_sectok_sectok_open=no
24499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24500 conftest$ac_exeext conftest.$ac_ext
24501 LIBS=$ac_check_lib_save_LIBS
24503 { echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
24504 echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; }
24505 if test $ac_cv_lib_sectok_sectok_open = yes; then
24506 cat >>confdefs.h <<_ACEOF
24507 #define HAVE_LIBSECTOK 1
24510 LIBS="-lsectok $LIBS"
24514 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
24515 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
24516 echo "$as_me: error: Can't find libsectok" >&2;}
24517 { (exit 1); exit 1; }; }
24520 cat >>confdefs.h <<\_ACEOF
24521 #define SMARTCARD 1
24525 cat >>confdefs.h <<\_ACEOF
24526 #define USE_SECTOK 1
24529 SCARD_MSG="yes, using sectok"
24536 # Check whether user wants OpenSC support
24539 # Check whether --with-opensc was given.
24540 if test "${with_opensc+set}" = set; then
24541 withval=$with_opensc;
24542 if test "x$withval" != "xno" ; then
24543 if test "x$withval" != "xyes" ; then
24544 OPENSC_CONFIG=$withval/bin/opensc-config
24546 # Extract the first word of "opensc-config", so it can be a program name with args.
24547 set dummy opensc-config; ac_word=$2
24548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24550 if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
24551 echo $ECHO_N "(cached) $ECHO_C" >&6
24553 case $OPENSC_CONFIG in
24555 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
24558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24559 for as_dir in $PATH
24562 test -z "$as_dir" && as_dir=.
24563 for ac_exec_ext in '' $ac_executable_extensions; do
24564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24565 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24573 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
24577 OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
24578 if test -n "$OPENSC_CONFIG"; then
24579 { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
24580 echo "${ECHO_T}$OPENSC_CONFIG" >&6; }
24582 { echo "$as_me:$LINENO: result: no" >&5
24583 echo "${ECHO_T}no" >&6; }
24588 if test "$OPENSC_CONFIG" != "no"; then
24589 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
24590 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
24591 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
24592 LIBS="$LIBS $LIBOPENSC_LIBS"
24593 cat >>confdefs.h <<\_ACEOF
24594 #define SMARTCARD 1
24598 cat >>confdefs.h <<\_ACEOF
24599 #define USE_OPENSC 1
24602 SCARD_MSG="yes, using OpenSC"
24610 # Check libraries needed by DNS fingerprint support
24611 { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
24612 echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
24613 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24616 ac_func_search_save_LIBS=$LIBS
24617 cat >conftest.$ac_ext <<_ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h. */
24624 /* Override any GCC internal prototype to avoid an error.
24625 Use char because int might match the return type of a GCC
24626 builtin and then its argument prototype would still apply. */
24630 char getrrsetbyname ();
24634 return getrrsetbyname ();
24639 for ac_lib in '' resolv; do
24640 if test -z "$ac_lib"; then
24641 ac_res="none required"
24644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24646 rm -f conftest.$ac_objext conftest$ac_exeext
24647 if { (ac_try="$ac_link"
24648 case "(($ac_try" in
24649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24650 *) ac_try_echo=$ac_try;;
24652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24653 (eval "$ac_link") 2>conftest.er1
24655 grep -v '^ *+' conftest.er1 >conftest.err
24657 cat conftest.err >&5
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); } && {
24660 test -z "$ac_c_werror_flag" ||
24661 test ! -s conftest.err
24662 } && test -s conftest$ac_exeext &&
24663 $as_test_x conftest$ac_exeext; then
24664 ac_cv_search_getrrsetbyname=$ac_res
24666 echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24674 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
24678 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
24681 ac_cv_search_getrrsetbyname=no
24683 rm conftest.$ac_ext
24684 LIBS=$ac_func_search_save_LIBS
24686 { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
24687 echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
24688 ac_res=$ac_cv_search_getrrsetbyname
24689 if test "$ac_res" != no; then
24690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24692 cat >>confdefs.h <<\_ACEOF
24693 #define HAVE_GETRRSETBYNAME 1
24698 # Needed by our getrrsetbyname()
24699 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
24700 echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
24701 if test "${ac_cv_search_res_query+set}" = set; then
24702 echo $ECHO_N "(cached) $ECHO_C" >&6
24704 ac_func_search_save_LIBS=$LIBS
24705 cat >conftest.$ac_ext <<_ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h. */
24712 /* Override any GCC internal prototype to avoid an error.
24713 Use char because int might match the return type of a GCC
24714 builtin and then its argument prototype would still apply. */
24722 return res_query ();
24727 for ac_lib in '' resolv; do
24728 if test -z "$ac_lib"; then
24729 ac_res="none required"
24732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24734 rm -f conftest.$ac_objext conftest$ac_exeext
24735 if { (ac_try="$ac_link"
24736 case "(($ac_try" in
24737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738 *) ac_try_echo=$ac_try;;
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741 (eval "$ac_link") 2>conftest.er1
24743 grep -v '^ *+' conftest.er1 >conftest.err
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } && {
24748 test -z "$ac_c_werror_flag" ||
24749 test ! -s conftest.err
24750 } && test -s conftest$ac_exeext &&
24751 $as_test_x conftest$ac_exeext; then
24752 ac_cv_search_res_query=$ac_res
24754 echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24762 if test "${ac_cv_search_res_query+set}" = set; then
24766 if test "${ac_cv_search_res_query+set}" = set; then
24769 ac_cv_search_res_query=no
24771 rm conftest.$ac_ext
24772 LIBS=$ac_func_search_save_LIBS
24774 { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
24775 echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
24776 ac_res=$ac_cv_search_res_query
24777 if test "$ac_res" != no; then
24778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24782 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
24783 echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
24784 if test "${ac_cv_search_dn_expand+set}" = set; then
24785 echo $ECHO_N "(cached) $ECHO_C" >&6
24787 ac_func_search_save_LIBS=$LIBS
24788 cat >conftest.$ac_ext <<_ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24795 /* Override any GCC internal prototype to avoid an error.
24796 Use char because int might match the return type of a GCC
24797 builtin and then its argument prototype would still apply. */
24805 return dn_expand ();
24810 for ac_lib in '' resolv; do
24811 if test -z "$ac_lib"; then
24812 ac_res="none required"
24815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24817 rm -f conftest.$ac_objext conftest$ac_exeext
24818 if { (ac_try="$ac_link"
24819 case "(($ac_try" in
24820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24821 *) ac_try_echo=$ac_try;;
24823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24824 (eval "$ac_link") 2>conftest.er1
24826 grep -v '^ *+' conftest.er1 >conftest.err
24828 cat conftest.err >&5
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); } && {
24831 test -z "$ac_c_werror_flag" ||
24832 test ! -s conftest.err
24833 } && test -s conftest$ac_exeext &&
24834 $as_test_x conftest$ac_exeext; then
24835 ac_cv_search_dn_expand=$ac_res
24837 echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24845 if test "${ac_cv_search_dn_expand+set}" = set; then
24849 if test "${ac_cv_search_dn_expand+set}" = set; then
24852 ac_cv_search_dn_expand=no
24854 rm conftest.$ac_ext
24855 LIBS=$ac_func_search_save_LIBS
24857 { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
24858 echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
24859 ac_res=$ac_cv_search_dn_expand
24860 if test "$ac_res" != no; then
24861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24865 { echo "$as_me:$LINENO: checking if res_query will link" >&5
24866 echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
24867 cat >conftest.$ac_ext <<_ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h. */
24874 /* Override any GCC internal prototype to avoid an error.
24875 Use char because int might match the return type of a GCC
24876 builtin and then its argument prototype would still apply. */
24884 return res_query ();
24889 rm -f conftest.$ac_objext conftest$ac_exeext
24890 if { (ac_try="$ac_link"
24891 case "(($ac_try" in
24892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24893 *) ac_try_echo=$ac_try;;
24895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24896 (eval "$ac_link") 2>conftest.er1
24898 grep -v '^ *+' conftest.er1 >conftest.err
24900 cat conftest.err >&5
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); } && {
24903 test -z "$ac_c_werror_flag" ||
24904 test ! -s conftest.err
24905 } && test -s conftest$ac_exeext &&
24906 $as_test_x conftest$ac_exeext; then
24907 { echo "$as_me:$LINENO: result: yes" >&5
24908 echo "${ECHO_T}yes" >&6; }
24910 echo "$as_me: failed program was:" >&5
24911 sed 's/^/| /' conftest.$ac_ext >&5
24913 { echo "$as_me:$LINENO: result: no" >&5
24914 echo "${ECHO_T}no" >&6; }
24916 LIBS="$LIBS -lresolv"
24917 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
24918 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
24919 cat >conftest.$ac_ext <<_ACEOF
24921 #include <resolv.h>
24924 res_query (0, 0, 0, 0, 0);
24929 rm -f conftest.$ac_objext conftest$ac_exeext
24930 if { (ac_try="$ac_link"
24931 case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_link") 2>conftest.er1
24938 grep -v '^ *+' conftest.er1 >conftest.err
24940 cat conftest.err >&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } && {
24943 test -z "$ac_c_werror_flag" ||
24944 test ! -s conftest.err
24945 } && test -s conftest$ac_exeext &&
24946 $as_test_x conftest$ac_exeext; then
24947 LIBS="$LIBS -lresolv"
24948 { echo "$as_me:$LINENO: result: yes" >&5
24949 echo "${ECHO_T}yes" >&6; }
24951 echo "$as_me: failed program was:" >&5
24952 sed 's/^/| /' conftest.$ac_ext >&5
24955 { echo "$as_me:$LINENO: result: no" >&5
24956 echo "${ECHO_T}no" >&6; }
24959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24960 conftest$ac_exeext conftest.$ac_ext
24964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24965 conftest$ac_exeext conftest.$ac_ext
24968 for ac_func in _getshort _getlong
24970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24974 echo $ECHO_N "(cached) $ECHO_C" >&6
24976 cat >conftest.$ac_ext <<_ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h. */
24982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24984 #define $ac_func innocuous_$ac_func
24986 /* System header to define __stub macros and hopefully few prototypes,
24987 which can conflict with char $ac_func (); below.
24988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24989 <limits.h> exists even on freestanding compilers. */
24992 # include <limits.h>
24994 # include <assert.h>
24999 /* Override any GCC internal prototype to avoid an error.
25000 Use char because int might match the return type of a GCC
25001 builtin and then its argument prototype would still apply. */
25006 /* The GNU C library defines this for functions which it implements
25007 to always fail with ENOSYS. Some functions are actually named
25008 something starting with __ and the normal name is an alias. */
25009 #if defined __stub_$ac_func || defined __stub___$ac_func
25016 return $ac_func ();
25021 rm -f conftest.$ac_objext conftest$ac_exeext
25022 if { (ac_try="$ac_link"
25023 case "(($ac_try" in
25024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25025 *) ac_try_echo=$ac_try;;
25027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25028 (eval "$ac_link") 2>conftest.er1
25030 grep -v '^ *+' conftest.er1 >conftest.err
25032 cat conftest.err >&5
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); } && {
25035 test -z "$ac_c_werror_flag" ||
25036 test ! -s conftest.err
25037 } && test -s conftest$ac_exeext &&
25038 $as_test_x conftest$ac_exeext; then
25039 eval "$as_ac_var=yes"
25041 echo "$as_me: failed program was:" >&5
25042 sed 's/^/| /' conftest.$ac_ext >&5
25044 eval "$as_ac_var=no"
25047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25048 conftest$ac_exeext conftest.$ac_ext
25050 ac_res=`eval echo '${'$as_ac_var'}'`
25051 { echo "$as_me:$LINENO: result: $ac_res" >&5
25052 echo "${ECHO_T}$ac_res" >&6; }
25053 if test `eval echo '${'$as_ac_var'}'` = yes; then
25054 cat >>confdefs.h <<_ACEOF
25055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25061 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
25062 echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
25063 if test "${ac_cv_have_decl__getshort+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25066 cat >conftest.$ac_ext <<_ACEOF
25069 cat confdefs.h >>conftest.$ac_ext
25070 cat >>conftest.$ac_ext <<_ACEOF
25071 /* end confdefs.h. */
25072 #include <sys/types.h>
25073 #include <arpa/nameser.h>
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 test -z "$ac_c_werror_flag" ||
25101 test ! -s conftest.err
25102 } && test -s conftest.$ac_objext; then
25103 ac_cv_have_decl__getshort=yes
25105 echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25108 ac_cv_have_decl__getshort=no
25111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
25114 echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
25115 if test $ac_cv_have_decl__getshort = yes; then
25117 cat >>confdefs.h <<_ACEOF
25118 #define HAVE_DECL__GETSHORT 1
25123 cat >>confdefs.h <<_ACEOF
25124 #define HAVE_DECL__GETSHORT 0
25129 { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
25130 echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
25131 if test "${ac_cv_have_decl__getlong+set}" = set; then
25132 echo $ECHO_N "(cached) $ECHO_C" >&6
25134 cat >conftest.$ac_ext <<_ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h. */
25140 #include <sys/types.h>
25141 #include <arpa/nameser.h>
25154 rm -f conftest.$ac_objext
25155 if { (ac_try="$ac_compile"
25156 case "(($ac_try" in
25157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158 *) ac_try_echo=$ac_try;;
25160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25161 (eval "$ac_compile") 2>conftest.er1
25163 grep -v '^ *+' conftest.er1 >conftest.err
25165 cat conftest.err >&5
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); } && {
25168 test -z "$ac_c_werror_flag" ||
25169 test ! -s conftest.err
25170 } && test -s conftest.$ac_objext; then
25171 ac_cv_have_decl__getlong=yes
25173 echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25176 ac_cv_have_decl__getlong=no
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
25182 echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
25183 if test $ac_cv_have_decl__getlong = yes; then
25185 cat >>confdefs.h <<_ACEOF
25186 #define HAVE_DECL__GETLONG 1
25191 cat >>confdefs.h <<_ACEOF
25192 #define HAVE_DECL__GETLONG 0
25199 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
25200 echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
25201 if test "${ac_cv_member_HEADER_ad+set}" = set; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25204 cat >conftest.$ac_ext <<_ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h. */
25210 #include <arpa/nameser.h>
25215 static HEADER ac_aggr;
25222 rm -f conftest.$ac_objext
25223 if { (ac_try="$ac_compile"
25224 case "(($ac_try" in
25225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226 *) ac_try_echo=$ac_try;;
25228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25229 (eval "$ac_compile") 2>conftest.er1
25231 grep -v '^ *+' conftest.er1 >conftest.err
25233 cat conftest.err >&5
25234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); } && {
25236 test -z "$ac_c_werror_flag" ||
25237 test ! -s conftest.err
25238 } && test -s conftest.$ac_objext; then
25239 ac_cv_member_HEADER_ad=yes
25241 echo "$as_me: failed program was:" >&5
25242 sed 's/^/| /' conftest.$ac_ext >&5
25244 cat >conftest.$ac_ext <<_ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25250 #include <arpa/nameser.h>
25255 static HEADER ac_aggr;
25256 if (sizeof ac_aggr.ad)
25262 rm -f conftest.$ac_objext
25263 if { (ac_try="$ac_compile"
25264 case "(($ac_try" in
25265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266 *) ac_try_echo=$ac_try;;
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269 (eval "$ac_compile") 2>conftest.er1
25271 grep -v '^ *+' conftest.er1 >conftest.err
25273 cat conftest.err >&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); } && {
25276 test -z "$ac_c_werror_flag" ||
25277 test ! -s conftest.err
25278 } && test -s conftest.$ac_objext; then
25279 ac_cv_member_HEADER_ad=yes
25281 echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25284 ac_cv_member_HEADER_ad=no
25287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25292 { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
25293 echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
25294 if test $ac_cv_member_HEADER_ad = yes; then
25296 cat >>confdefs.h <<\_ACEOF
25297 #define HAVE_HEADER_AD 1
25306 { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
25307 echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
25308 cat >conftest.$ac_ext <<_ACEOF
25311 #if HAVE_SYS_TYPES_H
25312 # include <sys/types.h>
25314 #include <netinet/in.h>
25315 #include <arpa/nameser.h>
25316 #include <resolv.h>
25317 extern struct __res_state _res;
25318 int main() { return 0; }
25321 rm -f conftest.$ac_objext conftest$ac_exeext
25322 if { (ac_try="$ac_link"
25323 case "(($ac_try" in
25324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25325 *) ac_try_echo=$ac_try;;
25327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25328 (eval "$ac_link") 2>conftest.er1
25330 grep -v '^ *+' conftest.er1 >conftest.err
25332 cat conftest.err >&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); } && {
25335 test -z "$ac_c_werror_flag" ||
25336 test ! -s conftest.err
25337 } && test -s conftest$ac_exeext &&
25338 $as_test_x conftest$ac_exeext; then
25339 { echo "$as_me:$LINENO: result: yes" >&5
25340 echo "${ECHO_T}yes" >&6; }
25342 cat >>confdefs.h <<\_ACEOF
25343 #define HAVE__RES_EXTERN 1
25348 echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25351 { echo "$as_me:$LINENO: result: no" >&5
25352 echo "${ECHO_T}no" >&6; }
25356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25357 conftest$ac_exeext conftest.$ac_ext
25359 # Check whether user wants SELinux support
25363 # Check whether --with-selinux was given.
25364 if test "${with_selinux+set}" = set; then
25365 withval=$with_selinux; if test "x$withval" != "xno" ; then
25368 cat >>confdefs.h <<\_ACEOF
25369 #define WITH_SELINUX 1
25373 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25374 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25375 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25376 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25377 echo $ECHO_N "(cached) $ECHO_C" >&6
25379 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25380 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25382 # Is the header compilable?
25383 { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
25384 echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
25385 cat >conftest.$ac_ext <<_ACEOF
25388 cat confdefs.h >>conftest.$ac_ext
25389 cat >>conftest.$ac_ext <<_ACEOF
25390 /* end confdefs.h. */
25391 $ac_includes_default
25392 #include <selinux/selinux.h>
25394 rm -f conftest.$ac_objext
25395 if { (ac_try="$ac_compile"
25396 case "(($ac_try" in
25397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398 *) ac_try_echo=$ac_try;;
25400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25401 (eval "$ac_compile") 2>conftest.er1
25403 grep -v '^ *+' conftest.er1 >conftest.err
25405 cat conftest.err >&5
25406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); } && {
25408 test -z "$ac_c_werror_flag" ||
25409 test ! -s conftest.err
25410 } && test -s conftest.$ac_objext; then
25411 ac_header_compiler=yes
25413 echo "$as_me: failed program was:" >&5
25414 sed 's/^/| /' conftest.$ac_ext >&5
25416 ac_header_compiler=no
25419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25421 echo "${ECHO_T}$ac_header_compiler" >&6; }
25423 # Is the header present?
25424 { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
25425 echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
25426 cat >conftest.$ac_ext <<_ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h. */
25432 #include <selinux/selinux.h>
25434 if { (ac_try="$ac_cpp conftest.$ac_ext"
25435 case "(($ac_try" in
25436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25437 *) ac_try_echo=$ac_try;;
25439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25442 grep -v '^ *+' conftest.er1 >conftest.err
25444 cat conftest.err >&5
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); } >/dev/null && {
25447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25448 test ! -s conftest.err
25450 ac_header_preproc=yes
25452 echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25455 ac_header_preproc=no
25458 rm -f conftest.err conftest.$ac_ext
25459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25460 echo "${ECHO_T}$ac_header_preproc" >&6; }
25462 # So? What about this header?
25463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25465 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
25466 echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25467 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
25468 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
25469 ac_header_preproc=yes
25472 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
25473 echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
25474 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
25475 echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
25476 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
25477 echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
25478 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
25479 echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
25480 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
25481 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
25482 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
25483 echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
25485 ## ------------------------------------------- ##
25486 ## Report this to openssh-unix-dev@mindrot.org ##
25487 ## ------------------------------------------- ##
25489 ) | sed "s/^/$as_me: WARNING: /" >&2
25492 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25493 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
25494 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25495 echo $ECHO_N "(cached) $ECHO_C" >&6
25497 ac_cv_header_selinux_selinux_h=$ac_header_preproc
25499 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25500 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
25503 if test $ac_cv_header_selinux_selinux_h = yes; then
25506 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
25507 echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
25508 { (exit 1); exit 1; }; }
25512 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
25513 echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
25514 if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
25515 echo $ECHO_N "(cached) $ECHO_C" >&6
25517 ac_check_lib_save_LIBS=$LIBS
25518 LIBS="-lselinux $LIBS"
25519 cat >conftest.$ac_ext <<_ACEOF
25522 cat confdefs.h >>conftest.$ac_ext
25523 cat >>conftest.$ac_ext <<_ACEOF
25524 /* end confdefs.h. */
25526 /* Override any GCC internal prototype to avoid an error.
25527 Use char because int might match the return type of a GCC
25528 builtin and then its argument prototype would still apply. */
25532 char setexeccon ();
25536 return setexeccon ();
25541 rm -f conftest.$ac_objext conftest$ac_exeext
25542 if { (ac_try="$ac_link"
25543 case "(($ac_try" in
25544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548 (eval "$ac_link") 2>conftest.er1
25550 grep -v '^ *+' conftest.er1 >conftest.err
25552 cat conftest.err >&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } && {
25555 test -z "$ac_c_werror_flag" ||
25556 test ! -s conftest.err
25557 } && test -s conftest$ac_exeext &&
25558 $as_test_x conftest$ac_exeext; then
25559 ac_cv_lib_selinux_setexeccon=yes
25561 echo "$as_me: failed program was:" >&5
25562 sed 's/^/| /' conftest.$ac_ext >&5
25564 ac_cv_lib_selinux_setexeccon=no
25567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25568 conftest$ac_exeext conftest.$ac_ext
25569 LIBS=$ac_check_lib_save_LIBS
25571 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
25572 echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
25573 if test $ac_cv_lib_selinux_setexeccon = yes; then
25574 LIBSELINUX="-lselinux"
25576 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
25577 echo "$as_me: error: SELinux support requires libselinux library" >&2;}
25578 { (exit 1); exit 1; }; }
25581 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
25584 for ac_func in getseuserbyname get_default_context_with_level
25586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25590 echo $ECHO_N "(cached) $ECHO_C" >&6
25592 cat >conftest.$ac_ext <<_ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h. */
25598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25600 #define $ac_func innocuous_$ac_func
25602 /* System header to define __stub macros and hopefully few prototypes,
25603 which can conflict with char $ac_func (); below.
25604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25605 <limits.h> exists even on freestanding compilers. */
25608 # include <limits.h>
25610 # include <assert.h>
25615 /* Override any GCC internal prototype to avoid an error.
25616 Use char because int might match the return type of a GCC
25617 builtin and then its argument prototype would still apply. */
25622 /* The GNU C library defines this for functions which it implements
25623 to always fail with ENOSYS. Some functions are actually named
25624 something starting with __ and the normal name is an alias. */
25625 #if defined __stub_$ac_func || defined __stub___$ac_func
25632 return $ac_func ();
25637 rm -f conftest.$ac_objext conftest$ac_exeext
25638 if { (ac_try="$ac_link"
25639 case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644 (eval "$ac_link") 2>conftest.er1
25646 grep -v '^ *+' conftest.er1 >conftest.err
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest$ac_exeext &&
25654 $as_test_x conftest$ac_exeext; then
25655 eval "$as_ac_var=yes"
25657 echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25660 eval "$as_ac_var=no"
25663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25664 conftest$ac_exeext conftest.$ac_ext
25666 ac_res=`eval echo '${'$as_ac_var'}'`
25667 { echo "$as_me:$LINENO: result: $ac_res" >&5
25668 echo "${ECHO_T}$ac_res" >&6; }
25669 if test `eval echo '${'$as_ac_var'}'` = yes; then
25670 cat >>confdefs.h <<_ACEOF
25671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25683 # Check whether user wants Kerberos 5 support
25686 # Check whether --with-kerberos5 was given.
25687 if test "${with_kerberos5+set}" = set; then
25688 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
25689 if test "x$withval" = "xyes" ; then
25690 KRB5ROOT="/usr/local"
25692 KRB5ROOT=${withval}
25696 cat >>confdefs.h <<\_ACEOF
25702 { echo "$as_me:$LINENO: checking for krb5-config" >&5
25703 echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; }
25704 if test -x $KRB5ROOT/bin/krb5-config ; then
25705 KRB5CONF=$KRB5ROOT/bin/krb5-config
25706 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
25707 echo "${ECHO_T}$KRB5CONF" >&6; }
25709 { echo "$as_me:$LINENO: checking for gssapi support" >&5
25710 echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
25711 if $KRB5CONF | grep gssapi >/dev/null ; then
25712 { echo "$as_me:$LINENO: result: yes" >&5
25713 echo "${ECHO_T}yes" >&6; }
25715 cat >>confdefs.h <<\_ACEOF
25721 { echo "$as_me:$LINENO: result: no" >&5
25722 echo "${ECHO_T}no" >&6; }
25725 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
25726 K5LIBS="`$KRB5CONF --libs $k5confopts`"
25727 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
25728 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
25729 echo $ECHO_N "checking whether we are using Heimdal... $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. */
25740 char *tmp = heimdal_version;
25745 rm -f conftest.$ac_objext
25746 if { (ac_try="$ac_compile"
25747 case "(($ac_try" in
25748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749 *) ac_try_echo=$ac_try;;
25751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25752 (eval "$ac_compile") 2>conftest.er1
25754 grep -v '^ *+' conftest.er1 >conftest.err
25756 cat conftest.err >&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); } && {
25759 test -z "$ac_c_werror_flag" ||
25760 test ! -s conftest.err
25761 } && test -s conftest.$ac_objext; then
25762 { echo "$as_me:$LINENO: result: yes" >&5
25763 echo "${ECHO_T}yes" >&6; }
25765 cat >>confdefs.h <<\_ACEOF
25770 echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25773 { echo "$as_me:$LINENO: result: no" >&5
25774 echo "${ECHO_T}no" >&6; }
25778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25780 { echo "$as_me:$LINENO: result: no" >&5
25781 echo "${ECHO_T}no" >&6; }
25782 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
25783 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
25784 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
25785 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
25786 cat >conftest.$ac_ext <<_ACEOF
25789 cat confdefs.h >>conftest.$ac_ext
25790 cat >>conftest.$ac_ext <<_ACEOF
25791 /* end confdefs.h. */
25796 char *tmp = heimdal_version;
25801 rm -f conftest.$ac_objext
25802 if { (ac_try="$ac_compile"
25803 case "(($ac_try" in
25804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25805 *) ac_try_echo=$ac_try;;
25807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25808 (eval "$ac_compile") 2>conftest.er1
25810 grep -v '^ *+' conftest.er1 >conftest.err
25812 cat conftest.err >&5
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } && {
25815 test -z "$ac_c_werror_flag" ||
25816 test ! -s conftest.err
25817 } && test -s conftest.$ac_objext; then
25818 { echo "$as_me:$LINENO: result: yes" >&5
25819 echo "${ECHO_T}yes" >&6; }
25820 cat >>confdefs.h <<\_ACEOF
25824 K5LIBS="-lkrb5 -ldes"
25825 K5LIBS="$K5LIBS -lcom_err -lasn1"
25826 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
25827 echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
25828 if test "${ac_cv_lib_roken_net_write+set}" = set; then
25829 echo $ECHO_N "(cached) $ECHO_C" >&6
25831 ac_check_lib_save_LIBS=$LIBS
25832 LIBS="-lroken $LIBS"
25833 cat >conftest.$ac_ext <<_ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h. */
25840 /* Override any GCC internal prototype to avoid an error.
25841 Use char because int might match the return type of a GCC
25842 builtin and then its argument prototype would still apply. */
25850 return net_write ();
25855 rm -f conftest.$ac_objext conftest$ac_exeext
25856 if { (ac_try="$ac_link"
25857 case "(($ac_try" in
25858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859 *) ac_try_echo=$ac_try;;
25861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25862 (eval "$ac_link") 2>conftest.er1
25864 grep -v '^ *+' conftest.er1 >conftest.err
25866 cat conftest.err >&5
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } && {
25869 test -z "$ac_c_werror_flag" ||
25870 test ! -s conftest.err
25871 } && test -s conftest$ac_exeext &&
25872 $as_test_x conftest$ac_exeext; then
25873 ac_cv_lib_roken_net_write=yes
25875 echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25878 ac_cv_lib_roken_net_write=no
25881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25882 conftest$ac_exeext conftest.$ac_ext
25883 LIBS=$ac_check_lib_save_LIBS
25885 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
25886 echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
25887 if test $ac_cv_lib_roken_net_write = yes; then
25888 K5LIBS="$K5LIBS -lroken"
25893 echo "$as_me: failed program was:" >&5
25894 sed 's/^/| /' conftest.$ac_ext >&5
25896 { echo "$as_me:$LINENO: result: no" >&5
25897 echo "${ECHO_T}no" >&6; }
25898 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
25903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25904 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
25905 echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
25906 if test "${ac_cv_search_dn_expand+set}" = set; then
25907 echo $ECHO_N "(cached) $ECHO_C" >&6
25909 ac_func_search_save_LIBS=$LIBS
25910 cat >conftest.$ac_ext <<_ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h. */
25917 /* Override any GCC internal prototype to avoid an error.
25918 Use char because int might match the return type of a GCC
25919 builtin and then its argument prototype would still apply. */
25927 return dn_expand ();
25932 for ac_lib in '' resolv; do
25933 if test -z "$ac_lib"; then
25934 ac_res="none required"
25937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25939 rm -f conftest.$ac_objext conftest$ac_exeext
25940 if { (ac_try="$ac_link"
25941 case "(($ac_try" in
25942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25943 *) ac_try_echo=$ac_try;;
25945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25946 (eval "$ac_link") 2>conftest.er1
25948 grep -v '^ *+' conftest.er1 >conftest.err
25950 cat conftest.err >&5
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); } && {
25953 test -z "$ac_c_werror_flag" ||
25954 test ! -s conftest.err
25955 } && test -s conftest$ac_exeext &&
25956 $as_test_x conftest$ac_exeext; then
25957 ac_cv_search_dn_expand=$ac_res
25959 echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25967 if test "${ac_cv_search_dn_expand+set}" = set; then
25971 if test "${ac_cv_search_dn_expand+set}" = set; then
25974 ac_cv_search_dn_expand=no
25976 rm conftest.$ac_ext
25977 LIBS=$ac_func_search_save_LIBS
25979 { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
25980 echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
25981 ac_res=$ac_cv_search_dn_expand
25982 if test "$ac_res" != no; then
25983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25988 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
25989 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
25990 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
25991 echo $ECHO_N "(cached) $ECHO_C" >&6
25993 ac_check_lib_save_LIBS=$LIBS
25994 LIBS="-lgssapi $K5LIBS $LIBS"
25995 cat >conftest.$ac_ext <<_ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26002 /* Override any GCC internal prototype to avoid an error.
26003 Use char because int might match the return type of a GCC
26004 builtin and then its argument prototype would still apply. */
26008 char gss_init_sec_context ();
26012 return gss_init_sec_context ();
26017 rm -f conftest.$ac_objext conftest$ac_exeext
26018 if { (ac_try="$ac_link"
26019 case "(($ac_try" in
26020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021 *) ac_try_echo=$ac_try;;
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024 (eval "$ac_link") 2>conftest.er1
26026 grep -v '^ *+' conftest.er1 >conftest.err
26028 cat conftest.err >&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } && {
26031 test -z "$ac_c_werror_flag" ||
26032 test ! -s conftest.err
26033 } && test -s conftest$ac_exeext &&
26034 $as_test_x conftest$ac_exeext; then
26035 ac_cv_lib_gssapi_gss_init_sec_context=yes
26037 echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26040 ac_cv_lib_gssapi_gss_init_sec_context=no
26043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26044 conftest$ac_exeext conftest.$ac_ext
26045 LIBS=$ac_check_lib_save_LIBS
26047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
26048 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
26049 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
26050 cat >>confdefs.h <<\_ACEOF
26054 K5LIBS="-lgssapi $K5LIBS"
26056 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
26057 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
26058 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
26059 echo $ECHO_N "(cached) $ECHO_C" >&6
26061 ac_check_lib_save_LIBS=$LIBS
26062 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
26063 cat >conftest.$ac_ext <<_ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h. */
26070 /* Override any GCC internal prototype to avoid an error.
26071 Use char because int might match the return type of a GCC
26072 builtin and then its argument prototype would still apply. */
26076 char gss_init_sec_context ();
26080 return gss_init_sec_context ();
26085 rm -f conftest.$ac_objext conftest$ac_exeext
26086 if { (ac_try="$ac_link"
26087 case "(($ac_try" in
26088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089 *) ac_try_echo=$ac_try;;
26091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26092 (eval "$ac_link") 2>conftest.er1
26094 grep -v '^ *+' conftest.er1 >conftest.err
26096 cat conftest.err >&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); } && {
26099 test -z "$ac_c_werror_flag" ||
26100 test ! -s conftest.err
26101 } && test -s conftest$ac_exeext &&
26102 $as_test_x conftest$ac_exeext; then
26103 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
26105 echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26108 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
26111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26112 conftest$ac_exeext conftest.$ac_ext
26113 LIBS=$ac_check_lib_save_LIBS
26115 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
26116 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
26117 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
26118 cat >>confdefs.h <<\_ACEOF
26122 K5LIBS="-lgssapi_krb5 $K5LIBS"
26124 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
26125 echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
26132 if test "${ac_cv_header_gssapi_h+set}" = set; then
26133 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
26134 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
26135 if test "${ac_cv_header_gssapi_h+set}" = set; then
26136 echo $ECHO_N "(cached) $ECHO_C" >&6
26138 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
26139 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
26141 # Is the header compilable?
26142 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
26143 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
26144 cat >conftest.$ac_ext <<_ACEOF
26147 cat confdefs.h >>conftest.$ac_ext
26148 cat >>conftest.$ac_ext <<_ACEOF
26149 /* end confdefs.h. */
26150 $ac_includes_default
26151 #include <gssapi.h>
26153 rm -f conftest.$ac_objext
26154 if { (ac_try="$ac_compile"
26155 case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160 (eval "$ac_compile") 2>conftest.er1
26162 grep -v '^ *+' conftest.er1 >conftest.err
26164 cat conftest.err >&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } && {
26167 test -z "$ac_c_werror_flag" ||
26168 test ! -s conftest.err
26169 } && test -s conftest.$ac_objext; then
26170 ac_header_compiler=yes
26172 echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26175 ac_header_compiler=no
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26180 echo "${ECHO_T}$ac_header_compiler" >&6; }
26182 # Is the header present?
26183 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
26184 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
26185 cat >conftest.$ac_ext <<_ACEOF
26188 cat confdefs.h >>conftest.$ac_ext
26189 cat >>conftest.$ac_ext <<_ACEOF
26190 /* end confdefs.h. */
26191 #include <gssapi.h>
26193 if { (ac_try="$ac_cpp conftest.$ac_ext"
26194 case "(($ac_try" in
26195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26196 *) ac_try_echo=$ac_try;;
26198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26201 grep -v '^ *+' conftest.er1 >conftest.err
26203 cat conftest.err >&5
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); } >/dev/null && {
26206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26207 test ! -s conftest.err
26209 ac_header_preproc=yes
26211 echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26214 ac_header_preproc=no
26217 rm -f conftest.err conftest.$ac_ext
26218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26219 echo "${ECHO_T}$ac_header_preproc" >&6; }
26221 # So? What about this header?
26222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26224 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
26225 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26226 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
26227 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
26228 ac_header_preproc=yes
26231 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
26232 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
26233 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
26234 echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
26235 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
26236 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
26237 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
26238 echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
26239 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
26240 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
26241 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
26242 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
26244 ## ------------------------------------------- ##
26245 ## Report this to openssh-unix-dev@mindrot.org ##
26246 ## ------------------------------------------- ##
26248 ) | sed "s/^/$as_me: WARNING: /" >&2
26251 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
26252 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
26253 if test "${ac_cv_header_gssapi_h+set}" = set; then
26254 echo $ECHO_N "(cached) $ECHO_C" >&6
26256 ac_cv_header_gssapi_h=$ac_header_preproc
26258 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
26259 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
26262 if test $ac_cv_header_gssapi_h = yes; then
26265 unset ac_cv_header_gssapi_h
26266 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26268 for ac_header in gssapi.h
26270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26277 ac_res=`eval echo '${'$as_ac_Header'}'`
26278 { echo "$as_me:$LINENO: result: $ac_res" >&5
26279 echo "${ECHO_T}$ac_res" >&6; }
26281 # Is the header compilable?
26282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26284 cat >conftest.$ac_ext <<_ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h. */
26290 $ac_includes_default
26291 #include <$ac_header>
26293 rm -f conftest.$ac_objext
26294 if { (ac_try="$ac_compile"
26295 case "(($ac_try" in
26296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297 *) ac_try_echo=$ac_try;;
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300 (eval "$ac_compile") 2>conftest.er1
26302 grep -v '^ *+' conftest.er1 >conftest.err
26304 cat conftest.err >&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } && {
26307 test -z "$ac_c_werror_flag" ||
26308 test ! -s conftest.err
26309 } && test -s conftest.$ac_objext; then
26310 ac_header_compiler=yes
26312 echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26315 ac_header_compiler=no
26318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26320 echo "${ECHO_T}$ac_header_compiler" >&6; }
26322 # Is the header present?
26323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26325 cat >conftest.$ac_ext <<_ACEOF
26328 cat confdefs.h >>conftest.$ac_ext
26329 cat >>conftest.$ac_ext <<_ACEOF
26330 /* end confdefs.h. */
26331 #include <$ac_header>
26333 if { (ac_try="$ac_cpp conftest.$ac_ext"
26334 case "(($ac_try" in
26335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336 *) ac_try_echo=$ac_try;;
26338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26341 grep -v '^ *+' conftest.er1 >conftest.err
26343 cat conftest.err >&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } >/dev/null && {
26346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26347 test ! -s conftest.err
26349 ac_header_preproc=yes
26351 echo "$as_me: failed program was:" >&5
26352 sed 's/^/| /' conftest.$ac_ext >&5
26354 ac_header_preproc=no
26357 rm -f conftest.err conftest.$ac_ext
26358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26359 echo "${ECHO_T}$ac_header_preproc" >&6; }
26361 # So? What about this header?
26362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26368 ac_header_preproc=yes
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26384 ## ------------------------------------------- ##
26385 ## Report this to openssh-unix-dev@mindrot.org ##
26386 ## ------------------------------------------- ##
26388 ) | sed "s/^/$as_me: WARNING: /" >&2
26391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26394 echo $ECHO_N "(cached) $ECHO_C" >&6
26396 eval "$as_ac_Header=\$ac_header_preproc"
26398 ac_res=`eval echo '${'$as_ac_Header'}'`
26399 { echo "$as_me:$LINENO: result: $ac_res" >&5
26400 echo "${ECHO_T}$ac_res" >&6; }
26403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26404 cat >>confdefs.h <<_ACEOF
26405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26409 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
26410 echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
26423 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
26424 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26425 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
26426 echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
26427 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26428 echo $ECHO_N "(cached) $ECHO_C" >&6
26430 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
26431 echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
26433 # Is the header compilable?
26434 { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
26435 echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
26436 cat >conftest.$ac_ext <<_ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h. */
26442 $ac_includes_default
26443 #include <gssapi_krb5.h>
26445 rm -f conftest.$ac_objext
26446 if { (ac_try="$ac_compile"
26447 case "(($ac_try" in
26448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449 *) ac_try_echo=$ac_try;;
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452 (eval "$ac_compile") 2>conftest.er1
26454 grep -v '^ *+' conftest.er1 >conftest.err
26456 cat conftest.err >&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } && {
26459 test -z "$ac_c_werror_flag" ||
26460 test ! -s conftest.err
26461 } && test -s conftest.$ac_objext; then
26462 ac_header_compiler=yes
26464 echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26467 ac_header_compiler=no
26470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26472 echo "${ECHO_T}$ac_header_compiler" >&6; }
26474 # Is the header present?
26475 { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
26476 echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
26477 cat >conftest.$ac_ext <<_ACEOF
26480 cat confdefs.h >>conftest.$ac_ext
26481 cat >>conftest.$ac_ext <<_ACEOF
26482 /* end confdefs.h. */
26483 #include <gssapi_krb5.h>
26485 if { (ac_try="$ac_cpp conftest.$ac_ext"
26486 case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26493 grep -v '^ *+' conftest.er1 >conftest.err
26495 cat conftest.err >&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } >/dev/null && {
26498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26499 test ! -s conftest.err
26501 ac_header_preproc=yes
26503 echo "$as_me: failed program was:" >&5
26504 sed 's/^/| /' conftest.$ac_ext >&5
26506 ac_header_preproc=no
26509 rm -f conftest.err conftest.$ac_ext
26510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26511 echo "${ECHO_T}$ac_header_preproc" >&6; }
26513 # So? What about this header?
26514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26516 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
26517 echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26518 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
26519 echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
26520 ac_header_preproc=yes
26523 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
26524 echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
26526 echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
26528 echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
26529 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
26530 echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
26531 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
26532 echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
26533 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
26534 echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
26536 ## ------------------------------------------- ##
26537 ## Report this to openssh-unix-dev@mindrot.org ##
26538 ## ------------------------------------------- ##
26540 ) | sed "s/^/$as_me: WARNING: /" >&2
26543 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
26544 echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
26545 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
26546 echo $ECHO_N "(cached) $ECHO_C" >&6
26548 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
26550 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
26551 echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
26554 if test $ac_cv_header_gssapi_krb5_h = yes; then
26563 if test ! -z "$need_dash_r" ; then
26564 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
26566 if test ! -z "$blibpath" ; then
26567 blibpath="$blibpath:${KRB5ROOT}/lib"
26572 for ac_header in gssapi.h gssapi/gssapi.h
26574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26579 echo $ECHO_N "(cached) $ECHO_C" >&6
26581 ac_res=`eval echo '${'$as_ac_Header'}'`
26582 { echo "$as_me:$LINENO: result: $ac_res" >&5
26583 echo "${ECHO_T}$ac_res" >&6; }
26585 # Is the header compilable?
26586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26588 cat >conftest.$ac_ext <<_ACEOF
26591 cat confdefs.h >>conftest.$ac_ext
26592 cat >>conftest.$ac_ext <<_ACEOF
26593 /* end confdefs.h. */
26594 $ac_includes_default
26595 #include <$ac_header>
26597 rm -f conftest.$ac_objext
26598 if { (ac_try="$ac_compile"
26599 case "(($ac_try" in
26600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26601 *) ac_try_echo=$ac_try;;
26603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26604 (eval "$ac_compile") 2>conftest.er1
26606 grep -v '^ *+' conftest.er1 >conftest.err
26608 cat conftest.err >&5
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); } && {
26611 test -z "$ac_c_werror_flag" ||
26612 test ! -s conftest.err
26613 } && test -s conftest.$ac_objext; then
26614 ac_header_compiler=yes
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26619 ac_header_compiler=no
26622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26624 echo "${ECHO_T}$ac_header_compiler" >&6; }
26626 # Is the header present?
26627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26629 cat >conftest.$ac_ext <<_ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h. */
26635 #include <$ac_header>
26637 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
26645 grep -v '^ *+' conftest.er1 >conftest.err
26647 cat conftest.err >&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } >/dev/null && {
26650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26651 test ! -s conftest.err
26653 ac_header_preproc=yes
26655 echo "$as_me: failed program was:" >&5
26656 sed 's/^/| /' conftest.$ac_ext >&5
26658 ac_header_preproc=no
26661 rm -f conftest.err conftest.$ac_ext
26662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26663 echo "${ECHO_T}$ac_header_preproc" >&6; }
26665 # So? What about this header?
26666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26672 ac_header_preproc=yes
26675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26688 ## ------------------------------------------- ##
26689 ## Report this to openssh-unix-dev@mindrot.org ##
26690 ## ------------------------------------------- ##
26692 ) | sed "s/^/$as_me: WARNING: /" >&2
26695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26698 echo $ECHO_N "(cached) $ECHO_C" >&6
26700 eval "$as_ac_Header=\$ac_header_preproc"
26702 ac_res=`eval echo '${'$as_ac_Header'}'`
26703 { echo "$as_me:$LINENO: result: $ac_res" >&5
26704 echo "${ECHO_T}$ac_res" >&6; }
26707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26708 cat >>confdefs.h <<_ACEOF
26709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26718 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
26720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26727 ac_res=`eval echo '${'$as_ac_Header'}'`
26728 { echo "$as_me:$LINENO: result: $ac_res" >&5
26729 echo "${ECHO_T}$ac_res" >&6; }
26731 # Is the header compilable?
26732 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26734 cat >conftest.$ac_ext <<_ACEOF
26737 cat confdefs.h >>conftest.$ac_ext
26738 cat >>conftest.$ac_ext <<_ACEOF
26739 /* end confdefs.h. */
26740 $ac_includes_default
26741 #include <$ac_header>
26743 rm -f conftest.$ac_objext
26744 if { (ac_try="$ac_compile"
26745 case "(($ac_try" in
26746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747 *) ac_try_echo=$ac_try;;
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750 (eval "$ac_compile") 2>conftest.er1
26752 grep -v '^ *+' conftest.er1 >conftest.err
26754 cat conftest.err >&5
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); } && {
26757 test -z "$ac_c_werror_flag" ||
26758 test ! -s conftest.err
26759 } && test -s conftest.$ac_objext; then
26760 ac_header_compiler=yes
26762 echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26765 ac_header_compiler=no
26768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26770 echo "${ECHO_T}$ac_header_compiler" >&6; }
26772 # Is the header present?
26773 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26775 cat >conftest.$ac_ext <<_ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h. */
26781 #include <$ac_header>
26783 if { (ac_try="$ac_cpp conftest.$ac_ext"
26784 case "(($ac_try" in
26785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26786 *) ac_try_echo=$ac_try;;
26788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26791 grep -v '^ *+' conftest.er1 >conftest.err
26793 cat conftest.err >&5
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); } >/dev/null && {
26796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26797 test ! -s conftest.err
26799 ac_header_preproc=yes
26801 echo "$as_me: failed program was:" >&5
26802 sed 's/^/| /' conftest.$ac_ext >&5
26804 ac_header_preproc=no
26807 rm -f conftest.err conftest.$ac_ext
26808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26809 echo "${ECHO_T}$ac_header_preproc" >&6; }
26811 # So? What about this header?
26812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26818 ac_header_preproc=yes
26821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26834 ## ------------------------------------------- ##
26835 ## Report this to openssh-unix-dev@mindrot.org ##
26836 ## ------------------------------------------- ##
26838 ) | sed "s/^/$as_me: WARNING: /" >&2
26841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26844 echo $ECHO_N "(cached) $ECHO_C" >&6
26846 eval "$as_ac_Header=\$ac_header_preproc"
26848 ac_res=`eval echo '${'$as_ac_Header'}'`
26849 { echo "$as_me:$LINENO: result: $ac_res" >&5
26850 echo "${ECHO_T}$ac_res" >&6; }
26853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26854 cat >>confdefs.h <<_ACEOF
26855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26864 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
26866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26871 echo $ECHO_N "(cached) $ECHO_C" >&6
26873 ac_res=`eval echo '${'$as_ac_Header'}'`
26874 { echo "$as_me:$LINENO: result: $ac_res" >&5
26875 echo "${ECHO_T}$ac_res" >&6; }
26877 # Is the header compilable?
26878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26880 cat >conftest.$ac_ext <<_ACEOF
26883 cat confdefs.h >>conftest.$ac_ext
26884 cat >>conftest.$ac_ext <<_ACEOF
26885 /* end confdefs.h. */
26886 $ac_includes_default
26887 #include <$ac_header>
26889 rm -f conftest.$ac_objext
26890 if { (ac_try="$ac_compile"
26891 case "(($ac_try" in
26892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26893 *) ac_try_echo=$ac_try;;
26895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26896 (eval "$ac_compile") 2>conftest.er1
26898 grep -v '^ *+' conftest.er1 >conftest.err
26900 cat conftest.err >&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } && {
26903 test -z "$ac_c_werror_flag" ||
26904 test ! -s conftest.err
26905 } && test -s conftest.$ac_objext; then
26906 ac_header_compiler=yes
26908 echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26911 ac_header_compiler=no
26914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26916 echo "${ECHO_T}$ac_header_compiler" >&6; }
26918 # Is the header present?
26919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26921 cat >conftest.$ac_ext <<_ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26927 #include <$ac_header>
26929 if { (ac_try="$ac_cpp conftest.$ac_ext"
26930 case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26937 grep -v '^ *+' conftest.er1 >conftest.err
26939 cat conftest.err >&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); } >/dev/null && {
26942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26943 test ! -s conftest.err
26945 ac_header_preproc=yes
26947 echo "$as_me: failed program was:" >&5
26948 sed 's/^/| /' conftest.$ac_ext >&5
26950 ac_header_preproc=no
26953 rm -f conftest.err conftest.$ac_ext
26954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26955 echo "${ECHO_T}$ac_header_preproc" >&6; }
26957 # So? What about this header?
26958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26964 ac_header_preproc=yes
26967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26980 ## ------------------------------------------- ##
26981 ## Report this to openssh-unix-dev@mindrot.org ##
26982 ## ------------------------------------------- ##
26984 ) | sed "s/^/$as_me: WARNING: /" >&2
26987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26990 echo $ECHO_N "(cached) $ECHO_C" >&6
26992 eval "$as_ac_Header=\$ac_header_preproc"
26994 ac_res=`eval echo '${'$as_ac_Header'}'`
26995 { echo "$as_me:$LINENO: result: $ac_res" >&5
26996 echo "${ECHO_T}$ac_res" >&6; }
26999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27000 cat >>confdefs.h <<_ACEOF
27001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27009 LIBS="$LIBS $K5LIBS"
27010 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
27011 echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
27012 if test "${ac_cv_search_k_hasafs+set}" = set; then
27013 echo $ECHO_N "(cached) $ECHO_C" >&6
27015 ac_func_search_save_LIBS=$LIBS
27016 cat >conftest.$ac_ext <<_ACEOF
27019 cat confdefs.h >>conftest.$ac_ext
27020 cat >>conftest.$ac_ext <<_ACEOF
27021 /* end confdefs.h. */
27023 /* Override any GCC internal prototype to avoid an error.
27024 Use char because int might match the return type of a GCC
27025 builtin and then its argument prototype would still apply. */
27033 return k_hasafs ();
27038 for ac_lib in '' kafs; do
27039 if test -z "$ac_lib"; then
27040 ac_res="none required"
27043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27045 rm -f conftest.$ac_objext conftest$ac_exeext
27046 if { (ac_try="$ac_link"
27047 case "(($ac_try" in
27048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27049 *) ac_try_echo=$ac_try;;
27051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27052 (eval "$ac_link") 2>conftest.er1
27054 grep -v '^ *+' conftest.er1 >conftest.err
27056 cat conftest.err >&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); } && {
27059 test -z "$ac_c_werror_flag" ||
27060 test ! -s conftest.err
27061 } && test -s conftest$ac_exeext &&
27062 $as_test_x conftest$ac_exeext; then
27063 ac_cv_search_k_hasafs=$ac_res
27065 echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27073 if test "${ac_cv_search_k_hasafs+set}" = set; then
27077 if test "${ac_cv_search_k_hasafs+set}" = set; then
27080 ac_cv_search_k_hasafs=no
27082 rm conftest.$ac_ext
27083 LIBS=$ac_func_search_save_LIBS
27085 { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
27086 echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
27087 ac_res=$ac_cv_search_k_hasafs
27088 if test "$ac_res" != no; then
27089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27091 cat >>confdefs.h <<\_ACEOF
27103 # Looking for programs, paths and files
27105 PRIVSEP_PATH=/var/empty
27107 # Check whether --with-privsep-path was given.
27108 if test "${with_privsep_path+set}" = set; then
27109 withval=$with_privsep_path;
27110 if test -n "$withval" && test "x$withval" != "xno" && \
27111 test "x${withval}" != "xyes"; then
27112 PRIVSEP_PATH=$withval
27121 # Check whether --with-xauth was given.
27122 if test "${with_xauth+set}" = set; then
27123 withval=$with_xauth;
27124 if test -n "$withval" && test "x$withval" != "xno" && \
27125 test "x${withval}" != "xyes"; then
27126 xauth_path=$withval
27132 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
27133 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
27134 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
27135 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
27136 # Extract the first word of "xauth", so it can be a program name with args.
27137 set dummy xauth; ac_word=$2
27138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27140 if test "${ac_cv_path_xauth_path+set}" = set; then
27141 echo $ECHO_N "(cached) $ECHO_C" >&6
27143 case $xauth_path in
27145 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
27148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27149 for as_dir in $TestPath
27152 test -z "$as_dir" && as_dir=.
27153 for ac_exec_ext in '' $ac_executable_extensions; do
27154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27155 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
27156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27166 xauth_path=$ac_cv_path_xauth_path
27167 if test -n "$xauth_path"; then
27168 { echo "$as_me:$LINENO: result: $xauth_path" >&5
27169 echo "${ECHO_T}$xauth_path" >&6; }
27171 { echo "$as_me:$LINENO: result: no" >&5
27172 echo "${ECHO_T}no" >&6; }
27176 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
27177 xauth_path="/usr/openwin/bin/xauth"
27185 # Check whether --enable-strip was given.
27186 if test "${enable_strip+set}" = set; then
27187 enableval=$enable_strip;
27188 if test "x$enableval" = "xno" ; then
27197 if test -z "$xauth_path" ; then
27198 XAUTH_PATH="undefined"
27202 cat >>confdefs.h <<_ACEOF
27203 #define XAUTH_PATH "$xauth_path"
27206 XAUTH_PATH=$xauth_path
27210 # Check for mail directory (last resort if we cannot get it from headers)
27211 if test ! -z "$MAIL" ; then
27212 maildir=`dirname $MAIL`
27214 cat >>confdefs.h <<_ACEOF
27215 #define MAIL_DIRECTORY "$maildir"
27220 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
27221 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
27222 echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
27223 disable_ptmx_check=yes
27225 if test -z "$no_dev_ptmx" ; then
27226 if test "x$disable_ptmx_check" != "xyes" ; then
27227 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
27228 echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
27229 if test "${ac_cv_file___dev_ptmx_+set}" = set; then
27230 echo $ECHO_N "(cached) $ECHO_C" >&6
27232 test "$cross_compiling" = yes &&
27233 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27234 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27235 { (exit 1); exit 1; }; }
27236 if test -r ""/dev/ptmx""; then
27237 ac_cv_file___dev_ptmx_=yes
27239 ac_cv_file___dev_ptmx_=no
27242 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
27243 echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
27244 if test $ac_cv_file___dev_ptmx_ = yes; then
27247 cat >>confdefs.h <<_ACEOF
27248 #define HAVE_DEV_PTMX 1
27259 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
27260 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
27261 echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
27262 if test "${ac_cv_file___dev_ptc_+set}" = set; then
27263 echo $ECHO_N "(cached) $ECHO_C" >&6
27265 test "$cross_compiling" = yes &&
27266 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27267 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27268 { (exit 1); exit 1; }; }
27269 if test -r ""/dev/ptc""; then
27270 ac_cv_file___dev_ptc_=yes
27272 ac_cv_file___dev_ptc_=no
27275 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
27276 echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
27277 if test $ac_cv_file___dev_ptc_ = yes; then
27280 cat >>confdefs.h <<_ACEOF
27281 #define HAVE_DEV_PTS_AND_PTC 1
27290 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
27291 echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
27294 # Options from here on. Some of these are preset by platform above
27296 # Check whether --with-mantype was given.
27297 if test "${with_mantype+set}" = set; then
27298 withval=$with_mantype;
27304 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
27305 echo "$as_me: error: invalid man type: $withval" >&2;}
27306 { (exit 1); exit 1; }; }
27313 if test -z "$MANTYPE"; then
27314 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
27315 for ac_prog in nroff awf
27317 # Extract the first word of "$ac_prog", so it can be a program name with args.
27318 set dummy $ac_prog; ac_word=$2
27319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27321 if test "${ac_cv_path_NROFF+set}" = set; then
27322 echo $ECHO_N "(cached) $ECHO_C" >&6
27326 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
27329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27330 for as_dir in $TestPath
27333 test -z "$as_dir" && as_dir=.
27334 for ac_exec_ext in '' $ac_executable_extensions; do
27335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27336 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
27337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27347 NROFF=$ac_cv_path_NROFF
27348 if test -n "$NROFF"; then
27349 { echo "$as_me:$LINENO: result: $NROFF" >&5
27350 echo "${ECHO_T}$NROFF" >&6; }
27352 { echo "$as_me:$LINENO: result: no" >&5
27353 echo "${ECHO_T}no" >&6; }
27357 test -n "$NROFF" && break
27359 test -n "$NROFF" || NROFF="/bin/false"
27361 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
27363 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
27370 if test "$MANTYPE" = "doc"; then
27373 mansubdir=$MANTYPE;
27377 # Check whether to enable MD5 passwords
27380 # Check whether --with-md5-passwords was given.
27381 if test "${with_md5_passwords+set}" = set; then
27382 withval=$with_md5_passwords;
27383 if test "x$withval" != "xno" ; then
27385 cat >>confdefs.h <<\_ACEOF
27386 #define HAVE_MD5_PASSWORDS 1
27396 # Whether to disable shadow password support
27398 # Check whether --with-shadow was given.
27399 if test "${with_shadow+set}" = set; then
27400 withval=$with_shadow;
27401 if test "x$withval" = "xno" ; then
27402 cat >>confdefs.h <<\_ACEOF
27403 #define DISABLE_SHADOW 1
27413 if test -z "$disable_shadow" ; then
27414 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
27415 echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
27416 cat >conftest.$ac_ext <<_ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h. */
27423 #include <sys/types.h>
27424 #include <shadow.h>
27430 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
27435 rm -f conftest.$ac_objext
27436 if { (ac_try="$ac_compile"
27437 case "(($ac_try" in
27438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27439 *) ac_try_echo=$ac_try;;
27441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27442 (eval "$ac_compile") 2>conftest.er1
27444 grep -v '^ *+' conftest.er1 >conftest.err
27446 cat conftest.err >&5
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); } && {
27449 test -z "$ac_c_werror_flag" ||
27450 test ! -s conftest.err
27451 } && test -s conftest.$ac_objext; then
27452 sp_expire_available=yes
27454 echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27463 if test "x$sp_expire_available" = "xyes" ; then
27464 { echo "$as_me:$LINENO: result: yes" >&5
27465 echo "${ECHO_T}yes" >&6; }
27467 cat >>confdefs.h <<\_ACEOF
27468 #define HAS_SHADOW_EXPIRE 1
27472 { echo "$as_me:$LINENO: result: no" >&5
27473 echo "${ECHO_T}no" >&6; }
27477 # Use ip address instead of hostname in $DISPLAY
27478 if test ! -z "$IPADDR_IN_DISPLAY" ; then
27479 DISPLAY_HACK_MSG="yes"
27481 cat >>confdefs.h <<\_ACEOF
27482 #define IPADDR_IN_DISPLAY 1
27486 DISPLAY_HACK_MSG="no"
27488 # Check whether --with-ipaddr-display was given.
27489 if test "${with_ipaddr_display+set}" = set; then
27490 withval=$with_ipaddr_display;
27491 if test "x$withval" != "xno" ; then
27492 cat >>confdefs.h <<\_ACEOF
27493 #define IPADDR_IN_DISPLAY 1
27496 DISPLAY_HACK_MSG="yes"
27504 # check for /etc/default/login and use it if present.
27505 # Check whether --enable-etc-default-login was given.
27506 if test "${enable_etc_default_login+set}" = set; then
27507 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
27508 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
27509 echo "$as_me: /etc/default/login handling disabled" >&6;}
27510 etc_default_login=no
27512 etc_default_login=yes
27515 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
27517 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
27518 echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
27519 etc_default_login=no
27521 etc_default_login=yes
27527 if test "x$etc_default_login" != "xno"; then
27528 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
27529 echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
27530 if test "${ac_cv_file___etc_default_login_+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27533 test "$cross_compiling" = yes &&
27534 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27535 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27536 { (exit 1); exit 1; }; }
27537 if test -r ""/etc/default/login""; then
27538 ac_cv_file___etc_default_login_=yes
27540 ac_cv_file___etc_default_login_=no
27543 { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
27544 echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
27545 if test $ac_cv_file___etc_default_login_ = yes; then
27546 external_path_file=/etc/default/login
27549 if test "x$external_path_file" = "x/etc/default/login"; then
27551 cat >>confdefs.h <<\_ACEOF
27552 #define HAVE_ETC_DEFAULT_LOGIN 1
27558 if test $ac_cv_func_login_getcapbool = "yes" && \
27559 test $ac_cv_header_login_cap_h = "yes" ; then
27560 external_path_file=/etc/login.conf
27563 # Whether to mess with the default path
27564 SERVER_PATH_MSG="(default)"
27566 # Check whether --with-default-path was given.
27567 if test "${with_default_path+set}" = set; then
27568 withval=$with_default_path;
27569 if test "x$external_path_file" = "x/etc/login.conf" ; then
27570 { echo "$as_me:$LINENO: WARNING:
27571 --with-default-path=PATH has no effect on this system.
27572 Edit /etc/login.conf instead." >&5
27573 echo "$as_me: WARNING:
27574 --with-default-path=PATH has no effect on this system.
27575 Edit /etc/login.conf instead." >&2;}
27576 elif test "x$withval" != "xno" ; then
27577 if test ! -z "$external_path_file" ; then
27578 { echo "$as_me:$LINENO: WARNING:
27579 --with-default-path=PATH will only be used if PATH is not defined in
27580 $external_path_file ." >&5
27581 echo "$as_me: WARNING:
27582 --with-default-path=PATH will only be used if PATH is not defined in
27583 $external_path_file ." >&2;}
27585 user_path="$withval"
27586 SERVER_PATH_MSG="$withval"
27590 if test "x$external_path_file" = "x/etc/login.conf" ; then
27591 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
27592 echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
27594 if test ! -z "$external_path_file" ; then
27595 { echo "$as_me:$LINENO: WARNING:
27596 If PATH is defined in $external_path_file, ensure the path to scp is included,
27597 otherwise scp will not work." >&5
27598 echo "$as_me: WARNING:
27599 If PATH is defined in $external_path_file, ensure the path to scp is included,
27600 otherwise scp will not work." >&2;}
27602 if test "$cross_compiling" = yes; then
27603 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
27606 cat >conftest.$ac_ext <<_ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h. */
27613 /* find out what STDPATH is */
27615 #ifdef HAVE_PATHS_H
27616 # include <paths.h>
27618 #ifndef _PATH_STDPATH
27619 # ifdef _PATH_USERPATH /* Irix */
27620 # define _PATH_STDPATH _PATH_USERPATH
27622 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
27625 #include <sys/types.h>
27626 #include <sys/stat.h>
27628 #define DATA "conftest.stdpath"
27635 fd = fopen(DATA,"w");
27639 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
27646 rm -f conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_link") 2>&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27657 { (case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_try") 2>&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; }; then
27666 user_path=`cat conftest.stdpath`
27668 echo "$as_me: program exited with status $ac_status" >&5
27669 echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27672 ( exit $ac_status )
27673 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
27675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27679 # make sure $bindir is in USER_PATH so scp will work
27680 t_bindir=`eval echo ${bindir}`
27682 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
27685 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
27687 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
27688 if test $? -ne 0 ; then
27689 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
27690 if test $? -ne 0 ; then
27691 user_path=$user_path:$t_bindir
27692 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
27693 echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
27700 if test "x$external_path_file" != "x/etc/login.conf" ; then
27702 cat >>confdefs.h <<_ACEOF
27703 #define USER_PATH "$user_path"
27709 # Set superuser path separately to user path
27711 # Check whether --with-superuser-path was given.
27712 if test "${with_superuser_path+set}" = set; then
27713 withval=$with_superuser_path;
27714 if test -n "$withval" && test "x$withval" != "xno" && \
27715 test "x${withval}" != "xyes"; then
27717 cat >>confdefs.h <<_ACEOF
27718 #define SUPERUSER_PATH "$withval"
27721 superuser_path=$withval
27729 { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
27730 echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
27731 IPV4_IN6_HACK_MSG="no"
27733 # Check whether --with-4in6 was given.
27734 if test "${with_4in6+set}" = set; then
27735 withval=$with_4in6;
27736 if test "x$withval" != "xno" ; then
27737 { echo "$as_me:$LINENO: result: yes" >&5
27738 echo "${ECHO_T}yes" >&6; }
27740 cat >>confdefs.h <<\_ACEOF
27741 #define IPV4_IN_IPV6 1
27744 IPV4_IN6_HACK_MSG="yes"
27746 { echo "$as_me:$LINENO: result: no" >&5
27747 echo "${ECHO_T}no" >&6; }
27752 if test "x$inet6_default_4in6" = "xyes"; then
27753 { echo "$as_me:$LINENO: result: yes (default)" >&5
27754 echo "${ECHO_T}yes (default)" >&6; }
27755 cat >>confdefs.h <<\_ACEOF
27756 #define IPV4_IN_IPV6 1
27759 IPV4_IN6_HACK_MSG="yes"
27761 { echo "$as_me:$LINENO: result: no (default)" >&5
27762 echo "${ECHO_T}no (default)" >&6; }
27769 # Whether to enable BSD auth support
27772 # Check whether --with-bsd-auth was given.
27773 if test "${with_bsd_auth+set}" = set; then
27774 withval=$with_bsd_auth;
27775 if test "x$withval" != "xno" ; then
27777 cat >>confdefs.h <<\_ACEOF
27788 # Where to place sshd.pid
27790 # make sure the directory exists
27791 if test ! -d $piddir ; then
27792 piddir=`eval echo ${sysconfdir}`
27794 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
27799 # Check whether --with-pid-dir was given.
27800 if test "${with_pid_dir+set}" = set; then
27801 withval=$with_pid_dir;
27802 if test -n "$withval" && test "x$withval" != "xno" && \
27803 test "x${withval}" != "xyes"; then
27805 if test ! -d $piddir ; then
27806 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
27807 echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
27816 cat >>confdefs.h <<_ACEOF
27817 #define _PATH_SSH_PIDDIR "$piddir"
27822 # Check whether --enable-lastlog was given.
27823 if test "${enable_lastlog+set}" = set; then
27824 enableval=$enable_lastlog;
27825 if test "x$enableval" = "xno" ; then
27826 cat >>confdefs.h <<\_ACEOF
27827 #define DISABLE_LASTLOG 1
27835 # Check whether --enable-utmp was given.
27836 if test "${enable_utmp+set}" = set; then
27837 enableval=$enable_utmp;
27838 if test "x$enableval" = "xno" ; then
27839 cat >>confdefs.h <<\_ACEOF
27840 #define DISABLE_UTMP 1
27848 # Check whether --enable-utmpx was given.
27849 if test "${enable_utmpx+set}" = set; then
27850 enableval=$enable_utmpx;
27851 if test "x$enableval" = "xno" ; then
27853 cat >>confdefs.h <<\_ACEOF
27854 #define DISABLE_UTMPX 1
27862 # Check whether --enable-wtmp was given.
27863 if test "${enable_wtmp+set}" = set; then
27864 enableval=$enable_wtmp;
27865 if test "x$enableval" = "xno" ; then
27866 cat >>confdefs.h <<\_ACEOF
27867 #define DISABLE_WTMP 1
27875 # Check whether --enable-wtmpx was given.
27876 if test "${enable_wtmpx+set}" = set; then
27877 enableval=$enable_wtmpx;
27878 if test "x$enableval" = "xno" ; then
27880 cat >>confdefs.h <<\_ACEOF
27881 #define DISABLE_WTMPX 1
27889 # Check whether --enable-libutil was given.
27890 if test "${enable_libutil+set}" = set; then
27891 enableval=$enable_libutil;
27892 if test "x$enableval" = "xno" ; then
27893 cat >>confdefs.h <<\_ACEOF
27894 #define DISABLE_LOGIN 1
27902 # Check whether --enable-pututline was given.
27903 if test "${enable_pututline+set}" = set; then
27904 enableval=$enable_pututline;
27905 if test "x$enableval" = "xno" ; then
27907 cat >>confdefs.h <<\_ACEOF
27908 #define DISABLE_PUTUTLINE 1
27916 # Check whether --enable-pututxline was given.
27917 if test "${enable_pututxline+set}" = set; then
27918 enableval=$enable_pututxline;
27919 if test "x$enableval" = "xno" ; then
27921 cat >>confdefs.h <<\_ACEOF
27922 #define DISABLE_PUTUTXLINE 1
27931 # Check whether --with-lastlog was given.
27932 if test "${with_lastlog+set}" = set; then
27933 withval=$with_lastlog;
27934 if test "x$withval" = "xno" ; then
27935 cat >>confdefs.h <<\_ACEOF
27936 #define DISABLE_LASTLOG 1
27939 elif test -n "$withval" && test "x${withval}" != "xyes"; then
27940 conf_lastlog_location=$withval
27948 { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
27949 echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
27950 cat >conftest.$ac_ext <<_ACEOF
27953 cat confdefs.h >>conftest.$ac_ext
27954 cat >>conftest.$ac_ext <<_ACEOF
27955 /* end confdefs.h. */
27957 #include <sys/types.h>
27959 #ifdef HAVE_LASTLOG_H
27960 # include <lastlog.h>
27962 #ifdef HAVE_PATHS_H
27963 # include <paths.h>
27965 #ifdef HAVE_LOGIN_H
27966 # include <login.h>
27972 char *lastlog = LASTLOG_FILE;
27977 rm -f conftest.$ac_objext
27978 if { (ac_try="$ac_compile"
27979 case "(($ac_try" in
27980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27981 *) ac_try_echo=$ac_try;;
27983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27984 (eval "$ac_compile") 2>conftest.er1
27986 grep -v '^ *+' conftest.er1 >conftest.err
27988 cat conftest.err >&5
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); } && {
27991 test -z "$ac_c_werror_flag" ||
27992 test ! -s conftest.err
27993 } && test -s conftest.$ac_objext; then
27994 { echo "$as_me:$LINENO: result: yes" >&5
27995 echo "${ECHO_T}yes" >&6; }
27997 echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.$ac_ext >&5
28001 { echo "$as_me:$LINENO: result: no" >&5
28002 echo "${ECHO_T}no" >&6; }
28003 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
28004 echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
28005 cat >conftest.$ac_ext <<_ACEOF
28008 cat confdefs.h >>conftest.$ac_ext
28009 cat >>conftest.$ac_ext <<_ACEOF
28010 /* end confdefs.h. */
28012 #include <sys/types.h>
28014 #ifdef HAVE_LASTLOG_H
28015 # include <lastlog.h>
28017 #ifdef HAVE_PATHS_H
28018 # include <paths.h>
28024 char *lastlog = _PATH_LASTLOG;
28029 rm -f conftest.$ac_objext
28030 if { (ac_try="$ac_compile"
28031 case "(($ac_try" in
28032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033 *) ac_try_echo=$ac_try;;
28035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28036 (eval "$ac_compile") 2>conftest.er1
28038 grep -v '^ *+' conftest.er1 >conftest.err
28040 cat conftest.err >&5
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); } && {
28043 test -z "$ac_c_werror_flag" ||
28044 test ! -s conftest.err
28045 } && test -s conftest.$ac_objext; then
28046 { echo "$as_me:$LINENO: result: yes" >&5
28047 echo "${ECHO_T}yes" >&6; }
28049 echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28053 { echo "$as_me:$LINENO: result: no" >&5
28054 echo "${ECHO_T}no" >&6; }
28055 system_lastlog_path=no
28059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28066 if test -z "$conf_lastlog_location"; then
28067 if test x"$system_lastlog_path" = x"no" ; then
28068 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
28069 if (test -d "$f" || test -f "$f") ; then
28070 conf_lastlog_location=$f
28073 if test -z "$conf_lastlog_location"; then
28074 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
28075 echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
28080 if test -n "$conf_lastlog_location"; then
28082 cat >>confdefs.h <<_ACEOF
28083 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
28088 { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
28089 echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
28090 cat >conftest.$ac_ext <<_ACEOF
28093 cat confdefs.h >>conftest.$ac_ext
28094 cat >>conftest.$ac_ext <<_ACEOF
28095 /* end confdefs.h. */
28097 #include <sys/types.h>
28099 #ifdef HAVE_PATHS_H
28100 # include <paths.h>
28106 char *utmp = UTMP_FILE;
28111 rm -f conftest.$ac_objext
28112 if { (ac_try="$ac_compile"
28113 case "(($ac_try" in
28114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28115 *) ac_try_echo=$ac_try;;
28117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28118 (eval "$ac_compile") 2>conftest.er1
28120 grep -v '^ *+' conftest.er1 >conftest.err
28122 cat conftest.err >&5
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); } && {
28125 test -z "$ac_c_werror_flag" ||
28126 test ! -s conftest.err
28127 } && test -s conftest.$ac_objext; then
28128 { echo "$as_me:$LINENO: result: yes" >&5
28129 echo "${ECHO_T}yes" >&6; }
28131 echo "$as_me: failed program was:" >&5
28132 sed 's/^/| /' conftest.$ac_ext >&5
28134 { echo "$as_me:$LINENO: result: no" >&5
28135 echo "${ECHO_T}no" >&6; }
28136 system_utmp_path=no
28140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28141 if test -z "$conf_utmp_location"; then
28142 if test x"$system_utmp_path" = x"no" ; then
28143 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
28144 if test -f $f ; then
28145 conf_utmp_location=$f
28148 if test -z "$conf_utmp_location"; then
28149 cat >>confdefs.h <<\_ACEOF
28150 #define DISABLE_UTMP 1
28156 if test -n "$conf_utmp_location"; then
28158 cat >>confdefs.h <<_ACEOF
28159 #define CONF_UTMP_FILE "$conf_utmp_location"
28164 { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
28165 echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
28166 cat >conftest.$ac_ext <<_ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h. */
28173 #include <sys/types.h>
28175 #ifdef HAVE_PATHS_H
28176 # include <paths.h>
28182 char *wtmp = WTMP_FILE;
28187 rm -f conftest.$ac_objext
28188 if { (ac_try="$ac_compile"
28189 case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_compile") 2>conftest.er1
28196 grep -v '^ *+' conftest.er1 >conftest.err
28198 cat conftest.err >&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } && {
28201 test -z "$ac_c_werror_flag" ||
28202 test ! -s conftest.err
28203 } && test -s conftest.$ac_objext; then
28204 { echo "$as_me:$LINENO: result: yes" >&5
28205 echo "${ECHO_T}yes" >&6; }
28207 echo "$as_me: failed program was:" >&5
28208 sed 's/^/| /' conftest.$ac_ext >&5
28210 { echo "$as_me:$LINENO: result: no" >&5
28211 echo "${ECHO_T}no" >&6; }
28212 system_wtmp_path=no
28216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28217 if test -z "$conf_wtmp_location"; then
28218 if test x"$system_wtmp_path" = x"no" ; then
28219 for f in /usr/adm/wtmp /var/log/wtmp; do
28220 if test -f $f ; then
28221 conf_wtmp_location=$f
28224 if test -z "$conf_wtmp_location"; then
28225 cat >>confdefs.h <<\_ACEOF
28226 #define DISABLE_WTMP 1
28232 if test -n "$conf_wtmp_location"; then
28234 cat >>confdefs.h <<_ACEOF
28235 #define CONF_WTMP_FILE "$conf_wtmp_location"
28241 { echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
28242 echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
28243 cat >conftest.$ac_ext <<_ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h. */
28250 #include <sys/types.h>
28252 #ifdef HAVE_UTMPX_H
28255 #ifdef HAVE_PATHS_H
28256 # include <paths.h>
28262 char *utmpx = UTMPX_FILE;
28267 rm -f conftest.$ac_objext
28268 if { (ac_try="$ac_compile"
28269 case "(($ac_try" in
28270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28271 *) ac_try_echo=$ac_try;;
28273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28274 (eval "$ac_compile") 2>conftest.er1
28276 grep -v '^ *+' conftest.er1 >conftest.err
28278 cat conftest.err >&5
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); } && {
28281 test -z "$ac_c_werror_flag" ||
28282 test ! -s conftest.err
28283 } && test -s conftest.$ac_objext; then
28284 { echo "$as_me:$LINENO: result: yes" >&5
28285 echo "${ECHO_T}yes" >&6; }
28287 echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28290 { echo "$as_me:$LINENO: result: no" >&5
28291 echo "${ECHO_T}no" >&6; }
28292 system_utmpx_path=no
28296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28297 if test -z "$conf_utmpx_location"; then
28298 if test x"$system_utmpx_path" = x"no" ; then
28299 cat >>confdefs.h <<\_ACEOF
28300 #define DISABLE_UTMPX 1
28306 cat >>confdefs.h <<_ACEOF
28307 #define CONF_UTMPX_FILE "$conf_utmpx_location"
28312 { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
28313 echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
28314 cat >conftest.$ac_ext <<_ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h. */
28321 #include <sys/types.h>
28323 #ifdef HAVE_UTMPX_H
28326 #ifdef HAVE_PATHS_H
28327 # include <paths.h>
28333 char *wtmpx = WTMPX_FILE;
28338 rm -f conftest.$ac_objext
28339 if { (ac_try="$ac_compile"
28340 case "(($ac_try" in
28341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342 *) ac_try_echo=$ac_try;;
28344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28345 (eval "$ac_compile") 2>conftest.er1
28347 grep -v '^ *+' conftest.er1 >conftest.err
28349 cat conftest.err >&5
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); } && {
28352 test -z "$ac_c_werror_flag" ||
28353 test ! -s conftest.err
28354 } && test -s conftest.$ac_objext; then
28355 { echo "$as_me:$LINENO: result: yes" >&5
28356 echo "${ECHO_T}yes" >&6; }
28358 echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28361 { echo "$as_me:$LINENO: result: no" >&5
28362 echo "${ECHO_T}no" >&6; }
28363 system_wtmpx_path=no
28367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28368 if test -z "$conf_wtmpx_location"; then
28369 if test x"$system_wtmpx_path" = x"no" ; then
28370 cat >>confdefs.h <<\_ACEOF
28371 #define DISABLE_WTMPX 1
28377 cat >>confdefs.h <<_ACEOF
28378 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
28384 if test ! -z "$blibpath" ; then
28385 LDFLAGS="$LDFLAGS $blibflags$blibpath"
28386 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
28387 echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
28390 CFLAGS="$CFLAGS $werror_flags"
28393 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"
28395 cat >confcache <<\_ACEOF
28396 # This file is a shell script that caches the results of configure
28397 # tests run on this system so they can be shared between configure
28398 # scripts and configure runs, see configure's option --config-cache.
28399 # It is not useful on other systems. If it contains results you don't
28400 # want to keep, you may remove or edit it.
28402 # config.status only pays attention to the cache file if you give it
28403 # the --recheck option to rerun configure.
28405 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28406 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28407 # following values.
28411 # The following way of writing the cache mishandles newlines in values,
28412 # but we know of no workaround that is simple, portable, and efficient.
28413 # So, we kill variables containing newlines.
28414 # Ultrix sh set writes to stderr and can't be redirected directly,
28415 # and sets the high bit in the cache file unless we assign to the vars.
28417 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28418 eval ac_val=\$$ac_var
28422 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28423 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28426 _ | IFS | as_nl) ;; #(
28427 *) $as_unset $ac_var ;;
28433 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28434 *${as_nl}ac_space=\ *)
28435 # `set' does not quote correctly, so add quotes (double-quote
28436 # substitution turns \\\\ into \\, and sed turns \\ into \).
28439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28442 # `set' quotes correctly as required by POSIX, so do not add quotes.
28443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28454 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28456 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28457 if test -w "$cache_file"; then
28458 test "x$cache_file" != "x/dev/null" &&
28459 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28460 echo "$as_me: updating cache $cache_file" >&6;}
28461 cat confcache >$cache_file
28463 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28464 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28469 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28470 # Let make expand exec_prefix.
28471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28473 DEFS=-DHAVE_CONFIG_H
28477 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28478 # 1. Remove the extension, and $U if already installed.
28479 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28480 ac_i=`echo "$ac_i" | sed "$ac_script"`
28481 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28482 # will be set to the directory where LIBOBJS objects are built.
28483 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28484 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28486 LIBOBJS=$ac_libobjs
28488 LTLIBOBJS=$ac_ltlibobjs
28492 : ${CONFIG_STATUS=./config.status}
28493 ac_clean_files_save=$ac_clean_files
28494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28495 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28496 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28497 cat >$CONFIG_STATUS <<_ACEOF
28499 # Generated by $as_me.
28500 # Run this file to recreate the current configuration.
28501 # Compiler output produced by configure, useful for debugging
28502 # configure, is in config.log if it exists.
28505 ac_cs_recheck=false
28507 SHELL=\${CONFIG_SHELL-$SHELL}
28510 cat >>$CONFIG_STATUS <<\_ACEOF
28511 ## --------------------- ##
28512 ## M4sh Initialization. ##
28513 ## --------------------- ##
28515 # Be more Bourne compatible
28516 DUALCASE=1; export DUALCASE # for MKS sh
28517 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28520 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28521 # is contrary to our usage. Disable this feature.
28522 alias -g '${1+"$@"}'='"$@"'
28523 setopt NO_GLOB_SUBST
28525 case `(set -o) 2>/dev/null` in
28526 *posix*) set -o posix ;;
28535 # Avoid depending upon Character Ranges.
28536 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28537 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28538 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28539 as_cr_digits='0123456789'
28540 as_cr_alnum=$as_cr_Letters$as_cr_digits
28542 # The user is always right.
28543 if test "${PATH_SEPARATOR+set}" != set; then
28544 echo "#! /bin/sh" >conf$$.sh
28545 echo "exit 0" >>conf$$.sh
28547 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28555 # Support unset when possible.
28556 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28564 # We need space, tab and new line, in precisely that order. Quoting is
28565 # there to prevent editors from complaining about space-tab.
28566 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28567 # splitting by setting IFS to empty value.)
28572 # Find who we are. Look in the path if we contain no directory separator.
28574 *[\\/]* ) as_myself=$0 ;;
28575 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28576 for as_dir in $PATH
28579 test -z "$as_dir" && as_dir=.
28580 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28586 # We did not find ourselves, most probably we were run as `sh COMMAND'
28587 # in which case we are not to be found in the path.
28588 if test "x$as_myself" = x; then
28591 if test ! -f "$as_myself"; then
28592 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28593 { (exit 1); exit 1; }
28596 # Work around bugs in pre-3.0 UWIN ksh.
28597 for as_var in ENV MAIL MAILPATH
28598 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28606 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28607 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28608 LC_TELEPHONE LC_TIME
28610 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28611 eval $as_var=C; export $as_var
28613 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28617 # Required to use basename.
28618 if expr a : '\(a\)' >/dev/null 2>&1 &&
28619 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28625 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28626 as_basename=basename
28632 # Name of the executable.
28633 as_me=`$as_basename -- "$0" ||
28634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28635 X"$0" : 'X\(//\)$' \| \
28636 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28638 sed '/^.*\/\([^/][^/]*\)\/*$/{
28657 as_lineno_1=$LINENO
28658 as_lineno_2=$LINENO
28659 test "x$as_lineno_1" != "x$as_lineno_2" &&
28660 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28662 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28663 # uniformly replaced by the line number. The first 'sed' inserts a
28664 # line-number line after each line using $LINENO; the second 'sed'
28665 # does the real work. The second script uses 'N' to pair each
28666 # line-number line with the line containing $LINENO, and appends
28667 # trailing '-' during substitution so that $LINENO is not a special
28668 # case at line end.
28669 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28670 # scripts with optimization help from Paolo Bonzini. Blame Lee
28671 # E. McMahon (1931-1989) for sed's syntax. :-)
28683 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28686 ' >$as_me.lineno &&
28687 chmod +x "$as_me.lineno" ||
28688 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28689 { (exit 1); exit 1; }; }
28691 # Don't try to exec as it changes $[0], causing all sort of problems
28692 # (the dirname of $[0] is not the place where we might find the
28693 # original and so on. Autoconf is especially sensitive to this).
28694 . "./$as_me.lineno"
28695 # Exit status is that of the last command.
28700 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28706 ECHO_C= ECHO_N= ECHO_T=
28707 case `echo -n x` in
28709 case `echo 'x\c'` in
28710 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28717 if expr a : '\(a\)' >/dev/null 2>&1 &&
28718 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28724 rm -f conf$$ conf$$.exe conf$$.file
28725 if test -d conf$$.dir; then
28726 rm -f conf$$.dir/conf$$.file
28732 if ln -s conf$$.file conf$$ 2>/dev/null; then
28734 # ... but there are two gotchas:
28735 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28736 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28737 # In both cases, we have to default to `cp -p'.
28738 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28740 elif ln conf$$.file conf$$ 2>/dev/null; then
28745 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28746 rmdir conf$$.dir 2>/dev/null
28748 if mkdir -p . 2>/dev/null; then
28751 test -d ./-p && rmdir ./-p
28755 if test -x / >/dev/null 2>&1; then
28756 as_test_x='test -x'
28758 if ls -dL / >/dev/null 2>&1; then
28765 if test -d "$1"; then
28771 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28772 ???[sx]*):;;*)false;;esac;fi
28776 as_executable_p=$as_test_x
28778 # Sed expression to map a string onto a valid CPP name.
28779 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28781 # Sed expression to map a string onto a valid variable name.
28782 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28787 # Save the log message, to keep $[0] and so on meaningful, and to
28788 # report actual input values of CONFIG_FILES etc. instead of their
28789 # values after options handling.
28791 This file was extended by OpenSSH $as_me Portable, which was
28792 generated by GNU Autoconf 2.61. Invocation command line was
28794 CONFIG_FILES = $CONFIG_FILES
28795 CONFIG_HEADERS = $CONFIG_HEADERS
28796 CONFIG_LINKS = $CONFIG_LINKS
28797 CONFIG_COMMANDS = $CONFIG_COMMANDS
28800 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28805 cat >>$CONFIG_STATUS <<_ACEOF
28806 # Files that config.status was made for.
28807 config_files="$ac_config_files"
28808 config_headers="$ac_config_headers"
28812 cat >>$CONFIG_STATUS <<\_ACEOF
28814 \`$as_me' instantiates files from templates according to the
28815 current configuration.
28817 Usage: $0 [OPTIONS] [FILE]...
28819 -h, --help print this help, then exit
28820 -V, --version print version number and configuration settings, then exit
28821 -q, --quiet do not print progress messages
28822 -d, --debug don't remove temporary files
28823 --recheck update $as_me by reconfiguring in the same conditions
28824 --file=FILE[:TEMPLATE]
28825 instantiate the configuration file FILE
28826 --header=FILE[:TEMPLATE]
28827 instantiate the configuration header FILE
28829 Configuration files:
28832 Configuration headers:
28835 Report bugs to <bug-autoconf@gnu.org>."
28838 cat >>$CONFIG_STATUS <<_ACEOF
28840 OpenSSH config.status Portable
28841 configured by $0, generated by GNU Autoconf 2.61,
28842 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28844 Copyright (C) 2006 Free Software Foundation, Inc.
28845 This config.status script is free software; the Free Software Foundation
28846 gives unlimited permission to copy, distribute and modify it."
28853 cat >>$CONFIG_STATUS <<\_ACEOF
28854 # If no file are specified by the user, then we need to provide default
28855 # value. By we need to know if files were specified by the user.
28861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28862 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28873 # Handling of the options.
28874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28877 echo "$ac_cs_version"; exit ;;
28878 --debug | --debu | --deb | --de | --d | -d )
28880 --file | --fil | --fi | --f )
28882 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28883 ac_need_defaults=false;;
28884 --header | --heade | --head | --hea )
28886 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28887 ac_need_defaults=false;;
28889 # Conflict between --help and --header
28890 { echo "$as_me: error: ambiguous option: $1
28891 Try \`$0 --help' for more information." >&2
28892 { (exit 1); exit 1; }; };;
28893 --help | --hel | -h )
28894 echo "$ac_cs_usage"; exit ;;
28895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28896 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28899 # This is an error.
28900 -*) { echo "$as_me: error: unrecognized option: $1
28901 Try \`$0 --help' for more information." >&2
28902 { (exit 1); exit 1; }; } ;;
28904 *) ac_config_targets="$ac_config_targets $1"
28905 ac_need_defaults=false ;;
28911 ac_configure_extra_args=
28913 if $ac_cs_silent; then
28915 ac_configure_extra_args="$ac_configure_extra_args --silent"
28919 cat >>$CONFIG_STATUS <<_ACEOF
28920 if \$ac_cs_recheck; then
28921 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28922 CONFIG_SHELL=$SHELL
28923 export CONFIG_SHELL
28924 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28928 cat >>$CONFIG_STATUS <<\_ACEOF
28932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28933 ## Running $as_me. ##
28939 cat >>$CONFIG_STATUS <<_ACEOF
28942 cat >>$CONFIG_STATUS <<\_ACEOF
28944 # Handling of arguments.
28945 for ac_config_target in $ac_config_targets
28947 case $ac_config_target in
28948 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28949 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28950 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
28951 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
28952 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
28953 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
28954 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
28955 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
28956 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
28957 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
28959 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28960 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28961 { (exit 1); exit 1; }; };;
28966 # If the user did not use the arguments to specify the items to instantiate,
28967 # then the envvar interface is used. Set only those that are not.
28968 # We use the long form for the default assignment because of an extremely
28969 # bizarre bug on SunOS 4.1.3.
28970 if $ac_need_defaults; then
28971 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28972 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28975 # Have a temporary directory for convenience. Make it in the build tree
28976 # simply because there is no reason against having it here, and in addition,
28977 # creating and moving files from /tmp can sometimes cause problems.
28978 # Hook for its removal unless debugging.
28979 # Note that there is a small window in which the directory will not be cleaned:
28980 # after its creation but before its name has been assigned to `$tmp'.
28984 trap 'exit_status=$?
28985 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28987 trap '{ (exit 1); exit 1; }' 1 2 13 15
28989 # Create a (secure) tmp directory for tmp files.
28992 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28993 test -n "$tmp" && test -d "$tmp"
28996 tmp=./conf$$-$RANDOM
28997 (umask 077 && mkdir "$tmp")
29000 echo "$me: cannot create a temporary directory in ." >&2
29001 { (exit 1); exit 1; }
29005 # Set up the sed scripts for CONFIG_FILES section.
29008 # No need to generate the scripts if there are no CONFIG_FILES.
29009 # This happens for instance when ./config.status config.h
29010 if test -n "$CONFIG_FILES"; then
29017 for ac_last_try in false false false false false :; do
29018 cat >conf$$subs.sed <<_ACEOF
29019 SHELL!$SHELL$ac_delim
29020 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29021 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29022 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29023 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29024 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29025 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29026 exec_prefix!$exec_prefix$ac_delim
29027 prefix!$prefix$ac_delim
29028 program_transform_name!$program_transform_name$ac_delim
29029 bindir!$bindir$ac_delim
29030 sbindir!$sbindir$ac_delim
29031 libexecdir!$libexecdir$ac_delim
29032 datarootdir!$datarootdir$ac_delim
29033 datadir!$datadir$ac_delim
29034 sysconfdir!$sysconfdir$ac_delim
29035 sharedstatedir!$sharedstatedir$ac_delim
29036 localstatedir!$localstatedir$ac_delim
29037 includedir!$includedir$ac_delim
29038 oldincludedir!$oldincludedir$ac_delim
29039 docdir!$docdir$ac_delim
29040 infodir!$infodir$ac_delim
29041 htmldir!$htmldir$ac_delim
29042 dvidir!$dvidir$ac_delim
29043 pdfdir!$pdfdir$ac_delim
29044 psdir!$psdir$ac_delim
29045 libdir!$libdir$ac_delim
29046 localedir!$localedir$ac_delim
29047 mandir!$mandir$ac_delim
29048 DEFS!$DEFS$ac_delim
29049 ECHO_C!$ECHO_C$ac_delim
29050 ECHO_N!$ECHO_N$ac_delim
29051 ECHO_T!$ECHO_T$ac_delim
29052 LIBS!$LIBS$ac_delim
29053 build_alias!$build_alias$ac_delim
29054 host_alias!$host_alias$ac_delim
29055 target_alias!$target_alias$ac_delim
29057 CFLAGS!$CFLAGS$ac_delim
29058 LDFLAGS!$LDFLAGS$ac_delim
29059 CPPFLAGS!$CPPFLAGS$ac_delim
29060 ac_ct_CC!$ac_ct_CC$ac_delim
29061 EXEEXT!$EXEEXT$ac_delim
29062 OBJEXT!$OBJEXT$ac_delim
29063 build!$build$ac_delim
29064 build_cpu!$build_cpu$ac_delim
29065 build_vendor!$build_vendor$ac_delim
29066 build_os!$build_os$ac_delim
29067 host!$host$ac_delim
29068 host_cpu!$host_cpu$ac_delim
29069 host_vendor!$host_vendor$ac_delim
29070 host_os!$host_os$ac_delim
29072 GREP!$GREP$ac_delim
29073 EGREP!$EGREP$ac_delim
29075 RANLIB!$RANLIB$ac_delim
29076 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29077 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29078 INSTALL_DATA!$INSTALL_DATA$ac_delim
29081 KILL!$KILL$ac_delim
29082 PERL!$PERL$ac_delim
29085 TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
29087 TEST_SHELL!$TEST_SHELL$ac_delim
29088 PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
29089 PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
29090 MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
29091 STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
29092 LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
29093 PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
29095 SSHDLIBS!$SSHDLIBS$ac_delim
29096 LIBEDIT!$LIBEDIT$ac_delim
29097 INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
29098 SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
29099 PROG_LS!$PROG_LS$ac_delim
29100 PROG_NETSTAT!$PROG_NETSTAT$ac_delim
29101 PROG_ARP!$PROG_ARP$ac_delim
29102 PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
29103 PROG_JSTAT!$PROG_JSTAT$ac_delim
29104 PROG_PS!$PROG_PS$ac_delim
29105 PROG_SAR!$PROG_SAR$ac_delim
29106 PROG_W!$PROG_W$ac_delim
29107 PROG_WHO!$PROG_WHO$ac_delim
29108 PROG_LAST!$PROG_LAST$ac_delim
29109 PROG_LASTLOG!$PROG_LASTLOG$ac_delim
29110 PROG_DF!$PROG_DF$ac_delim
29111 PROG_VMSTAT!$PROG_VMSTAT$ac_delim
29112 PROG_UPTIME!$PROG_UPTIME$ac_delim
29113 PROG_IPCS!$PROG_IPCS$ac_delim
29114 PROG_TAIL!$PROG_TAIL$ac_delim
29115 INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
29118 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29120 elif $ac_last_try; then
29121 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29122 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29123 { (exit 1); exit 1; }; }
29125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29129 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29130 if test -n "$ac_eof"; then
29131 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29132 ac_eof=`expr $ac_eof + 1`
29135 cat >>$CONFIG_STATUS <<_ACEOF
29136 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29137 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29140 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29141 s/^/s,@/; s/!/@,|#_!!_#|/
29144 s/'"$ac_delim"'$/,g/; t
29146 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29147 ' >>$CONFIG_STATUS <conf$$subs.sed
29148 rm -f conf$$subs.sed
29149 cat >>$CONFIG_STATUS <<_ACEOF
29155 for ac_last_try in false false false false false :; do
29156 cat >conf$$subs.sed <<_ACEOF
29157 OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim
29158 PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
29159 xauth_path!$xauth_path$ac_delim
29160 STRIP_OPT!$STRIP_OPT$ac_delim
29161 XAUTH_PATH!$XAUTH_PATH$ac_delim
29162 NROFF!$NROFF$ac_delim
29163 MANTYPE!$MANTYPE$ac_delim
29164 mansubdir!$mansubdir$ac_delim
29165 user_path!$user_path$ac_delim
29166 piddir!$piddir$ac_delim
29167 LIBOBJS!$LIBOBJS$ac_delim
29168 LTLIBOBJS!$LTLIBOBJS$ac_delim
29171 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
29173 elif $ac_last_try; then
29174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29175 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29176 { (exit 1); exit 1; }; }
29178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29182 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29183 if test -n "$ac_eof"; then
29184 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29185 ac_eof=`expr $ac_eof + 1`
29188 cat >>$CONFIG_STATUS <<_ACEOF
29189 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29193 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29194 s/^/s,@/; s/!/@,|#_!!_#|/
29197 s/'"$ac_delim"'$/,g/; t
29199 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29200 ' >>$CONFIG_STATUS <conf$$subs.sed
29201 rm -f conf$$subs.sed
29202 cat >>$CONFIG_STATUS <<_ACEOF
29209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29211 # trailing colons and then remove the whole line if VPATH becomes empty
29212 # (actually we leave an empty line to preserve line numbers).
29213 if test "x$srcdir" = x.; then
29214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29215 s/:*\$(srcdir):*/:/
29216 s/:*\${srcdir}:*/:/
29218 s/^\([^=]*=[ ]*\):*/\1/
29224 cat >>$CONFIG_STATUS <<\_ACEOF
29225 fi # test -n "$CONFIG_FILES"
29228 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
29231 :[FHLC]) ac_mode=$ac_tag; continue;;
29233 case $ac_mode$ac_tag in
29235 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29236 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29237 { (exit 1); exit 1; }; };;
29238 :[FH]-) ac_tag=-:-;;
29239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29256 -) ac_f="$tmp/stdin";;
29257 *) # Look for the file first in the build tree, then in the source tree
29258 # (if the path is not absolute). The absolute path cannot be DOS-style,
29259 # because $ac_f cannot contain `:'.
29263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29265 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29266 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29267 { (exit 1); exit 1; }; };;
29269 ac_file_inputs="$ac_file_inputs $ac_f"
29272 # Let's still pretend it is `configure' which instantiates (i.e., don't
29273 # use $as_me), people would be surprised to read:
29274 # /* config.h. Generated by config.status. */
29275 configure_input="Generated from "`IFS=:
29276 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29277 if test x"$ac_file" != x-; then
29278 configure_input="$ac_file. $configure_input"
29279 { echo "$as_me:$LINENO: creating $ac_file" >&5
29280 echo "$as_me: creating $ac_file" >&6;}
29284 *:-:* | *:-) cat >"$tmp/stdin";;
29289 ac_dir=`$as_dirname -- "$ac_file" ||
29290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29291 X"$ac_file" : 'X\(//\)[^/]' \| \
29292 X"$ac_file" : 'X\(//\)$' \| \
29293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29299 /^X\(\/\/\)[^/].*/{
29314 -*) as_dir=./$as_dir;;
29316 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29320 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29321 *) as_qdir=$as_dir;;
29323 as_dirs="'$as_qdir' $as_dirs"
29324 as_dir=`$as_dirname -- "$as_dir" ||
29325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29326 X"$as_dir" : 'X\(//\)[^/]' \| \
29327 X"$as_dir" : 'X\(//\)$' \| \
29328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29334 /^X\(\/\/\)[^/].*/{
29347 test -d "$as_dir" && break
29349 test -z "$as_dirs" || eval "mkdir $as_dirs"
29350 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29351 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29352 { (exit 1); exit 1; }; }; }
29356 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29359 # A ".." for each directory in $ac_dir_suffix.
29360 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29361 case $ac_top_builddir_sub in
29362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29366 ac_abs_top_builddir=$ac_pwd
29367 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29368 # for backward compatibility:
29369 ac_top_builddir=$ac_top_build_prefix
29372 .) # We are building in place.
29374 ac_top_srcdir=$ac_top_builddir_sub
29375 ac_abs_top_srcdir=$ac_pwd ;;
29376 [\\/]* | ?:[\\/]* ) # Absolute name.
29377 ac_srcdir=$srcdir$ac_dir_suffix;
29378 ac_top_srcdir=$srcdir
29379 ac_abs_top_srcdir=$srcdir ;;
29380 *) # Relative name.
29381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29382 ac_top_srcdir=$ac_top_build_prefix$srcdir
29383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29385 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29396 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29400 cat >>$CONFIG_STATUS <<\_ACEOF
29401 # If the template does not know about datarootdir, expand it.
29402 # FIXME: This hack should be removed a few years after 2.60.
29403 ac_datarootdir_hack=; ac_datarootdir_seen=
29405 case `sed -n '/datarootdir/ {
29414 ' $ac_file_inputs` in
29415 *datarootdir*) ac_datarootdir_seen=yes;;
29416 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29417 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29418 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29420 cat >>$CONFIG_STATUS <<_ACEOF
29421 ac_datarootdir_hack='
29422 s&@datadir@&$datadir&g
29423 s&@docdir@&$docdir&g
29424 s&@infodir@&$infodir&g
29425 s&@localedir@&$localedir&g
29426 s&@mandir@&$mandir&g
29427 s&\\\${datarootdir}&$datarootdir&g' ;;
29431 # Neutralize VPATH when `$srcdir' = `.'.
29432 # Shell code in configure.ac might set extrasub.
29433 # FIXME: do we really want to maintain this feature?
29434 cat >>$CONFIG_STATUS <<_ACEOF
29438 cat >>$CONFIG_STATUS <<\_ACEOF
29440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29441 s&@configure_input@&$configure_input&;t t
29442 s&@top_builddir@&$ac_top_builddir_sub&;t t
29443 s&@srcdir@&$ac_srcdir&;t t
29444 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29445 s&@top_srcdir@&$ac_top_srcdir&;t t
29446 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29447 s&@builddir@&$ac_builddir&;t t
29448 s&@abs_builddir@&$ac_abs_builddir&;t t
29449 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29450 s&@INSTALL@&$ac_INSTALL&;t t
29451 $ac_datarootdir_hack
29452 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29454 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29455 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29457 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29458 which seems to be undefined. Please make sure it is defined." >&5
29459 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29460 which seems to be undefined. Please make sure it is defined." >&2;}
29464 -) cat "$tmp/out"; rm -f "$tmp/out";;
29465 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29474 # Transform confdefs.h into a sed script `conftest.defines', that
29475 # substitutes the proper values into config.h.in to produce config.h.
29476 rm -f conftest.defines conftest.tail
29477 # First, append a space to every undef/define line, to ease matching.
29478 echo 's/$/ /' >conftest.defines
29479 # Then, protect against being on the right side of a sed subst, or in
29480 # an unquoted here document, in config.status. If some macros were
29481 # called several times there might be several #defines for the same
29482 # symbol, which is useless. But do not sort them, since the last
29483 # AC_DEFINE must be honored.
29484 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29485 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29486 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29487 # PARAMS is the parameter list in the macro definition--in most cases, it's
29488 # just an empty string.
29489 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29490 ac_dB='\\)[ (].*,\\1define\\2'
29498 s/^[ ]*#[ ]*define[ ][ ]*//
29503 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29504 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29505 ' >>conftest.defines
29507 # Remove the space that was appended to ease matching.
29508 # Then replace #undef with comments. This is necessary, for
29509 # example, in the case of _POSIX_SOURCE, which is predefined and required
29510 # on some systems where configure will not decide to define it.
29511 # (The regexp can be short, since the line contains either #define or #undef.)
29513 s,^[ #]*u.*,/* & */,' >>conftest.defines
29515 # Break up conftest.defines:
29516 ac_max_sed_lines=50
29518 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29519 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29520 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29522 ac_in='$ac_file_inputs'
29523 ac_out='"$tmp/out1"'
29524 ac_nxt='"$tmp/out2"'
29528 # Write a here document:
29529 cat >>$CONFIG_STATUS <<_ACEOF
29530 # First, check the format of the line:
29531 cat >"\$tmp/defines.sed" <<\\CEOF
29532 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29533 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29537 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29539 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29540 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29541 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29542 grep . conftest.tail >/dev/null || break
29543 rm -f conftest.defines
29544 mv conftest.tail conftest.defines
29546 rm -f conftest.defines conftest.tail
29548 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29549 cat >>$CONFIG_STATUS <<\_ACEOF
29550 if test x"$ac_file" != x-; then
29551 echo "/* $configure_input */" >"$tmp/config.h"
29552 cat "$ac_result" >>"$tmp/config.h"
29553 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29555 echo "$as_me: $ac_file is unchanged" >&6;}
29558 mv "$tmp/config.h" $ac_file
29561 echo "/* $configure_input */"
29573 { (exit 0); exit 0; }
29575 chmod +x $CONFIG_STATUS
29576 ac_clean_files=$ac_clean_files_save
29579 # configure is writing to config.log, and then calls config.status.
29580 # config.status does its own redirection, appending to config.log.
29581 # Unfortunately, on DOS this fails, as config.log is still kept open
29582 # by configure, so config.status won't be able to write to it; its
29583 # output is simply discarded. So we exec the FD to /dev/null,
29584 # effectively closing config.log, so it can be properly (re)opened and
29585 # appended to by config.status. When coming back to configure, we
29586 # need to make the FD available again.
29587 if test "$no_create" != yes; then
29589 ac_config_status_args=
29590 test "$silent" = yes &&
29591 ac_config_status_args="$ac_config_status_args --quiet"
29593 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29595 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29596 # would make configure fail if this is the last instruction.
29597 $ac_cs_success || { (exit 1); exit 1; }
29601 # Print summary of options
29603 # Someone please show me a better way :)
29604 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
29605 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
29606 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
29607 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
29608 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
29609 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
29610 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
29611 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
29612 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
29613 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
29616 echo "OpenSSH has been configured with the following options:"
29617 echo " User binaries: $B"
29618 echo " System binaries: $C"
29619 echo " Configuration files: $D"
29620 echo " Askpass program: $E"
29621 echo " Manual pages: $F"
29622 echo " PID file: $G"
29623 echo " Privilege separation chroot path: $H"
29624 if test "x$external_path_file" = "x/etc/login.conf" ; then
29625 echo " At runtime, sshd will use the path defined in $external_path_file"
29626 echo " Make sure the path to scp is present, otherwise scp will not work"
29628 echo " sshd default user PATH: $I"
29629 if test ! -z "$external_path_file"; then
29630 echo " (If PATH is set in $external_path_file it will be used instead. If"
29631 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
29634 if test ! -z "$superuser_path" ; then
29635 echo " sshd superuser user PATH: $J"
29637 echo " Manpage format: $MANTYPE"
29638 echo " PAM support: $PAM_MSG"
29639 echo " OSF SIA support: $SIA_MSG"
29640 echo " KerberosV support: $KRB5_MSG"
29641 echo " SELinux support: $SELINUX_MSG"
29642 echo " Smartcard support: $SCARD_MSG"
29643 echo " S/KEY support: $SKEY_MSG"
29644 echo " TCP Wrappers support: $TCPW_MSG"
29645 echo " MD5 password support: $MD5_MSG"
29646 echo " libedit support: $LIBEDIT_MSG"
29647 echo " Solaris process contract support: $SPC_MSG"
29648 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
29649 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
29650 echo " BSD Auth support: $BSD_AUTH_MSG"
29651 echo " Random number source: $RAND_MSG"
29652 if test ! -z "$USE_RAND_HELPER" ; then
29653 echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
29658 echo " Host: ${host}"
29659 echo " Compiler: ${CC}"
29660 echo " Compiler flags: ${CFLAGS}"
29661 echo "Preprocessor flags: ${CPPFLAGS}"
29662 echo " Linker flags: ${LDFLAGS}"
29663 echo " Libraries: ${LIBS}"
29664 if test ! -z "${SSHDLIBS}"; then
29665 echo " +for sshd: ${SSHDLIBS}"
29670 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
29671 echo "SVR4 style packages are supported with \"make package\""
29675 if test "x$PAM_MSG" = "xyes" ; then
29676 echo "PAM is enabled. You may need to install a PAM control file "
29677 echo "for sshd, otherwise password authentication may fail. "
29678 echo "Example PAM control files can be found in the contrib/ "
29679 echo "subdirectory"
29683 if test ! -z "$RAND_HELPER_CMDHASH" ; then
29684 echo "WARNING: you are using the builtin random number collection "
29685 echo "service. Please read WARNING.RNG and request that your OS "
29686 echo "vendor includes kernel-based random number collection in "
29687 echo "future versions of your OS."
29691 if test ! -z "$NO_PEERCHECK" ; then
29692 echo "WARNING: the operating system that you are using does not"
29693 echo "appear to support getpeereid(), getpeerucred() or the"
29694 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
29695 echo "enforce security checks to prevent unauthorised connections to"
29696 echo "ssh-agent. Their absence increases the risk that a malicious"
29697 echo "user can connect to your agent."
29701 if test "$AUDIT_MODULE" = "bsm" ; then
29702 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
29703 echo "See the Solaris section in README.platform for details."