2 # From configure.ac Revision: 1.480 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 for OpenSSH Portable.
6 # Report bugs to <openssh-unix-dev@mindrot.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: openssh-unix-dev@mindrot.org about your system,
236 $0: including any error possibly output before this
237 $0: message. Then install a modern shell, or manually run
238 $0: the script under such a shell if you do have one."
244 SHELL=${CONFIG_SHELL-/bin/sh}
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
255 # Portably unset VAR.
258 { eval $1=; unset $1;}
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282 # Create "$as_dir" as a directory, including parents if necessary.
287 -*) as_dir=./$as_dir;;
289 test -d "$as_dir" || eval $as_mkdir_p || {
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 test -d "$as_dir" && break
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 as_val=`expr "$@" || test $? -eq 1`
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
370 as_status=$1; test $as_status -eq 0 && as_status=1
372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
375 $as_echo "$as_me: error: $2" >&2
376 as_fn_exit $as_status
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
452 # Exit status is that of the last command.
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
474 mkdir conf$$.dir 2>/dev/null
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 elif ln conf$$.file conf$$ 2>/dev/null; then
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
499 test -d ./-p && rmdir ./-p
503 if test -x / >/dev/null 2>&1; then
506 if ls -dL / >/dev/null 2>&1; then
513 if test -d "$1"; then
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
524 as_executable_p=$as_test_x
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 test -n "$DJDIR" || exec 7<&0 </dev/null
537 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
538 # so uname gets run too.
539 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544 ac_default_prefix=/usr/local
546 ac_config_libobj_dir=.
553 # Identity of this package.
554 PACKAGE_NAME='OpenSSH'
555 PACKAGE_TARNAME='openssh'
556 PACKAGE_VERSION='Portable'
557 PACKAGE_STRING='OpenSSH Portable'
558 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
561 ac_unique_file="ssh.c"
562 # Factoring default headers for most tests.
563 ac_includes_default="\
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
575 # ifdef HAVE_STDLIB_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
598 ac_subst_vars='LTLIBOBJS
620 LOGIN_PROGRAM_FALLBACK
622 MAKE_PACKAGE_SUPPORTED
688 program_transform_name
701 enable_option_checking
710 with_solaris_contracts
711 with_solaris_projects
714 with_zlib_version_check
720 with_openssl_header_check
737 enable_etc_default_login
753 ac_precious_vars='build_alias
764 # Initialize some variables set by options.
766 ac_init_version=false
767 ac_unrecognized_opts=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
778 program_transform_name=s,x,x,
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 # Accept the important Cygnus configure options, so we can diagnose typos.
831 case $ac_dashdash$ac_option in
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
853 cache_file=config.cache ;;
855 -datadir | --datadir | --datadi | --datad)
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error $? "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
881 eval enable_$ac_useropt=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
907 eval enable_$ac_useropt=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
922 -help | --help | --hel | --he | -h)
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 # Obsolete; use --without-fp.
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1071 -site=* | --site=* | --sit=*)
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval with_$ac_useropt=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval with_$ac_useropt=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information"
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error $? "missing argument to $ac_option"
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1180 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1198 # Be sure to have absolute directory names.
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1211 target=$target_alias
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used" >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227 test "$silent" = yes && exec 6>/dev/null
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1270 ac_srcdir_defaulted=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1374 --disable-option-checking ignore unrecognized --enable/--with options
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --disable-largefile omit support for large files
1378 --disable-strip Disable calling strip(1) on install
1379 --disable-etc-default-login Disable using PATH from /etc/default/login no
1380 --disable-lastlog disable use of lastlog even if detected no
1381 --disable-utmp disable use of utmp even if detected no
1382 --disable-utmpx disable use of utmpx even if detected no
1383 --disable-wtmp disable use of wtmp even if detected no
1384 --disable-wtmpx disable use of wtmpx even if detected no
1385 --disable-libutil disable use of libutil (login() etc.) no
1386 --disable-pututline disable use of pututline() etc. (uwtmp) no
1387 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1392 --without-stackprotect Don't use compiler's stack protection
1393 --without-rpath Disable auto-added -R linker paths
1394 --with-cflags Specify additional flags to pass to compiler
1395 --with-cppflags Specify additional flags to pass to preprocessor
1396 --with-ldflags Specify additional flags to pass to linker
1397 --with-libs Specify additional libraries to link with
1398 --with-Werror Build main code with -Werror
1399 --with-solaris-contracts Enable Solaris process contracts (experimental)
1400 --with-solaris-projects Enable Solaris projects (experimental)
1401 --with-osfsia Enable Digital Unix SIA
1402 --with-zlib=PATH Use zlib in PATH
1403 --without-zlib-version-check Disable zlib version check
1404 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1405 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1406 --with-libedit[=PATH] Enable libedit support for sftp
1407 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1408 --with-ssl-dir=PATH Specify path to OpenSSL installation
1409 --without-openssl-header-check Disable OpenSSL version consistency check
1410 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1411 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1412 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1413 --with-pam Enable PAM support
1414 --with-privsep-user=user Specify non-privileged user for privilege separation
1415 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace)
1416 --with-selinux Enable SELinux support
1417 --with-kerberos5=PATH Enable Kerberos 5 support
1418 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1419 --with-xauth=PATH Specify path to xauth program
1420 --with-maildir=/path/to/mail Specify your system mail directory
1421 --with-mantype=man|cat|doc Set man page type
1422 --with-md5-passwords Enable use of MD5 passwords
1423 --without-shadow Disable shadow password support
1424 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1425 --with-default-path= Specify default \$PATH environment for server
1426 --with-superuser-path= Specify different path for super-user
1427 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1428 --with-bsd-auth Enable BSD auth support
1429 --with-pid-dir=PATH Specify location of ssh.pid file
1430 --with-lastlog=FILE|DIR specify lastlog location common locations
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to <openssh-unix-dev@mindrot.org>.
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1475 .) # We are building in place.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1508 OpenSSH configure Portable
1509 generated by GNU Autoconf 2.67
1511 Copyright (C) 2010 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 as_fn_set_status $ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_c_try_run LINENO
1561 # ----------------------
1562 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1563 # that executables *can* be run.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_link"
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_link") 2>&5
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1578 { { case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_try") 2>&5
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; }; }; then :
1590 $as_echo "$as_me: program exited with status $ac_status" >&5
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1594 ac_retval=$ac_status
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 as_fn_set_status $ac_retval
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } > conftest.i && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 as_fn_set_status $ac_retval
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval "test \"\${$3+set}\"" = set; then :
1649 $as_echo_n "(cached) " >&6
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1656 if ac_fn_c_try_compile "$LINENO"; then :
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 } # ac_fn_c_check_header_compile
1670 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1671 # ---------------------------------------------
1672 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1674 ac_fn_c_check_decl ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 as_decl_name=`echo $2|sed 's/ *(.*//'`
1678 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1680 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1681 if eval "test \"\${$3+set}\"" = set; then :
1682 $as_echo_n "(cached) " >&6
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1690 #ifndef $as_decl_name
1692 (void) $as_decl_use;
1694 (void) $as_decl_name;
1702 if ac_fn_c_try_compile "$LINENO"; then :
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 } # ac_fn_c_check_decl
1716 # ac_fn_c_try_link LINENO
1717 # -----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext conftest$ac_exeext
1723 if { { ac_try="$ac_link"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest$ac_exeext && {
1742 test "$cross_compiling" = yes ||
1743 $as_test_x conftest$ac_exeext
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754 # interfere with the next link command; also delete a directory that is
1755 # left behind by Apple's compiler. We do this before executing the actions.
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_c_try_link
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1767 ac_fn_c_check_header_mongrel ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if eval "test \"\${$3+set}\"" = set; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval "test \"\${$3+set}\"" = set; then :
1774 $as_echo_n "(cached) " >&6
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1780 # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1791 ac_header_compiler=no
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1807 ac_header_preproc=no
1809 rm -f conftest.err conftest.i conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1813 # So? What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 ( $as_echo "## ------------------------------------------- ##
1833 ## Report this to openssh-unix-dev@mindrot.org ##
1834 ## ------------------------------------------- ##"
1835 ) | sed "s/^/$as_me: WARNING: /" >&2
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval "test \"\${$3+set}\"" = set; then :
1841 $as_echo_n "(cached) " >&6
1843 eval "$3=\$ac_header_compiler"
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 } # ac_fn_c_check_header_mongrel
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval "test \"\${$3+set}\"" = set; then :
1862 $as_echo_n "(cached) " >&6
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1868 #define $2 innocuous_$2
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $2 (); below.
1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873 <limits.h> exists even on freestanding compilers. */
1876 # include <limits.h>
1878 # include <assert.h>
1883 /* Override any GCC internal prototype to avoid an error.
1884 Use char because int might match the return type of a GCC
1885 builtin and then its argument prototype would still apply. */
1890 /* The GNU C library defines this for functions which it implements
1891 to always fail with ENOSYS. Some functions are actually named
1892 something starting with __ and the normal name is an alias. */
1893 #if defined __stub_$2 || defined __stub___$2
1905 if ac_fn_c_try_link "$LINENO"; then :
1910 rm -f core conftest.err conftest.$ac_objext \
1911 conftest$ac_exeext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 } # ac_fn_c_check_func
1920 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1921 # -------------------------------------------
1922 # Tests whether TYPE exists after having included INCLUDES, setting cache
1923 # variable VAR accordingly.
1924 ac_fn_c_check_type ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval "test \"\${$3+set}\"" = set; then :
1930 $as_echo_n "(cached) " >&6
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1958 if ac_fn_c_try_compile "$LINENO"; then :
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 } # ac_fn_c_check_type
1974 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1975 # --------------------------------------------
1976 # Tries to find the compile-time value of EXPR in a program that includes
1977 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1979 ac_fn_c_compute_int ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if test "$cross_compiling" = yes; then
1983 # Depending upon the size, compute the lo and hi bounds.
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1990 static int test_array [1 - 2 * !(($2) >= 0)];
1997 if ac_fn_c_try_compile "$LINENO"; then :
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2006 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_hi=$ac_mid; break
2016 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2017 if test $ac_lo -le $ac_mid; then
2021 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2032 static int test_array [1 - 2 * !(($2) < 0)];
2039 if ac_fn_c_try_compile "$LINENO"; then :
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2048 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_lo=$ac_mid; break
2058 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2059 if test $ac_mid -le $ac_hi; then
2063 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 # Binary search between lo and hi bounds.
2074 while test "x$ac_lo" != "x$ac_hi"; do
2075 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2082 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 if ac_fn_c_try_compile "$LINENO"; then :
2092 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2104 static long int longval () { return $2; }
2105 static unsigned long int ulongval () { return $2; }
2112 FILE *f = fopen ("conftest.val", "w");
2117 long int i = longval ();
2120 fprintf (f, "%ld", i);
2124 unsigned long int i = ulongval ();
2127 fprintf (f, "%lu", i);
2129 /* Do not output a trailing newline, as this causes \r\n confusion
2130 on some platforms. */
2131 return ferror (f) || fclose (f) != 0;
2137 if ac_fn_c_try_run "$LINENO"; then :
2138 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2143 conftest.$ac_objext conftest.beam conftest.$ac_ext
2147 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2148 as_fn_set_status $ac_retval
2150 } # ac_fn_c_compute_int
2152 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2153 # ----------------------------------------------------
2154 # Tries to find if the field MEMBER exists in type AGGR, after including
2155 # INCLUDES, setting cache variable VAR accordingly.
2156 ac_fn_c_check_member ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2160 $as_echo_n "checking for $2.$3... " >&6; }
2161 if eval "test \"\${$4+set}\"" = set; then :
2162 $as_echo_n "(cached) " >&6
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2177 if ac_fn_c_try_compile "$LINENO"; then :
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2187 if (sizeof ac_aggr.$3)
2193 if ac_fn_c_try_compile "$LINENO"; then :
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207 } # ac_fn_c_check_member
2208 cat >config.log <<_ACEOF
2209 This file contains any messages produced by compilers while
2210 running configure, to aid debugging if configure makes a mistake.
2212 It was created by OpenSSH $as_me Portable, which was
2213 generated by GNU Autoconf 2.67. Invocation command line was
2225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2232 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2234 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2235 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2237 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2238 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2239 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2240 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 $as_echo "PATH: $as_dir"
2265 # Keep a trace of the command line.
2266 # Strip out --no-create and --no-recursion so they do not pile up.
2267 # Strip out --silent because we don't want to record it for future runs.
2268 # Also quote any args containing shell meta-characters.
2269 # Make two passes to allow for proper duplicate-argument suppression.
2273 ac_must_keep_next=false
2279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2281 | -silent | --silent | --silen | --sile | --sil)
2284 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2287 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2289 as_fn_append ac_configure_args1 " '$ac_arg'"
2290 if test $ac_must_keep_next = true; then
2291 ac_must_keep_next=false # Got value, back to normal.
2294 *=* | --config-cache | -C | -disable-* | --disable-* \
2295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2297 | -with-* | --with-* | -without-* | --without-* | --x)
2298 case "$ac_configure_args0 " in
2299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2302 -* ) ac_must_keep_next=true ;;
2305 as_fn_append ac_configure_args " '$ac_arg'"
2310 { ac_configure_args0=; unset ac_configure_args0;}
2311 { ac_configure_args1=; unset ac_configure_args1;}
2313 # When interrupted or exit'd, cleanup temporary files, and complete
2314 # config.log. We remove comments because anyway the quotes in there
2315 # would cause problems or look ugly.
2316 # WARNING: Use '\'' to represent an apostrophe within the trap.
2317 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2318 trap 'exit_status=$?
2319 # Save into config.log some information that might help in debugging.
2323 $as_echo "## ---------------- ##
2324 ## Cache variables. ##
2325 ## ---------------- ##"
2327 # The following way of writing the cache mishandles newlines in values,
2329 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2330 eval ac_val=\$$ac_var
2334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2338 _ | IFS | as_nl) ;; #(
2339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2340 *) { eval $ac_var=; unset $ac_var;} ;;
2345 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2346 *${as_nl}ac_space=\ *)
2348 "s/'\''/'\''\\\\'\'''\''/g;
2349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2359 $as_echo "## ----------------- ##
2360 ## Output variables. ##
2361 ## ----------------- ##"
2363 for ac_var in $ac_subst_vars
2365 eval ac_val=\$$ac_var
2367 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369 $as_echo "$ac_var='\''$ac_val'\''"
2373 if test -n "$ac_subst_files"; then
2374 $as_echo "## ------------------- ##
2375 ## File substitutions. ##
2376 ## ------------------- ##"
2378 for ac_var in $ac_subst_files
2380 eval ac_val=\$$ac_var
2382 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384 $as_echo "$ac_var='\''$ac_val'\''"
2389 if test -s confdefs.h; then
2390 $as_echo "## ----------- ##
2397 test "$ac_signal" != 0 &&
2398 $as_echo "$as_me: caught signal $ac_signal"
2399 $as_echo "$as_me: exit $exit_status"
2401 rm -f core *.core core.conftest.* &&
2402 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2405 for ac_signal in 1 2 13 15; do
2406 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2411 rm -f -r conftest* confdefs.h
2413 $as_echo "/* confdefs.h */" > confdefs.h
2415 # Predefined preprocessor variables.
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_NAME "$PACKAGE_NAME"
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_STRING "$PACKAGE_STRING"
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_URL "$PACKAGE_URL"
2442 # Let the site file select an alternate cache file if it wants to.
2443 # Prefer an explicitly selected file to automatically selected ones.
2446 if test -n "$CONFIG_SITE"; then
2447 # We do not want a PATH search for config.site.
2448 case $CONFIG_SITE in #((
2449 -*) ac_site_file1=./$CONFIG_SITE;;
2450 */*) ac_site_file1=$CONFIG_SITE;;
2451 *) ac_site_file1=./$CONFIG_SITE;;
2453 elif test "x$prefix" != xNONE; then
2454 ac_site_file1=$prefix/share/config.site
2455 ac_site_file2=$prefix/etc/config.site
2457 ac_site_file1=$ac_default_prefix/share/config.site
2458 ac_site_file2=$ac_default_prefix/etc/config.site
2460 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2462 test "x$ac_site_file" = xNONE && continue
2463 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2465 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2466 sed 's/^/| /' "$ac_site_file" >&5
2468 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 as_fn_error $? "failed to load site script $ac_site_file
2471 See \`config.log' for more details" "$LINENO" 5 ; }
2475 if test -r "$cache_file"; then
2476 # Some versions of bash will fail to source /dev/null (special files
2477 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2478 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2480 $as_echo "$as_me: loading cache $cache_file" >&6;}
2482 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2483 *) . "./$cache_file";;
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2488 $as_echo "$as_me: creating cache $cache_file" >&6;}
2492 # Check that the precious variables saved in the cache have kept the same
2494 ac_cache_corrupted=false
2495 for ac_var in $ac_precious_vars; do
2496 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2497 eval ac_new_set=\$ac_env_${ac_var}_set
2498 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2499 eval ac_new_val=\$ac_env_${ac_var}_value
2500 case $ac_old_set,$ac_new_set in
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2503 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2504 ac_cache_corrupted=: ;;
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2507 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2508 ac_cache_corrupted=: ;;
2511 if test "x$ac_old_val" != "x$ac_new_val"; then
2512 # differences in whitespace do not lead to failure.
2513 ac_old_val_w=`echo x $ac_old_val`
2514 ac_new_val_w=`echo x $ac_new_val`
2515 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2517 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2518 ac_cache_corrupted=:
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2521 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2522 eval $ac_var=\$ac_old_val
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2525 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2527 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2530 # Pass precious variables to config.status.
2531 if test "$ac_new_set" = set; then
2533 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2534 *) ac_arg=$ac_var=$ac_new_val ;;
2536 case " $ac_configure_args " in
2537 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2538 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2542 if $ac_cache_corrupted; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2546 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2547 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2549 ## -------------------- ##
2550 ## Main body of script. ##
2551 ## -------------------- ##
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 ac_cpp='$CPP $CPPFLAGS'
2564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 ac_config_headers="$ac_config_headers config.h"
2572 ac_cpp='$CPP $CPPFLAGS'
2573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then :
2582 $as_echo_n "(cached) " >&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test -n "$CC"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607 $as_echo "$CC" >&6; }
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2615 if test -z "$ac_cv_prog_CC"; then
2617 # Extract the first word of "gcc", so it can be a program name with args.
2618 set dummy gcc; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2624 if test -n "$ac_ct_CC"; then
2625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_ac_ct_CC="gcc"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645 if test -n "$ac_ct_CC"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2647 $as_echo "$ac_ct_CC" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2653 if test "x$ac_ct_CC" = x; then
2656 case $cross_compiling:$ac_tool_warned in
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2660 ac_tool_warned=yes ;;
2668 if test -z "$CC"; then
2669 if test -n "$ac_tool_prefix"; then
2670 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2671 set dummy ${ac_tool_prefix}cc; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if test "${ac_cv_prog_CC+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_CC="${ac_tool_prefix}cc"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 if test -n "$CC"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700 $as_echo "$CC" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2709 if test -z "$CC"; then
2710 # Extract the first word of "cc", so it can be a program name with args.
2711 set dummy cc; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if test "${ac_cv_prog_CC+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2729 ac_prog_rejected=yes
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test $ac_prog_rejected = yes; then
2741 # We found a bogon in the path, so make sure we never use it.
2742 set dummy $ac_cv_prog_CC
2744 if test $# != 0; then
2745 # We chose a different compiler from the bogus one.
2746 # However, it has the same basename, so the bogon will be chosen
2747 # first if we set CC to just the basename; use the full file name.
2749 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2755 if test -n "$CC"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2757 $as_echo "$CC" >&6; }
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2765 if test -z "$CC"; then
2766 if test -n "$ac_tool_prefix"; then
2767 for ac_prog in cl.exe
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if test "${ac_cv_prog_CC+set}" = set; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2806 test -n "$CC" && break
2809 if test -z "$CC"; then
2811 for ac_prog in cl.exe
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_ac_ct_CC="$ac_prog"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2850 test -n "$ac_ct_CC" && break
2853 if test "x$ac_ct_CC" = x; then
2856 case $cross_compiling:$ac_tool_warned in
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2869 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871 as_fn_error $? "no acceptable C compiler found in \$PATH
2872 See \`config.log' for more details" "$LINENO" 5 ; }
2874 # Provide some information about the compiler.
2875 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2878 for ac_option in --version -v -V -qversion; do
2879 { { ac_try="$ac_compiler $ac_option >&5"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2888 if test -s conftest.err; then
2890 ... rest of stderr output deleted ...
2891 10q' conftest.err >conftest.er1
2892 cat conftest.er1 >&5
2894 rm -f conftest.er1 conftest.err
2895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896 test $ac_status = 0; }
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900 /* end confdefs.h. */
2910 ac_clean_files_save=$ac_clean_files
2911 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2912 # Try to create an executable without -o first, disregard a.out.
2913 # It will help us diagnose broken compilers, and finding out an intuition
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2916 $as_echo_n "checking whether the C compiler works... " >&6; }
2917 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2919 # The possible output files:
2920 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2923 for ac_file in $ac_files
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2927 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2932 if { { ac_try="$ac_link_default"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939 (eval "$ac_link_default") 2>&5
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }; then :
2943 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2944 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2945 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2946 # so that the user can short-circuit this test for compilers unknown to
2948 for ac_file in $ac_files ''
2950 test -f "$ac_file" || continue
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2955 # We found the default executable, but exeext='' is most
2959 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2961 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2963 # We set ac_cv_exeext here because the later test for it is not
2964 # safe: cross compilers may not add the suffix if given an `-o'
2965 # argument, so we may need to know it at that point already.
2966 # Even if this section looks crufty: it has the advantage of
2973 test "$ac_cv_exeext" = no && ac_cv_exeext=
2978 if test -z "$ac_file"; then :
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 $as_echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error 77 "C compiler cannot create executables
2987 See \`config.log' for more details" "$LINENO" 5 ; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990 $as_echo "yes" >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2993 $as_echo_n "checking for C compiler default output file name... " >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2995 $as_echo "$ac_file" >&6; }
2996 ac_exeext=$ac_cv_exeext
2998 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2999 ac_clean_files=$ac_clean_files_save
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3001 $as_echo_n "checking for suffix of executables... " >&6; }
3002 if { { ac_try="$ac_link"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008 $as_echo "$ac_try_echo"; } >&5
3009 (eval "$ac_link") 2>&5
3011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012 test $ac_status = 0; }; then :
3013 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3014 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3015 # work properly (i.e., refer to `conftest.exe'), while it won't with
3017 for ac_file in conftest.exe conftest conftest.*; do
3018 test -f "$ac_file" || continue
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3021 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3030 See \`config.log' for more details" "$LINENO" 5 ; }
3032 rm -f conftest conftest$ac_cv_exeext
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3034 $as_echo "$ac_cv_exeext" >&6; }
3036 rm -f conftest.$ac_ext
3037 EXEEXT=$ac_cv_exeext
3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040 /* end confdefs.h. */
3045 FILE *f = fopen ("conftest.out", "w");
3046 return ferror (f) || fclose (f) != 0;
3052 ac_clean_files="$ac_clean_files conftest.out"
3053 # Check that the compiler produces executables we can run. If not, either
3054 # the compiler is broken, or we cross compile.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3056 $as_echo_n "checking whether we are cross compiling... " >&6; }
3057 if test "$cross_compiling" != yes; then
3058 { { ac_try="$ac_link"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065 (eval "$ac_link") 2>&5
3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068 test $ac_status = 0; }
3069 if { ac_try='./conftest$ac_cv_exeext'
3070 { { case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_try") 2>&5
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; }; then
3082 if test "$cross_compiling" = maybe; then
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details" "$LINENO" 5 ; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3094 $as_echo "$cross_compiling" >&6; }
3096 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3097 ac_clean_files=$ac_clean_files_save
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3099 $as_echo_n "checking for suffix of object files... " >&6; }
3100 if test "${ac_cv_objext+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3114 rm -f conftest.o conftest.obj
3115 if { { ac_try="$ac_compile"
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122 (eval "$ac_compile") 2>&5
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }; then :
3126 for ac_file in conftest.o conftest.obj conftest.*; do
3127 test -f "$ac_file" || continue;
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3130 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3135 $as_echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error $? "cannot compute suffix of object files: cannot compile
3141 See \`config.log' for more details" "$LINENO" 5 ; }
3143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3146 $as_echo "$ac_cv_objext" >&6; }
3147 OBJEXT=$ac_cv_objext
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3168 if ac_fn_c_try_compile "$LINENO"; then :
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3178 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3179 if test $ac_compiler_gnu = yes; then
3184 ac_test_CFLAGS=${CFLAGS+set}
3185 ac_save_CFLAGS=$CFLAGS
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3187 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3188 if test "${ac_cv_prog_cc_g+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3191 ac_save_c_werror_flag=$ac_c_werror_flag
3192 ac_c_werror_flag=yes
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3206 if ac_fn_c_try_compile "$LINENO"; then :
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3221 if ac_fn_c_try_compile "$LINENO"; then :
3224 ac_c_werror_flag=$ac_save_c_werror_flag
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3237 if ac_fn_c_try_compile "$LINENO"; then :
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3248 $as_echo "$ac_cv_prog_cc_g" >&6; }
3249 if test "$ac_test_CFLAGS" = set; then
3250 CFLAGS=$ac_save_CFLAGS
3251 elif test $ac_cv_prog_cc_g = yes; then
3252 if test "$GCC" = yes; then
3258 if test "$GCC" = yes; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3265 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3266 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3269 ac_cv_prog_cc_c89=no
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3275 #include <sys/types.h>
3276 #include <sys/stat.h>
3277 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278 struct buf { int x; };
3279 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280 static char *e (p, i)
3286 static char *f (char * (*g) (char **, int), char **p, ...)
3291 s = g (p, va_arg (v,int));
3296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
3299 as 'x'. The following induces an error, until -std is added to get
3300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
3302 that's true only with -std. */
3303 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3308 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3327 CC="$ac_save_CC $ac_arg"
3328 if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_cv_prog_cc_c89=$ac_arg
3331 rm -f core conftest.err conftest.$ac_objext
3332 test "x$ac_cv_prog_cc_c89" != "xno" && break
3334 rm -f conftest.$ac_ext
3339 case "x$ac_cv_prog_cc_c89" in
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3342 $as_echo "none needed" >&6; } ;;
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3345 $as_echo "unsupported" >&6; } ;;
3347 CC="$CC $ac_cv_prog_cc_c89"
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3349 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3351 if test "x$ac_cv_prog_cc_c89" != xno; then :
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3363 if test -f "$ac_dir/install-sh"; then
3365 ac_install_sh="$ac_aux_dir/install-sh -c"
3367 elif test -f "$ac_dir/install.sh"; then
3369 ac_install_sh="$ac_aux_dir/install.sh -c"
3371 elif test -f "$ac_dir/shtool"; then
3373 ac_install_sh="$ac_aux_dir/shtool install -c"
3377 if test -z "$ac_aux_dir"; then
3378 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3381 # These three variables are undocumented and unsupported,
3382 # and are intended to be withdrawn in a future Autoconf release.
3383 # They can cause serious problems if a builder's source tree is in a directory
3384 # whose full name contains unusual characters.
3385 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3386 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3387 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3390 # Make sure we can run config.sub.
3391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3392 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3395 $as_echo_n "checking build system type... " >&6; }
3396 if test "${ac_cv_build+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3399 ac_build_alias=$build_alias
3400 test "x$ac_build_alias" = x &&
3401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3402 test "x$ac_build_alias" = x &&
3403 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3404 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3409 $as_echo "$ac_cv_build" >&6; }
3410 case $ac_cv_build in
3412 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3415 ac_save_IFS=$IFS; IFS='-'
3421 # Remember, the first character of IFS is used to create $*,
3422 # except with old shells:
3425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3429 $as_echo_n "checking host system type... " >&6; }
3430 if test "${ac_cv_host+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3433 if test "x$host_alias" = x; then
3434 ac_cv_host=$ac_cv_build
3436 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3442 $as_echo "$ac_cv_host" >&6; }
3445 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3448 ac_save_IFS=$IFS; IFS='-'
3454 # Remember, the first character of IFS is used to create $*,
3455 # except with old shells:
3458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3468 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3469 # On Suns, sometimes $CPP names a directory.
3470 if test -n "$CPP" && test -d "$CPP"; then
3473 if test -z "$CPP"; then
3474 if test "${ac_cv_prog_CPP+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3477 # Double quotes because CPP needs to be expanded
3478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3481 for ac_c_preproc_warn_flag in '' yes
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3492 # include <limits.h>
3494 # include <assert.h>
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3501 # Broken: fails on valid input.
3504 rm -f conftest.err conftest.i conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510 #include <ac_nonexistent.h>
3512 if ac_fn_c_try_cpp "$LINENO"; then :
3513 # Broken: success on invalid input.
3516 # Passes both tests.
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524 rm -f conftest.i conftest.err conftest.$ac_ext
3525 if $ac_preproc_ok; then :
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3538 $as_echo "$CPP" >&6; }
3540 for ac_c_preproc_warn_flag in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3551 # include <limits.h>
3553 # include <assert.h>
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3560 # Broken: fails on valid input.
3563 rm -f conftest.err conftest.i conftest.$ac_ext
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <ac_nonexistent.h>
3571 if ac_fn_c_try_cpp "$LINENO"; then :
3572 # Broken: success on invalid input.
3575 # Passes both tests.
3579 rm -f conftest.err conftest.i conftest.$ac_ext
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.i conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then :
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3590 See \`config.log' for more details" "$LINENO" 5 ; }
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3601 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3602 if test "${ac_cv_path_GREP+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3605 if test -z "$GREP"; then
3606 ac_path_GREP_found=false
3607 # Loop through the user's path and test for each of PROGNAME-LIST
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3612 test -z "$as_dir" && as_dir=.
3613 for ac_prog in grep ggrep; do
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3616 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3617 # Check for GNU ac_path_GREP and select it if it is found.
3618 # Check for GNU $ac_path_GREP
3619 case `"$ac_path_GREP" --version 2>&1` in
3621 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3624 $as_echo_n 0123456789 >"conftest.in"
3627 cat "conftest.in" "conftest.in" >"conftest.tmp"
3628 mv "conftest.tmp" "conftest.in"
3629 cp "conftest.in" "conftest.nl"
3630 $as_echo 'GREP' >> "conftest.nl"
3631 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633 as_fn_arith $ac_count + 1 && ac_count=$as_val
3634 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3635 # Best one so far, save it but keep looking for a better one
3636 ac_cv_path_GREP="$ac_path_GREP"
3637 ac_path_GREP_max=$ac_count
3639 # 10*(2^10) chars as input seems more than enough
3640 test $ac_count -gt 10 && break
3642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3645 $ac_path_GREP_found && break 3
3650 if test -z "$ac_cv_path_GREP"; then
3651 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3654 ac_cv_path_GREP=$GREP
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3659 $as_echo "$ac_cv_path_GREP" >&6; }
3660 GREP="$ac_cv_path_GREP"
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3664 $as_echo_n "checking for egrep... " >&6; }
3665 if test "${ac_cv_path_EGREP+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669 then ac_cv_path_EGREP="$GREP -E"
3671 if test -z "$EGREP"; then
3672 ac_path_EGREP_found=false
3673 # Loop through the user's path and test for each of PROGNAME-LIST
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3678 test -z "$as_dir" && as_dir=.
3679 for ac_prog in egrep; do
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3682 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3683 # Check for GNU ac_path_EGREP and select it if it is found.
3684 # Check for GNU $ac_path_EGREP
3685 case `"$ac_path_EGREP" --version 2>&1` in
3687 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3690 $as_echo_n 0123456789 >"conftest.in"
3693 cat "conftest.in" "conftest.in" >"conftest.tmp"
3694 mv "conftest.tmp" "conftest.in"
3695 cp "conftest.in" "conftest.nl"
3696 $as_echo 'EGREP' >> "conftest.nl"
3697 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3699 as_fn_arith $ac_count + 1 && ac_count=$as_val
3700 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3701 # Best one so far, save it but keep looking for a better one
3702 ac_cv_path_EGREP="$ac_path_EGREP"
3703 ac_path_EGREP_max=$ac_count
3705 # 10*(2^10) chars as input seems more than enough
3706 test $ac_count -gt 10 && break
3708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711 $ac_path_EGREP_found && break 3
3716 if test -z "$ac_cv_path_EGREP"; then
3717 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3720 ac_cv_path_EGREP=$EGREP
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3726 $as_echo "$ac_cv_path_EGREP" >&6; }
3727 EGREP="$ac_cv_path_EGREP"
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3731 $as_echo_n "checking for ANSI C header files... " >&6; }
3732 if test "${ac_cv_header_stdc+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_header_stdc=yes
3753 ac_cv_header_stdc=no
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 if test $ac_cv_header_stdc = yes; then
3758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 $EGREP "memchr" >/dev/null 2>&1; then :
3768 ac_cv_header_stdc=no
3774 if test $ac_cv_header_stdc = yes; then
3775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "free" >/dev/null 2>&1; then :
3785 ac_cv_header_stdc=no
3791 if test $ac_cv_header_stdc = yes; then
3792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3793 if test "$cross_compiling" = yes; then :
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3800 #if ((' ' & 0x0FF) == 0x020)
3801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3804 # define ISLOWER(c) \
3805 (('a' <= (c) && (c) <= 'i') \
3806 || ('j' <= (c) && (c) <= 'r') \
3807 || ('s' <= (c) && (c) <= 'z'))
3808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816 for (i = 0; i < 256; i++)
3817 if (XOR (islower (i), ISLOWER (i))
3818 || toupper (i) != TOUPPER (i))
3823 if ac_fn_c_try_run "$LINENO"; then :
3826 ac_cv_header_stdc=no
3828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3829 conftest.$ac_objext conftest.beam conftest.$ac_ext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3835 $as_echo "$ac_cv_header_stdc" >&6; }
3836 if test $ac_cv_header_stdc = yes; then
3838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3844 inttypes.h stdint.h unistd.h
3846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3850 cat >>confdefs.h <<_ACEOF
3851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3860 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3861 if test "${ac_cv_c_bigendian+set}" = set; then :
3862 $as_echo_n "(cached) " >&6
3864 ac_cv_c_bigendian=unknown
3865 # See if we're dealing with a universal compiler.
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868 #ifndef __APPLE_CC__
3869 not a universal capable compiler
3874 if ac_fn_c_try_compile "$LINENO"; then :
3876 # Check for potential -arch flags. It is not universal unless
3877 # there are at least two -arch flags with different values.
3880 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3881 if test -n "$ac_prev"; then
3883 i?86 | x86_64 | ppc | ppc64)
3884 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3887 ac_cv_c_bigendian=universal
3893 elif test "x$ac_word" = "x-arch"; then
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 if test $ac_cv_c_bigendian = unknown; then
3900 # See if sys/param.h defines the BYTE_ORDER macro.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <sys/types.h>
3904 #include <sys/param.h>
3909 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3910 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 # It does; now see whether it defined to BIG_ENDIAN or not.
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <sys/types.h>
3924 #include <sys/param.h>
3929 #if BYTE_ORDER != BIG_ENDIAN
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_c_bigendian=yes
3940 ac_cv_c_bigendian=no
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 if test $ac_cv_c_bigendian = unknown; then
3947 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3955 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964 # It does; now see whether it defined to _BIG_ENDIAN or not.
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_cv_c_bigendian=yes
3983 ac_cv_c_bigendian=no
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 if test $ac_cv_c_bigendian = unknown; then
3990 # Compile a test program.
3991 if test "$cross_compiling" = yes; then :
3992 # Try to guess by grepping values from an object file.
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 short int ascii_mm[] =
3996 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3997 short int ascii_ii[] =
3998 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3999 int use_ascii (int i) {
4000 return ascii_mm[i] + ascii_ii[i];
4002 short int ebcdic_ii[] =
4003 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4004 short int ebcdic_mm[] =
4005 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4006 int use_ebcdic (int i) {
4007 return ebcdic_mm[i] + ebcdic_ii[i];
4014 return use_ascii (foo) == use_ebcdic (foo);
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4021 ac_cv_c_bigendian=yes
4023 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4024 if test "$ac_cv_c_bigendian" = unknown; then
4025 ac_cv_c_bigendian=no
4027 # finding both strings is unlikely to happen, but who knows?
4028 ac_cv_c_bigendian=unknown
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 $ac_includes_default
4041 /* Are we little or big endian? From Harbison&Steele. */
4045 char c[sizeof (long int)];
4048 return u.c[sizeof (long int) - 1] == 1;
4054 if ac_fn_c_try_run "$LINENO"; then :
4055 ac_cv_c_bigendian=no
4057 ac_cv_c_bigendian=yes
4059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4060 conftest.$ac_objext conftest.beam conftest.$ac_ext
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4066 $as_echo "$ac_cv_c_bigendian" >&6; }
4067 case $ac_cv_c_bigendian in #(
4069 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4075 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4079 as_fn_error $? "unknown endianness
4080 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4084 # Checks for programs.
4085 for ac_prog in gawk mawk nawk awk
4087 # Extract the first word of "$ac_prog", so it can be a program name with args.
4088 set dummy $ac_prog; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if test "${ac_cv_prog_AWK+set}" = set; then :
4092 $as_echo_n "(cached) " >&6
4094 if test -n "$AWK"; then
4095 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 ac_cv_prog_AWK="$ac_prog"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 if test -n "$AWK"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4117 $as_echo "$AWK" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4124 test -n "$AWK" && break
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4133 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4134 # On Suns, sometimes $CPP names a directory.
4135 if test -n "$CPP" && test -d "$CPP"; then
4138 if test -z "$CPP"; then
4139 if test "${ac_cv_prog_CPP+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4142 # Double quotes because CPP needs to be expanded
4143 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4146 for ac_c_preproc_warn_flag in '' yes
4148 # Use a header file that comes with gcc, so configuring glibc
4149 # with a fresh cross-compiler works.
4150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151 # <limits.h> exists even on freestanding compilers.
4152 # On the NeXT, cc -E runs the code through the compiler's parser,
4153 # not just through cpp. "Syntax error" is here to catch this case.
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4157 # include <limits.h>
4159 # include <assert.h>
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4166 # Broken: fails on valid input.
4169 rm -f conftest.err conftest.i conftest.$ac_ext
4171 # OK, works on sane cases. Now check whether nonexistent headers
4172 # can be detected and how.
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #include <ac_nonexistent.h>
4177 if ac_fn_c_try_cpp "$LINENO"; then :
4178 # Broken: success on invalid input.
4181 # Passes both tests.
4185 rm -f conftest.err conftest.i conftest.$ac_ext
4188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189 rm -f conftest.i conftest.err conftest.$ac_ext
4190 if $ac_preproc_ok; then :
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4203 $as_echo "$CPP" >&6; }
4205 for ac_c_preproc_warn_flag in '' yes
4207 # Use a header file that comes with gcc, so configuring glibc
4208 # with a fresh cross-compiler works.
4209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210 # <limits.h> exists even on freestanding compilers.
4211 # On the NeXT, cc -E runs the code through the compiler's parser,
4212 # not just through cpp. "Syntax error" is here to catch this case.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4216 # include <limits.h>
4218 # include <assert.h>
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4225 # Broken: fails on valid input.
4228 rm -f conftest.err conftest.i conftest.$ac_ext
4230 # OK, works on sane cases. Now check whether nonexistent headers
4231 # can be detected and how.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4236 if ac_fn_c_try_cpp "$LINENO"; then :
4237 # Broken: success on invalid input.
4240 # Passes both tests.
4244 rm -f conftest.err conftest.i conftest.$ac_ext
4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248 rm -f conftest.i conftest.err conftest.$ac_ext
4249 if $ac_preproc_ok; then :
4252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details" "$LINENO" 5 ; }
4259 ac_cpp='$CPP $CPPFLAGS'
4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264 if test -n "$ac_tool_prefix"; then
4265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4272 if test -n "$RANLIB"; then
4273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 RANLIB=$ac_cv_prog_RANLIB
4293 if test -n "$RANLIB"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4295 $as_echo "$RANLIB" >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4303 if test -z "$ac_cv_prog_RANLIB"; then
4304 ac_ct_RANLIB=$RANLIB
4305 # Extract the first word of "ranlib", so it can be a program name with args.
4306 set dummy ranlib; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4312 if test -n "$ac_ct_RANLIB"; then
4313 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_ac_ct_RANLIB="ranlib"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4333 if test -n "$ac_ct_RANLIB"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4335 $as_echo "$ac_ct_RANLIB" >&6; }
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4341 if test "x$ac_ct_RANLIB" = x; then
4344 case $cross_compiling:$ac_tool_warned in
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4348 ac_tool_warned=yes ;;
4350 RANLIB=$ac_ct_RANLIB
4353 RANLIB="$ac_cv_prog_RANLIB"
4356 # Find a good install program. We prefer a C program (faster),
4357 # so one script is as good as another. But avoid the broken or
4358 # incompatible versions:
4359 # SysV /etc/install, /usr/sbin/install
4360 # SunOS /usr/etc/install
4361 # IRIX /sbin/install
4363 # AmigaOS /C/install, which installs bootblocks on floppy discs
4364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4367 # OS/2's system install, which has a completely different semantic
4368 # ./install, which can be erroneously created by make from ./install.sh.
4369 # Reject install programs that cannot install multiple files.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4371 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4372 if test -z "$INSTALL"; then
4373 if test "${ac_cv_path_install+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 test -z "$as_dir" && as_dir=.
4381 # Account for people who put trailing slashes in PATH elements.
4382 case $as_dir/ in #((
4383 ./ | .// | /[cC]/* | \
4384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4388 # OSF1 and SCO ODT 3.0 have their own names for install.
4389 # Don't use installbsd from OSF since it installs stuff as root
4391 for ac_prog in ginstall scoinst install; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4394 if test $ac_prog = install &&
4395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4396 # AIX install. It has an incompatible calling convention.
4398 elif test $ac_prog = install &&
4399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4400 # program-specific install script used by HP pwplus--don't use.
4403 rm -rf conftest.one conftest.two conftest.dir
4404 echo one > conftest.one
4405 echo two > conftest.two
4407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4408 test -s conftest.one && test -s conftest.two &&
4409 test -s conftest.dir/conftest.one &&
4410 test -s conftest.dir/conftest.two
4412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4425 rm -rf conftest.one conftest.two conftest.dir
4428 if test "${ac_cv_path_install+set}" = set; then
4429 INSTALL=$ac_cv_path_install
4431 # As a last resort, use the slow shell script. Don't cache a
4432 # value for INSTALL within a source directory, because that will
4433 # break other packages using the cache if that directory is
4434 # removed, or if the value is a relative name.
4435 INSTALL=$ac_install_sh
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4439 $as_echo "$INSTALL" >&6; }
4441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4442 # It thinks the first close brace ends the variable substitution.
4443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4450 $as_echo_n "checking for egrep... " >&6; }
4451 if test "${ac_cv_path_EGREP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4455 then ac_cv_path_EGREP="$GREP -E"
4457 if test -z "$EGREP"; then
4458 ac_path_EGREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in egrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4468 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4469 # Check for GNU ac_path_EGREP and select it if it is found.
4470 # Check for GNU $ac_path_EGREP
4471 case `"$ac_path_EGREP" --version 2>&1` in
4473 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4476 $as_echo_n 0123456789 >"conftest.in"
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'EGREP' >> "conftest.nl"
4483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_EGREP="$ac_path_EGREP"
4489 ac_path_EGREP_max=$ac_count
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497 $ac_path_EGREP_found && break 3
4502 if test -z "$ac_cv_path_EGREP"; then
4503 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4506 ac_cv_path_EGREP=$EGREP
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4512 $as_echo "$ac_cv_path_EGREP" >&6; }
4513 EGREP="$ac_cv_path_EGREP"
4516 # Extract the first word of "ar", so it can be a program name with args.
4517 set dummy ar; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if test "${ac_cv_path_AR+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4525 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 if test -n "$AR"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4549 $as_echo "$AR" >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4556 # Extract the first word of "cat", so it can be a program name with args.
4557 set dummy cat; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if test "${ac_cv_path_CAT+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4565 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 if test -n "$CAT"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4589 $as_echo "$CAT" >&6; }
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4596 # Extract the first word of "kill", so it can be a program name with args.
4597 set dummy kill; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_path_KILL+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4605 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 KILL=$ac_cv_path_KILL
4627 if test -n "$KILL"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4629 $as_echo "$KILL" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4636 for ac_prog in perl5 perl
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_path_PERL+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4647 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 PERL=$ac_cv_path_PERL
4669 if test -n "$PERL"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4671 $as_echo "$PERL" >&6; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4678 test -n "$PERL" && break
4681 # Extract the first word of "sed", so it can be a program name with args.
4682 set dummy sed; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_path_SED+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4690 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 if test -n "$SED"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4714 $as_echo "$SED" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4722 # Extract the first word of "ent", so it can be a program name with args.
4723 set dummy ent; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_path_ENT+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4731 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 if test -n "$ENT"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4755 $as_echo "$ENT" >&6; }
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4763 # Extract the first word of "bash", so it can be a program name with args.
4764 set dummy bash; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 case $TEST_MINUS_S_SH in
4772 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4794 if test -n "$TEST_MINUS_S_SH"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4796 $as_echo "$TEST_MINUS_S_SH" >&6; }
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 $as_echo "no" >&6; }
4803 # Extract the first word of "ksh", so it can be a program name with args.
4804 set dummy ksh; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4810 case $TEST_MINUS_S_SH in
4812 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4834 if test -n "$TEST_MINUS_S_SH"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4836 $as_echo "$TEST_MINUS_S_SH" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4843 # Extract the first word of "sh", so it can be a program name with args.
4844 set dummy sh; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4850 case $TEST_MINUS_S_SH in
4852 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4874 if test -n "$TEST_MINUS_S_SH"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4876 $as_echo "$TEST_MINUS_S_SH" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4883 # Extract the first word of "sh", so it can be a program name with args.
4884 set dummy sh; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if test "${ac_cv_path_SH+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4892 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 if test -n "$SH"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4916 $as_echo "$SH" >&6; }
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4923 # Extract the first word of "groff", so it can be a program name with args.
4924 set dummy groff; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_path_GROFF+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4932 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 GROFF=$ac_cv_path_GROFF
4954 if test -n "$GROFF"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4956 $as_echo "$GROFF" >&6; }
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4963 # Extract the first word of "nroff", so it can be a program name with args.
4964 set dummy nroff; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if test "${ac_cv_path_NROFF+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4972 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 NROFF=$ac_cv_path_NROFF
4994 if test -n "$NROFF"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
4996 $as_echo "$NROFF" >&6; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5003 # Extract the first word of "mandoc", so it can be a program name with args.
5004 set dummy mandoc; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if test "${ac_cv_path_MANDOC+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5012 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 MANDOC=$ac_cv_path_MANDOC
5034 if test -n "$MANDOC"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5036 $as_echo "$MANDOC" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5046 if test "x$MANDOC" != "x" ; then
5048 elif test "x$NROFF" != "x" ; then
5049 MANFMT="$NROFF -mandoc"
5050 elif test "x$GROFF" != "x" ; then
5051 MANFMT="$GROFF -mandoc -Tascii"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5054 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5059 # Extract the first word of "groupadd", so it can be a program name with args.
5060 set dummy groupadd; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
5066 case $PATH_GROUPADD_PROG in
5068 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5090 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5091 if test -n "$PATH_GROUPADD_PROG"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5093 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5100 # Extract the first word of "useradd", so it can be a program name with args.
5101 set dummy useradd; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 case $PATH_USERADD_PROG in
5109 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5131 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5132 if test -n "$PATH_USERADD_PROG"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5134 $as_echo "$PATH_USERADD_PROG" >&6; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 # Extract the first word of "pkgmk", so it can be a program name with args.
5142 set dummy pkgmk; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5148 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5149 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5169 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5170 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5172 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 if test -x /sbin/sh; then
5180 STARTUP_SCRIPT_SHELL=/sbin/sh
5183 STARTUP_SCRIPT_SHELL=/bin/sh
5188 # Check whether --enable-largefile was given.
5189 if test "${enable_largefile+set}" = set; then :
5190 enableval=$enable_largefile;
5193 if test "$enable_largefile" != no; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5196 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5197 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5200 ac_cv_sys_largefile_CC=no
5201 if test "$GCC" != yes; then
5204 # IRIX 6.2 and later do not support large files by default,
5205 # so use the C compiler's -n32 option if that helps.
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 #include <sys/types.h>
5209 /* Check that off_t can represent 2**63 - 1 correctly.
5210 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5211 since some C++ compilers masquerading as C compilers
5212 incorrectly reject 9223372036854775807. */
5213 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5215 && LARGE_OFF_T % 2147483647 == 1)
5225 if ac_fn_c_try_compile "$LINENO"; then :
5228 rm -f core conftest.err conftest.$ac_objext
5230 if ac_fn_c_try_compile "$LINENO"; then :
5231 ac_cv_sys_largefile_CC=' -n32'; break
5233 rm -f core conftest.err conftest.$ac_objext
5237 rm -f conftest.$ac_ext
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5241 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5242 if test "$ac_cv_sys_largefile_CC" != no; then
5243 CC=$CC$ac_cv_sys_largefile_CC
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5247 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5248 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #include <sys/types.h>
5255 /* Check that off_t can represent 2**63 - 1 correctly.
5256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5257 since some C++ compilers masquerading as C compilers
5258 incorrectly reject 9223372036854775807. */
5259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5261 && LARGE_OFF_T % 2147483647 == 1)
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 ac_cv_sys_file_offset_bits=no; break
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 #define _FILE_OFFSET_BITS 64
5278 #include <sys/types.h>
5279 /* Check that off_t can represent 2**63 - 1 correctly.
5280 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5281 since some C++ compilers masquerading as C compilers
5282 incorrectly reject 9223372036854775807. */
5283 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5284 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5285 && LARGE_OFF_T % 2147483647 == 1)
5295 if ac_fn_c_try_compile "$LINENO"; then :
5296 ac_cv_sys_file_offset_bits=64; break
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 ac_cv_sys_file_offset_bits=unknown
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5304 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5305 case $ac_cv_sys_file_offset_bits in #(
5308 cat >>confdefs.h <<_ACEOF
5309 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5314 if test $ac_cv_sys_file_offset_bits = unknown; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5316 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5317 if test "${ac_cv_sys_large_files+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <sys/types.h>
5324 /* Check that off_t can represent 2**63 - 1 correctly.
5325 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5326 since some C++ compilers masquerading as C compilers
5327 incorrectly reject 9223372036854775807. */
5328 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5329 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5330 && LARGE_OFF_T % 2147483647 == 1)
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341 ac_cv_sys_large_files=no; break
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #define _LARGE_FILES 1
5347 #include <sys/types.h>
5348 /* Check that off_t can represent 2**63 - 1 correctly.
5349 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5350 since some C++ compilers masquerading as C compilers
5351 incorrectly reject 9223372036854775807. */
5352 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5353 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5354 && LARGE_OFF_T % 2147483647 == 1)
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_sys_large_files=1; break
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 ac_cv_sys_large_files=unknown
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5373 $as_echo "$ac_cv_sys_large_files" >&6; }
5374 case $ac_cv_sys_large_files in #(
5377 cat >>confdefs.h <<_ACEOF
5378 #define _LARGE_FILES $ac_cv_sys_large_files
5387 if test -z "$AR" ; then
5388 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5391 # Use LOGIN_PROGRAM from environment if possible
5392 if test ! -z "$LOGIN_PROGRAM" ; then
5394 cat >>confdefs.h <<_ACEOF
5395 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5400 # Extract the first word of "login", so it can be a program name with args.
5401 set dummy login; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5407 case $LOGIN_PROGRAM_FALLBACK in
5409 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5431 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5433 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5440 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5448 # Extract the first word of "passwd", so it can be a program name with args.
5449 set dummy passwd; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5455 case $PATH_PASSWD_PROG in
5457 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5479 if test -n "$PATH_PASSWD_PROG"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5481 $as_echo "$PATH_PASSWD_PROG" >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5488 if test ! -z "$PATH_PASSWD_PROG" ; then
5490 cat >>confdefs.h <<_ACEOF
5491 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5496 if test -z "$LD" ; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5502 $as_echo_n "checking for inline... " >&6; }
5503 if test "${ac_cv_c_inline+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5507 for ac_kw in inline __inline__ __inline; do
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5512 static $ac_kw foo_t static_foo () {return 0; }
5513 $ac_kw foo_t foo () {return 0; }
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 ac_cv_c_inline=$ac_kw
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 test "$ac_cv_c_inline" != no && break
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5526 $as_echo "$ac_cv_c_inline" >&6; }
5528 case $ac_cv_c_inline in
5531 case $ac_cv_c_inline in
5533 *) ac_val=$ac_cv_c_inline;;
5535 cat >>confdefs.h <<_ACEOF
5537 #define inline $ac_val
5544 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5546 if test "x$ac_cv_have_decl_LLONG_MAX" = x""yes; then :
5550 ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5551 #include <sys/types.h>
5552 #include <sys/param.h>
5553 #include <dev/systrace.h>
5556 if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = x""yes; then :
5557 have_systr_policy_kill=1
5560 ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5561 #include <sys/types.h>
5562 #include <sys/resource.h>
5565 if test "x$ac_cv_have_decl_RLIMIT_NPROC" = x""yes; then :
5567 $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5572 use_stack_protector=1
5574 # Check whether --with-stackprotect was given.
5575 if test "${with_stackprotect+set}" = set; then :
5576 withval=$with_stackprotect;
5577 if test "x$withval" = "xno"; then
5578 use_stack_protector=0
5584 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5587 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5588 saved_CFLAGS="$CFLAGS"
5589 CFLAGS="$CFLAGS -Wall"
5591 test "x$_define_flag" = "x" && _define_flag="-Wall"
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 int main(void) { return 0; }
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5598 $as_echo "yes" >&6; }
5599 CFLAGS="$saved_CFLAGS $_define_flag"
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 CFLAGS="$saved_CFLAGS"
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5610 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5611 saved_CFLAGS="$CFLAGS"
5612 CFLAGS="$CFLAGS -Wpointer-arith"
5614 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 int main(void) { return 0; }
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5621 $as_echo "yes" >&6; }
5622 CFLAGS="$saved_CFLAGS $_define_flag"
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 CFLAGS="$saved_CFLAGS"
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5633 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5634 saved_CFLAGS="$CFLAGS"
5635 CFLAGS="$CFLAGS -Wuninitialized"
5637 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 int main(void) { return 0; }
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5644 $as_echo "yes" >&6; }
5645 CFLAGS="$saved_CFLAGS $_define_flag"
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 CFLAGS="$saved_CFLAGS"
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5
5656 $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5657 saved_CFLAGS="$CFLAGS"
5658 CFLAGS="$CFLAGS -Wsign-compare"
5660 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 int main(void) { return 0; }
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5667 $as_echo "yes" >&6; }
5668 CFLAGS="$saved_CFLAGS $_define_flag"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 CFLAGS="$saved_CFLAGS"
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5
5679 $as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5680 saved_CFLAGS="$CFLAGS"
5681 CFLAGS="$CFLAGS -Wformat-security"
5683 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 int main(void) { return 0; }
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5690 $as_echo "yes" >&6; }
5691 CFLAGS="$saved_CFLAGS $_define_flag"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 CFLAGS="$saved_CFLAGS"
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5
5702 $as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; }
5703 saved_CFLAGS="$CFLAGS"
5704 CFLAGS="$CFLAGS -Wpointer-sign"
5705 _define_flag="-Wno-pointer-sign"
5706 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 int main(void) { return 0; }
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5713 $as_echo "yes" >&6; }
5714 CFLAGS="$saved_CFLAGS $_define_flag"
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 CFLAGS="$saved_CFLAGS"
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5
5725 $as_echo_n "checking if $CC supports -Wunused-result... " >&6; }
5726 saved_CFLAGS="$CFLAGS"
5727 CFLAGS="$CFLAGS -Wunused-result"
5728 _define_flag="-Wno-unused-result"
5729 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 int main(void) { return 0; }
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5736 $as_echo "yes" >&6; }
5737 CFLAGS="$saved_CFLAGS $_define_flag"
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 CFLAGS="$saved_CFLAGS"
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
5748 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5749 saved_CFLAGS="$CFLAGS"
5750 CFLAGS="$CFLAGS -fno-strict-aliasing"
5752 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 int main(void) { return 0; }
5757 if ac_fn_c_try_compile "$LINENO"; then :
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5760 CFLAGS="$saved_CFLAGS $_define_flag"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 CFLAGS="$saved_CFLAGS"
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
5770 $as_echo_n "checking gcc version... " >&6; }
5771 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5773 1.*) no_attrib_nonnull=1 ;;
5777 2.*) no_attrib_nonnull=1 ;;
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
5781 $as_echo "$GCC_VER" >&6; }
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5784 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5785 saved_CFLAGS="$CFLAGS"
5786 CFLAGS="$CFLAGS -fno-builtin-memset"
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5793 char b[10]; memset(b, 0, sizeof(b));
5798 if ac_fn_c_try_link "$LINENO"; then :
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5800 $as_echo "yes" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 CFLAGS="$saved_CFLAGS"
5807 rm -f core conftest.err conftest.$ac_objext \
5808 conftest$ac_exeext conftest.$ac_ext
5810 # -fstack-protector-all doesn't always work for some GCC versions
5811 # and/or platforms, so we test if we can. If it's not supported
5812 # on a given platform gcc will emit a warning so we use -Werror.
5813 if test "x$use_stack_protector" = "x1"; then
5814 for t in -fstack-protector-all -fstack-protector; do
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5816 $as_echo_n "checking if $CC supports $t... " >&6; }
5817 saved_CFLAGS="$CFLAGS"
5818 saved_LDFLAGS="$LDFLAGS"
5819 CFLAGS="$CFLAGS $t -Werror"
5820 LDFLAGS="$LDFLAGS $t -Werror"
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5829 snprintf(x, sizeof(x), "XXX");
5835 if ac_fn_c_try_link "$LINENO"; then :
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5837 $as_echo "yes" >&6; }
5838 CFLAGS="$saved_CFLAGS $t"
5839 LDFLAGS="$saved_LDFLAGS $t"
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5841 $as_echo_n "checking if $t works... " >&6; }
5842 if test "$cross_compiling" = yes; then :
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5844 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5856 snprintf(x, sizeof(x), "XXX");
5862 if ac_fn_c_try_run "$LINENO"; then :
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5864 $as_echo "yes" >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5871 conftest.$ac_objext conftest.beam conftest.$ac_ext
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5880 rm -f core conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5882 CFLAGS="$saved_CFLAGS"
5883 LDFLAGS="$saved_LDFLAGS"
5887 if test -z "$have_llong_max"; then
5888 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5889 unset ac_cv_have_decl_LLONG_MAX
5890 saved_CFLAGS="$CFLAGS"
5891 CFLAGS="$CFLAGS -std=gnu99"
5892 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5895 if test "x$ac_cv_have_decl_LLONG_MAX" = x""yes; then :
5898 CFLAGS="$saved_CFLAGS"
5904 if test "x$no_attrib_nonnull" != "x1" ; then
5906 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
5911 # Check whether --with-rpath was given.
5912 if test "${with_rpath+set}" = set; then :
5913 withval=$with_rpath;
5914 if test "x$withval" = "xno" ; then
5917 if test "x$withval" = "xyes" ; then
5925 # Allow user to specify flags
5927 # Check whether --with-cflags was given.
5928 if test "${with_cflags+set}" = set; then :
5929 withval=$with_cflags;
5930 if test -n "$withval" && test "x$withval" != "xno" && \
5931 test "x${withval}" != "xyes"; then
5932 CFLAGS="$CFLAGS $withval"
5939 # Check whether --with-cppflags was given.
5940 if test "${with_cppflags+set}" = set; then :
5941 withval=$with_cppflags;
5942 if test -n "$withval" && test "x$withval" != "xno" && \
5943 test "x${withval}" != "xyes"; then
5944 CPPFLAGS="$CPPFLAGS $withval"
5951 # Check whether --with-ldflags was given.
5952 if test "${with_ldflags+set}" = set; then :
5953 withval=$with_ldflags;
5954 if test -n "$withval" && test "x$withval" != "xno" && \
5955 test "x${withval}" != "xyes"; then
5956 LDFLAGS="$LDFLAGS $withval"
5963 # Check whether --with-libs was given.
5964 if test "${with_libs+set}" = set; then :
5966 if test -n "$withval" && test "x$withval" != "xno" && \
5967 test "x${withval}" != "xyes"; then
5968 LIBS="$LIBS $withval"
5975 # Check whether --with-Werror was given.
5976 if test "${with_Werror+set}" = set; then :
5977 withval=$with_Werror;
5978 if test -n "$withval" && test "x$withval" != "xno"; then
5979 werror_flags="-Werror"
5980 if test "x${withval}" != "xyes"; then
5981 werror_flags="$withval"
6015 security/pam_appl.h \
6055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6056 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6058 cat >>confdefs.h <<_ACEOF
6059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6067 # lastlog.h requires sys/time.h to be included first on Solaris
6068 for ac_header in lastlog.h
6070 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6071 #ifdef HAVE_SYS_TIME_H
6072 # include <sys/time.h>
6076 if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6077 cat >>confdefs.h <<_ACEOF
6078 #define HAVE_LASTLOG_H 1
6086 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6087 for ac_header in sys/ptms.h
6089 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6090 #ifdef HAVE_SYS_STREAM_H
6091 # include <sys/stream.h>
6095 if test "x$ac_cv_header_sys_ptms_h" = x""yes; then :
6096 cat >>confdefs.h <<_ACEOF
6097 #define HAVE_SYS_PTMS_H 1
6105 # login_cap.h requires sys/types.h on NetBSD
6106 for ac_header in login_cap.h
6108 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6109 #include <sys/types.h>
6112 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
6113 cat >>confdefs.h <<_ACEOF
6114 #define HAVE_LOGIN_CAP_H 1
6122 # older BSDs need sys/param.h before sys/mount.h
6123 for ac_header in sys/mount.h
6125 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6126 #include <sys/param.h>
6129 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
6130 cat >>confdefs.h <<_ACEOF
6131 #define HAVE_SYS_MOUNT_H 1
6139 # Messages for features tested for in target-specific section
6144 # Check for some target-specific stuff
6147 # Some versions of VAC won't allow macro redefinitions at
6148 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6149 # particularly with older versions of vac or xlc.
6150 # It also throws errors about null macro argments, but these are
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6153 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 #define testmacro foo
6158 #define testmacro bar
6167 if ac_fn_c_try_compile "$LINENO"; then :
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6169 $as_echo "yes" >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6174 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6175 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6176 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6183 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6184 if (test -z "$blibpath"); then
6185 blibpath="/usr/lib:/lib"
6187 saved_LDFLAGS="$LDFLAGS"
6188 if test "$GCC" = "yes"; then
6189 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6191 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6193 for tryflags in $flags ;do
6194 if (test -z "$blibflags"); then
6195 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6207 if ac_fn_c_try_link "$LINENO"; then :
6210 rm -f core conftest.err conftest.$ac_objext \
6211 conftest$ac_exeext conftest.$ac_ext
6214 if (test -z "$blibflags"); then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6216 $as_echo "not found" >&6; }
6217 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6220 $as_echo "$blibflags" >&6; }
6222 LDFLAGS="$saved_LDFLAGS"
6223 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6224 if test "x$ac_cv_func_authenticate" = x""yes; then :
6226 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6230 $as_echo_n "checking for authenticate in -ls... " >&6; }
6231 if test "${ac_cv_lib_s_authenticate+set}" = set; then :
6232 $as_echo_n "(cached) " >&6
6234 ac_check_lib_save_LIBS=$LIBS
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6239 /* Override any GCC internal prototype to avoid an error.
6240 Use char because int might match the return type of a GCC
6241 builtin and then its argument prototype would still apply. */
6245 char authenticate ();
6249 return authenticate ();
6254 if ac_fn_c_try_link "$LINENO"; then :
6255 ac_cv_lib_s_authenticate=yes
6257 ac_cv_lib_s_authenticate=no
6259 rm -f core conftest.err conftest.$ac_objext \
6260 conftest$ac_exeext conftest.$ac_ext
6261 LIBS=$ac_check_lib_save_LIBS
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6264 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
6265 if test "x$ac_cv_lib_s_authenticate" = x""yes; then :
6266 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6275 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6277 if test "x$ac_cv_have_decl_authenticate" = x""yes; then :
6283 cat >>confdefs.h <<_ACEOF
6284 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
6286 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6288 if test "x$ac_cv_have_decl_loginrestrictions" = x""yes; then :
6294 cat >>confdefs.h <<_ACEOF
6295 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6297 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6299 if test "x$ac_cv_have_decl_loginsuccess" = x""yes; then :
6305 cat >>confdefs.h <<_ACEOF
6306 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6308 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6310 if test "x$ac_cv_have_decl_passwdexpired" = x""yes; then :
6316 cat >>confdefs.h <<_ACEOF
6317 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6319 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6321 if test "x$ac_cv_have_decl_setauthdb" = x""yes; then :
6327 cat >>confdefs.h <<_ACEOF
6328 #define HAVE_DECL_SETAUTHDB $ac_have_decl
6331 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6334 if test "x$ac_cv_have_decl_loginfailed" = x""yes; then :
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_DECL_LOGINFAILED $ac_have_decl
6343 if test $ac_have_decl = 1; then :
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6345 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 #include <usersec.h>
6352 (void)loginfailed("user","host","tty",0);
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6359 $as_echo "yes" >&6; }
6361 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 for ac_func in getgrset setauthdb
6373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6374 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6375 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6376 cat >>confdefs.h <<_ACEOF
6377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6383 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6387 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
6389 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6393 check_for_aix_broken_getaddrinfo=1
6395 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6398 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6401 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6404 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6407 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6410 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6413 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6416 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6419 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6423 check_for_libcrypt_later=1
6424 LIBS="$LIBS /usr/lib/textreadmode.o"
6426 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6429 $as_echo "#define USE_PIPES 1" >>confdefs.h
6432 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6435 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6438 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6441 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6444 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
6447 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
6452 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6454 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6456 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6458 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6463 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
6464 if test "$cross_compiling" = yes; then :
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6466 $as_echo "assume it is working" >&6; }
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 #include <mach-o/dyld.h>
6471 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6478 if ac_fn_c_try_run "$LINENO"; then :
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6480 $as_echo "working" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6483 $as_echo "buggy" >&6; }
6485 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6490 conftest.$ac_objext conftest.beam conftest.$ac_ext
6493 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6495 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6497 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6500 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6503 cat >>confdefs.h <<_ACEOF
6504 #define BIND_8_COMPAT 1
6508 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6511 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6514 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the Security Authorization Session API" >&5
6517 $as_echo_n "checking if we have the Security Authorization Session API... " >&6; }
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #include <Security/AuthSession.h>
6524 SessionCreate(0, 0);
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 ac_cv_use_security_session_api="yes"
6532 $as_echo "#define USE_SECURITY_SESSION_API 1" >>confdefs.h
6534 LIBS="$LIBS -framework Security"
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6536 $as_echo "yes" >&6; }
6538 ac_cv_use_security_session_api="no"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have an in-memory credentials cache" >&5
6544 $as_echo_n "checking if we have an in-memory credentials cache... " >&6; }
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 #include <Kerberos/Kerberos.h>
6552 (void) cc_initialize (&c, 0, NULL, NULL);
6557 if ac_fn_c_try_compile "$LINENO"; then :
6559 $as_echo "#define USE_CCAPI 1" >>confdefs.h
6561 LIBS="$LIBS -framework Security"
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563 $as_echo "yes" >&6; }
6564 if test "x$ac_cv_use_security_session_api" = "xno"; then
6565 as_fn_error $? "*** Need a security framework to use the credentials cache API ***" "$LINENO" 5
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6575 if test "x$ac_cv_have_decl_AU_IPv4" = x""yes; then :
6579 $as_echo "#define AU_IPv4 0" >>confdefs.h
6581 #include <bsm/audit.h>
6583 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6589 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6591 for ac_func in sandbox_init
6593 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
6594 if test "x$ac_cv_func_sandbox_init" = x""yes; then :
6595 cat >>confdefs.h <<_ACEOF
6596 #define HAVE_SANDBOX_INIT 1
6602 for ac_header in sandbox.h
6604 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6605 if test "x$ac_cv_header_sandbox_h" = x""yes; then :
6606 cat >>confdefs.h <<_ACEOF
6607 #define HAVE_SANDBOX_H 1
6616 SSHDLIBS="$SSHDLIBS -lcrypt"
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
6621 $as_echo_n "checking for socket in -lnetwork... " >&6; }
6622 if test "${ac_cv_lib_network_socket+set}" = set; then :
6623 $as_echo_n "(cached) " >&6
6625 ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-lnetwork $LIBS"
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6630 /* Override any GCC internal prototype to avoid an error.
6631 Use char because int might match the return type of a GCC
6632 builtin and then its argument prototype would still apply. */
6645 if ac_fn_c_try_link "$LINENO"; then :
6646 ac_cv_lib_network_socket=yes
6648 ac_cv_lib_network_socket=no
6650 rm -f core conftest.err conftest.$ac_objext \
6651 conftest$ac_exeext conftest.$ac_ext
6652 LIBS=$ac_check_lib_save_LIBS
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
6655 $as_echo "$ac_cv_lib_network_socket" >&6; }
6656 if test "x$ac_cv_lib_network_socket" = x""yes; then :
6657 cat >>confdefs.h <<_ACEOF
6658 #define HAVE_LIBNETWORK 1
6661 LIBS="-lnetwork $LIBS"
6665 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
6670 # first we define all of the options common to all HP-UX releases
6671 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6672 IPADDR_IN_DISPLAY=yes
6673 $as_echo "#define USE_PIPES 1" >>confdefs.h
6676 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6678 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6681 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6683 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6688 $as_echo_n "checking for t_error in -lxnet... " >&6; }
6689 if test "${ac_cv_lib_xnet_t_error+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6692 ac_check_lib_save_LIBS=$LIBS
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6697 /* Override any GCC internal prototype to avoid an error.
6698 Use char because int might match the return type of a GCC
6699 builtin and then its argument prototype would still apply. */
6712 if ac_fn_c_try_link "$LINENO"; then :
6713 ac_cv_lib_xnet_t_error=yes
6715 ac_cv_lib_xnet_t_error=no
6717 rm -f core conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 LIBS=$ac_check_lib_save_LIBS
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6722 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6723 if test "x$ac_cv_lib_xnet_t_error" = x""yes; then :
6724 cat >>confdefs.h <<_ACEOF
6725 #define HAVE_LIBXNET 1
6731 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6735 # next, we define all of the options specific to major releases
6738 if test -z "$GCC"; then
6739 CFLAGS="$CFLAGS -Ae"
6744 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6747 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6750 $as_echo "#define USE_BTMP 1" >>confdefs.h
6752 check_for_hpux_broken_getaddrinfo=1
6753 check_for_conflicting_getspnam=1
6757 # lastly, we define options specific to minor releases
6761 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6763 disable_ptmx_check=yes
6764 LIBS="$LIBS -lsecpw"
6769 PATH="$PATH:/usr/etc"
6771 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6773 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6775 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6777 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6780 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6782 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6786 PATH="$PATH:/usr/etc"
6788 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6791 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6794 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6796 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6797 if test "x$ac_cv_func_jlimit_startjob" = x""yes; then :
6799 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6803 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6805 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6807 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6809 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6812 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6814 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6816 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6819 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6820 check_for_libcrypt_later=1
6821 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6823 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6825 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6828 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6831 $as_echo "#define USE_BTMP 1" >>confdefs.h
6836 check_for_libcrypt_later=1
6837 check_for_openpty_ctty_bug=1
6839 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6842 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6844 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6847 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6850 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6852 $as_echo "#define USE_BTMP 1" >>confdefs.h
6855 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
6857 inet6_default_4in6=yes
6861 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6865 # tun(4) forwarding compat code
6866 for ac_header in linux/if_tun.h
6868 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6869 if test "x$ac_cv_header_linux_if_tun_h" = x""yes; then :
6870 cat >>confdefs.h <<_ACEOF
6871 #define HAVE_LINUX_IF_TUN_H 1
6878 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6880 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6883 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6886 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6890 mips-sony-bsd|mips-sony-newsos4)
6892 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6897 check_for_libcrypt_before=1
6898 if test "x$withval" != "xno" ; then
6902 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6904 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6905 if test "x$ac_cv_header_net_if_tap_h" = x""yes; then :
6909 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6915 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6919 check_for_libcrypt_later=1
6921 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
6924 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6926 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6927 if test "x$ac_cv_header_net_if_tap_h" = x""yes; then :
6931 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6937 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6941 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6943 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6945 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6949 conf_lastlog_location="/usr/adm/lastlog"
6950 conf_utmp_location=/etc/utmp
6951 conf_wtmp_location=/usr/adm/wtmp
6952 maildir=/usr/spool/mail
6954 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
6956 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6958 $as_echo "#define USE_PIPES 1" >>confdefs.h
6961 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
6966 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
6969 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
6972 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
6975 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
6979 if test "x$withval" != "xno" ; then
6982 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6984 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6987 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
6989 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6992 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6994 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6996 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
6998 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7001 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7004 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7006 external_path_file=/etc/default/login
7007 # hardwire lastlog location (can't detect it on some versions)
7008 conf_lastlog_location="/var/adm/lastlog"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7010 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7011 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7012 if test "$sol2ver" -ge 8; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7014 $as_echo "yes" >&6; }
7015 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7018 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7025 # Check whether --with-solaris-contracts was given.
7026 if test "${with_solaris_contracts+set}" = set; then :
7027 withval=$with_solaris_contracts;
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7029 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7030 if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7033 ac_check_lib_save_LIBS=$LIBS
7034 LIBS="-lcontract $LIBS"
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7038 /* Override any GCC internal prototype to avoid an error.
7039 Use char because int might match the return type of a GCC
7040 builtin and then its argument prototype would still apply. */
7044 char ct_tmpl_activate ();
7048 return ct_tmpl_activate ();
7053 if ac_fn_c_try_link "$LINENO"; then :
7054 ac_cv_lib_contract_ct_tmpl_activate=yes
7056 ac_cv_lib_contract_ct_tmpl_activate=no
7058 rm -f core conftest.err conftest.$ac_objext \
7059 conftest$ac_exeext conftest.$ac_ext
7060 LIBS=$ac_check_lib_save_LIBS
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7063 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7064 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = x""yes; then :
7066 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7068 SSHDLIBS="$SSHDLIBS -lcontract"
7076 # Check whether --with-solaris-projects was given.
7077 if test "${with_solaris_projects+set}" = set; then :
7078 withval=$with_solaris_projects;
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7080 $as_echo_n "checking for setproject in -lproject... " >&6; }
7081 if test "${ac_cv_lib_project_setproject+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7084 ac_check_lib_save_LIBS=$LIBS
7085 LIBS="-lproject $LIBS"
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7089 /* Override any GCC internal prototype to avoid an error.
7090 Use char because int might match the return type of a GCC
7091 builtin and then its argument prototype would still apply. */
7099 return setproject ();
7104 if ac_fn_c_try_link "$LINENO"; then :
7105 ac_cv_lib_project_setproject=yes
7107 ac_cv_lib_project_setproject=no
7109 rm -f core conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7111 LIBS=$ac_check_lib_save_LIBS
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7114 $as_echo "$ac_cv_lib_project_setproject" >&6; }
7115 if test "x$ac_cv_lib_project_setproject" = x""yes; then :
7117 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7119 SSHDLIBS="$SSHDLIBS -lproject"
7128 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7129 for ac_func in getpwanam
7131 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7132 if test "x$ac_cv_func_getpwanam" = x""yes; then :
7133 cat >>confdefs.h <<_ACEOF
7134 #define HAVE_GETPWANAM 1
7140 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7142 conf_utmp_location=/etc/utmp
7143 conf_wtmp_location=/var/adm/wtmp
7144 conf_lastlog_location=/var/adm/lastlog
7145 $as_echo "#define USE_PIPES 1" >>confdefs.h
7150 $as_echo "#define USE_PIPES 1" >>confdefs.h
7152 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7154 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7156 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7158 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7162 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7164 $as_echo_n "checking for dlsym in -ldl... " >&6; }
7165 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
7166 $as_echo_n "(cached) " >&6
7168 ac_check_lib_save_LIBS=$LIBS
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7173 /* Override any GCC internal prototype to avoid an error.
7174 Use char because int might match the return type of a GCC
7175 builtin and then its argument prototype would still apply. */
7188 if ac_fn_c_try_link "$LINENO"; then :
7189 ac_cv_lib_dl_dlsym=yes
7191 ac_cv_lib_dl_dlsym=no
7193 rm -f core conftest.err conftest.$ac_objext \
7194 conftest$ac_exeext conftest.$ac_ext
7195 LIBS=$ac_check_lib_save_LIBS
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7198 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7199 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
7200 cat >>confdefs.h <<_ACEOF
7201 #define HAVE_LIBDL 1
7208 # -lresolv needs to be at the end of LIBS or DNS lookups break
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7210 $as_echo_n "checking for res_query in -lresolv... " >&6; }
7211 if test "${ac_cv_lib_resolv_res_query+set}" = set; then :
7212 $as_echo_n "(cached) " >&6
7214 ac_check_lib_save_LIBS=$LIBS
7215 LIBS="-lresolv $LIBS"
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7219 /* Override any GCC internal prototype to avoid an error.
7220 Use char because int might match the return type of a GCC
7221 builtin and then its argument prototype would still apply. */
7229 return res_query ();
7234 if ac_fn_c_try_link "$LINENO"; then :
7235 ac_cv_lib_resolv_res_query=yes
7237 ac_cv_lib_resolv_res_query=no
7239 rm -f core conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
7241 LIBS=$ac_check_lib_save_LIBS
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7244 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7245 if test "x$ac_cv_lib_resolv_res_query" = x""yes; then :
7246 LIBS="$LIBS -lresolv"
7249 IPADDR_IN_DISPLAY=yes
7250 $as_echo "#define USE_PIPES 1" >>confdefs.h
7252 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7254 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7256 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7258 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7260 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7262 external_path_file=/etc/default/login
7263 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7264 # Attention: always take care to bind libsocket and libnsl before libc,
7265 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7267 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7269 $as_echo "#define USE_PIPES 1" >>confdefs.h
7271 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7273 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7275 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7278 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7280 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7283 # UnixWare 7.x, OpenUNIX 8
7285 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7287 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7289 $as_echo "#define USE_PIPES 1" >>confdefs.h
7291 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7293 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7295 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7297 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7299 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7302 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7303 maildir=/var/spool/mail
7304 TEST_SHELL=/u95/bin/sh
7306 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7308 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7311 $as_echo_n "checking for getluid in -lprot... " >&6; }
7312 if test "${ac_cv_lib_prot_getluid+set}" = set; then :
7313 $as_echo_n "(cached) " >&6
7315 ac_check_lib_save_LIBS=$LIBS
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7320 /* Override any GCC internal prototype to avoid an error.
7321 Use char because int might match the return type of a GCC
7322 builtin and then its argument prototype would still apply. */
7335 if ac_fn_c_try_link "$LINENO"; then :
7336 ac_cv_lib_prot_getluid=yes
7338 ac_cv_lib_prot_getluid=no
7340 rm -f core conftest.err conftest.$ac_objext \
7341 conftest$ac_exeext conftest.$ac_ext
7342 LIBS=$ac_check_lib_save_LIBS
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
7345 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
7346 if test "x$ac_cv_lib_prot_getluid" = x""yes; then :
7348 for ac_func in getluid setluid
7350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7352 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7353 cat >>confdefs.h <<_ACEOF
7354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7360 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7362 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7368 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7370 check_for_libcrypt_later=1
7376 # SCO UNIX and OEM versions of SCO UNIX
7378 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
7380 # SCO OpenServer 5.x
7382 if test -z "$GCC"; then
7383 CFLAGS="$CFLAGS -belf"
7385 LIBS="$LIBS -lprot -lx -ltinfo -lm"
7387 $as_echo "#define USE_PIPES 1" >>confdefs.h
7389 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7391 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7393 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7395 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7397 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7399 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7401 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7403 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7405 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7407 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7409 for ac_func in getluid setluid
7411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7413 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7414 cat >>confdefs.h <<_ACEOF
7415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7426 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7428 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7430 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7432 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7434 $as_echo "#define USE_PIPES 1" >>confdefs.h
7436 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7439 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7443 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7445 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7447 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7449 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7451 $as_echo "#define USE_PIPES 1" >>confdefs.h
7453 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7456 LIBS="$LIBS -lgen -lacid -ldb"
7460 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7462 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7464 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7466 $as_echo "#define USE_PIPES 1" >>confdefs.h
7468 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7470 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7472 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7473 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
7478 $as_echo_n "checking for Digital Unix SIA... " >&6; }
7481 # Check whether --with-osfsia was given.
7482 if test "${with_osfsia+set}" = set; then :
7483 withval=$with_osfsia;
7484 if test "x$withval" = "xno" ; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7486 $as_echo "disabled" >&6; }
7492 if test -z "$no_osfsia" ; then
7493 if test -f /etc/sia/matrix.conf; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7495 $as_echo "yes" >&6; }
7497 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7500 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7502 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7504 LIBS="$LIBS -lsecurity -ldb -lm -laud"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7510 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7514 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7516 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7518 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7520 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7523 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7528 $as_echo "#define USE_PIPES 1" >>confdefs.h
7530 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7533 $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7536 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7539 $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7541 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7543 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7546 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7548 enable_etc_default_login=no # has incompatible /etc/default/login
7551 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7559 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7562 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7564 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7567 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7572 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7573 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7576 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7582 $as_echo_n "checking compiler and flags for sanity... " >&6; }
7583 if test "$cross_compiling" = yes; then :
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7585 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7599 if ac_fn_c_try_run "$LINENO"; then :
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7601 $as_echo "yes" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7610 conftest.$ac_objext conftest.beam conftest.$ac_ext
7614 # Checks for libraries.
7615 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7616 if test "x$ac_cv_func_yp_match" = x""yes; then :
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7620 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
7621 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7624 ac_check_lib_save_LIBS=$LIBS
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7629 /* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC
7631 builtin and then its argument prototype would still apply. */
7644 if ac_fn_c_try_link "$LINENO"; then :
7645 ac_cv_lib_nsl_yp_match=yes
7647 ac_cv_lib_nsl_yp_match=no
7649 rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651 LIBS=$ac_check_lib_save_LIBS
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7654 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7655 if test "x$ac_cv_lib_nsl_yp_match" = x""yes; then :
7656 cat >>confdefs.h <<_ACEOF
7657 #define HAVE_LIBNSL 1
7666 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7667 if test "x$ac_cv_func_setsockopt" = x""yes; then :
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7671 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7672 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7675 ac_check_lib_save_LIBS=$LIBS
7676 LIBS="-lsocket $LIBS"
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7680 /* Override any GCC internal prototype to avoid an error.
7681 Use char because int might match the return type of a GCC
7682 builtin and then its argument prototype would still apply. */
7690 return setsockopt ();
7695 if ac_fn_c_try_link "$LINENO"; then :
7696 ac_cv_lib_socket_setsockopt=yes
7698 ac_cv_lib_socket_setsockopt=no
7700 rm -f core conftest.err conftest.$ac_objext \
7701 conftest$ac_exeext conftest.$ac_ext
7702 LIBS=$ac_check_lib_save_LIBS
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7705 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7706 if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then :
7707 cat >>confdefs.h <<_ACEOF
7708 #define HAVE_LIBSOCKET 1
7711 LIBS="-lsocket $LIBS"
7718 for ac_func in dirname
7720 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7721 if test "x$ac_cv_func_dirname" = x""yes; then :
7722 cat >>confdefs.h <<_ACEOF
7723 #define HAVE_DIRNAME 1
7725 for ac_header in libgen.h
7727 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7728 if test "x$ac_cv_header_libgen_h" = x""yes; then :
7729 cat >>confdefs.h <<_ACEOF
7730 #define HAVE_LIBGEN_H 1
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7740 $as_echo_n "checking for dirname in -lgen... " >&6; }
7741 if test "${ac_cv_lib_gen_dirname+set}" = set; then :
7742 $as_echo_n "(cached) " >&6
7744 ac_check_lib_save_LIBS=$LIBS
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7749 /* Override any GCC internal prototype to avoid an error.
7750 Use char because int might match the return type of a GCC
7751 builtin and then its argument prototype would still apply. */
7764 if ac_fn_c_try_link "$LINENO"; then :
7765 ac_cv_lib_gen_dirname=yes
7767 ac_cv_lib_gen_dirname=no
7769 rm -f core conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7771 LIBS=$ac_check_lib_save_LIBS
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7774 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
7775 if test "x$ac_cv_lib_gen_dirname" = x""yes; then :
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7778 $as_echo_n "checking for broken dirname... " >&6; }
7779 if test "${ac_cv_have_broken_dirname+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7785 if test "$cross_compiling" = yes; then :
7786 ac_cv_have_broken_dirname="no"
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7794 int main(int argc, char **argv) {
7797 strncpy(buf,"/etc", 32);
7799 if (!s || strncmp(s, "/", 32) != 0) {
7807 if ac_fn_c_try_run "$LINENO"; then :
7808 ac_cv_have_broken_dirname="no"
7810 ac_cv_have_broken_dirname="yes"
7812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7813 conftest.$ac_objext conftest.beam conftest.$ac_ext
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7820 $as_echo "$ac_cv_have_broken_dirname" >&6; }
7821 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7823 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7825 for ac_header in libgen.h
7827 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7828 if test "x$ac_cv_header_libgen_h" = x""yes; then :
7829 cat >>confdefs.h <<_ACEOF
7830 #define HAVE_LIBGEN_H 1
7846 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7847 if test "x$ac_cv_func_getspnam" = x""yes; then :
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7851 $as_echo_n "checking for getspnam in -lgen... " >&6; }
7852 if test "${ac_cv_lib_gen_getspnam+set}" = set; then :
7853 $as_echo_n "(cached) " >&6
7855 ac_check_lib_save_LIBS=$LIBS
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7860 /* Override any GCC internal prototype to avoid an error.
7861 Use char because int might match the return type of a GCC
7862 builtin and then its argument prototype would still apply. */
7875 if ac_fn_c_try_link "$LINENO"; then :
7876 ac_cv_lib_gen_getspnam=yes
7878 ac_cv_lib_gen_getspnam=no
7880 rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7882 LIBS=$ac_check_lib_save_LIBS
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
7885 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7886 if test "x$ac_cv_lib_gen_getspnam" = x""yes; then :
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7893 $as_echo_n "checking for library containing basename... " >&6; }
7894 if test "${ac_cv_search_basename+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7897 ac_func_search_save_LIBS=$LIBS
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7901 /* Override any GCC internal prototype to avoid an error.
7902 Use char because int might match the return type of a GCC
7903 builtin and then its argument prototype would still apply. */
7916 for ac_lib in '' gen; do
7917 if test -z "$ac_lib"; then
7918 ac_res="none required"
7921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7923 if ac_fn_c_try_link "$LINENO"; then :
7924 ac_cv_search_basename=$ac_res
7926 rm -f core conftest.err conftest.$ac_objext \
7928 if test "${ac_cv_search_basename+set}" = set; then :
7932 if test "${ac_cv_search_basename+set}" = set; then :
7935 ac_cv_search_basename=no
7938 LIBS=$ac_func_search_save_LIBS
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
7941 $as_echo "$ac_cv_search_basename" >&6; }
7942 ac_res=$ac_cv_search_basename
7943 if test "$ac_res" != no; then :
7944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7946 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
7952 # Check whether --with-zlib was given.
7953 if test "${with_zlib+set}" = set; then :
7954 withval=$with_zlib; if test "x$withval" = "xno" ; then
7955 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
7956 elif test "x$withval" != "xyes"; then
7957 if test -d "$withval/lib"; then
7958 if test -n "${need_dash_r}"; then
7959 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7961 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7964 if test -n "${need_dash_r}"; then
7965 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7967 LDFLAGS="-L${withval} ${LDFLAGS}"
7970 if test -d "$withval/include"; then
7971 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7973 CPPFLAGS="-I${withval} ${CPPFLAGS}"
7980 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7981 if test "x$ac_cv_header_zlib_h" = x""yes; then :
7984 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
7989 $as_echo_n "checking for deflate in -lz... " >&6; }
7990 if test "${ac_cv_lib_z_deflate+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7993 ac_check_lib_save_LIBS=$LIBS
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7998 /* Override any GCC internal prototype to avoid an error.
7999 Use char because int might match the return type of a GCC
8000 builtin and then its argument prototype would still apply. */
8013 if ac_fn_c_try_link "$LINENO"; then :
8014 ac_cv_lib_z_deflate=yes
8016 ac_cv_lib_z_deflate=no
8018 rm -f core conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
8020 LIBS=$ac_check_lib_save_LIBS
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8023 $as_echo "$ac_cv_lib_z_deflate" >&6; }
8024 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
8025 cat >>confdefs.h <<_ACEOF
8033 saved_CPPFLAGS="$CPPFLAGS"
8034 saved_LDFLAGS="$LDFLAGS"
8036 if test -n "${need_dash_r}"; then
8037 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8039 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8041 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8046 /* Override any GCC internal prototype to avoid an error.
8047 Use char because int might match the return type of a GCC
8048 builtin and then its argument prototype would still apply. */
8061 if ac_fn_c_try_link "$LINENO"; then :
8062 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8066 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8070 rm -f core conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8078 # Check whether --with-zlib-version-check was given.
8079 if test "${with_zlib_version_check+set}" = set; then :
8080 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8081 zlib_check_nonfatal=1
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8089 $as_echo_n "checking for possibly buggy zlib... " >&6; }
8090 if test "$cross_compiling" = yes; then :
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8092 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8105 int a=0, b=0, c=0, d=0, n, v;
8106 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8107 if (n != 3 && n != 4)
8109 v = a*1000000 + b*10000 + c*100 + d;
8110 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8113 if (a == 1 && b == 1 && c >= 4)
8116 /* 1.2.3 and up are OK */
8126 if ac_fn_c_try_run "$LINENO"; then :
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 if test -z "$zlib_check_nonfatal" ; then
8133 as_fn_error $? "*** zlib too old - check config.log ***
8134 Your reported zlib version has known security problems. It's possible your
8135 vendor has fixed these problems without changing the version number. If you
8136 are sure this is the case, you can disable the check by running
8137 \"./configure --without-zlib-version-check\".
8138 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8139 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8142 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8147 conftest.$ac_objext conftest.beam conftest.$ac_ext
8151 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8152 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8156 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8157 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8160 ac_check_lib_save_LIBS=$LIBS
8161 LIBS="-lresolv $LIBS"
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8165 /* Override any GCC internal prototype to avoid an error.
8166 Use char because int might match the return type of a GCC
8167 builtin and then its argument prototype would still apply. */
8175 return strcasecmp ();
8180 if ac_fn_c_try_link "$LINENO"; then :
8181 ac_cv_lib_resolv_strcasecmp=yes
8183 ac_cv_lib_resolv_strcasecmp=no
8185 rm -f core conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
8187 LIBS=$ac_check_lib_save_LIBS
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8190 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8191 if test "x$ac_cv_lib_resolv_strcasecmp" = x""yes; then :
8192 LIBS="$LIBS -lresolv"
8198 for ac_func in utimes
8200 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8201 if test "x$ac_cv_func_utimes" = x""yes; then :
8202 cat >>confdefs.h <<_ACEOF
8203 #define HAVE_UTIMES 1
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8208 $as_echo_n "checking for utimes in -lc89... " >&6; }
8209 if test "${ac_cv_lib_c89_utimes+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8212 ac_check_lib_save_LIBS=$LIBS
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 ac_cv_lib_c89_utimes=yes
8235 ac_cv_lib_c89_utimes=no
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 LIBS=$ac_check_lib_save_LIBS
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8242 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
8243 if test "x$ac_cv_lib_c89_utimes" = x""yes; then :
8244 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8254 for ac_header in libutil.h
8256 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8257 if test "x$ac_cv_header_libutil_h" = x""yes; then :
8258 cat >>confdefs.h <<_ACEOF
8259 #define HAVE_LIBUTIL_H 1
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8267 $as_echo_n "checking for library containing login... " >&6; }
8268 if test "${ac_cv_search_login+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8271 ac_func_search_save_LIBS=$LIBS
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8275 /* Override any GCC internal prototype to avoid an error.
8276 Use char because int might match the return type of a GCC
8277 builtin and then its argument prototype would still apply. */
8290 for ac_lib in '' util bsd; do
8291 if test -z "$ac_lib"; then
8292 ac_res="none required"
8295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8297 if ac_fn_c_try_link "$LINENO"; then :
8298 ac_cv_search_login=$ac_res
8300 rm -f core conftest.err conftest.$ac_objext \
8302 if test "${ac_cv_search_login+set}" = set; then :
8306 if test "${ac_cv_search_login+set}" = set; then :
8309 ac_cv_search_login=no
8312 LIBS=$ac_func_search_save_LIBS
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
8315 $as_echo "$ac_cv_search_login" >&6; }
8316 ac_res=$ac_cv_search_login
8317 if test "$ac_res" != no; then :
8318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8320 $as_echo "#define HAVE_LOGIN 1" >>confdefs.h
8324 for ac_func in fmt_scaled logout updwtmp logwtmp
8326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8328 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8329 cat >>confdefs.h <<_ACEOF
8330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8337 for ac_func in strftime
8339 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8340 if test "x$ac_cv_func_strftime" = x""yes; then :
8341 cat >>confdefs.h <<_ACEOF
8342 #define HAVE_STRFTIME 1
8346 # strftime is in -lintl on SCO UNIX.
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8348 $as_echo_n "checking for strftime in -lintl... " >&6; }
8349 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8352 ac_check_lib_save_LIBS=$LIBS
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8357 /* Override any GCC internal prototype to avoid an error.
8358 Use char because int might match the return type of a GCC
8359 builtin and then its argument prototype would still apply. */
8372 if ac_fn_c_try_link "$LINENO"; then :
8373 ac_cv_lib_intl_strftime=yes
8375 ac_cv_lib_intl_strftime=no
8377 rm -f core conftest.err conftest.$ac_objext \
8378 conftest$ac_exeext conftest.$ac_ext
8379 LIBS=$ac_check_lib_save_LIBS
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8382 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8383 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
8384 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8393 # Check for ALTDIRFUNC glob() extension
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
8395 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8400 #ifdef GLOB_ALTDIRFUNC
8405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
8409 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8412 $as_echo "yes" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8424 # Check for g.gl_matchc glob() extension
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
8426 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8433 glob_t g; g.gl_matchc = 1;
8438 if ac_fn_c_try_compile "$LINENO"; then :
8441 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8444 $as_echo "yes" >&6; }
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 # Check for g.gl_statv glob() extension
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
8456 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8464 #ifndef GLOB_KEEPSTAT
8465 #error "glob does not support GLOB_KEEPSTAT extension"
8474 if ac_fn_c_try_compile "$LINENO"; then :
8477 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8480 $as_echo "yes" >&6; }
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
8493 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = x""yes; then :
8499 cat >>confdefs.h <<_ACEOF
8500 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
8505 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
8506 if test "$cross_compiling" = yes; then :
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
8509 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
8510 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8518 #include <sys/types.h>
8525 exit(sizeof(d.d_name)<=sizeof(char));
8531 if ac_fn_c_try_run "$LINENO"; then :
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8533 $as_echo "yes" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8539 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8544 conftest.$ac_objext conftest.beam conftest.$ac_ext
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8549 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8550 if test -d "/proc/$$/fd" ; then
8552 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8555 $as_echo "yes" >&6; }
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8561 # Check whether user wants S/Key support
8564 # Check whether --with-skey was given.
8565 if test "${with_skey+set}" = set; then :
8567 if test "x$withval" != "xno" ; then
8569 if test "x$withval" != "xyes" ; then
8570 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8571 LDFLAGS="$LDFLAGS -L${withval}/lib"
8575 $as_echo "#define SKEY 1" >>confdefs.h
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8581 $as_echo_n "checking for s/key support... " >&6; }
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8592 char *ff = skey_keyinfo(""); ff="";
8599 if ac_fn_c_try_link "$LINENO"; then :
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8601 $as_echo "yes" >&6; }
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8609 rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8612 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8623 (void)skeychallenge(NULL,"name","",0);
8629 if ac_fn_c_try_compile "$LINENO"; then :
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8632 $as_echo "yes" >&6; }
8634 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 # Check whether user wants TCP wrappers support
8652 # Check whether --with-tcp-wrappers was given.
8653 if test "${with_tcp_wrappers+set}" = set; then :
8654 withval=$with_tcp_wrappers;
8655 if test "x$withval" != "xno" ; then
8657 saved_LDFLAGS="$LDFLAGS"
8658 saved_CPPFLAGS="$CPPFLAGS"
8659 if test -n "${withval}" && \
8660 test "x${withval}" != "xyes"; then
8661 if test -d "${withval}/lib"; then
8662 if test -n "${need_dash_r}"; then
8663 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8665 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8668 if test -n "${need_dash_r}"; then
8669 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8671 LDFLAGS="-L${withval} ${LDFLAGS}"
8674 if test -d "${withval}/include"; then
8675 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8677 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
8682 $as_echo_n "checking for libwrap... " >&6; }
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8686 #include <sys/types.h>
8687 #include <sys/socket.h>
8688 #include <netinet/in.h>
8690 int deny_severity = 0, allow_severity = 0;
8702 if ac_fn_c_try_link "$LINENO"; then :
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8705 $as_echo "yes" >&6; }
8707 $as_echo "#define LIBWRAP 1" >>confdefs.h
8709 SSHDLIBS="$SSHDLIBS -lwrap"
8714 as_fn_error $? "*** libwrap missing" "$LINENO" 5
8718 rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8727 # Check whether user wants libedit support
8730 # Check whether --with-libedit was given.
8731 if test "${with_libedit+set}" = set; then :
8732 withval=$with_libedit; if test "x$withval" != "xno" ; then
8733 if test "x$withval" = "xyes" ; then
8734 if test -n "$ac_tool_prefix"; then
8735 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8736 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8744 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8754 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 PKGCONFIG=$ac_cv_path_PKGCONFIG
8766 if test -n "$PKGCONFIG"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8768 $as_echo "$PKGCONFIG" >&6; }
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8776 if test -z "$ac_cv_path_PKGCONFIG"; then
8777 ac_pt_PKGCONFIG=$PKGCONFIG
8778 # Extract the first word of "pkg-config", so it can be a program name with args.
8779 set dummy pkg-config; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8785 case $ac_pt_PKGCONFIG in
8787 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
8809 if test -n "$ac_pt_PKGCONFIG"; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
8811 $as_echo "$ac_pt_PKGCONFIG" >&6; }
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 $as_echo "no" >&6; }
8817 if test "x$ac_pt_PKGCONFIG" = x; then
8820 case $cross_compiling:$ac_tool_warned in
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8824 ac_tool_warned=yes ;;
8826 PKGCONFIG=$ac_pt_PKGCONFIG
8829 PKGCONFIG="$ac_cv_path_PKGCONFIG"
8832 if test "x$PKGCONFIG" != "xno"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
8834 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
8835 if "$PKGCONFIG" libedit; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8837 $as_echo "yes" >&6; }
8838 use_pkgconfig_for_libedit=yes
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8845 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8846 if test -n "${need_dash_r}"; then
8847 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8849 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8852 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
8853 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
8854 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
8856 LIBEDIT="-ledit -lcurses"
8858 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
8860 $as_echo_n "checking for el_init in -ledit... " >&6; }
8861 if test "${ac_cv_lib_edit_el_init+set}" = set; then :
8862 $as_echo_n "(cached) " >&6
8864 ac_check_lib_save_LIBS=$LIBS
8865 LIBS="-ledit $OTHERLIBS
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8870 /* Override any GCC internal prototype to avoid an error.
8871 Use char because int might match the return type of a GCC
8872 builtin and then its argument prototype would still apply. */
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 ac_cv_lib_edit_el_init=yes
8888 ac_cv_lib_edit_el_init=no
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 LIBS=$ac_check_lib_save_LIBS
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
8895 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
8896 if test "x$ac_cv_lib_edit_el_init" = x""yes; then :
8898 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
8904 as_fn_error $? "libedit not found" "$LINENO" 5
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
8908 $as_echo_n "checking if libedit version is compatible... " >&6; }
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 #include <histedit.h>
8917 el_init("", NULL, NULL, NULL);
8924 if ac_fn_c_try_compile "$LINENO"; then :
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8926 $as_echo "yes" >&6; }
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941 # Check whether --with-audit was given.
8942 if test "${with_audit+set}" = set; then :
8943 withval=$with_audit;
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
8945 $as_echo_n "checking for supported audit module... " >&6; }
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
8949 $as_echo "bsm" >&6; }
8951 for ac_header in bsm/audit.h
8953 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
8960 if test "x$ac_cv_header_bsm_audit_h" = x""yes; then :
8961 cat >>confdefs.h <<_ACEOF
8962 #define HAVE_BSM_AUDIT_H 1
8966 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
8972 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
8973 if test "${ac_cv_lib_bsm_getaudit+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8976 ac_check_lib_save_LIBS=$LIBS
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8981 /* Override any GCC internal prototype to avoid an error.
8982 Use char because int might match the return type of a GCC
8983 builtin and then its argument prototype would still apply. */
8996 if ac_fn_c_try_link "$LINENO"; then :
8997 ac_cv_lib_bsm_getaudit=yes
8999 ac_cv_lib_bsm_getaudit=no
9001 rm -f core conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
9006 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
9007 if test "x$ac_cv_lib_bsm_getaudit" = x""yes; then :
9008 cat >>confdefs.h <<_ACEOF
9009 #define HAVE_LIBBSM 1
9015 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
9018 for ac_func in getaudit
9020 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
9021 if test "x$ac_cv_func_getaudit" = x""yes; then :
9022 cat >>confdefs.h <<_ACEOF
9023 #define HAVE_GETAUDIT 1
9027 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
9031 # These are optional
9032 for ac_func in getaudit_addr aug_get_machine
9034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9035 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9036 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9037 cat >>confdefs.h <<_ACEOF
9038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9045 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
9050 $as_echo "linux" >&6; }
9052 for ac_header in libaudit.h
9054 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
9055 if test "x$ac_cv_header_libaudit_h" = x""yes; then :
9056 cat >>confdefs.h <<_ACEOF
9057 #define HAVE_LIBAUDIT_H 1
9064 SSHDLIBS="$SSHDLIBS -laudit"
9066 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
9072 $as_echo "debug" >&6; }
9074 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9082 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
9092 arc4random_uniform \
9187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9189 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9190 cat >>confdefs.h <<_ACEOF
9191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9204 return (isblank('a'));
9209 if ac_fn_c_try_link "$LINENO"; then :
9211 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9218 # PKCS#11 support requires dlopen() and co
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9220 $as_echo_n "checking for library containing dlopen... " >&6; }
9221 if test "${ac_cv_search_dlopen+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9224 ac_func_search_save_LIBS=$LIBS
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9228 /* Override any GCC internal prototype to avoid an error.
9229 Use char because int might match the return type of a GCC
9230 builtin and then its argument prototype would still apply. */
9243 for ac_lib in '' dl; do
9244 if test -z "$ac_lib"; then
9245 ac_res="none required"
9248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9250 if ac_fn_c_try_link "$LINENO"; then :
9251 ac_cv_search_dlopen=$ac_res
9253 rm -f core conftest.err conftest.$ac_objext \
9255 if test "${ac_cv_search_dlopen+set}" = set; then :
9259 if test "${ac_cv_search_dlopen+set}" = set; then :
9262 ac_cv_search_dlopen=no
9265 LIBS=$ac_func_search_save_LIBS
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9268 $as_echo "$ac_cv_search_dlopen" >&6; }
9269 ac_res=$ac_cv_search_dlopen
9270 if test "$ac_res" != no; then :
9271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9273 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
9279 # IRIX has a const char return value for gai_strerror()
9280 for ac_func in gai_strerror
9282 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
9283 if test "x$ac_cv_func_gai_strerror" = x""yes; then :
9284 cat >>confdefs.h <<_ACEOF
9285 #define HAVE_GAI_STRERROR 1
9288 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9293 #include <sys/types.h>
9294 #include <sys/socket.h>
9297 const char *gai_strerror(int);
9304 str = gai_strerror(0);
9310 if ac_fn_c_try_compile "$LINENO"; then :
9313 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9322 $as_echo_n "checking for library containing nanosleep... " >&6; }
9323 if test "${ac_cv_search_nanosleep+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9326 ac_func_search_save_LIBS=$LIBS
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.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. */
9340 return nanosleep ();
9345 for ac_lib in '' rt posix4; do
9346 if test -z "$ac_lib"; then
9347 ac_res="none required"
9350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9352 if ac_fn_c_try_link "$LINENO"; then :
9353 ac_cv_search_nanosleep=$ac_res
9355 rm -f core conftest.err conftest.$ac_objext \
9357 if test "${ac_cv_search_nanosleep+set}" = set; then :
9361 if test "${ac_cv_search_nanosleep+set}" = set; then :
9364 ac_cv_search_nanosleep=no
9367 LIBS=$ac_func_search_save_LIBS
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
9370 $as_echo "$ac_cv_search_nanosleep" >&6; }
9371 ac_res=$ac_cv_search_nanosleep
9372 if test "$ac_res" != no; then :
9373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9375 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
9380 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
9381 if test "x$ac_cv_have_decl_getrusage" = x""yes; then :
9382 for ac_func in getrusage
9384 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
9385 if test "x$ac_cv_func_getrusage" = x""yes; then :
9386 cat >>confdefs.h <<_ACEOF
9387 #define HAVE_GETRUSAGE 1
9395 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
9396 #ifdef HAVE_STRING_H
9397 # include <string.h>
9401 if test "x$ac_cv_have_decl_strsep" = x""yes; then :
9402 for ac_func in strsep
9404 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
9405 if test "x$ac_cv_func_strsep" = x""yes; then :
9406 cat >>confdefs.h <<_ACEOF
9407 #define HAVE_STRSEP 1
9416 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
9419 if test "x$ac_cv_have_decl_tcsendbreak" = x""yes; then :
9420 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
9423 for ac_func in tcsendbreak
9425 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
9426 if test "x$ac_cv_func_tcsendbreak" = x""yes; then :
9427 cat >>confdefs.h <<_ACEOF
9428 #define HAVE_TCSENDBREAK 1
9437 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
9439 if test "x$ac_cv_have_decl_h_errno" = x""yes; then :
9445 cat >>confdefs.h <<_ACEOF
9446 #define HAVE_DECL_H_ERRNO $ac_have_decl
9450 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
9451 #include <sys/types.h>
9452 #include <sys/socket.h>
9455 if test "x$ac_cv_have_decl_SHUT_RD" = x""yes; then :
9461 cat >>confdefs.h <<_ACEOF
9462 #define HAVE_DECL_SHUT_RD $ac_have_decl
9466 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
9467 #include <sys/types.h>
9468 #ifdef HAVE_SYS_STAT_H
9469 # include <sys/stat.h>
9476 if test "x$ac_cv_have_decl_O_NONBLOCK" = x""yes; then :
9482 cat >>confdefs.h <<_ACEOF
9483 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
9487 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
9488 #include <sys/types.h>
9489 #include <sys/uio.h>
9493 if test "x$ac_cv_have_decl_writev" = x""yes; then :
9499 cat >>confdefs.h <<_ACEOF
9500 #define HAVE_DECL_WRITEV $ac_have_decl
9504 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
9505 #include <sys/param.h>
9508 if test "x$ac_cv_have_decl_MAXSYMLINKS" = x""yes; then :
9514 cat >>confdefs.h <<_ACEOF
9515 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
9519 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
9523 if test "x$ac_cv_have_decl_offsetof" = x""yes; then :
9529 cat >>confdefs.h <<_ACEOF
9530 #define HAVE_DECL_OFFSETOF $ac_have_decl
9534 for ac_func in setresuid
9536 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
9537 if test "x$ac_cv_func_setresuid" = x""yes; then :
9538 cat >>confdefs.h <<_ACEOF
9539 #define HAVE_SETRESUID 1
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
9543 $as_echo_n "checking if setresuid seems to work... " >&6; }
9544 if test "$cross_compiling" = yes; then :
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9546 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9570 if ac_fn_c_try_run "$LINENO"; then :
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9572 $as_echo "yes" >&6; }
9575 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9578 $as_echo "not implemented" >&6; }
9580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9581 conftest.$ac_objext conftest.beam conftest.$ac_ext
9589 for ac_func in setresgid
9591 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
9592 if test "x$ac_cv_func_setresgid" = x""yes; then :
9593 cat >>confdefs.h <<_ACEOF
9594 #define HAVE_SETRESGID 1
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
9598 $as_echo_n "checking if setresgid seems to work... " >&6; }
9599 if test "$cross_compiling" = yes; then :
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9601 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9625 if ac_fn_c_try_run "$LINENO"; then :
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9627 $as_echo "yes" >&6; }
9630 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9633 $as_echo "not implemented" >&6; }
9635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9636 conftest.$ac_objext conftest.beam conftest.$ac_ext
9644 for ac_func in gettimeofday time
9646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9649 cat >>confdefs.h <<_ACEOF
9650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9656 for ac_func in endutent getutent getutid getutline pututline setutent
9658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9661 cat >>confdefs.h <<_ACEOF
9662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9668 for ac_func in utmpname
9670 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
9671 if test "x$ac_cv_func_utmpname" = x""yes; then :
9672 cat >>confdefs.h <<_ACEOF
9673 #define HAVE_UTMPNAME 1
9679 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
9681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9682 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9683 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9684 cat >>confdefs.h <<_ACEOF
9685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9691 for ac_func in setutxdb setutxent utmpxname
9693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9696 cat >>confdefs.h <<_ACEOF
9697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9703 for ac_func in getlastlogxbyname
9705 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
9706 if test "x$ac_cv_func_getlastlogxbyname" = x""yes; then :
9707 cat >>confdefs.h <<_ACEOF
9708 #define HAVE_GETLASTLOGXBYNAME 1
9715 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
9716 if test "x$ac_cv_func_daemon" = x""yes; then :
9718 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
9722 $as_echo_n "checking for daemon in -lbsd... " >&6; }
9723 if test "${ac_cv_lib_bsd_daemon+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9726 ac_check_lib_save_LIBS=$LIBS
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 ac_cv_lib_bsd_daemon=yes
9749 ac_cv_lib_bsd_daemon=no
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
9756 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
9757 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then :
9758 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9766 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9767 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9769 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
9773 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
9774 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9777 ac_check_lib_save_LIBS=$LIBS
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9782 /* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
9788 char getpagesize ();
9792 return getpagesize ();
9797 if ac_fn_c_try_link "$LINENO"; then :
9798 ac_cv_lib_ucb_getpagesize=yes
9800 ac_cv_lib_ucb_getpagesize=no
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
9807 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
9808 if test "x$ac_cv_lib_ucb_getpagesize" = x""yes; then :
9809 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9817 # Check for broken snprintf
9818 if test "x$ac_cv_func_snprintf" = "xyes" ; then
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
9820 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
9821 if test "$cross_compiling" = yes; then :
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
9823 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9834 snprintf(b,5,"123456789");
9841 if ac_fn_c_try_run "$LINENO"; then :
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9843 $as_echo "yes" >&6; }
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9849 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
9852 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
9855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9856 conftest.$ac_objext conftest.beam conftest.$ac_ext
9861 # If we don't have a working asprintf, then we strongly depend on vsnprintf
9862 # returning the right thing on overflow: the number of characters it tried to
9863 # create (as per SUSv3)
9864 if test "x$ac_cv_func_asprintf" != "xyes" && \
9865 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
9867 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
9868 if test "$cross_compiling" = yes; then :
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
9870 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9876 #include <sys/types.h>
9880 int x_snprintf(char *str,size_t count,const char *fmt,...)
9882 size_t ret; va_list ap;
9883 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
9892 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
9898 if ac_fn_c_try_run "$LINENO"; then :
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9900 $as_echo "yes" >&6; }
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9906 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
9909 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
9912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9913 conftest.$ac_objext conftest.beam conftest.$ac_ext
9918 # On systems where [v]snprintf is broken, but is declared in stdio,
9919 # check that the fmt argument is const char * or just char *.
9920 # This is only useful for when BROKEN_SNPRINTF
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
9922 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9927 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9941 $as_echo "yes" >&6; }
9943 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9948 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 # Check for missing getpeereid (or equiv) support
9955 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
9957 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9961 #include <sys/types.h>
9962 #include <sys/socket.h>
9966 int i = SO_PEERCRED;
9971 if ac_fn_c_try_compile "$LINENO"; then :
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9973 $as_echo "yes" >&6; }
9975 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
9989 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
9990 if test "$cross_compiling" = yes; then :
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9993 $as_echo "yes" >&6; }
9994 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10002 #include <stdlib.h>
10008 char template[]="conftest.mkstemp-test";
10009 if (mkstemp(template) == -1)
10018 if ac_fn_c_try_run "$LINENO"; then :
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10026 $as_echo "yes" >&6; }
10028 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
10032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10033 conftest.$ac_objext conftest.beam conftest.$ac_ext
10038 if test ! -z "$check_for_openpty_ctty_bug"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
10040 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
10041 if test "$cross_compiling" = yes; then :
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10044 $as_echo "cross-compiling, assuming yes" >&6; }
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10052 #include <sys/fcntl.h>
10053 #include <sys/types.h>
10054 #include <sys/wait.h>
10061 int fd, ptyfd, ttyfd, status;
10064 if (pid < 0) { /* failed */
10066 } else if (pid > 0) { /* parent */
10067 waitpid(pid, &status, 0);
10068 if (WIFEXITED(status))
10069 exit(WEXITSTATUS(status));
10072 } else { /* child */
10073 close(0); close(1); close(2);
10075 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
10076 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
10078 exit(3); /* Acquired ctty: broken */
10080 exit(0); /* Did not acquire ctty: OK */
10087 if ac_fn_c_try_run "$LINENO"; then :
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10090 $as_echo "yes" >&6; }
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10096 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
10100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10101 conftest.$ac_objext conftest.beam conftest.$ac_ext
10106 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10107 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10109 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10110 if test "$cross_compiling" = yes; then :
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10113 $as_echo "cross-compiling, assuming yes" >&6; }
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10121 #include <sys/socket.h>
10124 #include <netinet/in.h>
10126 #define TEST_PORT "2222"
10133 struct addrinfo *gai_ai, *ai, hints;
10134 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10136 memset(&hints, 0, sizeof(hints));
10137 hints.ai_family = PF_UNSPEC;
10138 hints.ai_socktype = SOCK_STREAM;
10139 hints.ai_flags = AI_PASSIVE;
10141 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10143 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10147 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10148 if (ai->ai_family != AF_INET6)
10151 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10152 sizeof(ntop), strport, sizeof(strport),
10153 NI_NUMERICHOST|NI_NUMERICSERV);
10156 if (err == EAI_SYSTEM)
10157 perror("getnameinfo EAI_SYSTEM");
10159 fprintf(stderr, "getnameinfo failed: %s\n",
10160 gai_strerror(err));
10164 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
10167 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
10168 if (errno == EBADF)
10178 if ac_fn_c_try_run "$LINENO"; then :
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10181 $as_echo "yes" >&6; }
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10187 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10192 conftest.$ac_objext conftest.beam conftest.$ac_ext
10197 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10198 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10200 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10201 if test "$cross_compiling" = yes; then :
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
10204 $as_echo "cross-compiling, assuming no" >&6; }
10208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10212 #include <sys/socket.h>
10215 #include <netinet/in.h>
10217 #define TEST_PORT "2222"
10224 struct addrinfo *gai_ai, *ai, hints;
10225 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10227 memset(&hints, 0, sizeof(hints));
10228 hints.ai_family = PF_UNSPEC;
10229 hints.ai_socktype = SOCK_STREAM;
10230 hints.ai_flags = AI_PASSIVE;
10232 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10234 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10238 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10239 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
10242 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10243 sizeof(ntop), strport, sizeof(strport),
10244 NI_NUMERICHOST|NI_NUMERICSERV);
10246 if (ai->ai_family == AF_INET && err != 0) {
10247 perror("getnameinfo");
10257 if ac_fn_c_try_run "$LINENO"; then :
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10260 $as_echo "yes" >&6; }
10262 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10269 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10274 conftest.$ac_objext conftest.beam conftest.$ac_ext
10279 if test "x$check_for_conflicting_getspnam" = "x1"; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
10281 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h. */
10284 #include <shadow.h>
10293 if ac_fn_c_try_compile "$LINENO"; then :
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10301 $as_echo "yes" >&6; }
10303 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
10308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10312 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10313 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
10316 # Use it with a single arg.
10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h. */
10319 $ac_includes_default
10328 if ac_fn_c_try_compile "$LINENO"; then :
10329 ac_cv_func_getpgrp_void=no
10331 ac_cv_func_getpgrp_void=yes
10333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10337 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10338 if test $ac_cv_func_getpgrp_void = yes; then
10340 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10345 # Search for OpenSSL
10346 saved_CPPFLAGS="$CPPFLAGS"
10347 saved_LDFLAGS="$LDFLAGS"
10349 # Check whether --with-ssl-dir was given.
10350 if test "${with_ssl_dir+set}" = set; then :
10351 withval=$with_ssl_dir;
10352 if test "x$withval" != "xno" ; then
10355 ./*|../*) withval="`pwd`/$withval"
10357 if test -d "$withval/lib"; then
10358 if test -n "${need_dash_r}"; then
10359 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10361 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10363 elif test -d "$withval/lib64"; then
10364 if test -n "${need_dash_r}"; then
10365 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
10367 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
10370 if test -n "${need_dash_r}"; then
10371 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10373 LDFLAGS="-L${withval} ${LDFLAGS}"
10376 if test -d "$withval/include"; then
10377 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10379 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10386 LIBS="-lcrypto $LIBS"
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10390 /* Override any GCC internal prototype to avoid an error.
10391 Use char because int might match the return type of a GCC
10392 builtin and then its argument prototype would still apply. */
10400 return RAND_add ();
10405 if ac_fn_c_try_link "$LINENO"; then :
10407 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10411 if test -n "${need_dash_r}"; then
10412 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
10414 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
10416 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
10417 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
10418 if test "x$ac_cv_header_openssl_opensslv_h" = x""yes; then :
10421 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10428 /* Override any GCC internal prototype to avoid an error.
10429 Use char because int might match the return type of a GCC
10430 builtin and then its argument prototype would still apply. */
10438 return RAND_add ();
10443 if ac_fn_c_try_link "$LINENO"; then :
10444 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10448 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10457 rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10460 # Determine OpenSSL header version
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
10462 $as_echo_n "checking OpenSSL header version... " >&6; }
10463 if test "$cross_compiling" = yes; then :
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10466 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10474 #include <string.h>
10475 #include <openssl/opensslv.h>
10476 #define DATA "conftest.sslincver"
10485 fd = fopen(DATA,"w");
10489 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
10498 if ac_fn_c_try_run "$LINENO"; then :
10500 ssl_header_ver=`cat conftest.sslincver`
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
10502 $as_echo "$ssl_header_ver" >&6; }
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10507 $as_echo "not found" >&6; }
10508 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
10511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10512 conftest.$ac_objext conftest.beam conftest.$ac_ext
10516 # Determine OpenSSL library version
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
10518 $as_echo_n "checking OpenSSL library version... " >&6; }
10519 if test "$cross_compiling" = yes; then :
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10522 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10530 #include <string.h>
10531 #include <openssl/opensslv.h>
10532 #include <openssl/crypto.h>
10533 #define DATA "conftest.ssllibver"
10542 fd = fopen(DATA,"w");
10546 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
10555 if ac_fn_c_try_run "$LINENO"; then :
10557 ssl_library_ver=`cat conftest.ssllibver`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
10559 $as_echo "$ssl_library_ver" >&6; }
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10564 $as_echo "not found" >&6; }
10565 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
10568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10569 conftest.$ac_objext conftest.beam conftest.$ac_ext
10574 # Check whether --with-openssl-header-check was given.
10575 if test "${with_openssl_header_check+set}" = set; then :
10576 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
10577 openssl_check_nonfatal=1
10584 # Sanity check OpenSSL headers
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
10586 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
10587 if test "$cross_compiling" = yes; then :
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10590 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10597 #include <string.h>
10598 #include <openssl/opensslv.h>
10604 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
10610 if ac_fn_c_try_run "$LINENO"; then :
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10613 $as_echo "yes" >&6; }
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10619 if test "x$openssl_check_nonfatal" = "x"; then
10620 as_fn_error $? "Your OpenSSL headers do not match your
10621 library. Check config.log for details.
10622 If you are sure your installation is consistent, you can disable the check
10623 by running \"./configure --without-openssl-header-check\".
10624 Also see contrib/findssl.sh for help identifying header/library mismatches.
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
10628 library. Check config.log for details.
10629 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
10630 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
10631 library. Check config.log for details.
10632 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
10636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10637 conftest.$ac_objext conftest.beam conftest.$ac_ext
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
10642 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 #include <openssl/evp.h>
10649 SSLeay_add_all_algorithms();
10654 if ac_fn_c_try_link "$LINENO"; then :
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657 $as_echo "yes" >&6; }
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
10666 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #include <openssl/evp.h>
10673 SSLeay_add_all_algorithms();
10678 if ac_fn_c_try_link "$LINENO"; then :
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681 $as_echo "yes" >&6; }
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10696 rm -f core conftest.err conftest.$ac_objext \
10697 conftest$ac_exeext conftest.$ac_ext
10699 for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method
10701 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10702 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10703 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10704 cat >>confdefs.h <<_ACEOF
10705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10713 # Check whether --with-ssl-engine was given.
10714 if test "${with_ssl_engine+set}" = set; then :
10715 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
10717 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10721 #include <openssl/engine.h>
10727 ENGINE_load_builtin_engines();
10728 ENGINE_register_all_complete();
10734 if ac_fn_c_try_compile "$LINENO"; then :
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10736 $as_echo "yes" >&6; }
10738 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
10742 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 # Check for OpenSSL without EVP_aes_{192,256}_cbc
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
10753 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10757 #include <string.h>
10758 #include <openssl/evp.h>
10764 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
10770 if ac_fn_c_try_link "$LINENO"; then :
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 $as_echo "no" >&6; }
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10778 $as_echo "yes" >&6; }
10780 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
10785 rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
10789 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10793 #include <string.h>
10794 #include <openssl/evp.h>
10800 if(EVP_DigestUpdate(NULL, NULL,0))
10807 if ac_fn_c_try_link "$LINENO"; then :
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10810 $as_echo "yes" >&6; }
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 $as_echo "no" >&6; }
10817 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10825 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
10826 # because the system crypt() is more featureful.
10827 if test "x$check_for_libcrypt_before" = "x1"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10829 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10830 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10833 ac_check_lib_save_LIBS=$LIBS
10834 LIBS="-lcrypt $LIBS"
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10838 /* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10853 if ac_fn_c_try_link "$LINENO"; then :
10854 ac_cv_lib_crypt_crypt=yes
10856 ac_cv_lib_crypt_crypt=no
10858 rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10863 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10864 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
10865 cat >>confdefs.h <<_ACEOF
10866 #define HAVE_LIBCRYPT 1
10869 LIBS="-lcrypt $LIBS"
10875 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
10876 # version in OpenSSL.
10877 if test "x$check_for_libcrypt_later" = "x1"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10879 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10880 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
10883 ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-lcrypt $LIBS"
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10903 if ac_fn_c_try_link "$LINENO"; then :
10904 ac_cv_lib_crypt_crypt=yes
10906 ac_cv_lib_crypt_crypt=no
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10913 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10914 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
10915 LIBS="$LIBS -lcrypt"
10920 # Search for SHA256 support in libc and/or OpenSSL
10921 for ac_func in SHA256_Update EVP_sha256
10923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10925 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10926 cat >>confdefs.h <<_ACEOF
10927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10929 TEST_SSH_SHA256=yes
10937 # Check complete ECC support in OpenSSL
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
10939 $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10943 #include <openssl/ec.h>
10944 #include <openssl/ecdh.h>
10945 #include <openssl/ecdsa.h>
10946 #include <openssl/evp.h>
10947 #include <openssl/objects.h>
10948 #include <openssl/opensslv.h>
10949 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
10950 # error "OpenSSL < 0.9.8g has unreliable ECC code"
10957 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
10958 const EVP_MD *m = EVP_sha512(); /* We need this too */
10964 if ac_fn_c_try_link "$LINENO"; then :
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10967 $as_echo "yes" >&6; }
10969 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977 $as_echo "no" >&6; }
10979 COMMENT_OUT_ECC="#no ecc#"
10983 rm -f core conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext conftest.$ac_ext
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
10990 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
10991 if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10994 ac_check_lib_save_LIBS=$LIBS
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11005 char ia_openinfo ();
11009 return ia_openinfo ();
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 ac_cv_lib_iaf_ia_openinfo=yes
11017 ac_cv_lib_iaf_ia_openinfo=no
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
11024 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
11025 if test "x$ac_cv_lib_iaf_ia_openinfo" = x""yes; then :
11028 for ac_func in set_id
11030 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
11031 if test "x$ac_cv_func_set_id" = x""yes; then :
11032 cat >>confdefs.h <<_ACEOF
11033 #define HAVE_SET_ID 1
11035 SSHDLIBS="$SSHDLIBS -liaf"
11037 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
11048 ### Configure cryptographic random number support
11050 # Check wheter OpenSSL seeds itself
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
11052 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
11053 if test "$cross_compiling" = yes; then :
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11056 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11057 # This is safe, since we will fatal() at runtime if
11058 # OpenSSL is not seeded correctly.
11059 OPENSSL_SEEDS_ITSELF=yes
11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11066 #include <string.h>
11067 #include <openssl/rand.h>
11073 exit(RAND_status() == 1 ? 0 : 1);
11079 if ac_fn_c_try_run "$LINENO"; then :
11081 OPENSSL_SEEDS_ITSELF=yes
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11083 $as_echo "yes" >&6; }
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 $as_echo "no" >&6; }
11091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11092 conftest.$ac_objext conftest.beam conftest.$ac_ext
11098 # Check whether --with-prngd-port was given.
11099 if test "${with_prngd_port+set}" = set; then :
11100 withval=$with_prngd_port;
11108 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
11111 if test ! -z "$withval" ; then
11112 PRNGD_PORT="$withval"
11114 cat >>confdefs.h <<_ACEOF
11115 #define PRNGD_PORT $PRNGD_PORT
11124 # PRNGD Unix domain socket
11126 # Check whether --with-prngd-socket was given.
11127 if test "${with_prngd_socket+set}" = set; then :
11128 withval=$with_prngd_socket;
11131 withval="/var/run/egd-pool"
11139 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
11143 if test ! -z "$withval" ; then
11144 if test ! -z "$PRNGD_PORT" ; then
11145 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
11147 if test ! -r "$withval" ; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
11149 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
11151 PRNGD_SOCKET="$withval"
11153 cat >>confdefs.h <<_ACEOF
11154 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11161 # Check for existing socket only if we don't have a random device already
11162 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
11164 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
11165 # Insert other locations here
11166 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
11167 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
11168 PRNGD_SOCKET="$sock"
11169 cat >>confdefs.h <<_ACEOF
11170 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11176 if test ! -z "$PRNGD_SOCKET" ; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
11178 $as_echo "$PRNGD_SOCKET" >&6; }
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11181 $as_echo "not found" >&6; }
11189 # Which randomness source do we use?
11190 if test ! -z "$PRNGD_PORT" ; then
11191 RAND_MSG="PRNGd port $PRNGD_PORT"
11192 elif test ! -z "$PRNGD_SOCKET" ; then
11193 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
11194 elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
11196 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
11198 RAND_MSG="OpenSSL internal ONLY"
11200 as_fn_error $? "OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" "$LINENO" 5
11203 # Check for PAM libs
11206 # Check whether --with-pam was given.
11207 if test "${with_pam+set}" = set; then :
11209 if test "x$withval" != "xno" ; then
11210 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
11211 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
11212 as_fn_error $? "PAM headers not found" "$LINENO" 5
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11218 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11221 ac_check_lib_save_LIBS=$LIBS
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11226 /* Override any GCC internal prototype to avoid an error.
11227 Use char because int might match the return type of a GCC
11228 builtin and then its argument prototype would still apply. */
11241 if ac_fn_c_try_link "$LINENO"; then :
11242 ac_cv_lib_dl_dlopen=yes
11244 ac_cv_lib_dl_dlopen=no
11246 rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext conftest.$ac_ext
11248 LIBS=$ac_check_lib_save_LIBS
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11252 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11253 cat >>confdefs.h <<_ACEOF
11254 #define HAVE_LIBDL 1
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
11262 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
11263 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then :
11264 $as_echo_n "(cached) " >&6
11266 ac_check_lib_save_LIBS=$LIBS
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11271 /* Override any GCC internal prototype to avoid an error.
11272 Use char because int might match the return type of a GCC
11273 builtin and then its argument prototype would still apply. */
11277 char pam_set_item ();
11281 return pam_set_item ();
11286 if ac_fn_c_try_link "$LINENO"; then :
11287 ac_cv_lib_pam_pam_set_item=yes
11289 ac_cv_lib_pam_pam_set_item=no
11291 rm -f core conftest.err conftest.$ac_objext \
11292 conftest$ac_exeext conftest.$ac_ext
11293 LIBS=$ac_check_lib_save_LIBS
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
11296 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
11297 if test "x$ac_cv_lib_pam_pam_set_item" = x""yes; then :
11298 cat >>confdefs.h <<_ACEOF
11299 #define HAVE_LIBPAM 1
11305 as_fn_error $? "*** libpam missing" "$LINENO" 5
11308 for ac_func in pam_getenvlist
11310 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
11311 if test "x$ac_cv_func_pam_getenvlist" = x""yes; then :
11312 cat >>confdefs.h <<_ACEOF
11313 #define HAVE_PAM_GETENVLIST 1
11319 for ac_func in pam_putenv
11321 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
11322 if test "x$ac_cv_func_pam_putenv" = x""yes; then :
11323 cat >>confdefs.h <<_ACEOF
11324 #define HAVE_PAM_PUTENV 1
11334 SSHDLIBS="$SSHDLIBS -lpam"
11336 $as_echo "#define USE_PAM 1" >>confdefs.h
11339 if test $ac_cv_lib_dl_dlopen = yes; then
11342 # libdl already in LIBS
11345 SSHDLIBS="$SSHDLIBS -ldl"
11355 # Check for older PAM
11356 if test "x$PAM_MSG" = "xyes" ; then
11357 # Check PAM strerror arguments (old PAM)
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
11359 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11363 #include <stdlib.h>
11364 #if defined(HAVE_SECURITY_PAM_APPL_H)
11365 #include <security/pam_appl.h>
11366 #elif defined (HAVE_PAM_PAM_APPL_H)
11367 #include <pam/pam_appl.h>
11374 (void)pam_strerror((pam_handle_t *)NULL, -1);
11380 if ac_fn_c_try_compile "$LINENO"; then :
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11386 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390 PAM_MSG="yes (old library)"
11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 SSH_PRIVSEP_USER=sshd
11399 # Check whether --with-privsep-user was given.
11400 if test "${with_privsep_user+set}" = set; then :
11401 withval=$with_privsep_user;
11402 if test -n "$withval" && test "x$withval" != "xno" && \
11403 test "x${withval}" != "xyes"; then
11404 SSH_PRIVSEP_USER=$withval
11411 cat >>confdefs.h <<_ACEOF
11412 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
11417 # Decide which sandbox style to use
11420 # Check whether --with-sandbox was given.
11421 if test "${with_sandbox+set}" = set; then :
11422 withval=$with_sandbox;
11423 if test "x$withval" = "xyes" ; then
11426 sandbox_arg="$withval"
11432 if test "x$sandbox_arg" = "xsystrace" || \
11433 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
11434 test "x$have_systr_policy_kill" != "x1" && \
11435 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
11436 SANDBOX_STYLE="systrace"
11438 $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
11440 elif test "x$sandbox_arg" = "xdarwin" || \
11441 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
11442 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
11443 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
11444 "x$ac_cv_header_sandbox_h" != "xyes" && \
11445 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
11446 SANDBOX_STYLE="darwin"
11448 $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
11450 elif test "x$sandbox_arg" = "xrlimit" || \
11451 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then
11452 test "x$ac_cv_func_setrlimit" != "xyes" && \
11453 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
11454 SANDBOX_STYLE="rlimit"
11456 $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
11458 elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
11459 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
11460 SANDBOX_STYLE="none"
11462 $as_echo "#define SANDBOX_NULL 1" >>confdefs.h
11465 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
11468 # Cheap hack to ensure NEWS-OS libraries are arranged right.
11469 if test ! -z "$SONY" ; then
11470 LIBS="$LIBS -liberty";
11473 # Check for long long datatypes
11474 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11475 if test "x$ac_cv_type_long_long" = x""yes; then :
11477 cat >>confdefs.h <<_ACEOF
11478 #define HAVE_LONG_LONG 1
11483 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
11484 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
11486 cat >>confdefs.h <<_ACEOF
11487 #define HAVE_UNSIGNED_LONG_LONG 1
11492 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
11493 if test "x$ac_cv_type_long_double" = x""yes; then :
11495 cat >>confdefs.h <<_ACEOF
11496 #define HAVE_LONG_DOUBLE 1
11503 # Check datatype sizes
11504 # The cast to long int works around a bug in the HP C Compiler
11505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11507 # This bug is HP SR number 8606223364.
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11509 $as_echo_n "checking size of char... " >&6; }
11510 if test "${ac_cv_sizeof_char+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11513 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11516 if test "$ac_cv_type_char" = yes; then
11517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11519 as_fn_error 77 "cannot compute sizeof (char)
11520 See \`config.log' for more details" "$LINENO" 5 ; }
11522 ac_cv_sizeof_char=0
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11528 $as_echo "$ac_cv_sizeof_char" >&6; }
11532 cat >>confdefs.h <<_ACEOF
11533 #define SIZEOF_CHAR $ac_cv_sizeof_char
11537 # The cast to long int works around a bug in the HP C Compiler
11538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11540 # This bug is HP SR number 8606223364.
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
11542 $as_echo_n "checking size of short int... " >&6; }
11543 if test "${ac_cv_sizeof_short_int+set}" = set; then :
11544 $as_echo_n "(cached) " >&6
11546 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
11549 if test "$ac_cv_type_short_int" = yes; then
11550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11552 as_fn_error 77 "cannot compute sizeof (short int)
11553 See \`config.log' for more details" "$LINENO" 5 ; }
11555 ac_cv_sizeof_short_int=0
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
11561 $as_echo "$ac_cv_sizeof_short_int" >&6; }
11565 cat >>confdefs.h <<_ACEOF
11566 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11570 # The cast to long int works around a bug in the HP C Compiler
11571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11573 # This bug is HP SR number 8606223364.
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11575 $as_echo_n "checking size of int... " >&6; }
11576 if test "${ac_cv_sizeof_int+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
11579 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11582 if test "$ac_cv_type_int" = yes; then
11583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11585 as_fn_error 77 "cannot compute sizeof (int)
11586 See \`config.log' for more details" "$LINENO" 5 ; }
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11594 $as_echo "$ac_cv_sizeof_int" >&6; }
11598 cat >>confdefs.h <<_ACEOF
11599 #define SIZEOF_INT $ac_cv_sizeof_int
11603 # The cast to long int works around a bug in the HP C Compiler
11604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11606 # This bug is HP SR number 8606223364.
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
11608 $as_echo_n "checking size of long int... " >&6; }
11609 if test "${ac_cv_sizeof_long_int+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11612 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
11615 if test "$ac_cv_type_long_int" = yes; then
11616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11618 as_fn_error 77 "cannot compute sizeof (long int)
11619 See \`config.log' for more details" "$LINENO" 5 ; }
11621 ac_cv_sizeof_long_int=0
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
11627 $as_echo "$ac_cv_sizeof_long_int" >&6; }
11631 cat >>confdefs.h <<_ACEOF
11632 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11636 # The cast to long int works around a bug in the HP C Compiler
11637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11639 # This bug is HP SR number 8606223364.
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
11641 $as_echo_n "checking size of long long int... " >&6; }
11642 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
11645 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
11648 if test "$ac_cv_type_long_long_int" = yes; then
11649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11651 as_fn_error 77 "cannot compute sizeof (long long int)
11652 See \`config.log' for more details" "$LINENO" 5 ; }
11654 ac_cv_sizeof_long_long_int=0
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
11660 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
11664 cat >>confdefs.h <<_ACEOF
11665 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11670 # Sanity check long long for some platforms (AIX)
11671 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11672 ac_cv_sizeof_long_long_int=0
11675 # compute LLONG_MIN and LLONG_MAX if we don't know them.
11676 if test -z "$have_llong_max"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
11678 $as_echo_n "checking for max value of long long... " >&6; }
11679 if test "$cross_compiling" = yes; then :
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11682 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11690 /* Why is this so damn hard? */
11694 #define __USE_ISOC99
11695 #include <limits.h>
11696 #define DATA "conftest.llminmax"
11697 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
11700 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
11701 * we do this the hard way.
11704 fprint_ll(FILE *f, long long n)
11707 int l[sizeof(long long) * 8];
11710 if (fprintf(f, "-") < 0)
11712 for (i = 0; n != 0; i++) {
11713 l[i] = my_abs(n % 10);
11717 if (fprintf(f, "%d", l[--i]) < 0)
11720 if (fprintf(f, " ") < 0)
11730 long long i, llmin, llmax = 0;
11732 if((f = fopen(DATA,"w")) == NULL)
11735 #if defined(LLONG_MIN) && defined(LLONG_MAX)
11736 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
11740 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
11741 /* This will work on one's complement and two's complement */
11742 for (i = 1; i > llmax; i <<= 1, i++)
11744 llmin = llmax + 1LL; /* wrap */
11748 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
11749 || llmax - 1 > llmax || llmin == llmax || llmin == 0
11750 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
11751 fprintf(f, "unknown unknown\n");
11755 if (fprint_ll(f, llmin) < 0)
11757 if (fprint_ll(f, llmax) < 0)
11767 if ac_fn_c_try_run "$LINENO"; then :
11769 llong_min=`$AWK '{print $1}' conftest.llminmax`
11770 llong_max=`$AWK '{print $2}' conftest.llminmax`
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
11773 $as_echo "$llong_max" >&6; }
11775 cat >>confdefs.h <<_ACEOF
11776 #define LLONG_MAX ${llong_max}LL
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
11780 $as_echo_n "checking for min value of long long... " >&6; }
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
11782 $as_echo "$llong_min" >&6; }
11784 cat >>confdefs.h <<_ACEOF
11785 #define LLONG_MIN ${llong_min}LL
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11792 $as_echo "not found" >&6; }
11795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11796 conftest.$ac_objext conftest.beam conftest.$ac_ext
11802 # More checks for data types
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
11804 $as_echo_n "checking for u_int type... " >&6; }
11805 if test "${ac_cv_have_u_int+set}" = set; then :
11806 $as_echo_n "(cached) " >&6
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #include <sys/types.h>
11820 if ac_fn_c_try_compile "$LINENO"; then :
11821 ac_cv_have_u_int="yes"
11823 ac_cv_have_u_int="no"
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
11830 $as_echo "$ac_cv_have_u_int" >&6; }
11831 if test "x$ac_cv_have_u_int" = "xyes" ; then
11833 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
11839 $as_echo_n "checking for intXX_t types... " >&6; }
11840 if test "${ac_cv_have_intxx_t+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11846 #include <sys/types.h>
11850 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11855 if ac_fn_c_try_compile "$LINENO"; then :
11856 ac_cv_have_intxx_t="yes"
11858 ac_cv_have_intxx_t="no"
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
11865 $as_echo "$ac_cv_have_intxx_t" >&6; }
11866 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11868 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11873 if (test -z "$have_intxx_t" && \
11874 test "x$ac_cv_header_stdint_h" = "xyes")
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
11877 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11880 #include <stdint.h>
11884 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11889 if ac_fn_c_try_compile "$LINENO"; then :
11891 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; }
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
11905 $as_echo_n "checking for int64_t type... " >&6; }
11906 if test "${ac_cv_have_int64_t+set}" = set; then :
11907 $as_echo_n "(cached) " >&6
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11913 #include <sys/types.h>
11914 #ifdef HAVE_STDINT_H
11915 # include <stdint.h>
11917 #include <sys/socket.h>
11918 #ifdef HAVE_SYS_BITYPES_H
11919 # include <sys/bitypes.h>
11932 if ac_fn_c_try_compile "$LINENO"; then :
11933 ac_cv_have_int64_t="yes"
11935 ac_cv_have_int64_t="no"
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
11942 $as_echo "$ac_cv_have_int64_t" >&6; }
11943 if test "x$ac_cv_have_int64_t" = "xyes" ; then
11945 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
11950 $as_echo_n "checking for u_intXX_t types... " >&6; }
11951 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
11952 $as_echo_n "(cached) " >&6
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11957 #include <sys/types.h>
11961 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11966 if ac_fn_c_try_compile "$LINENO"; then :
11967 ac_cv_have_u_intxx_t="yes"
11969 ac_cv_have_u_intxx_t="no"
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
11976 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
11977 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11979 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11984 if test -z "$have_u_intxx_t" ; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
11986 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989 #include <sys/socket.h>
11993 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11998 if ac_fn_c_try_compile "$LINENO"; then :
12000 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12003 $as_echo "yes" >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
12014 $as_echo_n "checking for u_int64_t types... " >&6; }
12015 if test "${ac_cv_have_u_int64_t+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021 #include <sys/types.h>
12025 u_int64_t a; a = 1;
12030 if ac_fn_c_try_compile "$LINENO"; then :
12031 ac_cv_have_u_int64_t="yes"
12033 ac_cv_have_u_int64_t="no"
12036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
12040 $as_echo "$ac_cv_have_u_int64_t" >&6; }
12041 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
12043 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12048 if test -z "$have_u_int64_t" ; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
12050 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12053 #include <sys/bitypes.h>
12062 if ac_fn_c_try_compile "$LINENO"; then :
12064 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12067 $as_echo "yes" >&6; }
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077 if test -z "$have_u_intxx_t" ; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
12079 $as_echo_n "checking for uintXX_t types... " >&6; }
12080 if test "${ac_cv_have_uintxx_t+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12087 #include <sys/types.h>
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103 ac_cv_have_uintxx_t="yes"
12105 ac_cv_have_uintxx_t="no"
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
12112 $as_echo "$ac_cv_have_uintxx_t" >&6; }
12113 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12115 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12120 if test -z "$have_uintxx_t" ; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
12122 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #include <stdint.h>
12129 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12134 if ac_fn_c_try_compile "$LINENO"; then :
12136 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12139 $as_echo "yes" >&6; }
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12150 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12153 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12157 #include <sys/bitypes.h>
12163 int8_t a; int16_t b; int32_t c;
12164 u_int8_t e; u_int16_t f; u_int32_t g;
12165 a = b = c = e = f = g = 1;
12171 if ac_fn_c_try_compile "$LINENO"; then :
12173 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12175 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178 $as_echo "yes" >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
12190 $as_echo_n "checking for u_char... " >&6; }
12191 if test "${ac_cv_have_u_char+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 #include <sys/types.h>
12201 u_char foo; foo = 125;
12206 if ac_fn_c_try_compile "$LINENO"; then :
12207 ac_cv_have_u_char="yes"
12209 ac_cv_have_u_char="no"
12212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
12216 $as_echo "$ac_cv_have_u_char" >&6; }
12217 if test "x$ac_cv_have_u_char" = "xyes" ; then
12219 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
12224 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12225 #include <sys/socket.h>
12227 if test "x$ac_cv_type_socklen_t" = x""yes; then :
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12232 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12233 if test "${curl_cv_socklen_t_equiv+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12237 # Systems have either "struct sockaddr *" or
12238 # "void *" as the second argument to getpeername
12239 curl_cv_socklen_t_equiv=
12240 for arg2 in "struct sockaddr" void; do
12241 for t in int size_t unsigned long "unsigned long"; do
12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12245 #include <sys/types.h>
12246 #include <sys/socket.h>
12248 int getpeername (int, $arg2 *, $t *);
12255 getpeername(0,0,&len);
12261 if ac_fn_c_try_compile "$LINENO"; then :
12263 curl_cv_socklen_t_equiv="$t"
12267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 if test "x$curl_cv_socklen_t_equiv" = x; then
12272 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12278 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
12280 cat >>confdefs.h <<_ACEOF
12281 #define socklen_t $curl_cv_socklen_t_equiv
12288 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12290 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
12292 cat >>confdefs.h <<_ACEOF
12293 #define HAVE_SIG_ATOMIC_T 1
12299 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12300 #include <sys/types.h>
12301 #ifdef HAVE_SYS_BITYPES_H
12302 #include <sys/bitypes.h>
12304 #ifdef HAVE_SYS_STATFS_H
12305 #include <sys/statfs.h>
12307 #ifdef HAVE_SYS_STATVFS_H
12308 #include <sys/statvfs.h>
12312 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12314 cat >>confdefs.h <<_ACEOF
12315 #define HAVE_FSBLKCNT_T 1
12320 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12321 #include <sys/types.h>
12322 #ifdef HAVE_SYS_BITYPES_H
12323 #include <sys/bitypes.h>
12325 #ifdef HAVE_SYS_STATFS_H
12326 #include <sys/statfs.h>
12328 #ifdef HAVE_SYS_STATVFS_H
12329 #include <sys/statvfs.h>
12333 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12335 cat >>confdefs.h <<_ACEOF
12336 #define HAVE_FSFILCNT_T 1
12343 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12344 #include <netinet/in.h>
12346 if test "x$ac_cv_type_in_addr_t" = x""yes; then :
12348 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_IN_ADDR_T 1
12354 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12355 #include <netinet/in.h>
12357 if test "x$ac_cv_type_in_port_t" = x""yes; then :
12359 cat >>confdefs.h <<_ACEOF
12360 #define HAVE_IN_PORT_T 1
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12368 $as_echo_n "checking for size_t... " >&6; }
12369 if test "${ac_cv_have_size_t+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 #include <sys/types.h>
12379 size_t foo; foo = 1235;
12384 if ac_fn_c_try_compile "$LINENO"; then :
12385 ac_cv_have_size_t="yes"
12387 ac_cv_have_size_t="no"
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12394 $as_echo "$ac_cv_have_size_t" >&6; }
12395 if test "x$ac_cv_have_size_t" = "xyes" ; then
12397 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12402 $as_echo_n "checking for ssize_t... " >&6; }
12403 if test "${ac_cv_have_ssize_t+set}" = set; then :
12404 $as_echo_n "(cached) " >&6
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409 #include <sys/types.h>
12413 ssize_t foo; foo = 1235;
12418 if ac_fn_c_try_compile "$LINENO"; then :
12419 ac_cv_have_ssize_t="yes"
12421 ac_cv_have_ssize_t="no"
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12428 $as_echo "$ac_cv_have_ssize_t" >&6; }
12429 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12431 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12436 $as_echo_n "checking for clock_t... " >&6; }
12437 if test "${ac_cv_have_clock_t+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12447 clock_t foo; foo = 1235;
12452 if ac_fn_c_try_compile "$LINENO"; then :
12453 ac_cv_have_clock_t="yes"
12455 ac_cv_have_clock_t="no"
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12462 $as_echo "$ac_cv_have_clock_t" >&6; }
12463 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12465 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12470 $as_echo_n "checking for sa_family_t... " >&6; }
12471 if test "${ac_cv_have_sa_family_t+set}" = set; then :
12472 $as_echo_n "(cached) " >&6
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12478 #include <sys/types.h>
12479 #include <sys/socket.h>
12484 sa_family_t foo; foo = 1235;
12489 if ac_fn_c_try_compile "$LINENO"; then :
12490 ac_cv_have_sa_family_t="yes"
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12495 #include <sys/types.h>
12496 #include <sys/socket.h>
12497 #include <netinet/in.h>
12502 sa_family_t foo; foo = 1235;
12507 if ac_fn_c_try_compile "$LINENO"; then :
12508 ac_cv_have_sa_family_t="yes"
12510 ac_cv_have_sa_family_t="no"
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
12520 $as_echo "$ac_cv_have_sa_family_t" >&6; }
12521 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12523 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
12528 $as_echo_n "checking for pid_t... " >&6; }
12529 if test "${ac_cv_have_pid_t+set}" = set; then :
12530 $as_echo_n "(cached) " >&6
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535 #include <sys/types.h>
12539 pid_t foo; foo = 1235;
12544 if ac_fn_c_try_compile "$LINENO"; then :
12545 ac_cv_have_pid_t="yes"
12547 ac_cv_have_pid_t="no"
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
12554 $as_echo "$ac_cv_have_pid_t" >&6; }
12555 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12557 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
12562 $as_echo_n "checking for mode_t... " >&6; }
12563 if test "${ac_cv_have_mode_t+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12569 #include <sys/types.h>
12573 mode_t foo; foo = 1235;
12578 if ac_fn_c_try_compile "$LINENO"; then :
12579 ac_cv_have_mode_t="yes"
12581 ac_cv_have_mode_t="no"
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
12588 $as_echo "$ac_cv_have_mode_t" >&6; }
12589 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12591 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
12597 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
12598 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12605 #include <sys/types.h>
12606 #include <sys/socket.h>
12611 struct sockaddr_storage s;
12616 if ac_fn_c_try_compile "$LINENO"; then :
12617 ac_cv_have_struct_sockaddr_storage="yes"
12619 ac_cv_have_struct_sockaddr_storage="no"
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
12626 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
12627 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12629 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
12634 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
12635 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12642 #include <sys/types.h>
12643 #include <netinet/in.h>
12648 struct sockaddr_in6 s; s.sin6_family = 0;
12653 if ac_fn_c_try_compile "$LINENO"; then :
12654 ac_cv_have_struct_sockaddr_in6="yes"
12656 ac_cv_have_struct_sockaddr_in6="no"
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
12663 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
12664 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12666 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
12671 $as_echo_n "checking for struct in6_addr... " >&6; }
12672 if test "${ac_cv_have_struct_in6_addr+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12679 #include <sys/types.h>
12680 #include <netinet/in.h>
12685 struct in6_addr s; s.s6_addr[0] = 0;
12690 if ac_fn_c_try_compile "$LINENO"; then :
12691 ac_cv_have_struct_in6_addr="yes"
12693 ac_cv_have_struct_in6_addr="no"
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
12700 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
12701 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12703 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
12706 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
12707 #ifdef HAVE_SYS_TYPES_H
12708 #include <sys/types.h>
12710 #include <netinet/in.h>
12713 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
12715 cat >>confdefs.h <<_ACEOF
12716 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
12725 $as_echo_n "checking for struct addrinfo... " >&6; }
12726 if test "${ac_cv_have_struct_addrinfo+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12733 #include <sys/types.h>
12734 #include <sys/socket.h>
12740 struct addrinfo s; s.ai_flags = AI_PASSIVE;
12745 if ac_fn_c_try_compile "$LINENO"; then :
12746 ac_cv_have_struct_addrinfo="yes"
12748 ac_cv_have_struct_addrinfo="no"
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
12755 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
12756 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12758 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
12763 $as_echo_n "checking for struct timeval... " >&6; }
12764 if test "${ac_cv_have_struct_timeval+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12770 #include <sys/time.h>
12774 struct timeval tv; tv.tv_sec = 1;
12779 if ac_fn_c_try_compile "$LINENO"; then :
12780 ac_cv_have_struct_timeval="yes"
12782 ac_cv_have_struct_timeval="no"
12785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
12789 $as_echo "$ac_cv_have_struct_timeval" >&6; }
12790 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12792 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
12794 have_struct_timeval=1
12797 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
12798 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
12800 cat >>confdefs.h <<_ACEOF
12801 #define HAVE_STRUCT_TIMESPEC 1
12808 # We need int64_t or else certian parts of the compile will fail.
12809 if test "x$ac_cv_have_int64_t" = "xno" && \
12810 test "x$ac_cv_sizeof_long_int" != "x8" && \
12811 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12812 echo "OpenSSH requires int64_t support. Contact your vendor or install"
12813 echo "an alternative compiler (I.E., GCC) before continuing."
12817 if test "$cross_compiling" = yes; then :
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12819 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12826 #include <string.h>
12827 #ifdef HAVE_SNPRINTF
12831 char expected_out[50];
12833 #if (SIZEOF_LONG_INT == 8)
12834 long int num = 0x7fffffffffffffff;
12836 long long num = 0x7fffffffffffffffll;
12838 strcpy(expected_out, "9223372036854775807");
12839 snprintf(buf, mazsize, "%lld", num);
12840 if(strcmp(buf, expected_out) != 0)
12845 main() { exit(0); }
12849 if ac_fn_c_try_run "$LINENO"; then :
12852 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12856 conftest.$ac_objext conftest.beam conftest.$ac_ext
12862 # look for field 'ut_host' in header 'utmp.h'
12863 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12864 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
12866 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
12867 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12868 $as_echo_n "(cached) " >&6
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12877 $EGREP "ut_host" >/dev/null 2>&1; then :
12878 eval "$ossh_varname=yes"
12880 eval "$ossh_varname=no"
12886 ossh_result=`eval 'echo $'"$ossh_varname"`
12887 if test -n "`echo $ossh_varname`"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12889 $as_echo "$ossh_result" >&6; }
12890 if test "x$ossh_result" = "xyes"; then
12892 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 $as_echo "no" >&6; }
12901 # look for field 'ut_host' in header 'utmpx.h'
12902 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12903 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
12905 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
12906 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12907 $as_echo_n "(cached) " >&6
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12916 $EGREP "ut_host" >/dev/null 2>&1; then :
12917 eval "$ossh_varname=yes"
12919 eval "$ossh_varname=no"
12925 ossh_result=`eval 'echo $'"$ossh_varname"`
12926 if test -n "`echo $ossh_varname`"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12928 $as_echo "$ossh_result" >&6; }
12929 if test "x$ossh_result" = "xyes"; then
12931 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12940 # look for field 'syslen' in header 'utmpx.h'
12941 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12942 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
12944 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
12945 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12946 $as_echo_n "(cached) " >&6
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12955 $EGREP "syslen" >/dev/null 2>&1; then :
12956 eval "$ossh_varname=yes"
12958 eval "$ossh_varname=no"
12964 ossh_result=`eval 'echo $'"$ossh_varname"`
12965 if test -n "`echo $ossh_varname`"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12967 $as_echo "$ossh_result" >&6; }
12968 if test "x$ossh_result" = "xyes"; then
12970 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12979 # look for field 'ut_pid' in header 'utmp.h'
12980 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12981 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
12983 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
12984 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12985 $as_echo_n "(cached) " >&6
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h. */
12993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12994 $EGREP "ut_pid" >/dev/null 2>&1; then :
12995 eval "$ossh_varname=yes"
12997 eval "$ossh_varname=no"
13003 ossh_result=`eval 'echo $'"$ossh_varname"`
13004 if test -n "`echo $ossh_varname`"; then
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13006 $as_echo "$ossh_result" >&6; }
13007 if test "x$ossh_result" = "xyes"; then
13009 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13018 # look for field 'ut_type' in header 'utmp.h'
13019 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13020 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
13022 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
13023 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13024 $as_echo_n "(cached) " >&6
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13033 $EGREP "ut_type" >/dev/null 2>&1; then :
13034 eval "$ossh_varname=yes"
13036 eval "$ossh_varname=no"
13042 ossh_result=`eval 'echo $'"$ossh_varname"`
13043 if test -n "`echo $ossh_varname`"; then
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13045 $as_echo "$ossh_result" >&6; }
13046 if test "x$ossh_result" = "xyes"; then
13048 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13057 # look for field 'ut_type' in header 'utmpx.h'
13058 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13059 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
13061 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
13062 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13063 $as_echo_n "(cached) " >&6
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13072 $EGREP "ut_type" >/dev/null 2>&1; then :
13073 eval "$ossh_varname=yes"
13075 eval "$ossh_varname=no"
13081 ossh_result=`eval 'echo $'"$ossh_varname"`
13082 if test -n "`echo $ossh_varname`"; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13084 $as_echo "$ossh_result" >&6; }
13085 if test "x$ossh_result" = "xyes"; then
13087 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13096 # look for field 'ut_tv' in header 'utmp.h'
13097 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13098 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
13100 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
13101 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13102 $as_echo_n "(cached) " >&6
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13111 $EGREP "ut_tv" >/dev/null 2>&1; then :
13112 eval "$ossh_varname=yes"
13114 eval "$ossh_varname=no"
13120 ossh_result=`eval 'echo $'"$ossh_varname"`
13121 if test -n "`echo $ossh_varname`"; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13123 $as_echo "$ossh_result" >&6; }
13124 if test "x$ossh_result" = "xyes"; then
13126 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13135 # look for field 'ut_id' in header 'utmp.h'
13136 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13137 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
13139 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
13140 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13141 $as_echo_n "(cached) " >&6
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13150 $EGREP "ut_id" >/dev/null 2>&1; then :
13151 eval "$ossh_varname=yes"
13153 eval "$ossh_varname=no"
13159 ossh_result=`eval 'echo $'"$ossh_varname"`
13160 if test -n "`echo $ossh_varname`"; then
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13162 $as_echo "$ossh_result" >&6; }
13163 if test "x$ossh_result" = "xyes"; then
13165 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13174 # look for field 'ut_id' in header 'utmpx.h'
13175 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13176 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
13178 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
13179 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13180 $as_echo_n "(cached) " >&6
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13189 $EGREP "ut_id" >/dev/null 2>&1; then :
13190 eval "$ossh_varname=yes"
13192 eval "$ossh_varname=no"
13198 ossh_result=`eval 'echo $'"$ossh_varname"`
13199 if test -n "`echo $ossh_varname`"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13201 $as_echo "$ossh_result" >&6; }
13202 if test "x$ossh_result" = "xyes"; then
13204 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13213 # look for field 'ut_addr' in header 'utmp.h'
13214 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13215 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
13217 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
13218 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13219 $as_echo_n "(cached) " >&6
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13228 $EGREP "ut_addr" >/dev/null 2>&1; then :
13229 eval "$ossh_varname=yes"
13231 eval "$ossh_varname=no"
13237 ossh_result=`eval 'echo $'"$ossh_varname"`
13238 if test -n "`echo $ossh_varname`"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13240 $as_echo "$ossh_result" >&6; }
13241 if test "x$ossh_result" = "xyes"; then
13243 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13252 # look for field 'ut_addr' in header 'utmpx.h'
13253 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13254 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13256 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13257 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13258 $as_echo_n "(cached) " >&6
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13267 $EGREP "ut_addr" >/dev/null 2>&1; then :
13268 eval "$ossh_varname=yes"
13270 eval "$ossh_varname=no"
13276 ossh_result=`eval 'echo $'"$ossh_varname"`
13277 if test -n "`echo $ossh_varname`"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13279 $as_echo "$ossh_result" >&6; }
13280 if test "x$ossh_result" = "xyes"; then
13282 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13291 # look for field 'ut_addr_v6' in header 'utmp.h'
13292 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13293 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13295 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13296 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13297 $as_echo_n "(cached) " >&6
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13306 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13307 eval "$ossh_varname=yes"
13309 eval "$ossh_varname=no"
13315 ossh_result=`eval 'echo $'"$ossh_varname"`
13316 if test -n "`echo $ossh_varname`"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13318 $as_echo "$ossh_result" >&6; }
13319 if test "x$ossh_result" = "xyes"; then
13321 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13330 # look for field 'ut_addr_v6' in header 'utmpx.h'
13331 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13332 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13334 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13335 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13336 $as_echo_n "(cached) " >&6
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13345 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13346 eval "$ossh_varname=yes"
13348 eval "$ossh_varname=no"
13354 ossh_result=`eval 'echo $'"$ossh_varname"`
13355 if test -n "`echo $ossh_varname`"; then
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13357 $as_echo "$ossh_result" >&6; }
13358 if test "x$ossh_result" = "xyes"; then
13360 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13369 # look for field 'ut_exit' in header 'utmp.h'
13370 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13371 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13373 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13374 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13375 $as_echo_n "(cached) " >&6
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13384 $EGREP "ut_exit" >/dev/null 2>&1; then :
13385 eval "$ossh_varname=yes"
13387 eval "$ossh_varname=no"
13393 ossh_result=`eval 'echo $'"$ossh_varname"`
13394 if test -n "`echo $ossh_varname`"; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13396 $as_echo "$ossh_result" >&6; }
13397 if test "x$ossh_result" = "xyes"; then
13399 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404 $as_echo "no" >&6; }
13408 # look for field 'ut_time' in header 'utmp.h'
13409 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13410 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13412 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13413 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13414 $as_echo_n "(cached) " >&6
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13423 $EGREP "ut_time" >/dev/null 2>&1; then :
13424 eval "$ossh_varname=yes"
13426 eval "$ossh_varname=no"
13432 ossh_result=`eval 'echo $'"$ossh_varname"`
13433 if test -n "`echo $ossh_varname`"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13435 $as_echo "$ossh_result" >&6; }
13436 if test "x$ossh_result" = "xyes"; then
13438 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13447 # look for field 'ut_time' in header 'utmpx.h'
13448 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13449 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13451 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13452 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13453 $as_echo_n "(cached) " >&6
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13462 $EGREP "ut_time" >/dev/null 2>&1; then :
13463 eval "$ossh_varname=yes"
13465 eval "$ossh_varname=no"
13471 ossh_result=`eval 'echo $'"$ossh_varname"`
13472 if test -n "`echo $ossh_varname`"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13474 $as_echo "$ossh_result" >&6; }
13475 if test "x$ossh_result" = "xyes"; then
13477 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13486 # look for field 'ut_tv' in header 'utmpx.h'
13487 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13488 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13490 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13491 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13492 $as_echo_n "(cached) " >&6
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13501 $EGREP "ut_tv" >/dev/null 2>&1; then :
13502 eval "$ossh_varname=yes"
13504 eval "$ossh_varname=no"
13510 ossh_result=`eval 'echo $'"$ossh_varname"`
13511 if test -n "`echo $ossh_varname`"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13513 $as_echo "$ossh_result" >&6; }
13514 if test "x$ossh_result" = "xyes"; then
13516 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13525 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13526 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
13528 cat >>confdefs.h <<_ACEOF
13529 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13535 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
13537 #if HAVE_SYS_TYPES_H
13538 # include <sys/types.h>
13540 #include <netinet/in.h>
13541 #include <arpa/nameser.h>
13542 #include <resolv.h>
13545 if test "x$ac_cv_member_struct___res_state_retrans" = x""yes; then :
13549 $as_echo "#define __res_state state" >>confdefs.h
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
13555 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
13556 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then :
13557 $as_echo_n "(cached) " >&6
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13563 #include <sys/types.h>
13564 #include <sys/socket.h>
13569 struct sockaddr_storage s; s.ss_family = 1;
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575 ac_cv_have_ss_family_in_struct_ss="yes"
13577 ac_cv_have_ss_family_in_struct_ss="no"
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13583 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
13584 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13586 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
13591 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
13592 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then :
13593 $as_echo_n "(cached) " >&6
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13599 #include <sys/types.h>
13600 #include <sys/socket.h>
13605 struct sockaddr_storage s; s.__ss_family = 1;
13610 if ac_fn_c_try_compile "$LINENO"; then :
13611 ac_cv_have___ss_family_in_struct_ss="yes"
13613 ac_cv_have___ss_family_in_struct_ss="no"
13616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13620 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
13621 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13623 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
13628 $as_echo_n "checking for pw_class field in struct passwd... " >&6; }
13629 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then :
13630 $as_echo_n "(cached) " >&6
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13639 struct passwd p; p.pw_class = 0;
13644 if ac_fn_c_try_compile "$LINENO"; then :
13645 ac_cv_have_pw_class_in_struct_passwd="yes"
13647 ac_cv_have_pw_class_in_struct_passwd="no"
13650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13654 $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
13655 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13657 $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
13662 $as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
13663 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then :
13664 $as_echo_n "(cached) " >&6
13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13673 struct passwd p; p.pw_expire = 0;
13678 if ac_fn_c_try_compile "$LINENO"; then :
13679 ac_cv_have_pw_expire_in_struct_passwd="yes"
13681 ac_cv_have_pw_expire_in_struct_passwd="no"
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13688 $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
13689 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13691 $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
13696 $as_echo_n "checking for pw_change field in struct passwd... " >&6; }
13697 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then :
13698 $as_echo_n "(cached) " >&6
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13707 struct passwd p; p.pw_change = 0;
13712 if ac_fn_c_try_compile "$LINENO"; then :
13713 ac_cv_have_pw_change_in_struct_passwd="yes"
13715 ac_cv_have_pw_change_in_struct_passwd="no"
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13722 $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
13723 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13725 $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
13730 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
13731 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then :
13732 $as_echo_n "(cached) " >&6
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13738 #include <sys/types.h>
13739 #include <sys/socket.h>
13740 #include <sys/uio.h>
13746 #ifdef msg_accrights
13747 #error "msg_accrights is a macro"
13751 m.msg_accrights = 0;
13758 if ac_fn_c_try_compile "$LINENO"; then :
13759 ac_cv_have_accrights_in_msghdr="yes"
13761 ac_cv_have_accrights_in_msghdr="no"
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
13768 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
13769 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13771 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
13776 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13780 #include <sys/types.h>
13781 #include <sys/stat.h>
13782 #ifdef HAVE_SYS_TIME_H
13783 # include <sys/time.h>
13785 #ifdef HAVE_SYS_MOUNT_H
13786 #include <sys/mount.h>
13788 #ifdef HAVE_SYS_STATVFS_H
13789 #include <sys/statvfs.h>
13795 struct statvfs s; s.f_fsid = 0;
13800 if ac_fn_c_try_compile "$LINENO"; then :
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13802 $as_echo "yes" >&6; }
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805 $as_echo "no" >&6; }
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
13808 $as_echo_n "checking if fsid_t has member val... " >&6; }
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13812 #include <sys/types.h>
13813 #include <sys/statvfs.h>
13818 fsid_t t; t.val[0] = 0;
13823 if ac_fn_c_try_compile "$LINENO"; then :
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825 $as_echo "yes" >&6; }
13827 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831 $as_echo "no" >&6; }
13833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
13836 $as_echo_n "checking if f_fsid has member __val... " >&6; }
13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h. */
13840 #include <sys/types.h>
13841 #include <sys/statvfs.h>
13846 fsid_t t; t.__val[0] = 0;
13851 if ac_fn_c_try_compile "$LINENO"; then :
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13853 $as_echo "yes" >&6; }
13855 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
13867 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
13868 if test "${ac_cv_have_control_in_msghdr+set}" = set; then :
13869 $as_echo_n "(cached) " >&6
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13875 #include <sys/types.h>
13876 #include <sys/socket.h>
13877 #include <sys/uio.h>
13884 #error "msg_control is a macro"
13895 if ac_fn_c_try_compile "$LINENO"; then :
13896 ac_cv_have_control_in_msghdr="yes"
13898 ac_cv_have_control_in_msghdr="no"
13901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
13905 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
13906 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
13908 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
13913 $as_echo_n "checking if libc defines __progname... " >&6; }
13914 if test "${ac_cv_libc_defines___progname+set}" = set; then :
13915 $as_echo_n "(cached) " >&6
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13924 extern char *__progname; printf("%s", __progname);
13929 if ac_fn_c_try_link "$LINENO"; then :
13930 ac_cv_libc_defines___progname="yes"
13932 ac_cv_libc_defines___progname="no"
13935 rm -f core conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
13940 $as_echo "$ac_cv_libc_defines___progname" >&6; }
13941 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
13943 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
13948 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
13949 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13959 printf("%s", __FUNCTION__);
13964 if ac_fn_c_try_link "$LINENO"; then :
13965 ac_cv_cc_implements___FUNCTION__="yes"
13967 ac_cv_cc_implements___FUNCTION__="no"
13970 rm -f core conftest.err conftest.$ac_objext \
13971 conftest$ac_exeext conftest.$ac_ext
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
13975 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
13976 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
13978 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
13983 $as_echo_n "checking whether $CC implements __func__... " >&6; }
13984 if test "${ac_cv_cc_implements___func__+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13994 printf("%s", __func__);
13999 if ac_fn_c_try_link "$LINENO"; then :
14000 ac_cv_cc_implements___func__="yes"
14002 ac_cv_cc_implements___func__="no"
14005 rm -f core conftest.err conftest.$ac_objext \
14006 conftest$ac_exeext conftest.$ac_ext
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
14010 $as_echo "$ac_cv_cc_implements___func__" >&6; }
14011 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14013 $as_echo "#define HAVE___func__ 1" >>confdefs.h
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
14018 $as_echo_n "checking whether va_copy exists... " >&6; }
14019 if test "${ac_cv_have_va_copy+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14026 #include <stdarg.h>
14037 if ac_fn_c_try_link "$LINENO"; then :
14038 ac_cv_have_va_copy="yes"
14040 ac_cv_have_va_copy="no"
14043 rm -f core conftest.err conftest.$ac_objext \
14044 conftest$ac_exeext conftest.$ac_ext
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
14048 $as_echo "$ac_cv_have_va_copy" >&6; }
14049 if test "x$ac_cv_have_va_copy" = "xyes" ; then
14051 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
14056 $as_echo_n "checking whether __va_copy exists... " >&6; }
14057 if test "${ac_cv_have___va_copy+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14064 #include <stdarg.h>
14075 if ac_fn_c_try_link "$LINENO"; then :
14076 ac_cv_have___va_copy="yes"
14078 ac_cv_have___va_copy="no"
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
14086 $as_echo "$ac_cv_have___va_copy" >&6; }
14087 if test "x$ac_cv_have___va_copy" = "xyes" ; then
14089 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
14094 $as_echo_n "checking whether getopt has optreset support... " >&6; }
14095 if test "${ac_cv_have_getopt_optreset+set}" = set; then :
14096 $as_echo_n "(cached) " >&6
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101 #include <getopt.h>
14105 extern int optreset; optreset = 0;
14110 if ac_fn_c_try_link "$LINENO"; then :
14111 ac_cv_have_getopt_optreset="yes"
14113 ac_cv_have_getopt_optreset="no"
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
14121 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
14122 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14124 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
14129 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
14130 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then :
14131 $as_echo_n "(cached) " >&6
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14140 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14145 if ac_fn_c_try_link "$LINENO"; then :
14146 ac_cv_libc_defines_sys_errlist="yes"
14148 ac_cv_libc_defines_sys_errlist="no"
14151 rm -f core conftest.err conftest.$ac_objext \
14152 conftest$ac_exeext conftest.$ac_ext
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
14156 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
14157 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14159 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
14165 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
14166 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then :
14167 $as_echo_n "(cached) " >&6
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14176 extern int sys_nerr; printf("%i", sys_nerr);
14181 if ac_fn_c_try_link "$LINENO"; then :
14182 ac_cv_libc_defines_sys_nerr="yes"
14184 ac_cv_libc_defines_sys_nerr="no"
14187 rm -f core conftest.err conftest.$ac_objext \
14188 conftest$ac_exeext conftest.$ac_ext
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
14192 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
14193 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14195 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
14199 # Check libraries needed by DNS fingerprint support
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14201 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14202 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14203 $as_echo_n "(cached) " >&6
14205 ac_func_search_save_LIBS=$LIBS
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14209 /* Override any GCC internal prototype to avoid an error.
14210 Use char because int might match the return type of a GCC
14211 builtin and then its argument prototype would still apply. */
14215 char getrrsetbyname ();
14219 return getrrsetbyname ();
14224 for ac_lib in '' resolv; do
14225 if test -z "$ac_lib"; then
14226 ac_res="none required"
14229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14231 if ac_fn_c_try_link "$LINENO"; then :
14232 ac_cv_search_getrrsetbyname=$ac_res
14234 rm -f core conftest.err conftest.$ac_objext \
14236 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14240 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14243 ac_cv_search_getrrsetbyname=no
14245 rm conftest.$ac_ext
14246 LIBS=$ac_func_search_save_LIBS
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14249 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14250 ac_res=$ac_cv_search_getrrsetbyname
14251 if test "$ac_res" != no; then :
14252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14254 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14258 # Needed by our getrrsetbyname()
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14260 $as_echo_n "checking for library containing res_query... " >&6; }
14261 if test "${ac_cv_search_res_query+set}" = set; then :
14262 $as_echo_n "(cached) " >&6
14264 ac_func_search_save_LIBS=$LIBS
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14268 /* Override any GCC internal prototype to avoid an error.
14269 Use char because int might match the return type of a GCC
14270 builtin and then its argument prototype would still apply. */
14278 return res_query ();
14283 for ac_lib in '' resolv; do
14284 if test -z "$ac_lib"; then
14285 ac_res="none required"
14288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14290 if ac_fn_c_try_link "$LINENO"; then :
14291 ac_cv_search_res_query=$ac_res
14293 rm -f core conftest.err conftest.$ac_objext \
14295 if test "${ac_cv_search_res_query+set}" = set; then :
14299 if test "${ac_cv_search_res_query+set}" = set; then :
14302 ac_cv_search_res_query=no
14304 rm conftest.$ac_ext
14305 LIBS=$ac_func_search_save_LIBS
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14308 $as_echo "$ac_cv_search_res_query" >&6; }
14309 ac_res=$ac_cv_search_res_query
14310 if test "$ac_res" != no; then :
14311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14316 $as_echo_n "checking for library containing dn_expand... " >&6; }
14317 if test "${ac_cv_search_dn_expand+set}" = set; then :
14318 $as_echo_n "(cached) " >&6
14320 ac_func_search_save_LIBS=$LIBS
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14324 /* Override any GCC internal prototype to avoid an error.
14325 Use char because int might match the return type of a GCC
14326 builtin and then its argument prototype would still apply. */
14334 return dn_expand ();
14339 for ac_lib in '' resolv; do
14340 if test -z "$ac_lib"; then
14341 ac_res="none required"
14344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14346 if ac_fn_c_try_link "$LINENO"; then :
14347 ac_cv_search_dn_expand=$ac_res
14349 rm -f core conftest.err conftest.$ac_objext \
14351 if test "${ac_cv_search_dn_expand+set}" = set; then :
14355 if test "${ac_cv_search_dn_expand+set}" = set; then :
14358 ac_cv_search_dn_expand=no
14360 rm conftest.$ac_ext
14361 LIBS=$ac_func_search_save_LIBS
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14364 $as_echo "$ac_cv_search_dn_expand" >&6; }
14365 ac_res=$ac_cv_search_dn_expand
14366 if test "$ac_res" != no; then :
14367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14372 $as_echo_n "checking if res_query will link... " >&6; }
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h. */
14376 #include <sys/types.h>
14377 #include <netinet/in.h>
14378 #include <arpa/nameser.h>
14380 #include <resolv.h>
14386 res_query (0, 0, 0, 0, 0);
14392 if ac_fn_c_try_link "$LINENO"; then :
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14394 $as_echo "yes" >&6; }
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14397 $as_echo "no" >&6; }
14399 LIBS="$LIBS -lresolv"
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14401 $as_echo_n "checking for res_query in -lresolv... " >&6; }
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14405 #include <sys/types.h>
14406 #include <netinet/in.h>
14407 #include <arpa/nameser.h>
14409 #include <resolv.h>
14415 res_query (0, 0, 0, 0, 0);
14421 if ac_fn_c_try_link "$LINENO"; then :
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14423 $as_echo "yes" >&6; }
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427 $as_echo "no" >&6; }
14429 rm -f core conftest.err conftest.$ac_objext \
14430 conftest$ac_exeext conftest.$ac_ext
14433 rm -f core conftest.err conftest.$ac_objext \
14434 conftest$ac_exeext conftest.$ac_ext
14435 for ac_func in _getshort _getlong
14437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14438 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14439 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14440 cat >>confdefs.h <<_ACEOF
14441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14447 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14448 #include <arpa/nameser.h>
14450 if test "x$ac_cv_have_decl__getshort" = x""yes; then :
14456 cat >>confdefs.h <<_ACEOF
14457 #define HAVE_DECL__GETSHORT $ac_have_decl
14459 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14460 #include <arpa/nameser.h>
14462 if test "x$ac_cv_have_decl__getlong" = x""yes; then :
14468 cat >>confdefs.h <<_ACEOF
14469 #define HAVE_DECL__GETLONG $ac_have_decl
14472 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14474 if test "x$ac_cv_member_HEADER_ad" = x""yes; then :
14476 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14485 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14490 #if HAVE_SYS_TYPES_H
14491 # include <sys/types.h>
14493 #include <netinet/in.h>
14494 #include <arpa/nameser.h>
14495 #include <resolv.h>
14496 extern struct __res_state _res;
14506 if ac_fn_c_try_link "$LINENO"; then :
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14508 $as_echo "yes" >&6; }
14510 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515 $as_echo "no" >&6; }
14518 rm -f core conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext conftest.$ac_ext
14521 # Check whether user wants SELinux support
14525 # Check whether --with-selinux was given.
14526 if test "${with_selinux+set}" = set; then :
14527 withval=$with_selinux; if test "x$withval" != "xno" ; then
14530 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
14533 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14534 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
14537 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
14542 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
14543 if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14546 ac_check_lib_save_LIBS=$LIBS
14547 LIBS="-lselinux $LIBS"
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14551 /* Override any GCC internal prototype to avoid an error.
14552 Use char because int might match the return type of a GCC
14553 builtin and then its argument prototype would still apply. */
14557 char setexeccon ();
14561 return setexeccon ();
14566 if ac_fn_c_try_link "$LINENO"; then :
14567 ac_cv_lib_selinux_setexeccon=yes
14569 ac_cv_lib_selinux_setexeccon=no
14571 rm -f core conftest.err conftest.$ac_objext \
14572 conftest$ac_exeext conftest.$ac_ext
14573 LIBS=$ac_check_lib_save_LIBS
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
14576 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
14577 if test "x$ac_cv_lib_selinux_setexeccon" = x""yes; then :
14578 LIBSELINUX="-lselinux"
14579 LIBS="$LIBS -lselinux"
14582 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
14585 SSHLIBS="$SSHLIBS $LIBSELINUX"
14586 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
14587 for ac_func in getseuserbyname get_default_context_with_level
14589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14591 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14592 cat >>confdefs.h <<_ACEOF
14593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14607 # Check whether user wants Kerberos 5 support
14610 # Check whether --with-kerberos5 was given.
14611 if test "${with_kerberos5+set}" = set; then :
14612 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
14613 if test "x$withval" = "xyes" ; then
14614 KRB5ROOT="/usr/local"
14616 KRB5ROOT=${withval}
14620 $as_echo "#define KRB5 1" >>confdefs.h
14624 # Extract the first word of "krb5-config", so it can be a program name with args.
14625 set dummy krb5-config; ac_word=$2
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14627 $as_echo_n "checking for $ac_word... " >&6; }
14628 if test "${ac_cv_path_KRB5CONF+set}" = set; then :
14629 $as_echo_n "(cached) " >&6
14633 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 as_dummy="$KRB5ROOT/bin:$PATH"
14638 for as_dir in $as_dummy
14641 test -z "$as_dir" && as_dir=.
14642 for ac_exec_ext in '' $ac_executable_extensions; do
14643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14644 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
14645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14652 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
14656 KRB5CONF=$ac_cv_path_KRB5CONF
14657 if test -n "$KRB5CONF"; then
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
14659 $as_echo "$KRB5CONF" >&6; }
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14662 $as_echo "no" >&6; }
14666 if test -x $KRB5CONF ; then
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
14669 $as_echo_n "checking for gssapi support... " >&6; }
14670 if $KRB5CONF | grep gssapi >/dev/null ; then
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14672 $as_echo "yes" >&6; }
14674 $as_echo "#define GSSAPI 1" >>confdefs.h
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14679 $as_echo "no" >&6; }
14682 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
14683 K5LIBS="`$KRB5CONF --libs $k5confopts`"
14684 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14686 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14694 char *tmp = heimdal_version;
14699 if ac_fn_c_try_compile "$LINENO"; then :
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14701 $as_echo "yes" >&6; }
14703 $as_echo "#define HEIMDAL 1" >>confdefs.h
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14707 $as_echo "no" >&6; }
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14712 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14713 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14715 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14723 char *tmp = heimdal_version;
14728 if ac_fn_c_try_compile "$LINENO"; then :
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14730 $as_echo "yes" >&6; }
14731 $as_echo "#define HEIMDAL 1" >>confdefs.h
14734 K5LIBS="$K5LIBS -lcom_err -lasn1"
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
14736 $as_echo_n "checking for net_write in -lroken... " >&6; }
14737 if test "${ac_cv_lib_roken_net_write+set}" = set; then :
14738 $as_echo_n "(cached) " >&6
14740 ac_check_lib_save_LIBS=$LIBS
14741 LIBS="-lroken $LIBS"
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14745 /* Override any GCC internal prototype to avoid an error.
14746 Use char because int might match the return type of a GCC
14747 builtin and then its argument prototype would still apply. */
14755 return net_write ();
14760 if ac_fn_c_try_link "$LINENO"; then :
14761 ac_cv_lib_roken_net_write=yes
14763 ac_cv_lib_roken_net_write=no
14765 rm -f core conftest.err conftest.$ac_objext \
14766 conftest$ac_exeext conftest.$ac_ext
14767 LIBS=$ac_check_lib_save_LIBS
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
14770 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
14771 if test "x$ac_cv_lib_roken_net_write" = x""yes; then :
14772 K5LIBS="$K5LIBS -lroken"
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14776 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14777 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14780 ac_check_lib_save_LIBS=$LIBS
14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14785 /* Override any GCC internal prototype to avoid an error.
14786 Use char because int might match the return type of a GCC
14787 builtin and then its argument prototype would still apply. */
14791 char des_cbc_encrypt ();
14795 return des_cbc_encrypt ();
14800 if ac_fn_c_try_link "$LINENO"; then :
14801 ac_cv_lib_des_des_cbc_encrypt=yes
14803 ac_cv_lib_des_des_cbc_encrypt=no
14805 rm -f core conftest.err conftest.$ac_objext \
14806 conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14810 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14811 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14812 K5LIBS="$K5LIBS -ldes"
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 $as_echo "no" >&6; }
14819 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14825 $as_echo_n "checking for library containing dn_expand... " >&6; }
14826 if test "${ac_cv_search_dn_expand+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14829 ac_func_search_save_LIBS=$LIBS
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14833 /* Override any GCC internal prototype to avoid an error.
14834 Use char because int might match the return type of a GCC
14835 builtin and then its argument prototype would still apply. */
14843 return dn_expand ();
14848 for ac_lib in '' resolv; do
14849 if test -z "$ac_lib"; then
14850 ac_res="none required"
14853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14855 if ac_fn_c_try_link "$LINENO"; then :
14856 ac_cv_search_dn_expand=$ac_res
14858 rm -f core conftest.err conftest.$ac_objext \
14860 if test "${ac_cv_search_dn_expand+set}" = set; then :
14864 if test "${ac_cv_search_dn_expand+set}" = set; then :
14867 ac_cv_search_dn_expand=no
14869 rm conftest.$ac_ext
14870 LIBS=$ac_func_search_save_LIBS
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14873 $as_echo "$ac_cv_search_dn_expand" >&6; }
14874 ac_res=$ac_cv_search_dn_expand
14875 if test "$ac_res" != no; then :
14876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
14882 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
14883 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then :
14884 $as_echo_n "(cached) " >&6
14886 ac_check_lib_save_LIBS=$LIBS
14887 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14897 char gss_init_sec_context ();
14901 return gss_init_sec_context ();
14906 if ac_fn_c_try_link "$LINENO"; then :
14907 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
14909 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
14911 rm -f core conftest.err conftest.$ac_objext \
14912 conftest$ac_exeext conftest.$ac_ext
14913 LIBS=$ac_check_lib_save_LIBS
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
14916 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
14917 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = x""yes; then :
14918 $as_echo "#define GSSAPI 1" >>confdefs.h
14920 K5LIBS="-lgssapi_krb5 $K5LIBS"
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
14923 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
14924 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then :
14925 $as_echo_n "(cached) " >&6
14927 ac_check_lib_save_LIBS=$LIBS
14928 LIBS="-lgssapi $K5LIBS $LIBS"
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14932 /* Override any GCC internal prototype to avoid an error.
14933 Use char because int might match the return type of a GCC
14934 builtin and then its argument prototype would still apply. */
14938 char gss_init_sec_context ();
14942 return gss_init_sec_context ();
14947 if ac_fn_c_try_link "$LINENO"; then :
14948 ac_cv_lib_gssapi_gss_init_sec_context=yes
14950 ac_cv_lib_gssapi_gss_init_sec_context=no
14952 rm -f core conftest.err conftest.$ac_objext \
14953 conftest$ac_exeext conftest.$ac_ext
14954 LIBS=$ac_check_lib_save_LIBS
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
14957 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
14958 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = x""yes; then :
14959 $as_echo "#define GSSAPI 1" >>confdefs.h
14961 K5LIBS="-lgssapi $K5LIBS"
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
14964 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
14971 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14972 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
14975 unset ac_cv_header_gssapi_h
14976 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14977 for ac_header in gssapi.h
14979 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14980 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
14981 cat >>confdefs.h <<_ACEOF
14982 #define HAVE_GSSAPI_H 1
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
14987 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
15000 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15001 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
15002 if test "x$ac_cv_header_gssapi_krb5_h" = x""yes; then :
15011 if test ! -z "$need_dash_r" ; then
15012 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15014 if test ! -z "$blibpath" ; then
15015 blibpath="$blibpath:${KRB5ROOT}/lib"
15019 LIBS="$LIBS $K5LIBS"
15020 for ac_func in gss_localname gss_userok
15022 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15023 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15024 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15025 cat >>confdefs.h <<_ACEOF
15026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15034 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_ext.h
15036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15037 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15039 cat >>confdefs.h <<_ACEOF
15040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15047 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
15049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15050 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15052 cat >>confdefs.h <<_ACEOF
15053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15060 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
15062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15063 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15064 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15065 cat >>confdefs.h <<_ACEOF
15066 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15074 LIBS="$LIBS $K5LIBS"
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
15076 $as_echo_n "checking for library containing k_hasafs... " >&6; }
15077 if test "${ac_cv_search_k_hasafs+set}" = set; then :
15078 $as_echo_n "(cached) " >&6
15080 ac_func_search_save_LIBS=$LIBS
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15084 /* Override any GCC internal prototype to avoid an error.
15085 Use char because int might match the return type of a GCC
15086 builtin and then its argument prototype would still apply. */
15094 return k_hasafs ();
15099 for ac_lib in '' kafs; do
15100 if test -z "$ac_lib"; then
15101 ac_res="none required"
15104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15106 if ac_fn_c_try_link "$LINENO"; then :
15107 ac_cv_search_k_hasafs=$ac_res
15109 rm -f core conftest.err conftest.$ac_objext \
15111 if test "${ac_cv_search_k_hasafs+set}" = set; then :
15115 if test "${ac_cv_search_k_hasafs+set}" = set; then :
15118 ac_cv_search_k_hasafs=no
15120 rm conftest.$ac_ext
15121 LIBS=$ac_func_search_save_LIBS
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
15124 $as_echo "$ac_cv_search_k_hasafs" >&6; }
15125 ac_res=$ac_cv_search_k_hasafs
15126 if test "$ac_res" != no; then :
15127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15129 $as_echo "#define USE_AFS 1" >>confdefs.h
15139 # Looking for programs, paths and files
15141 PRIVSEP_PATH=/var/empty
15143 # Check whether --with-privsep-path was given.
15144 if test "${with_privsep_path+set}" = set; then :
15145 withval=$with_privsep_path;
15146 if test -n "$withval" && test "x$withval" != "xno" && \
15147 test "x${withval}" != "xyes"; then
15148 PRIVSEP_PATH=$withval
15157 # Check whether --with-xauth was given.
15158 if test "${with_xauth+set}" = set; then :
15159 withval=$with_xauth;
15160 if test -n "$withval" && test "x$withval" != "xno" && \
15161 test "x${withval}" != "xyes"; then
15162 xauth_path=$withval
15168 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15169 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15170 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15171 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15172 # Extract the first word of "xauth", so it can be a program name with args.
15173 set dummy xauth; ac_word=$2
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15175 $as_echo_n "checking for $ac_word... " >&6; }
15176 if test "${ac_cv_path_xauth_path+set}" = set; then :
15177 $as_echo_n "(cached) " >&6
15179 case $xauth_path in
15181 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15185 for as_dir in $TestPath
15188 test -z "$as_dir" && as_dir=.
15189 for ac_exec_ext in '' $ac_executable_extensions; do
15190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15191 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15202 xauth_path=$ac_cv_path_xauth_path
15203 if test -n "$xauth_path"; then
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15205 $as_echo "$xauth_path" >&6; }
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208 $as_echo "no" >&6; }
15212 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15213 xauth_path="/usr/openwin/bin/xauth"
15221 # Check whether --enable-strip was given.
15222 if test "${enable_strip+set}" = set; then :
15223 enableval=$enable_strip;
15224 if test "x$enableval" = "xno" ; then
15233 if test -z "$xauth_path" ; then
15234 XAUTH_PATH="undefined"
15238 cat >>confdefs.h <<_ACEOF
15239 #define XAUTH_PATH "$xauth_path"
15242 XAUTH_PATH=$xauth_path
15246 # Check for mail directory
15248 # Check whether --with-maildir was given.
15249 if test "${with_maildir+set}" = set; then :
15250 withval=$with_maildir;
15251 if test "X$withval" != X && test "x$withval" != xno && \
15252 test "x${withval}" != xyes; then
15254 cat >>confdefs.h <<_ACEOF
15255 #define MAIL_DIRECTORY "$withval"
15262 if test "X$maildir" != "X"; then
15263 cat >>confdefs.h <<_ACEOF
15264 #define MAIL_DIRECTORY "$maildir"
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
15269 $as_echo_n "checking Discovering system mail directory... " >&6; }
15270 if test "$cross_compiling" = yes; then :
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
15273 $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15281 #include <string.h>
15282 #ifdef HAVE_PATHS_H
15285 #ifdef HAVE_MAILLOCK_H
15286 #include <maillock.h>
15288 #define DATA "conftest.maildir"
15297 fd = fopen(DATA,"w");
15301 #if defined (_PATH_MAILDIR)
15302 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
15304 #elif defined (MAILDIR)
15305 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
15307 #elif defined (_PATH_MAIL)
15308 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
15320 if ac_fn_c_try_run "$LINENO"; then :
15322 maildir_what=`awk -F: '{print $1}' conftest.maildir`
15323 maildir=`awk -F: '{print $2}' conftest.maildir \
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
15326 $as_echo "Using: $maildir from $maildir_what" >&6; }
15327 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
15328 cat >>confdefs.h <<_ACEOF
15329 #define MAIL_DIRECTORY "$maildir"
15336 if test "X$ac_status" = "X2";then
15337 # our test program didn't find it. Default to /var/spool/mail
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
15339 $as_echo "Using: default value of /var/spool/mail" >&6; }
15340 cat >>confdefs.h <<_ACEOF
15341 #define MAIL_DIRECTORY "/var/spool/mail"
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
15346 $as_echo "*** not found ***" >&6; }
15350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15351 conftest.$ac_objext conftest.beam conftest.$ac_ext
15360 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15362 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15363 disable_ptmx_check=yes
15365 if test -z "$no_dev_ptmx" ; then
15366 if test "x$disable_ptmx_check" != "xyes" ; then
15367 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15369 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15370 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15371 $as_echo_n "(cached) " >&6
15373 test "$cross_compiling" = yes &&
15374 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15375 if test -r ""/dev/ptmx""; then
15376 eval "$as_ac_File=yes"
15378 eval "$as_ac_File=no"
15381 eval ac_res=\$$as_ac_File
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15383 $as_echo "$ac_res" >&6; }
15384 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15387 cat >>confdefs.h <<_ACEOF
15388 #define HAVE_DEV_PTMX 1
15399 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15400 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15402 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15403 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15404 $as_echo_n "(cached) " >&6
15406 test "$cross_compiling" = yes &&
15407 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15408 if test -r ""/dev/ptc""; then
15409 eval "$as_ac_File=yes"
15411 eval "$as_ac_File=no"
15414 eval ac_res=\$$as_ac_File
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15416 $as_echo "$ac_res" >&6; }
15417 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15420 cat >>confdefs.h <<_ACEOF
15421 #define HAVE_DEV_PTS_AND_PTC 1
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15431 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15434 # Options from here on. Some of these are preset by platform above
15436 # Check whether --with-mantype was given.
15437 if test "${with_mantype+set}" = set; then :
15438 withval=$with_mantype;
15444 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15451 if test -z "$MANTYPE"; then
15452 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15453 for ac_prog in nroff awf
15455 # Extract the first word of "$ac_prog", so it can be a program name with args.
15456 set dummy $ac_prog; ac_word=$2
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15458 $as_echo_n "checking for $ac_word... " >&6; }
15459 if test "${ac_cv_path_NROFF+set}" = set; then :
15460 $as_echo_n "(cached) " >&6
15464 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15468 for as_dir in $TestPath
15471 test -z "$as_dir" && as_dir=.
15472 for ac_exec_ext in '' $ac_executable_extensions; do
15473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15474 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15485 NROFF=$ac_cv_path_NROFF
15486 if test -n "$NROFF"; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15488 $as_echo "$NROFF" >&6; }
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 $as_echo "no" >&6; }
15495 test -n "$NROFF" && break
15497 test -n "$NROFF" || NROFF="/bin/false"
15499 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15501 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15508 if test "$MANTYPE" = "doc"; then
15511 mansubdir=$MANTYPE;
15515 # Check whether to enable MD5 passwords
15518 # Check whether --with-md5-passwords was given.
15519 if test "${with_md5_passwords+set}" = set; then :
15520 withval=$with_md5_passwords;
15521 if test "x$withval" != "xno" ; then
15523 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
15532 # Whether to disable shadow password support
15534 # Check whether --with-shadow was given.
15535 if test "${with_shadow+set}" = set; then :
15536 withval=$with_shadow;
15537 if test "x$withval" = "xno" ; then
15538 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
15547 if test -z "$disable_shadow" ; then
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
15549 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15553 #include <sys/types.h>
15554 #include <shadow.h>
15560 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15565 if ac_fn_c_try_compile "$LINENO"; then :
15566 sp_expire_available=yes
15568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 if test "x$sp_expire_available" = "xyes" ; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15572 $as_echo "yes" >&6; }
15574 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15578 $as_echo "no" >&6; }
15582 # Use ip address instead of hostname in $DISPLAY
15583 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15584 DISPLAY_HACK_MSG="yes"
15586 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15589 DISPLAY_HACK_MSG="no"
15591 # Check whether --with-ipaddr-display was given.
15592 if test "${with_ipaddr_display+set}" = set; then :
15593 withval=$with_ipaddr_display;
15594 if test "x$withval" != "xno" ; then
15595 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15597 DISPLAY_HACK_MSG="yes"
15605 # check for /etc/default/login and use it if present.
15606 # Check whether --enable-etc-default-login was given.
15607 if test "${enable_etc_default_login+set}" = set; then :
15608 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
15610 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
15611 etc_default_login=no
15613 etc_default_login=yes
15616 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
15619 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
15620 etc_default_login=no
15622 etc_default_login=yes
15628 if test "x$etc_default_login" != "xno"; then
15629 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
15631 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
15632 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15633 $as_echo_n "(cached) " >&6
15635 test "$cross_compiling" = yes &&
15636 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15637 if test -r ""/etc/default/login""; then
15638 eval "$as_ac_File=yes"
15640 eval "$as_ac_File=no"
15643 eval ac_res=\$$as_ac_File
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15645 $as_echo "$ac_res" >&6; }
15646 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15647 external_path_file=/etc/default/login
15650 if test "x$external_path_file" = "x/etc/default/login"; then
15652 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
15657 if test $ac_cv_func_login_getcapbool = "yes" && \
15658 test $ac_cv_header_login_cap_h = "yes" ; then
15659 external_path_file=/etc/login.conf
15662 # Whether to mess with the default path
15663 SERVER_PATH_MSG="(default)"
15665 # Check whether --with-default-path was given.
15666 if test "${with_default_path+set}" = set; then :
15667 withval=$with_default_path;
15668 if test "x$external_path_file" = "x/etc/login.conf" ; then
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15670 --with-default-path=PATH has no effect on this system.
15671 Edit /etc/login.conf instead." >&5
15672 $as_echo "$as_me: WARNING:
15673 --with-default-path=PATH has no effect on this system.
15674 Edit /etc/login.conf instead." >&2;}
15675 elif test "x$withval" != "xno" ; then
15676 if test ! -z "$external_path_file" ; then
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15678 --with-default-path=PATH will only be used if PATH is not defined in
15679 $external_path_file ." >&5
15680 $as_echo "$as_me: WARNING:
15681 --with-default-path=PATH will only be used if PATH is not defined in
15682 $external_path_file ." >&2;}
15684 user_path="$withval"
15685 SERVER_PATH_MSG="$withval"
15689 if test "x$external_path_file" = "x/etc/login.conf" ; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15691 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15693 if test ! -z "$external_path_file" ; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15695 If PATH is defined in $external_path_file, ensure the path to scp is included,
15696 otherwise scp will not work." >&5
15697 $as_echo "$as_me: WARNING:
15698 If PATH is defined in $external_path_file, ensure the path to scp is included,
15699 otherwise scp will not work." >&2;}
15701 if test "$cross_compiling" = yes; then :
15702 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h. */
15708 /* find out what STDPATH is */
15710 #ifdef HAVE_PATHS_H
15711 # include <paths.h>
15713 #ifndef _PATH_STDPATH
15714 # ifdef _PATH_USERPATH /* Irix */
15715 # define _PATH_STDPATH _PATH_USERPATH
15717 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15720 #include <sys/types.h>
15721 #include <sys/stat.h>
15723 #define DATA "conftest.stdpath"
15732 fd = fopen(DATA,"w");
15736 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15745 if ac_fn_c_try_run "$LINENO"; then :
15746 user_path=`cat conftest.stdpath`
15748 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15751 conftest.$ac_objext conftest.beam conftest.$ac_ext
15754 # make sure $bindir is in USER_PATH so scp will work
15755 t_bindir=`eval echo ${bindir}`
15757 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15760 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15762 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
15763 if test $? -ne 0 ; then
15764 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
15765 if test $? -ne 0 ; then
15766 user_path=$user_path:$t_bindir
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15768 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
15775 if test "x$external_path_file" != "x/etc/login.conf" ; then
15777 cat >>confdefs.h <<_ACEOF
15778 #define USER_PATH "$user_path"
15784 # Set superuser path separately to user path
15786 # Check whether --with-superuser-path was given.
15787 if test "${with_superuser_path+set}" = set; then :
15788 withval=$with_superuser_path;
15789 if test -n "$withval" && test "x$withval" != "xno" && \
15790 test "x${withval}" != "xyes"; then
15792 cat >>confdefs.h <<_ACEOF
15793 #define SUPERUSER_PATH "$withval"
15796 superuser_path=$withval
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15805 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
15806 IPV4_IN6_HACK_MSG="no"
15808 # Check whether --with-4in6 was given.
15809 if test "${with_4in6+set}" = set; then :
15810 withval=$with_4in6;
15811 if test "x$withval" != "xno" ; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813 $as_echo "yes" >&6; }
15815 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15817 IPV4_IN6_HACK_MSG="yes"
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15820 $as_echo "no" >&6; }
15825 if test "x$inet6_default_4in6" = "xyes"; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
15827 $as_echo "yes (default)" >&6; }
15828 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15830 IPV4_IN6_HACK_MSG="yes"
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
15833 $as_echo "no (default)" >&6; }
15840 # Whether to enable BSD auth support
15843 # Check whether --with-bsd-auth was given.
15844 if test "${with_bsd_auth+set}" = set; then :
15845 withval=$with_bsd_auth;
15846 if test "x$withval" != "xno" ; then
15848 $as_echo "#define BSD_AUTH 1" >>confdefs.h
15857 # Where to place sshd.pid
15859 # make sure the directory exists
15860 if test ! -d $piddir ; then
15861 piddir=`eval echo ${sysconfdir}`
15863 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15868 # Check whether --with-pid-dir was given.
15869 if test "${with_pid_dir+set}" = set; then :
15870 withval=$with_pid_dir;
15871 if test -n "$withval" && test "x$withval" != "xno" && \
15872 test "x${withval}" != "xyes"; then
15874 if test ! -d $piddir ; then
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
15876 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15885 cat >>confdefs.h <<_ACEOF
15886 #define _PATH_SSH_PIDDIR "$piddir"
15891 # Check whether --enable-lastlog was given.
15892 if test "${enable_lastlog+set}" = set; then :
15893 enableval=$enable_lastlog;
15894 if test "x$enableval" = "xno" ; then
15895 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15902 # Check whether --enable-utmp was given.
15903 if test "${enable_utmp+set}" = set; then :
15904 enableval=$enable_utmp;
15905 if test "x$enableval" = "xno" ; then
15906 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
15913 # Check whether --enable-utmpx was given.
15914 if test "${enable_utmpx+set}" = set; then :
15915 enableval=$enable_utmpx;
15916 if test "x$enableval" = "xno" ; then
15918 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
15925 # Check whether --enable-wtmp was given.
15926 if test "${enable_wtmp+set}" = set; then :
15927 enableval=$enable_wtmp;
15928 if test "x$enableval" = "xno" ; then
15929 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
15936 # Check whether --enable-wtmpx was given.
15937 if test "${enable_wtmpx+set}" = set; then :
15938 enableval=$enable_wtmpx;
15939 if test "x$enableval" = "xno" ; then
15941 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
15948 # Check whether --enable-libutil was given.
15949 if test "${enable_libutil+set}" = set; then :
15950 enableval=$enable_libutil;
15951 if test "x$enableval" = "xno" ; then
15952 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
15959 # Check whether --enable-pututline was given.
15960 if test "${enable_pututline+set}" = set; then :
15961 enableval=$enable_pututline;
15962 if test "x$enableval" = "xno" ; then
15964 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
15971 # Check whether --enable-pututxline was given.
15972 if test "${enable_pututxline+set}" = set; then :
15973 enableval=$enable_pututxline;
15974 if test "x$enableval" = "xno" ; then
15976 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
15984 # Check whether --with-lastlog was given.
15985 if test "${with_lastlog+set}" = set; then :
15986 withval=$with_lastlog;
15987 if test "x$withval" = "xno" ; then
15988 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15990 elif test -n "$withval" && test "x${withval}" != "xyes"; then
15991 conf_lastlog_location=$withval
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
16000 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16004 #include <sys/types.h>
16006 #ifdef HAVE_LASTLOG_H
16007 # include <lastlog.h>
16009 #ifdef HAVE_PATHS_H
16010 # include <paths.h>
16012 #ifdef HAVE_LOGIN_H
16013 # include <login.h>
16019 char *lastlog = LASTLOG_FILE;
16024 if ac_fn_c_try_compile "$LINENO"; then :
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16026 $as_echo "yes" >&6; }
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16030 $as_echo "no" >&6; }
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
16032 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16036 #include <sys/types.h>
16038 #ifdef HAVE_LASTLOG_H
16039 # include <lastlog.h>
16041 #ifdef HAVE_PATHS_H
16042 # include <paths.h>
16048 char *lastlog = _PATH_LASTLOG;
16053 if ac_fn_c_try_compile "$LINENO"; then :
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16055 $as_echo "yes" >&6; }
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16059 $as_echo "no" >&6; }
16060 system_lastlog_path=no
16063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16068 if test -z "$conf_lastlog_location"; then
16069 if test x"$system_lastlog_path" = x"no" ; then
16070 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16071 if (test -d "$f" || test -f "$f") ; then
16072 conf_lastlog_location=$f
16075 if test -z "$conf_lastlog_location"; then
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
16077 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16082 if test -n "$conf_lastlog_location"; then
16084 cat >>confdefs.h <<_ACEOF
16085 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
16091 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16095 #include <sys/types.h>
16097 #ifdef HAVE_PATHS_H
16098 # include <paths.h>
16104 char *utmp = UTMP_FILE;
16109 if ac_fn_c_try_compile "$LINENO"; then :
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16111 $as_echo "yes" >&6; }
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16114 $as_echo "no" >&6; }
16115 system_utmp_path=no
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 if test -z "$conf_utmp_location"; then
16120 if test x"$system_utmp_path" = x"no" ; then
16121 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16122 if test -f $f ; then
16123 conf_utmp_location=$f
16126 if test -z "$conf_utmp_location"; then
16127 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16132 if test -n "$conf_utmp_location"; then
16134 cat >>confdefs.h <<_ACEOF
16135 #define CONF_UTMP_FILE "$conf_utmp_location"
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
16141 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16145 #include <sys/types.h>
16147 #ifdef HAVE_PATHS_H
16148 # include <paths.h>
16154 char *wtmp = WTMP_FILE;
16159 if ac_fn_c_try_compile "$LINENO"; then :
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16161 $as_echo "yes" >&6; }
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16164 $as_echo "no" >&6; }
16165 system_wtmp_path=no
16168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16169 if test -z "$conf_wtmp_location"; then
16170 if test x"$system_wtmp_path" = x"no" ; then
16171 for f in /usr/adm/wtmp /var/log/wtmp; do
16172 if test -f $f ; then
16173 conf_wtmp_location=$f
16176 if test -z "$conf_wtmp_location"; then
16177 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16182 if test -n "$conf_wtmp_location"; then
16184 cat >>confdefs.h <<_ACEOF
16185 #define CONF_WTMP_FILE "$conf_wtmp_location"
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16192 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16196 #include <sys/types.h>
16198 #ifdef HAVE_UTMPX_H
16201 #ifdef HAVE_PATHS_H
16202 # include <paths.h>
16208 char *wtmpx = WTMPX_FILE;
16213 if ac_fn_c_try_compile "$LINENO"; then :
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215 $as_echo "yes" >&6; }
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16218 $as_echo "no" >&6; }
16219 system_wtmpx_path=no
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223 if test -z "$conf_wtmpx_location"; then
16224 if test x"$system_wtmpx_path" = x"no" ; then
16225 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16230 cat >>confdefs.h <<_ACEOF
16231 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
16237 if test ! -z "$blibpath" ; then
16238 LDFLAGS="$LDFLAGS $blibflags$blibpath"
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16240 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16243 CFLAGS="$CFLAGS $werror_flags"
16245 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16250 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
16251 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = x""yes; then :
16255 TEST_SSH_IPV6=$TEST_SSH_IPV6
16259 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
16261 cat >confcache <<\_ACEOF
16262 # This file is a shell script that caches the results of configure
16263 # tests run on this system so they can be shared between configure
16264 # scripts and configure runs, see configure's option --config-cache.
16265 # It is not useful on other systems. If it contains results you don't
16266 # want to keep, you may remove or edit it.
16268 # config.status only pays attention to the cache file if you give it
16269 # the --recheck option to rerun configure.
16271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16273 # following values.
16277 # The following way of writing the cache mishandles newlines in values,
16278 # but we know of no workaround that is simple, portable, and efficient.
16279 # So, we kill variables containing newlines.
16280 # Ultrix sh set writes to stderr and can't be redirected directly,
16281 # and sets the high bit in the cache file unless we assign to the vars.
16283 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16284 eval ac_val=\$$ac_var
16288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16292 _ | IFS | as_nl) ;; #(
16293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16294 *) { eval $ac_var=; unset $ac_var;} ;;
16300 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16301 *${as_nl}ac_space=\ *)
16302 # `set' does not quote correctly, so add quotes: double-quote
16303 # substitution turns \\\\ into \\, and sed turns \\ into \.
16306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16309 # `set' quotes correctly as required by POSIX, so do not add quotes.
16310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16321 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16323 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16324 if test -w "$cache_file"; then
16325 test "x$cache_file" != "x/dev/null" &&
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16327 $as_echo "$as_me: updating cache $cache_file" >&6;}
16328 cat confcache >$cache_file
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16331 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16336 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16337 # Let make expand exec_prefix.
16338 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16340 DEFS=-DHAVE_CONFIG_H
16345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16346 # 1. Remove the extension, and $U if already installed.
16347 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16348 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16349 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16350 # will be set to the directory where LIBOBJS objects are built.
16351 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16352 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16354 LIBOBJS=$ac_libobjs
16356 LTLIBOBJS=$ac_ltlibobjs
16361 : ${CONFIG_STATUS=./config.status}
16363 ac_clean_files_save=$ac_clean_files
16364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16366 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16368 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16370 # Generated by $as_me.
16371 # Run this file to recreate the current configuration.
16372 # Compiler output produced by configure, useful for debugging
16373 # configure, is in config.log if it exists.
16376 ac_cs_recheck=false
16379 SHELL=\${CONFIG_SHELL-$SHELL}
16382 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16383 ## -------------------- ##
16384 ## M4sh Initialization. ##
16385 ## -------------------- ##
16387 # Be more Bourne compatible
16388 DUALCASE=1; export DUALCASE # for MKS sh
16389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16392 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16393 # is contrary to our usage. Disable this feature.
16394 alias -g '${1+"$@"}'='"$@"'
16395 setopt NO_GLOB_SUBST
16397 case `(set -o) 2>/dev/null` in #(
16409 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16410 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16411 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16413 # Prefer a ksh shell builtin over an external printf program on Solaris,
16414 # but without wasting forks for bash or zsh.
16415 if test -z "$BASH_VERSION$ZSH_VERSION" \
16416 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16417 as_echo='print -r --'
16418 as_echo_n='print -rn --'
16419 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16420 as_echo='printf %s\n'
16421 as_echo_n='printf %s'
16423 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16424 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16425 as_echo_n='/usr/ucb/echo -n'
16427 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16428 as_echo_n_body='eval
16432 expr "X$arg" : "X\\(.*\\)$as_nl";
16433 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16435 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16437 export as_echo_n_body
16438 as_echo_n='sh -c $as_echo_n_body as_echo'
16440 export as_echo_body
16441 as_echo='sh -c $as_echo_body as_echo'
16444 # The user is always right.
16445 if test "${PATH_SEPARATOR+set}" != set; then
16447 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16448 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16455 # We need space, tab and new line, in precisely that order. Quoting is
16456 # there to prevent editors from complaining about space-tab.
16457 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16458 # splitting by setting IFS to empty value.)
16461 # Find who we are. Look in the path if we contain no directory separator.
16463 *[\\/]* ) as_myself=$0 ;;
16464 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16465 for as_dir in $PATH
16468 test -z "$as_dir" && as_dir=.
16469 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16475 # We did not find ourselves, most probably we were run as `sh COMMAND'
16476 # in which case we are not to be found in the path.
16477 if test "x$as_myself" = x; then
16480 if test ! -f "$as_myself"; then
16481 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16485 # Unset variables that we do not need and which cause bugs (e.g. in
16486 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16487 # suppresses any "Segmentation fault" message there. '((' could
16488 # trigger a bug in pdksh 5.2.14.
16489 for as_var in BASH_ENV ENV MAIL MAILPATH
16490 do eval test x\${$as_var+set} = xset \
16491 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16507 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16508 # ----------------------------------------
16509 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16510 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16511 # script with STATUS, using 1 if that was 0.
16514 as_status=$1; test $as_status -eq 0 && as_status=1
16516 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16517 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16519 $as_echo "$as_me: error: $2" >&2
16520 as_fn_exit $as_status
16524 # as_fn_set_status STATUS
16525 # -----------------------
16526 # Set $? to STATUS, without forking.
16527 as_fn_set_status ()
16530 } # as_fn_set_status
16532 # as_fn_exit STATUS
16533 # -----------------
16534 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16538 as_fn_set_status $1
16544 # Portably unset VAR.
16547 { eval $1=; unset $1;}
16549 as_unset=as_fn_unset
16550 # as_fn_append VAR VALUE
16551 # ----------------------
16552 # Append the text in VALUE to the end of the definition contained in VAR. Take
16553 # advantage of any shell optimizations that allow amortized linear growth over
16554 # repeated appends, instead of the typical quadratic growth present in naive
16556 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16557 eval 'as_fn_append ()
16568 # as_fn_arith ARG...
16569 # ------------------
16570 # Perform arithmetic evaluation on the ARGs, and store the result in the
16571 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16572 # must be portable across $(()) and expr.
16573 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16574 eval 'as_fn_arith ()
16581 as_val=`expr "$@" || test $? -eq 1`
16586 if expr a : '\(a\)' >/dev/null 2>&1 &&
16587 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16594 as_basename=basename
16599 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16605 as_me=`$as_basename -- "$0" ||
16606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16607 X"$0" : 'X\(//\)$' \| \
16608 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16610 sed '/^.*\/\([^/][^/]*\)\/*$/{
16624 # Avoid depending upon Character Ranges.
16625 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16626 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16627 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16628 as_cr_digits='0123456789'
16629 as_cr_alnum=$as_cr_Letters$as_cr_digits
16631 ECHO_C= ECHO_N= ECHO_T=
16632 case `echo -n x` in #(((((
16634 case `echo 'xy\c'` in
16635 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16637 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16644 rm -f conf$$ conf$$.exe conf$$.file
16645 if test -d conf$$.dir; then
16646 rm -f conf$$.dir/conf$$.file
16649 mkdir conf$$.dir 2>/dev/null
16651 if (echo >conf$$.file) 2>/dev/null; then
16652 if ln -s conf$$.file conf$$ 2>/dev/null; then
16654 # ... but there are two gotchas:
16655 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16656 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16657 # In both cases, we have to default to `cp -p'.
16658 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16660 elif ln conf$$.file conf$$ 2>/dev/null; then
16668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16669 rmdir conf$$.dir 2>/dev/null
16674 # Create "$as_dir" as a directory, including parents if necessary.
16679 -*) as_dir=./$as_dir;;
16681 test -d "$as_dir" || eval $as_mkdir_p || {
16685 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16686 *) as_qdir=$as_dir;;
16688 as_dirs="'$as_qdir' $as_dirs"
16689 as_dir=`$as_dirname -- "$as_dir" ||
16690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16691 X"$as_dir" : 'X\(//\)[^/]' \| \
16692 X"$as_dir" : 'X\(//\)$' \| \
16693 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16694 $as_echo X"$as_dir" |
16695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16699 /^X\(\/\/\)[^/].*/{
16712 test -d "$as_dir" && break
16714 test -z "$as_dirs" || eval "mkdir $as_dirs"
16715 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16719 if mkdir -p . 2>/dev/null; then
16720 as_mkdir_p='mkdir -p "$as_dir"'
16722 test -d ./-p && rmdir ./-p
16726 if test -x / >/dev/null 2>&1; then
16727 as_test_x='test -x'
16729 if ls -dL / >/dev/null 2>&1; then
16736 if test -d "$1"; then
16742 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16743 ???[sx]*):;;*)false;;esac;fi
16747 as_executable_p=$as_test_x
16749 # Sed expression to map a string onto a valid CPP name.
16750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16752 # Sed expression to map a string onto a valid variable name.
16753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16757 ## ----------------------------------- ##
16758 ## Main body of $CONFIG_STATUS script. ##
16759 ## ----------------------------------- ##
16761 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16764 # Save the log message, to keep $0 and so on meaningful, and to
16765 # report actual input values of CONFIG_FILES etc. instead of their
16766 # values after options handling.
16768 This file was extended by OpenSSH $as_me Portable, which was
16769 generated by GNU Autoconf 2.67. Invocation command line was
16771 CONFIG_FILES = $CONFIG_FILES
16772 CONFIG_HEADERS = $CONFIG_HEADERS
16773 CONFIG_LINKS = $CONFIG_LINKS
16774 CONFIG_COMMANDS = $CONFIG_COMMANDS
16777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16782 case $ac_config_files in *"
16783 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16786 case $ac_config_headers in *"
16787 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16792 # Files that config.status was made for.
16793 config_files="$ac_config_files"
16794 config_headers="$ac_config_headers"
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16800 \`$as_me' instantiates files and other configuration actions
16801 from templates according to the current configuration. Unless the files
16802 and actions are specified as TAGs, all are instantiated by default.
16804 Usage: $0 [OPTION]... [TAG]...
16806 -h, --help print this help, then exit
16807 -V, --version print version number and configuration settings, then exit
16808 --config print configuration, then exit
16809 -q, --quiet, --silent
16810 do not print progress messages
16811 -d, --debug don't remove temporary files
16812 --recheck update $as_me by reconfiguring in the same conditions
16813 --file=FILE[:TEMPLATE]
16814 instantiate the configuration file FILE
16815 --header=FILE[:TEMPLATE]
16816 instantiate the configuration header FILE
16818 Configuration files:
16821 Configuration headers:
16824 Report bugs to <openssh-unix-dev@mindrot.org>."
16827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16828 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16830 OpenSSH config.status Portable
16831 configured by $0, generated by GNU Autoconf 2.67,
16832 with options \\"\$ac_cs_config\\"
16834 Copyright (C) 2010 Free Software Foundation, Inc.
16835 This config.status script is free software; the Free Software Foundation
16836 gives unlimited permission to copy, distribute and modify it."
16842 test -n "\$AWK" || AWK=awk
16845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16846 # The default lists apply if the user does not specify any file.
16852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16857 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16869 # Handling of the options.
16870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16873 $as_echo "$ac_cs_version"; exit ;;
16874 --config | --confi | --conf | --con | --co | --c )
16875 $as_echo "$ac_cs_config"; exit ;;
16876 --debug | --debu | --deb | --de | --d | -d )
16878 --file | --fil | --fi | --f )
16881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16882 '') as_fn_error $? "missing file argument" ;;
16884 as_fn_append CONFIG_FILES " '$ac_optarg'"
16885 ac_need_defaults=false;;
16886 --header | --heade | --head | --hea )
16889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16891 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16892 ac_need_defaults=false;;
16894 # Conflict between --help and --header
16895 as_fn_error $? "ambiguous option: \`$1'
16896 Try \`$0 --help' for more information.";;
16897 --help | --hel | -h )
16898 $as_echo "$ac_cs_usage"; exit ;;
16899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16900 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16903 # This is an error.
16904 -*) as_fn_error $? "unrecognized option: \`$1'
16905 Try \`$0 --help' for more information." ;;
16907 *) as_fn_append ac_config_targets " $1"
16908 ac_need_defaults=false ;;
16914 ac_configure_extra_args=
16916 if $ac_cs_silent; then
16918 ac_configure_extra_args="$ac_configure_extra_args --silent"
16922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16923 if \$ac_cs_recheck; then
16924 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16926 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16927 CONFIG_SHELL='$SHELL'
16928 export CONFIG_SHELL
16933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16938 ## Running $as_me. ##
16944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16949 # Handling of arguments.
16950 for ac_config_target in $ac_config_targets
16952 case $ac_config_target in
16953 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16954 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16955 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
16956 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
16957 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
16958 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16959 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
16960 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
16962 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16967 # If the user did not use the arguments to specify the items to instantiate,
16968 # then the envvar interface is used. Set only those that are not.
16969 # We use the long form for the default assignment because of an extremely
16970 # bizarre bug on SunOS 4.1.3.
16971 if $ac_need_defaults; then
16972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16976 # Have a temporary directory for convenience. Make it in the build tree
16977 # simply because there is no reason against having it here, and in addition,
16978 # creating and moving files from /tmp can sometimes cause problems.
16979 # Hook for its removal unless debugging.
16980 # Note that there is a small window in which the directory will not be cleaned:
16981 # after its creation but before its name has been assigned to `$tmp'.
16985 trap 'exit_status=$?
16986 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16988 trap 'as_fn_exit 1' 1 2 13 15
16990 # Create a (secure) tmp directory for tmp files.
16993 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16994 test -n "$tmp" && test -d "$tmp"
16997 tmp=./conf$$-$RANDOM
16998 (umask 077 && mkdir "$tmp")
16999 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17001 # Set up the scripts for CONFIG_FILES section.
17002 # No need to generate them if there are no CONFIG_FILES.
17003 # This happens for instance with `./config.status config.h'.
17004 if test -n "$CONFIG_FILES"; then
17007 ac_cr=`echo X | tr X '\015'`
17008 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17009 # But we know of no other shell where ac_cr would be empty at this
17010 # point, so we can use a bashism as a fallback.
17011 if test "x$ac_cr" = x; then
17012 eval ac_cr=\$\'\\r\'
17014 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17015 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17018 ac_cs_awk_cr=$ac_cr
17021 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17026 echo "cat >conf$$subs.awk <<_ACEOF" &&
17027 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17029 } >conf$$subs.sh ||
17030 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17031 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17033 for ac_last_try in false false false false false :; do
17034 . ./conf$$subs.sh ||
17035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17037 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17038 if test $ac_delim_n = $ac_delim_num; then
17040 elif $ac_last_try; then
17041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17046 rm -f conf$$subs.sh
17048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17049 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17053 s/^/S["/; s/!.*/"]=/
17063 s/\(.\{148\}\)..*/\1/
17065 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17070 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17077 s/\(.\{148\}\)..*/\1/
17079 s/["\\]/\\&/g; s/^/"/; s/$/"/
17083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17088 ' <conf$$subs.awk | sed '
17093 ' >>$CONFIG_STATUS || ac_write_fail=1
17094 rm -f conf$$subs.awk
17095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17097 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17098 for (key in S) S_is_set[key] = 1
17104 nfields = split(line, field, "@")
17106 len = length(field[1])
17107 for (i = 2; i < nfields; i++) {
17109 keylen = length(key)
17110 if (S_is_set[key]) {
17112 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17113 len += length(value) + length(field[++i])
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17125 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17126 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17129 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17130 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17133 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17134 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17135 # trailing colons and then remove the whole line if VPATH becomes empty
17136 # (actually we leave an empty line to preserve line numbers).
17137 if test "x$srcdir" = x.; then
17138 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17157 fi # test -n "$CONFIG_FILES"
17159 # Set up the scripts for CONFIG_HEADERS section.
17160 # No need to generate them if there are no CONFIG_HEADERS.
17161 # This happens for instance with `./config.status Makefile'.
17162 if test -n "$CONFIG_HEADERS"; then
17163 cat >"$tmp/defines.awk" <<\_ACAWK ||
17167 # Transform confdefs.h into an awk script `defines.awk', embedded as
17168 # here-document in config.status, that substitutes the proper values into
17169 # config.h.in to produce config.h.
17171 # Create a delimiter string that does not exist in confdefs.h, to ease
17172 # handling of long lines.
17174 for ac_last_try in false false :; do
17175 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17176 if test -z "$ac_t"; then
17178 elif $ac_last_try; then
17179 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17185 # For the awk script, D is an array of macro values keyed by name,
17186 # likewise P contains macro parameters if any. Preserve backslash
17187 # newline sequences.
17189 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17191 s/.\{148\}/&'"$ac_delim"'/g
17194 s/^[ ]*#[ ]*define[ ][ ]*/ /
17201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17203 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17207 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17208 D["\1"]=" \3\\\\\\n"\\/p
17210 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17215 s/.\{148\}/&'"$ac_delim"'/g
17220 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17223 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17225 ' <confdefs.h | sed '
17226 s/'"$ac_delim"'/"\\\
17227 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17230 for (key in D) D_is_set[key] = 1
17233 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17235 split(line, arg, " ")
17236 if (arg[1] == "#") {
17240 defundef = substr(arg[1], 2)
17243 split(mac1, mac2, "(") #)
17245 prefix = substr(line, 1, index(line, defundef) - 1)
17246 if (D_is_set[macro]) {
17247 # Preserve the white space surrounding the "#".
17248 print prefix "define", macro P[macro] D[macro]
17251 # Replace #undef with comments. This is necessary, for example,
17252 # in the case of _POSIX_SOURCE, which is predefined and required
17253 # on some systems where configure will not decide to define it.
17254 if (defundef == "undef") {
17255 print "/*", prefix defundef, macro, "*/"
17263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17264 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17265 fi # test -n "$CONFIG_HEADERS"
17268 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17273 :[FHLC]) ac_mode=$ac_tag; continue;;
17275 case $ac_mode$ac_tag in
17277 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17278 :[FH]-) ac_tag=-:-;;
17279 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17296 -) ac_f="$tmp/stdin";;
17297 *) # Look for the file first in the build tree, then in the source tree
17298 # (if the path is not absolute). The absolute path cannot be DOS-style,
17299 # because $ac_f cannot contain `:'.
17303 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17305 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17307 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17308 as_fn_append ac_file_inputs " '$ac_f'"
17311 # Let's still pretend it is `configure' which instantiates (i.e., don't
17312 # use $as_me), people would be surprised to read:
17313 # /* config.h. Generated by config.status. */
17314 configure_input='Generated from '`
17315 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17317 if test x"$ac_file" != x-; then
17318 configure_input="$ac_file. $configure_input"
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17320 $as_echo "$as_me: creating $ac_file" >&6;}
17322 # Neutralize special characters interpreted by sed in replacement strings.
17323 case $configure_input in #(
17324 *\&* | *\|* | *\\* )
17325 ac_sed_conf_input=`$as_echo "$configure_input" |
17326 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17327 *) ac_sed_conf_input=$configure_input;;
17331 *:-:* | *:-) cat >"$tmp/stdin" \
17332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17337 ac_dir=`$as_dirname -- "$ac_file" ||
17338 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17339 X"$ac_file" : 'X\(//\)[^/]' \| \
17340 X"$ac_file" : 'X\(//\)$' \| \
17341 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17342 $as_echo X"$ac_file" |
17343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17347 /^X\(\/\/\)[^/].*/{
17360 as_dir="$ac_dir"; as_fn_mkdir_p
17364 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17366 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17367 # A ".." for each directory in $ac_dir_suffix.
17368 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17369 case $ac_top_builddir_sub in
17370 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17371 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17374 ac_abs_top_builddir=$ac_pwd
17375 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17376 # for backward compatibility:
17377 ac_top_builddir=$ac_top_build_prefix
17380 .) # We are building in place.
17382 ac_top_srcdir=$ac_top_builddir_sub
17383 ac_abs_top_srcdir=$ac_pwd ;;
17384 [\\/]* | ?:[\\/]* ) # Absolute name.
17385 ac_srcdir=$srcdir$ac_dir_suffix;
17386 ac_top_srcdir=$srcdir
17387 ac_abs_top_srcdir=$srcdir ;;
17388 *) # Relative name.
17389 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17390 ac_top_srcdir=$ac_top_build_prefix$srcdir
17391 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17393 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17403 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17404 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17409 # If the template does not know about datarootdir, expand it.
17410 # FIXME: This hack should be removed a few years after 2.60.
17411 ac_datarootdir_hack=; ac_datarootdir_seen=
17422 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17423 *datarootdir*) ac_datarootdir_seen=yes;;
17424 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17426 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17429 ac_datarootdir_hack='
17430 s&@datadir@&$datadir&g
17431 s&@docdir@&$docdir&g
17432 s&@infodir@&$infodir&g
17433 s&@localedir@&$localedir&g
17434 s&@mandir@&$mandir&g
17435 s&\\\${datarootdir}&$datarootdir&g' ;;
17439 # Neutralize VPATH when `$srcdir' = `.'.
17440 # Shell code in configure.ac might set extrasub.
17441 # FIXME: do we really want to maintain this feature?
17442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17443 ac_sed_extra="$ac_vpsub
17446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17449 s|@configure_input@|$ac_sed_conf_input|;t t
17450 s&@top_builddir@&$ac_top_builddir_sub&;t t
17451 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17452 s&@srcdir@&$ac_srcdir&;t t
17453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17454 s&@top_srcdir@&$ac_top_srcdir&;t t
17455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17456 s&@builddir@&$ac_builddir&;t t
17457 s&@abs_builddir@&$ac_abs_builddir&;t t
17458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17459 s&@INSTALL@&$ac_INSTALL&;t t
17460 $ac_datarootdir_hack
17462 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17465 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17466 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17467 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17469 which seems to be undefined. Please make sure it is defined" >&5
17470 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17471 which seems to be undefined. Please make sure it is defined" >&2;}
17475 -) cat "$tmp/out" && rm -f "$tmp/out";;
17476 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17484 if test x"$ac_file" != x-; then
17486 $as_echo "/* $configure_input */" \
17487 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17488 } >"$tmp/config.h" \
17489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17490 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17492 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17495 mv "$tmp/config.h" "$ac_file" \
17496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17499 $as_echo "/* $configure_input */" \
17500 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17501 || as_fn_error $? "could not create -" "$LINENO" 5
17513 ac_clean_files=$ac_clean_files_save
17515 test $ac_write_fail = 0 ||
17516 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17519 # configure is writing to config.log, and then calls config.status.
17520 # config.status does its own redirection, appending to config.log.
17521 # Unfortunately, on DOS this fails, as config.log is still kept open
17522 # by configure, so config.status won't be able to write to it; its
17523 # output is simply discarded. So we exec the FD to /dev/null,
17524 # effectively closing config.log, so it can be properly (re)opened and
17525 # appended to by config.status. When coming back to configure, we
17526 # need to make the FD available again.
17527 if test "$no_create" != yes; then
17529 ac_config_status_args=
17530 test "$silent" = yes &&
17531 ac_config_status_args="$ac_config_status_args --quiet"
17533 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17535 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17536 # would make configure fail if this is the last instruction.
17537 $ac_cs_success || as_fn_exit 1
17539 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17541 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17545 # Print summary of options
17547 # Someone please show me a better way :)
17548 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17549 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17550 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17551 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17552 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17553 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17554 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17555 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17556 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17557 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17560 echo "OpenSSH has been configured with the following options:"
17561 echo " User binaries: $B"
17562 echo " System binaries: $C"
17563 echo " Configuration files: $D"
17564 echo " Askpass program: $E"
17565 echo " Manual pages: $F"
17566 echo " PID file: $G"
17567 echo " Privilege separation chroot path: $H"
17568 if test "x$external_path_file" = "x/etc/login.conf" ; then
17569 echo " At runtime, sshd will use the path defined in $external_path_file"
17570 echo " Make sure the path to scp is present, otherwise scp will not work"
17572 echo " sshd default user PATH: $I"
17573 if test ! -z "$external_path_file"; then
17574 echo " (If PATH is set in $external_path_file it will be used instead. If"
17575 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
17578 if test ! -z "$superuser_path" ; then
17579 echo " sshd superuser user PATH: $J"
17581 echo " Manpage format: $MANTYPE"
17582 echo " PAM support: $PAM_MSG"
17583 echo " OSF SIA support: $SIA_MSG"
17584 echo " KerberosV support: $KRB5_MSG"
17585 echo " SELinux support: $SELINUX_MSG"
17586 echo " Smartcard support: $SCARD_MSG"
17587 echo " S/KEY support: $SKEY_MSG"
17588 echo " TCP Wrappers support: $TCPW_MSG"
17589 echo " MD5 password support: $MD5_MSG"
17590 echo " libedit support: $LIBEDIT_MSG"
17591 echo " Solaris process contract support: $SPC_MSG"
17592 echo " Solaris project support: $SP_MSG"
17593 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17594 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17595 echo " BSD Auth support: $BSD_AUTH_MSG"
17596 echo " Random number source: $RAND_MSG"
17597 echo " Privsep sandbox style: $SANDBOX_STYLE"
17601 echo " Host: ${host}"
17602 echo " Compiler: ${CC}"
17603 echo " Compiler flags: ${CFLAGS}"
17604 echo "Preprocessor flags: ${CPPFLAGS}"
17605 echo " Linker flags: ${LDFLAGS}"
17606 echo " Libraries: ${LIBS}"
17607 if test ! -z "${SSHDLIBS}"; then
17608 echo " +for sshd: ${SSHDLIBS}"
17610 if test ! -z "${SSHLIBS}"; then
17611 echo " +for ssh: ${SSHLIBS}"
17616 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
17617 echo "SVR4 style packages are supported with \"make package\""
17621 if test "x$PAM_MSG" = "xyes" ; then
17622 echo "PAM is enabled. You may need to install a PAM control file "
17623 echo "for sshd, otherwise password authentication may fail. "
17624 echo "Example PAM control files can be found in the contrib/ "
17625 echo "subdirectory"
17629 if test ! -z "$NO_PEERCHECK" ; then
17630 echo "WARNING: the operating system that you are using does not"
17631 echo "appear to support getpeereid(), getpeerucred() or the"
17632 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
17633 echo "enforce security checks to prevent unauthorised connections to"
17634 echo "ssh-agent. Their absence increases the risk that a malicious"
17635 echo "user can connect to your agent."
17639 if test "$AUDIT_MODULE" = "bsm" ; then
17640 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
17641 echo "See the Solaris section in README.platform for details."