2 # From configure.ac Revision: 1.583 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for OpenSSH Portable.
6 # Report bugs to <openssh-unix-dev@mindrot.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
216 test -z "$as_dir" && as_dir=.
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
241 if test "x$CONFIG_SHELL" != x; then :
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 *v*x* | *x*v* ) as_opts=-vx ;;
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and
271 $0: openssh-unix-dev@mindrot.org about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
280 SHELL=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Create "$as_dir" as a directory, including parents if necessary.
323 -*) as_dir=./$as_dir;;
325 test -d "$as_dir" || eval $as_mkdir_p || {
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356 test -d "$as_dir" && break
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 as_val=`expr "$@" || test $? -eq 1`
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
414 as_status=$1; test $as_status -eq 0 && as_status=1
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
500 # Exit status is that of the last command.
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
522 mkdir conf$$.dir 2>/dev/null
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
533 elif ln conf$$.file conf$$ 2>/dev/null; then
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
547 test -d ./-p && rmdir ./-p
552 as_executable_p=as_fn_executable_p
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 test -n "$DJDIR" || exec 7<&0 </dev/null
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
572 ac_default_prefix=/usr/local
574 ac_config_libobj_dir=.
581 # Identity of this package.
582 PACKAGE_NAME='OpenSSH'
583 PACKAGE_TARNAME='openssh'
584 PACKAGE_VERSION='Portable'
585 PACKAGE_STRING='OpenSSH Portable'
586 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
589 ac_unique_file="ssh.c"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
626 ac_subst_vars='LTLIBOBJS
628 UNSUPPORTED_ALGORITHMS
655 MAKE_PACKAGE_SUPPORTED
722 program_transform_name
735 enable_option_checking
748 with_solaris_contracts
749 with_solaris_projects
753 with_zlib_version_check
761 with_openssl_header_check
779 enable_etc_default_login
795 ac_precious_vars='build_alias
806 # Initialize some variables set by options.
808 ac_init_version=false
809 ac_unrecognized_opts=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
820 program_transform_name=s,x,x,
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 # Accept the important Cygnus configure options, so we can diagnose typos.
873 case $ac_dashdash$ac_option in
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
895 cache_file=config.cache ;;
897 -datadir | --datadir | --datadi | --datad)
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
923 eval enable_$ac_useropt=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
949 eval enable_$ac_useropt=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
964 -help | --help | --hel | --he | -h)
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval with_$ac_useropt=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=no ;;
1172 # Obsolete; use --with-x.
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1240 # Be sure to have absolute directory names.
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267 test "$silent" = yes && exec 6>/dev/null
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1310 ac_srcdir_defaulted=no
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1344 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --disable-largefile omit support for large files
1418 --disable-pkcs11 disable PKCS#11 support code [no]
1419 --disable-strip Disable calling strip(1) on install
1420 --disable-etc-default-login Disable using PATH from /etc/default/login no
1421 --disable-lastlog disable use of lastlog even if detected no
1422 --disable-utmp disable use of utmp even if detected no
1423 --disable-utmpx disable use of utmpx even if detected no
1424 --disable-wtmp disable use of wtmp even if detected no
1425 --disable-wtmpx disable use of wtmpx even if detected no
1426 --disable-libutil disable use of libutil (login() etc.) no
1427 --disable-pututline disable use of pututline() etc. (uwtmp) no
1428 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL**
1434 --without-stackprotect Don't use compiler's stack protection
1435 --without-hardening Don't use toolchain hardening flags
1436 --without-rpath Disable auto-added -R linker paths
1437 --with-cflags Specify additional flags to pass to compiler
1438 --with-cflags-after Specify additional flags to pass to compiler after configure
1439 --with-cppflags Specify additional flags to pass to preprocessor
1440 --with-ldflags Specify additional flags to pass to linker
1441 --with-ldflags-after Specify additional flags to pass to linker after configure
1442 --with-libs Specify additional libraries to link with
1443 --with-Werror Build main code with -Werror
1444 --with-solaris-contracts Enable Solaris process contracts (experimental)
1445 --with-solaris-projects Enable Solaris projects (experimental)
1446 --with-solaris-privs Enable Solaris/Illumos privileges (experimental)
1447 --with-osfsia Enable Digital Unix SIA
1448 --with-zlib=PATH Use zlib in PATH
1449 --without-zlib-version-check Disable zlib version check
1450 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1451 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1452 --with-libedit[=PATH] Enable libedit support for sftp
1453 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1454 --with-pie Build Position Independent Executables if possible
1455 --with-ssl-dir=PATH Specify path to OpenSSL installation
1456 --without-openssl-header-check Disable OpenSSL version consistency check
1457 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1458 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1459 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1460 --with-pam Enable PAM support
1461 --with-pam-service=name Specify PAM service name
1462 --with-privsep-user=user Specify non-privileged user for privilege separation
1463 --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge)
1464 --with-selinux Enable SELinux support
1465 --with-kerberos5=PATH Enable Kerberos 5 support
1466 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1467 --with-xauth=PATH Specify path to xauth program
1468 --with-maildir=/path/to/mail Specify your system mail directory
1469 --with-mantype=man|cat|doc Set man page type
1470 --with-md5-passwords Enable use of MD5 passwords
1471 --without-shadow Disable shadow password support
1472 --with-ipaddr-display Use ip address instead of hostname in $DISPLAY
1473 --with-default-path= Specify default $PATH environment for server
1474 --with-superuser-path= Specify different path for super-user
1475 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1476 --with-bsd-auth Enable BSD auth support
1477 --with-pid-dir=PATH Specify location of sshd.pid file
1478 --with-lastlog=FILE|DIR specify lastlog location common locations
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1493 Report bugs to <openssh-unix-dev@mindrot.org>.
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1523 .) # We are building in place.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 OpenSSH configure Portable
1557 generated by GNU Autoconf 2.69
1559 Copyright (C) 2012 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
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_compile") 2>conftest.err
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1606 } # ac_fn_c_try_compile
1608 # ac_fn_c_try_run LINENO
1609 # ----------------------
1610 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1611 # that executables *can* be run.
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { { ac_try="$ac_link"
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_link") 2>&5
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1626 { { case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_try") 2>&5
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; }; }; then :
1638 $as_echo "$as_me: program exited with status $ac_status" >&5
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1642 ac_retval=$ac_status
1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1650 # ac_fn_c_try_cpp LINENO
1651 # ----------------------
1652 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } > conftest.i && {
1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists and can be compiled using the include files in
1690 # INCLUDES, setting the cache variable VAR accordingly.
1691 ac_fn_c_check_header_compile ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1704 if ac_fn_c_try_compile "$LINENO"; then :
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 } # ac_fn_c_check_header_compile
1718 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1719 # ---------------------------------------------
1720 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1722 ac_fn_c_check_decl ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 as_decl_name=`echo $2|sed 's/ *(.*//'`
1726 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1728 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1729 if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1738 #ifndef $as_decl_name
1740 (void) $as_decl_use;
1742 (void) $as_decl_name;
1750 if ac_fn_c_try_compile "$LINENO"; then :
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 } # ac_fn_c_check_decl
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 test -x conftest$ac_exeext
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1800 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802 # interfere with the next link command; also delete a directory that is
1803 # left behind by Apple's compiler. We do this before executing the actions.
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1808 } # ac_fn_c_try_link
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ( $as_echo "## ------------------------------------------- ##
1881 ## Report this to openssh-unix-dev@mindrot.org ##
1882 ## ------------------------------------------- ##"
1883 ) | sed "s/^/$as_me: WARNING: /" >&2
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1891 eval "$3=\$ac_header_compiler"
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_mongrel
1901 # ac_fn_c_check_func LINENO FUNC VAR
1902 # ----------------------------------
1903 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1904 ac_fn_c_check_func ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1916 #define $2 innocuous_$2
1918 /* System header to define __stub macros and hopefully few prototypes,
1919 which can conflict with char $2 (); below.
1920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1921 <limits.h> exists even on freestanding compilers. */
1924 # include <limits.h>
1926 # include <assert.h>
1931 /* Override any GCC internal prototype to avoid an error.
1932 Use char because int might match the return type of a GCC
1933 builtin and then its argument prototype would still apply. */
1938 /* The GNU C library defines this for functions which it implements
1939 to always fail with ENOSYS. Some functions are actually named
1940 something starting with __ and the normal name is an alias. */
1941 #if defined __stub_$2 || defined __stub___$2
1953 if ac_fn_c_try_link "$LINENO"; then :
1958 rm -f core conftest.err conftest.$ac_objext \
1959 conftest$ac_exeext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 } # ac_fn_c_check_func
1968 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1969 # -------------------------------------------
1970 # Tests whether TYPE exists after having included INCLUDES, setting cache
1971 # variable VAR accordingly.
1972 ac_fn_c_check_type ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
2006 if ac_fn_c_try_compile "$LINENO"; then :
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 } # ac_fn_c_check_type
2022 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2023 # --------------------------------------------
2024 # Tries to find the compile-time value of EXPR in a program that includes
2025 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2027 ac_fn_c_compute_int ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 if test "$cross_compiling" = yes; then
2031 # Depending upon the size, compute the lo and hi bounds.
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2038 static int test_array [1 - 2 * !(($2) >= 0)];
2040 return test_array [0];
2046 if ac_fn_c_try_compile "$LINENO"; then :
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2055 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2057 return test_array [0];
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 ac_hi=$ac_mid; break
2066 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2067 if test $ac_lo -le $ac_mid; then
2071 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2082 static int test_array [1 - 2 * !(($2) < 0)];
2084 return test_array [0];
2090 if ac_fn_c_try_compile "$LINENO"; then :
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2101 return test_array [0];
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_lo=$ac_mid; break
2110 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2111 if test $ac_mid -le $ac_hi; then
2115 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 # Binary search between lo and hi bounds.
2126 while test "x$ac_lo" != "x$ac_hi"; do
2127 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2136 return test_array [0];
2142 if ac_fn_c_try_compile "$LINENO"; then :
2145 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2157 static long int longval () { return $2; }
2158 static unsigned long int ulongval () { return $2; }
2165 FILE *f = fopen ("conftest.val", "w");
2170 long int i = longval ();
2173 fprintf (f, "%ld", i);
2177 unsigned long int i = ulongval ();
2180 fprintf (f, "%lu", i);
2182 /* Do not output a trailing newline, as this causes \r\n confusion
2183 on some platforms. */
2184 return ferror (f) || fclose (f) != 0;
2190 if ac_fn_c_try_run "$LINENO"; then :
2191 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2196 conftest.$ac_objext conftest.beam conftest.$ac_ext
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201 as_fn_set_status $ac_retval
2203 } # ac_fn_c_compute_int
2205 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2206 # ----------------------------------------------------
2207 # Tries to find if the field MEMBER exists in type AGGR, after including
2208 # INCLUDES, setting cache variable VAR accordingly.
2209 ac_fn_c_check_member ()
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2213 $as_echo_n "checking for $2.$3... " >&6; }
2214 if eval \${$4+:} false; then :
2215 $as_echo_n "(cached) " >&6
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2230 if ac_fn_c_try_compile "$LINENO"; then :
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2240 if (sizeof ac_aggr.$3)
2246 if ac_fn_c_try_compile "$LINENO"; then :
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 } # ac_fn_c_check_member
2261 cat >config.log <<_ACEOF
2262 This file contains any messages produced by compilers while
2263 running configure, to aid debugging if configure makes a mistake.
2265 It was created by OpenSSH $as_me Portable, which was
2266 generated by GNU Autoconf 2.69. Invocation command line was
2278 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2279 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2280 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2281 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2282 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2284 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2285 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2287 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2288 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2289 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2290 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2291 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2292 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2293 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 test -z "$as_dir" && as_dir=.
2302 $as_echo "PATH: $as_dir"
2318 # Keep a trace of the command line.
2319 # Strip out --no-create and --no-recursion so they do not pile up.
2320 # Strip out --silent because we don't want to record it for future runs.
2321 # Also quote any args containing shell meta-characters.
2322 # Make two passes to allow for proper duplicate-argument suppression.
2326 ac_must_keep_next=false
2332 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2334 | -silent | --silent | --silen | --sile | --sil)
2337 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2340 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2342 as_fn_append ac_configure_args1 " '$ac_arg'"
2343 if test $ac_must_keep_next = true; then
2344 ac_must_keep_next=false # Got value, back to normal.
2347 *=* | --config-cache | -C | -disable-* | --disable-* \
2348 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2349 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2350 | -with-* | --with-* | -without-* | --without-* | --x)
2351 case "$ac_configure_args0 " in
2352 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2355 -* ) ac_must_keep_next=true ;;
2358 as_fn_append ac_configure_args " '$ac_arg'"
2363 { ac_configure_args0=; unset ac_configure_args0;}
2364 { ac_configure_args1=; unset ac_configure_args1;}
2366 # When interrupted or exit'd, cleanup temporary files, and complete
2367 # config.log. We remove comments because anyway the quotes in there
2368 # would cause problems or look ugly.
2369 # WARNING: Use '\'' to represent an apostrophe within the trap.
2370 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2371 trap 'exit_status=$?
2372 # Save into config.log some information that might help in debugging.
2376 $as_echo "## ---------------- ##
2377 ## Cache variables. ##
2378 ## ---------------- ##"
2380 # The following way of writing the cache mishandles newlines in values,
2382 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2383 eval ac_val=\$$ac_var
2387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2388 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2391 _ | IFS | as_nl) ;; #(
2392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2393 *) { eval $ac_var=; unset $ac_var;} ;;
2398 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2399 *${as_nl}ac_space=\ *)
2401 "s/'\''/'\''\\\\'\'''\''/g;
2402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2412 $as_echo "## ----------------- ##
2413 ## Output variables. ##
2414 ## ----------------- ##"
2416 for ac_var in $ac_subst_vars
2418 eval ac_val=\$$ac_var
2420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 $as_echo "$ac_var='\''$ac_val'\''"
2426 if test -n "$ac_subst_files"; then
2427 $as_echo "## ------------------- ##
2428 ## File substitutions. ##
2429 ## ------------------- ##"
2431 for ac_var in $ac_subst_files
2433 eval ac_val=\$$ac_var
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437 $as_echo "$ac_var='\''$ac_val'\''"
2442 if test -s confdefs.h; then
2443 $as_echo "## ----------- ##
2450 test "$ac_signal" != 0 &&
2451 $as_echo "$as_me: caught signal $ac_signal"
2452 $as_echo "$as_me: exit $exit_status"
2454 rm -f core *.core core.conftest.* &&
2455 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 for ac_signal in 1 2 13 15; do
2459 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2464 rm -f -r conftest* confdefs.h
2466 $as_echo "/* confdefs.h */" > confdefs.h
2468 # Predefined preprocessor variables.
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_URL "$PACKAGE_URL"
2495 # Let the site file select an alternate cache file if it wants to.
2496 # Prefer an explicitly selected file to automatically selected ones.
2499 if test -n "$CONFIG_SITE"; then
2500 # We do not want a PATH search for config.site.
2501 case $CONFIG_SITE in #((
2502 -*) ac_site_file1=./$CONFIG_SITE;;
2503 */*) ac_site_file1=$CONFIG_SITE;;
2504 *) ac_site_file1=./$CONFIG_SITE;;
2506 elif test "x$prefix" != xNONE; then
2507 ac_site_file1=$prefix/share/config.site
2508 ac_site_file2=$prefix/etc/config.site
2510 ac_site_file1=$ac_default_prefix/share/config.site
2511 ac_site_file2=$ac_default_prefix/etc/config.site
2513 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2515 test "x$ac_site_file" = xNONE && continue
2516 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2518 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2519 sed 's/^/| /' "$ac_site_file" >&5
2521 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 as_fn_error $? "failed to load site script $ac_site_file
2524 See \`config.log' for more details" "$LINENO" 5; }
2528 if test -r "$cache_file"; then
2529 # Some versions of bash will fail to source /dev/null (special files
2530 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2531 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2533 $as_echo "$as_me: loading cache $cache_file" >&6;}
2535 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2536 *) . "./$cache_file";;
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2541 $as_echo "$as_me: creating cache $cache_file" >&6;}
2545 # Check that the precious variables saved in the cache have kept the same
2547 ac_cache_corrupted=false
2548 for ac_var in $ac_precious_vars; do
2549 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2550 eval ac_new_set=\$ac_env_${ac_var}_set
2551 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2552 eval ac_new_val=\$ac_env_${ac_var}_value
2553 case $ac_old_set,$ac_new_set in
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2564 if test "x$ac_old_val" != "x$ac_new_val"; then
2565 # differences in whitespace do not lead to failure.
2566 ac_old_val_w=`echo x $ac_old_val`
2567 ac_new_val_w=`echo x $ac_new_val`
2568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2570 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2571 ac_cache_corrupted=:
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2574 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2575 eval $ac_var=\$ac_old_val
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2578 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2580 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2583 # Pass precious variables to config.status.
2584 if test "$ac_new_set" = set; then
2586 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2587 *) ac_arg=$ac_var=$ac_new_val ;;
2589 case " $ac_configure_args " in
2590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2591 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2595 if $ac_cache_corrupted; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2599 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2600 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 ac_config_headers="$ac_config_headers config.h"
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_CC+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 if test -n "$CC"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660 $as_echo "$CC" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2668 if test -z "$ac_cv_prog_CC"; then
2670 # Extract the first word of "gcc", so it can be a program name with args.
2671 set dummy gcc; 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 ${ac_cv_prog_ac_ct_CC+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_ac_ct_CC="gcc"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2700 $as_echo "$ac_ct_CC" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2706 if test "x$ac_ct_CC" = x; then
2709 case $cross_compiling:$ac_tool_warned in
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713 ac_tool_warned=yes ;;
2721 if test -z "$CC"; then
2722 if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2724 set dummy ${ac_tool_prefix}cc; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if ${ac_cv_prog_CC+:} false; then :
2728 $as_echo_n "(cached) " >&6
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_CC="${ac_tool_prefix}cc"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 if test -n "$CC"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2753 $as_echo "$CC" >&6; }
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2762 if test -z "$CC"; then
2763 # Extract the first word of "cc", so it can be a program name with args.
2764 set dummy cc; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_CC+:} false; then :
2768 $as_echo_n "(cached) " >&6
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2782 ac_prog_rejected=yes
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 if test $ac_prog_rejected = yes; then
2794 # We found a bogon in the path, so make sure we never use it.
2795 set dummy $ac_cv_prog_CC
2797 if test $# != 0; then
2798 # We chose a different compiler from the bogus one.
2799 # However, it has the same basename, so the bogon will be chosen
2800 # first if we set CC to just the basename; use the full file name.
2802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2808 if test -n "$CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2818 if test -z "$CC"; then
2819 if test -n "$ac_tool_prefix"; then
2820 for ac_prog in cl.exe
2822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_prog_CC+:} false; then :
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2859 test -n "$CC" && break
2862 if test -z "$CC"; then
2864 for ac_prog in cl.exe
2866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2867 set dummy $ac_prog; ac_word=$2
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2871 $as_echo_n "(cached) " >&6
2873 if test -n "$ac_ct_CC"; then
2874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_ac_ct_CC="$ac_prog"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2894 if test -n "$ac_ct_CC"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2896 $as_echo "$ac_ct_CC" >&6; }
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2903 test -n "$ac_ct_CC" && break
2906 if test "x$ac_ct_CC" = x; then
2909 case $cross_compiling:$ac_tool_warned in
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913 ac_tool_warned=yes ;;
2922 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924 as_fn_error $? "no acceptable C compiler found in \$PATH
2925 See \`config.log' for more details" "$LINENO" 5; }
2927 # Provide some information about the compiler.
2928 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2931 for ac_option in --version -v -V -qversion; do
2932 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
2941 if test -s conftest.err; then
2943 ... rest of stderr output deleted ...
2944 10q' conftest.err >conftest.er1
2945 cat conftest.er1 >&5
2947 rm -f conftest.er1 conftest.err
2948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2949 test $ac_status = 0; }
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953 /* end confdefs.h. */
2963 ac_clean_files_save=$ac_clean_files
2964 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2965 # Try to create an executable without -o first, disregard a.out.
2966 # It will help us diagnose broken compilers, and finding out an intuition
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2969 $as_echo_n "checking whether the C compiler works... " >&6; }
2970 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2972 # The possible output files:
2973 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2976 for ac_file in $ac_files
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2980 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2985 if { { ac_try="$ac_link_default"
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 $as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_link_default") 2>&5
2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }; then :
2996 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2997 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2998 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2999 # so that the user can short-circuit this test for compilers unknown to
3001 for ac_file in $ac_files ''
3003 test -f "$ac_file" || continue
3005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3008 # We found the default executable, but exeext='' is most
3012 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3014 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3016 # We set ac_cv_exeext here because the later test for it is not
3017 # safe: cross compilers may not add the suffix if given an `-o'
3018 # argument, so we may need to know it at that point already.
3019 # Even if this section looks crufty: it has the advantage of
3026 test "$ac_cv_exeext" = no && ac_cv_exeext=
3031 if test -z "$ac_file"; then :
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 $as_echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039 as_fn_error 77 "C compiler cannot create executables
3040 See \`config.log' for more details" "$LINENO" 5; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3043 $as_echo "yes" >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3046 $as_echo_n "checking for C compiler default output file name... " >&6; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3048 $as_echo "$ac_file" >&6; }
3049 ac_exeext=$ac_cv_exeext
3051 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3052 ac_clean_files=$ac_clean_files_save
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3054 $as_echo_n "checking for suffix of executables... " >&6; }
3055 if { { ac_try="$ac_link"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_link") 2>&5
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }; then :
3066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3067 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3068 # work properly (i.e., refer to `conftest.exe'), while it won't with
3070 for ac_file in conftest.exe conftest conftest.*; do
3071 test -f "$ac_file" || continue
3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3083 See \`config.log' for more details" "$LINENO" 5; }
3085 rm -f conftest conftest$ac_cv_exeext
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3087 $as_echo "$ac_cv_exeext" >&6; }
3089 rm -f conftest.$ac_ext
3090 EXEEXT=$ac_cv_exeext
3092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3098 FILE *f = fopen ("conftest.out", "w");
3099 return ferror (f) || fclose (f) != 0;
3105 ac_clean_files="$ac_clean_files conftest.out"
3106 # Check that the compiler produces executables we can run. If not, either
3107 # the compiler is broken, or we cross compile.
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3109 $as_echo_n "checking whether we are cross compiling... " >&6; }
3110 if test "$cross_compiling" != yes; then
3111 { { ac_try="$ac_link"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_link") 2>&5
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }
3122 if { ac_try='./conftest$ac_cv_exeext'
3123 { { case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128 $as_echo "$ac_try_echo"; } >&5
3129 (eval "$ac_try") 2>&5
3131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132 test $ac_status = 0; }; }; then
3135 if test "$cross_compiling" = maybe; then
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 run C compiled programs.
3141 If you meant to cross compile, use \`--host'.
3142 See \`config.log' for more details" "$LINENO" 5; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3147 $as_echo "$cross_compiling" >&6; }
3149 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3150 ac_clean_files=$ac_clean_files_save
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3152 $as_echo_n "checking for suffix of object files... " >&6; }
3153 if ${ac_cv_objext+:} false; then :
3154 $as_echo_n "(cached) " >&6
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3167 rm -f conftest.o conftest.obj
3168 if { { ac_try="$ac_compile"
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174 $as_echo "$ac_try_echo"; } >&5
3175 (eval "$ac_compile") 2>&5
3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178 test $ac_status = 0; }; then :
3179 for ac_file in conftest.o conftest.obj conftest.*; do
3180 test -f "$ac_file" || continue;
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3183 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3188 $as_echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error $? "cannot compute suffix of object files: cannot compile
3194 See \`config.log' for more details" "$LINENO" 5; }
3196 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3199 $as_echo "$ac_cv_objext" >&6; }
3200 OBJEXT=$ac_cv_objext
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3203 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3204 if ${ac_cv_c_compiler_gnu+:} false; then :
3205 $as_echo_n "(cached) " >&6
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3221 if ac_fn_c_try_compile "$LINENO"; then :
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3231 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3232 if test $ac_compiler_gnu = yes; then
3237 ac_test_CFLAGS=${CFLAGS+set}
3238 ac_save_CFLAGS=$CFLAGS
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3240 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3241 if ${ac_cv_prog_cc_g+:} false; then :
3242 $as_echo_n "(cached) " >&6
3244 ac_save_c_werror_flag=$ac_c_werror_flag
3245 ac_c_werror_flag=yes
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3259 if ac_fn_c_try_compile "$LINENO"; then :
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3274 if ac_fn_c_try_compile "$LINENO"; then :
3277 ac_c_werror_flag=$ac_save_c_werror_flag
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3290 if ac_fn_c_try_compile "$LINENO"; then :
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3301 $as_echo "$ac_cv_prog_cc_g" >&6; }
3302 if test "$ac_test_CFLAGS" = set; then
3303 CFLAGS=$ac_save_CFLAGS
3304 elif test $ac_cv_prog_cc_g = yes; then
3305 if test "$GCC" = yes; then
3311 if test "$GCC" = yes; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3318 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3319 if ${ac_cv_prog_cc_c89+:} false; then :
3320 $as_echo_n "(cached) " >&6
3322 ac_cv_prog_cc_c89=no
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3330 struct buf { int x; };
3331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3332 static char *e (p, i)
3338 static char *f (char * (*g) (char **, int), char **p, ...)
3343 s = g (p, va_arg (v,int));
3348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3349 function prototypes and stuff, but not '\xHH' hex character constants.
3350 These don't provoke an error unfortunately, instead are silently treated
3351 as 'x'. The following induces an error, until -std is added to get
3352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3353 array size at least. It's necessary to write '\x00'==0 to get something
3354 that's true only with -std. */
3355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3358 inside strings and character constants. */
3360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3362 int test (int i, double x);
3363 struct s1 {int (*f) (int a);};
3364 struct s2 {int (*f) (double a);};
3365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3379 CC="$ac_save_CC $ac_arg"
3380 if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_cv_prog_cc_c89=$ac_arg
3383 rm -f core conftest.err conftest.$ac_objext
3384 test "x$ac_cv_prog_cc_c89" != "xno" && break
3386 rm -f conftest.$ac_ext
3391 case "x$ac_cv_prog_cc_c89" in
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3394 $as_echo "none needed" >&6; } ;;
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3397 $as_echo "unsupported" >&6; } ;;
3399 CC="$CC $ac_cv_prog_cc_c89"
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3401 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3403 if test "x$ac_cv_prog_cc_c89" != xno; then :
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3415 if test -f "$ac_dir/install-sh"; then
3417 ac_install_sh="$ac_aux_dir/install-sh -c"
3419 elif test -f "$ac_dir/install.sh"; then
3421 ac_install_sh="$ac_aux_dir/install.sh -c"
3423 elif test -f "$ac_dir/shtool"; then
3425 ac_install_sh="$ac_aux_dir/shtool install -c"
3429 if test -z "$ac_aux_dir"; then
3430 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3433 # These three variables are undocumented and unsupported,
3434 # and are intended to be withdrawn in a future Autoconf release.
3435 # They can cause serious problems if a builder's source tree is in a directory
3436 # whose full name contains unusual characters.
3437 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3438 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3439 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3442 # Make sure we can run config.sub.
3443 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3444 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3447 $as_echo_n "checking build system type... " >&6; }
3448 if ${ac_cv_build+:} false; then :
3449 $as_echo_n "(cached) " >&6
3451 ac_build_alias=$build_alias
3452 test "x$ac_build_alias" = x &&
3453 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3454 test "x$ac_build_alias" = x &&
3455 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3456 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3461 $as_echo "$ac_cv_build" >&6; }
3462 case $ac_cv_build in
3464 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3467 ac_save_IFS=$IFS; IFS='-'
3473 # Remember, the first character of IFS is used to create $*,
3474 # except with old shells:
3477 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3481 $as_echo_n "checking host system type... " >&6; }
3482 if ${ac_cv_host+:} false; then :
3483 $as_echo_n "(cached) " >&6
3485 if test "x$host_alias" = x; then
3486 ac_cv_host=$ac_cv_build
3488 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3489 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3494 $as_echo "$ac_cv_host" >&6; }
3497 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3500 ac_save_IFS=$IFS; IFS='-'
3506 # Remember, the first character of IFS is used to create $*,
3507 # except with old shells:
3510 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3520 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3521 # On Suns, sometimes $CPP names a directory.
3522 if test -n "$CPP" && test -d "$CPP"; then
3525 if test -z "$CPP"; then
3526 if ${ac_cv_prog_CPP+:} false; then :
3527 $as_echo_n "(cached) " >&6
3529 # Double quotes because CPP needs to be expanded
3530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3533 for ac_c_preproc_warn_flag in '' yes
3535 # Use a header file that comes with gcc, so configuring glibc
3536 # with a fresh cross-compiler works.
3537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3538 # <limits.h> exists even on freestanding compilers.
3539 # On the NeXT, cc -E runs the code through the compiler's parser,
3540 # not just through cpp. "Syntax error" is here to catch this case.
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3544 # include <limits.h>
3546 # include <assert.h>
3550 if ac_fn_c_try_cpp "$LINENO"; then :
3553 # Broken: fails on valid input.
3556 rm -f conftest.err conftest.i conftest.$ac_ext
3558 # OK, works on sane cases. Now check whether nonexistent headers
3559 # can be detected and how.
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562 #include <ac_nonexistent.h>
3564 if ac_fn_c_try_cpp "$LINENO"; then :
3565 # Broken: success on invalid input.
3568 # Passes both tests.
3572 rm -f conftest.err conftest.i conftest.$ac_ext
3575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3576 rm -f conftest.i conftest.err conftest.$ac_ext
3577 if $ac_preproc_ok; then :
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3590 $as_echo "$CPP" >&6; }
3592 for ac_c_preproc_warn_flag in '' yes
3594 # Use a header file that comes with gcc, so configuring glibc
3595 # with a fresh cross-compiler works.
3596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3597 # <limits.h> exists even on freestanding compilers.
3598 # On the NeXT, cc -E runs the code through the compiler's parser,
3599 # not just through cpp. "Syntax error" is here to catch this case.
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3603 # include <limits.h>
3605 # include <assert.h>
3609 if ac_fn_c_try_cpp "$LINENO"; then :
3612 # Broken: fails on valid input.
3615 rm -f conftest.err conftest.i conftest.$ac_ext
3617 # OK, works on sane cases. Now check whether nonexistent headers
3618 # can be detected and how.
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621 #include <ac_nonexistent.h>
3623 if ac_fn_c_try_cpp "$LINENO"; then :
3624 # Broken: success on invalid input.
3627 # Passes both tests.
3631 rm -f conftest.err conftest.i conftest.$ac_ext
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.i conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then :
3639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3642 See \`config.log' for more details" "$LINENO" 5; }
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3653 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3654 if ${ac_cv_path_GREP+:} false; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -z "$GREP"; then
3658 ac_path_GREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in grep ggrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 as_fn_executable_p "$ac_path_GREP" || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
3670 # Check for GNU $ac_path_GREP
3671 case `"$ac_path_GREP" --version 2>&1` in
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3676 $as_echo_n 0123456789 >"conftest.in"
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 $as_echo 'GREP' >> "conftest.nl"
3683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 as_fn_arith $ac_count + 1 && ac_count=$as_val
3686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3697 $ac_path_GREP_found && break 3
3702 if test -z "$ac_cv_path_GREP"; then
3703 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3706 ac_cv_path_GREP=$GREP
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3711 $as_echo "$ac_cv_path_GREP" >&6; }
3712 GREP="$ac_cv_path_GREP"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3716 $as_echo_n "checking for egrep... " >&6; }
3717 if ${ac_cv_path_EGREP+:} false; then :
3718 $as_echo_n "(cached) " >&6
3720 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3721 then ac_cv_path_EGREP="$GREP -E"
3723 if test -z "$EGREP"; then
3724 ac_path_EGREP_found=false
3725 # Loop through the user's path and test for each of PROGNAME-LIST
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3730 test -z "$as_dir" && as_dir=.
3731 for ac_prog in egrep; do
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3734 as_fn_executable_p "$ac_path_EGREP" || continue
3735 # Check for GNU ac_path_EGREP and select it if it is found.
3736 # Check for GNU $ac_path_EGREP
3737 case `"$ac_path_EGREP" --version 2>&1` in
3739 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3742 $as_echo_n 0123456789 >"conftest.in"
3745 cat "conftest.in" "conftest.in" >"conftest.tmp"
3746 mv "conftest.tmp" "conftest.in"
3747 cp "conftest.in" "conftest.nl"
3748 $as_echo 'EGREP' >> "conftest.nl"
3749 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3751 as_fn_arith $ac_count + 1 && ac_count=$as_val
3752 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3753 # Best one so far, save it but keep looking for a better one
3754 ac_cv_path_EGREP="$ac_path_EGREP"
3755 ac_path_EGREP_max=$ac_count
3757 # 10*(2^10) chars as input seems more than enough
3758 test $ac_count -gt 10 && break
3760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3763 $ac_path_EGREP_found && break 3
3768 if test -z "$ac_cv_path_EGREP"; then
3769 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3772 ac_cv_path_EGREP=$EGREP
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3778 $as_echo "$ac_cv_path_EGREP" >&6; }
3779 EGREP="$ac_cv_path_EGREP"
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3783 $as_echo_n "checking for ANSI C header files... " >&6; }
3784 if ${ac_cv_header_stdc+:} false; then :
3785 $as_echo_n "(cached) " >&6
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803 ac_cv_header_stdc=yes
3805 ac_cv_header_stdc=no
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 if test $ac_cv_header_stdc = yes; then
3810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3817 $EGREP "memchr" >/dev/null 2>&1; then :
3820 ac_cv_header_stdc=no
3826 if test $ac_cv_header_stdc = yes; then
3827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834 $EGREP "free" >/dev/null 2>&1; then :
3837 ac_cv_header_stdc=no
3843 if test $ac_cv_header_stdc = yes; then
3844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3845 if test "$cross_compiling" = yes; then :
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3852 #if ((' ' & 0x0FF) == 0x020)
3853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3856 # define ISLOWER(c) \
3857 (('a' <= (c) && (c) <= 'i') \
3858 || ('j' <= (c) && (c) <= 'r') \
3859 || ('s' <= (c) && (c) <= 'z'))
3860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3868 for (i = 0; i < 256; i++)
3869 if (XOR (islower (i), ISLOWER (i))
3870 || toupper (i) != TOUPPER (i))
3875 if ac_fn_c_try_run "$LINENO"; then :
3878 ac_cv_header_stdc=no
3880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3881 conftest.$ac_objext conftest.beam conftest.$ac_ext
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3887 $as_echo "$ac_cv_header_stdc" >&6; }
3888 if test $ac_cv_header_stdc = yes; then
3890 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3894 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3895 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3896 inttypes.h stdint.h unistd.h
3898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3899 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3902 cat >>confdefs.h <<_ACEOF
3903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3912 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3913 if ${ac_cv_c_bigendian+:} false; then :
3914 $as_echo_n "(cached) " >&6
3916 ac_cv_c_bigendian=unknown
3917 # See if we're dealing with a universal compiler.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #ifndef __APPLE_CC__
3921 not a universal capable compiler
3926 if ac_fn_c_try_compile "$LINENO"; then :
3928 # Check for potential -arch flags. It is not universal unless
3929 # there are at least two -arch flags with different values.
3932 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3933 if test -n "$ac_prev"; then
3935 i?86 | x86_64 | ppc | ppc64)
3936 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3939 ac_cv_c_bigendian=universal
3945 elif test "x$ac_word" = "x-arch"; then
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 if test $ac_cv_c_bigendian = unknown; then
3952 # See if sys/param.h defines the BYTE_ORDER macro.
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 #include <sys/types.h>
3956 #include <sys/param.h>
3961 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3962 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972 # It does; now see whether it defined to BIG_ENDIAN or not.
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975 #include <sys/types.h>
3976 #include <sys/param.h>
3981 #if BYTE_ORDER != BIG_ENDIAN
3989 if ac_fn_c_try_compile "$LINENO"; then :
3990 ac_cv_c_bigendian=yes
3992 ac_cv_c_bigendian=no
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 if test $ac_cv_c_bigendian = unknown; then
3999 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4007 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4015 if ac_fn_c_try_compile "$LINENO"; then :
4016 # It does; now see whether it defined to _BIG_ENDIAN or not.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_cv_c_bigendian=yes
4035 ac_cv_c_bigendian=no
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 if test $ac_cv_c_bigendian = unknown; then
4042 # Compile a test program.
4043 if test "$cross_compiling" = yes; then :
4044 # Try to guess by grepping values from an object file.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 short int ascii_mm[] =
4048 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4049 short int ascii_ii[] =
4050 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4051 int use_ascii (int i) {
4052 return ascii_mm[i] + ascii_ii[i];
4054 short int ebcdic_ii[] =
4055 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4056 short int ebcdic_mm[] =
4057 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4058 int use_ebcdic (int i) {
4059 return ebcdic_mm[i] + ebcdic_ii[i];
4066 return use_ascii (foo) == use_ebcdic (foo);
4071 if ac_fn_c_try_compile "$LINENO"; then :
4072 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4073 ac_cv_c_bigendian=yes
4075 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4076 if test "$ac_cv_c_bigendian" = unknown; then
4077 ac_cv_c_bigendian=no
4079 # finding both strings is unlikely to happen, but who knows?
4080 ac_cv_c_bigendian=unknown
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 $ac_includes_default
4093 /* Are we little or big endian? From Harbison&Steele. */
4097 char c[sizeof (long int)];
4100 return u.c[sizeof (long int) - 1] == 1;
4106 if ac_fn_c_try_run "$LINENO"; then :
4107 ac_cv_c_bigendian=no
4109 ac_cv_c_bigendian=yes
4111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4112 conftest.$ac_objext conftest.beam conftest.$ac_ext
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4118 $as_echo "$ac_cv_c_bigendian" >&6; }
4119 case $ac_cv_c_bigendian in #(
4121 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4127 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4131 as_fn_error $? "unknown endianness
4132 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4136 # Checks for programs.
4137 for ac_prog in gawk mawk nawk awk
4139 # Extract the first word of "$ac_prog", so it can be a program name with args.
4140 set dummy $ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_AWK+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$AWK"; then
4147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_AWK="$ac_prog"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test -n "$AWK"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4169 $as_echo "$AWK" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4176 test -n "$AWK" && break
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4185 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4186 # On Suns, sometimes $CPP names a directory.
4187 if test -n "$CPP" && test -d "$CPP"; then
4190 if test -z "$CPP"; then
4191 if ${ac_cv_prog_CPP+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 # Double quotes because CPP needs to be expanded
4195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4198 for ac_c_preproc_warn_flag in '' yes
4200 # Use a header file that comes with gcc, so configuring glibc
4201 # with a fresh cross-compiler works.
4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 # <limits.h> exists even on freestanding compilers.
4204 # On the NeXT, cc -E runs the code through the compiler's parser,
4205 # not just through cpp. "Syntax error" is here to catch this case.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4209 # include <limits.h>
4211 # include <assert.h>
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4218 # Broken: fails on valid input.
4221 rm -f conftest.err conftest.i conftest.$ac_ext
4223 # OK, works on sane cases. Now check whether nonexistent headers
4224 # can be detected and how.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4230 # Broken: success on invalid input.
4233 # Passes both tests.
4237 rm -f conftest.err conftest.i conftest.$ac_ext
4240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241 rm -f conftest.i conftest.err conftest.$ac_ext
4242 if $ac_preproc_ok; then :
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4255 $as_echo "$CPP" >&6; }
4257 for ac_c_preproc_warn_flag in '' yes
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
4263 # On the NeXT, cc -E runs the code through the compiler's parser,
4264 # not just through cpp. "Syntax error" is here to catch this case.
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4268 # include <limits.h>
4270 # include <assert.h>
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4277 # Broken: fails on valid input.
4280 rm -f conftest.err conftest.i conftest.$ac_ext
4282 # OK, works on sane cases. Now check whether nonexistent headers
4283 # can be detected and how.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <ac_nonexistent.h>
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4289 # Broken: success on invalid input.
4292 # Passes both tests.
4296 rm -f conftest.err conftest.i conftest.$ac_ext
4299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300 rm -f conftest.i conftest.err conftest.$ac_ext
4301 if $ac_preproc_ok; then :
4304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4306 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4307 See \`config.log' for more details" "$LINENO" 5; }
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 if test -n "$ac_tool_prefix"; then
4317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_prog_RANLIB+:} false; then :
4322 $as_echo_n "(cached) " >&6
4324 if test -n "$RANLIB"; then
4325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 RANLIB=$ac_cv_prog_RANLIB
4345 if test -n "$RANLIB"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4347 $as_echo "$RANLIB" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4355 if test -z "$ac_cv_prog_RANLIB"; then
4356 ac_ct_RANLIB=$RANLIB
4357 # Extract the first word of "ranlib", so it can be a program name with args.
4358 set dummy ranlib; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4362 $as_echo_n "(cached) " >&6
4364 if test -n "$ac_ct_RANLIB"; then
4365 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_ac_ct_RANLIB="ranlib"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4385 if test -n "$ac_ct_RANLIB"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4387 $as_echo "$ac_ct_RANLIB" >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4393 if test "x$ac_ct_RANLIB" = x; then
4396 case $cross_compiling:$ac_tool_warned in
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned=yes ;;
4402 RANLIB=$ac_ct_RANLIB
4405 RANLIB="$ac_cv_prog_RANLIB"
4408 # Find a good install program. We prefer a C program (faster),
4409 # so one script is as good as another. But avoid the broken or
4410 # incompatible versions:
4411 # SysV /etc/install, /usr/sbin/install
4412 # SunOS /usr/etc/install
4413 # IRIX /sbin/install
4415 # AmigaOS /C/install, which installs bootblocks on floppy discs
4416 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4417 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4418 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4419 # OS/2's system install, which has a completely different semantic
4420 # ./install, which can be erroneously created by make from ./install.sh.
4421 # Reject install programs that cannot install multiple files.
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4423 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4424 if test -z "$INSTALL"; then
4425 if ${ac_cv_path_install+:} false; then :
4426 $as_echo_n "(cached) " >&6
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 # Account for people who put trailing slashes in PATH elements.
4434 case $as_dir/ in #((
4435 ./ | .// | /[cC]/* | \
4436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4437 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4440 # OSF1 and SCO ODT 3.0 have their own names for install.
4441 # Don't use installbsd from OSF since it installs stuff as root
4443 for ac_prog in ginstall scoinst install; do
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4446 if test $ac_prog = install &&
4447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4448 # AIX install. It has an incompatible calling convention.
4450 elif test $ac_prog = install &&
4451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452 # program-specific install script used by HP pwplus--don't use.
4455 rm -rf conftest.one conftest.two conftest.dir
4456 echo one > conftest.one
4457 echo two > conftest.two
4459 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4460 test -s conftest.one && test -s conftest.two &&
4461 test -s conftest.dir/conftest.one &&
4462 test -s conftest.dir/conftest.two
4464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4477 rm -rf conftest.one conftest.two conftest.dir
4480 if test "${ac_cv_path_install+set}" = set; then
4481 INSTALL=$ac_cv_path_install
4483 # As a last resort, use the slow shell script. Don't cache a
4484 # value for INSTALL within a source directory, because that will
4485 # break other packages using the cache if that directory is
4486 # removed, or if the value is a relative name.
4487 INSTALL=$ac_install_sh
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4491 $as_echo "$INSTALL" >&6; }
4493 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4494 # It thinks the first close brace ends the variable substitution.
4495 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4497 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4499 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4502 $as_echo_n "checking for egrep... " >&6; }
4503 if ${ac_cv_path_EGREP+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507 then ac_cv_path_EGREP="$GREP -E"
4509 if test -z "$EGREP"; then
4510 ac_path_EGREP_found=false
4511 # Loop through the user's path and test for each of PROGNAME-LIST
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4516 test -z "$as_dir" && as_dir=.
4517 for ac_prog in egrep; do
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4520 as_fn_executable_p "$ac_path_EGREP" || continue
4521 # Check for GNU ac_path_EGREP and select it if it is found.
4522 # Check for GNU $ac_path_EGREP
4523 case `"$ac_path_EGREP" --version 2>&1` in
4525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4528 $as_echo_n 0123456789 >"conftest.in"
4531 cat "conftest.in" "conftest.in" >"conftest.tmp"
4532 mv "conftest.tmp" "conftest.in"
4533 cp "conftest.in" "conftest.nl"
4534 $as_echo 'EGREP' >> "conftest.nl"
4535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537 as_fn_arith $ac_count + 1 && ac_count=$as_val
4538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4539 # Best one so far, save it but keep looking for a better one
4540 ac_cv_path_EGREP="$ac_path_EGREP"
4541 ac_path_EGREP_max=$ac_count
4543 # 10*(2^10) chars as input seems more than enough
4544 test $ac_count -gt 10 && break
4546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4549 $ac_path_EGREP_found && break 3
4554 if test -z "$ac_cv_path_EGREP"; then
4555 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4558 ac_cv_path_EGREP=$EGREP
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4564 $as_echo "$ac_cv_path_EGREP" >&6; }
4565 EGREP="$ac_cv_path_EGREP"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4569 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4570 if test -z "$MKDIR_P"; then
4571 if ${ac_cv_path_mkdir+:} false; then :
4572 $as_echo_n "(cached) " >&6
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4578 test -z "$as_dir" && as_dir=.
4579 for ac_prog in mkdir gmkdir; do
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4582 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4583 'mkdir (GNU coreutils) '* | \
4584 'mkdir (coreutils) '* | \
4585 'mkdir (fileutils) '4.1*)
4586 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4596 test -d ./--version && rmdir ./--version
4597 if test "${ac_cv_path_mkdir+set}" = set; then
4598 MKDIR_P="$ac_cv_path_mkdir -p"
4600 # As a last resort, use the slow shell script. Don't cache a
4601 # value for MKDIR_P within a source directory, because that will
4602 # break other packages using the cache if that directory is
4603 # removed, or if the value is a relative name.
4604 MKDIR_P="$ac_install_sh -d"
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4608 $as_echo "$MKDIR_P" >&6; }
4610 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if ${ac_cv_prog_AR+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 if test -n "$AR"; then
4621 ac_cv_prog_AR="$AR" # Let the user override the test.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 if test -n "$AR"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4643 $as_echo "$AR" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4650 test -n "$AR" && break
4653 if test -z "$AR"; then
4657 # Extract the first word of "$ac_prog", so it can be a program name with args.
4658 set dummy $ac_prog; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 if test -n "$ac_ct_AR"; then
4665 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_prog_ac_ct_AR="$ac_prog"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4685 if test -n "$ac_ct_AR"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4687 $as_echo "$ac_ct_AR" >&6; }
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4694 test -n "$ac_ct_AR" && break
4697 if test "x$ac_ct_AR" = x; then
4700 case $cross_compiling:$ac_tool_warned in
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704 ac_tool_warned=yes ;;
4710 # Extract the first word of "cat", so it can be a program name with args.
4711 set dummy cat; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_path_CAT+:} false; then :
4715 $as_echo_n "(cached) " >&6
4719 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 if test -n "$CAT"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4743 $as_echo "$CAT" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4750 # Extract the first word of "kill", so it can be a program name with args.
4751 set dummy kill; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_path_KILL+:} false; then :
4755 $as_echo_n "(cached) " >&6
4759 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 KILL=$ac_cv_path_KILL
4781 if test -n "$KILL"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4783 $as_echo "$KILL" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4790 # Extract the first word of "sed", so it can be a program name with args.
4791 set dummy sed; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if ${ac_cv_path_SED+:} false; then :
4795 $as_echo_n "(cached) " >&6
4799 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 if test -n "$SED"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4823 $as_echo "$SED" >&6; }
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4830 # Extract the first word of "ent", so it can be a program name with args.
4831 set dummy ent; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if ${ac_cv_path_ENT+:} false; then :
4835 $as_echo_n "(cached) " >&6
4839 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 if test -n "$ENT"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4863 $as_echo "$ENT" >&6; }
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4871 # Extract the first word of "bash", so it can be a program name with args.
4872 set dummy bash; ac_word=$2
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4876 $as_echo_n "(cached) " >&6
4878 case $TEST_MINUS_S_SH in
4880 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4902 if test -n "$TEST_MINUS_S_SH"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4904 $as_echo "$TEST_MINUS_S_SH" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4911 # Extract the first word of "ksh", so it can be a program name with args.
4912 set dummy ksh; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4916 $as_echo_n "(cached) " >&6
4918 case $TEST_MINUS_S_SH in
4920 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4942 if test -n "$TEST_MINUS_S_SH"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4944 $as_echo "$TEST_MINUS_S_SH" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4951 # Extract the first word of "sh", so it can be a program name with args.
4952 set dummy sh; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4956 $as_echo_n "(cached) " >&6
4958 case $TEST_MINUS_S_SH in
4960 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4982 if test -n "$TEST_MINUS_S_SH"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4984 $as_echo "$TEST_MINUS_S_SH" >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4991 # Extract the first word of "sh", so it can be a program name with args.
4992 set dummy sh; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if ${ac_cv_path_SH+:} false; then :
4996 $as_echo_n "(cached) " >&6
5000 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 if test -n "$SH"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
5024 $as_echo "$SH" >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5031 # Extract the first word of "groff", so it can be a program name with args.
5032 set dummy groff; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_path_GROFF+:} false; then :
5036 $as_echo_n "(cached) " >&6
5040 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 GROFF=$ac_cv_path_GROFF
5062 if test -n "$GROFF"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
5064 $as_echo "$GROFF" >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5071 # Extract the first word of "nroff", so it can be a program name with args.
5072 set dummy nroff; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_path_NROFF+:} false; then :
5076 $as_echo_n "(cached) " >&6
5080 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
5091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 NROFF=$ac_cv_path_NROFF
5102 if test -n "$NROFF"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5104 $as_echo "$NROFF" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 # Extract the first word of "mandoc", so it can be a program name with args.
5112 set dummy mandoc; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_path_MANDOC+:} false; then :
5116 $as_echo_n "(cached) " >&6
5120 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 MANDOC=$ac_cv_path_MANDOC
5142 if test -n "$MANDOC"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5144 $as_echo "$MANDOC" >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5154 if test "x$MANDOC" != "x" ; then
5156 elif test "x$NROFF" != "x" ; then
5157 MANFMT="$NROFF -mandoc"
5158 elif test "x$GROFF" != "x" ; then
5159 MANFMT="$GROFF -mandoc -Tascii"
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5162 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5167 # Extract the first word of "groupadd", so it can be a program name with args.
5168 set dummy groupadd; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5172 $as_echo_n "(cached) " >&6
5174 case $PATH_GROUPADD_PROG in
5176 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5198 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5199 if test -n "$PATH_GROUPADD_PROG"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5201 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5208 # Extract the first word of "useradd", so it can be a program name with args.
5209 set dummy useradd; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 case $PATH_USERADD_PROG in
5217 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5239 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5240 if test -n "$PATH_USERADD_PROG"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5242 $as_echo "$PATH_USERADD_PROG" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5249 # Extract the first word of "pkgmk", so it can be a program name with args.
5250 set dummy pkgmk; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5254 $as_echo_n "(cached) " >&6
5256 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5257 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5277 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5278 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5280 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5287 if test -x /sbin/sh; then
5288 STARTUP_SCRIPT_SHELL=/sbin/sh
5291 STARTUP_SCRIPT_SHELL=/bin/sh
5296 # Check whether --enable-largefile was given.
5297 if test "${enable_largefile+set}" = set; then :
5298 enableval=$enable_largefile;
5301 if test "$enable_largefile" != no; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5304 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5305 if ${ac_cv_sys_largefile_CC+:} false; then :
5306 $as_echo_n "(cached) " >&6
5308 ac_cv_sys_largefile_CC=no
5309 if test "$GCC" != yes; then
5312 # IRIX 6.2 and later do not support large files by default,
5313 # so use the C compiler's -n32 option if that helps.
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #include <sys/types.h>
5317 /* Check that off_t can represent 2**63 - 1 correctly.
5318 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5319 since some C++ compilers masquerading as C compilers
5320 incorrectly reject 9223372036854775807. */
5321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5323 && LARGE_OFF_T % 2147483647 == 1)
5333 if ac_fn_c_try_compile "$LINENO"; then :
5336 rm -f core conftest.err conftest.$ac_objext
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 ac_cv_sys_largefile_CC=' -n32'; break
5341 rm -f core conftest.err conftest.$ac_objext
5345 rm -f conftest.$ac_ext
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5349 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5350 if test "$ac_cv_sys_largefile_CC" != no; then
5351 CC=$CC$ac_cv_sys_largefile_CC
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5355 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5356 if ${ac_cv_sys_file_offset_bits+:} false; then :
5357 $as_echo_n "(cached) " >&6
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #include <sys/types.h>
5363 /* Check that off_t can represent 2**63 - 1 correctly.
5364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5365 since some C++ compilers masquerading as C compilers
5366 incorrectly reject 9223372036854775807. */
5367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5369 && LARGE_OFF_T % 2147483647 == 1)
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_sys_file_offset_bits=no; break
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #define _FILE_OFFSET_BITS 64
5386 #include <sys/types.h>
5387 /* Check that off_t can represent 2**63 - 1 correctly.
5388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5389 since some C++ compilers masquerading as C compilers
5390 incorrectly reject 9223372036854775807. */
5391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5393 && LARGE_OFF_T % 2147483647 == 1)
5403 if ac_fn_c_try_compile "$LINENO"; then :
5404 ac_cv_sys_file_offset_bits=64; break
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_cv_sys_file_offset_bits=unknown
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5412 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5413 case $ac_cv_sys_file_offset_bits in #(
5416 cat >>confdefs.h <<_ACEOF
5417 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5422 if test $ac_cv_sys_file_offset_bits = unknown; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5424 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5425 if ${ac_cv_sys_large_files+:} false; then :
5426 $as_echo_n "(cached) " >&6
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 /* Check that off_t can represent 2**63 - 1 correctly.
5433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5434 since some C++ compilers masquerading as C compilers
5435 incorrectly reject 9223372036854775807. */
5436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5438 && LARGE_OFF_T % 2147483647 == 1)
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449 ac_cv_sys_large_files=no; break
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 #define _LARGE_FILES 1
5455 #include <sys/types.h>
5456 /* Check that off_t can represent 2**63 - 1 correctly.
5457 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5458 since some C++ compilers masquerading as C compilers
5459 incorrectly reject 9223372036854775807. */
5460 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5462 && LARGE_OFF_T % 2147483647 == 1)
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473 ac_cv_sys_large_files=1; break
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 ac_cv_sys_large_files=unknown
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5481 $as_echo "$ac_cv_sys_large_files" >&6; }
5482 case $ac_cv_sys_large_files in #(
5485 cat >>confdefs.h <<_ACEOF
5486 #define _LARGE_FILES $ac_cv_sys_large_files
5497 if test -z "$AR" ; then
5498 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5501 # Extract the first word of "passwd", so it can be a program name with args.
5502 set dummy passwd; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5506 $as_echo_n "(cached) " >&6
5508 case $PATH_PASSWD_PROG in
5510 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5532 if test -n "$PATH_PASSWD_PROG"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5534 $as_echo "$PATH_PASSWD_PROG" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5541 if test ! -z "$PATH_PASSWD_PROG" ; then
5543 cat >>confdefs.h <<_ACEOF
5544 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5549 if test -z "$LD" ; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5555 $as_echo_n "checking for inline... " >&6; }
5556 if ${ac_cv_c_inline+:} false; then :
5557 $as_echo_n "(cached) " >&6
5560 for ac_kw in inline __inline__ __inline; do
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5565 static $ac_kw foo_t static_foo () {return 0; }
5566 $ac_kw foo_t foo () {return 0; }
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 ac_cv_c_inline=$ac_kw
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 test "$ac_cv_c_inline" != no && break
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5579 $as_echo "$ac_cv_c_inline" >&6; }
5581 case $ac_cv_c_inline in
5584 case $ac_cv_c_inline in
5586 *) ac_val=$ac_cv_c_inline;;
5588 cat >>confdefs.h <<_ACEOF
5590 #define inline $ac_val
5597 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5599 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5603 ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5604 #include <sys/types.h>
5605 #include <sys/param.h>
5606 #include <dev/systrace.h>
5609 if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5610 have_systr_policy_kill=1
5613 ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5614 #include <sys/types.h>
5615 #include <sys/resource.h>
5618 if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5620 $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5624 ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5625 #include <sys/types.h>
5626 #include <linux/prctl.h>
5629 if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5630 have_linux_no_new_privs=1
5636 # Check whether --with-openssl was given.
5637 if test "${with_openssl+set}" = set; then :
5638 withval=$with_openssl; if test "x$withval" = "xno" ; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5
5646 $as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; }
5647 if test "x$openssl" = "xyes" ; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 $as_echo "yes" >&6; }
5651 cat >>confdefs.h <<_ACEOF
5652 #define WITH_OPENSSL 1
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5660 use_stack_protector=1
5661 use_toolchain_hardening=1
5663 # Check whether --with-stackprotect was given.
5664 if test "${with_stackprotect+set}" = set; then :
5665 withval=$with_stackprotect;
5666 if test "x$withval" = "xno"; then
5667 use_stack_protector=0
5672 # Check whether --with-hardening was given.
5673 if test "${with_hardening+set}" = set; then :
5674 withval=$with_hardening;
5675 if test "x$withval" = "xno"; then
5676 use_toolchain_hardening=0
5681 # We use -Werror for the tests only so that we catch warnings like "this is
5682 # on by default" for things like -fPIE.
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
5684 $as_echo_n "checking if $CC supports -Werror... " >&6; }
5685 saved_CFLAGS="$CFLAGS"
5686 CFLAGS="$CFLAGS -Werror"
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int main(void) { return 0; }
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 $as_echo "yes" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 CFLAGS="$saved_CFLAGS"
5704 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -pipe" >&5
5707 $as_echo_n "checking if $CC supports compile flag -pipe... " >&6; }
5708 saved_CFLAGS="$CFLAGS"
5709 CFLAGS="$CFLAGS $WERROR -pipe"
5711 test "x$_define_flag" = "x" && _define_flag="-pipe"
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5717 int main(int argc, char **argv) {
5718 /* Some math to catch -ftrapv problems in the toolchain */
5719 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5722 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5723 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5728 if ac_fn_c_try_compile "$LINENO"; then :
5730 if `grep -i "unrecognized option" conftest.err >/dev/null`
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 CFLAGS="$saved_CFLAGS"
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5737 $as_echo "yes" >&6; }
5738 CFLAGS="$saved_CFLAGS $_define_flag"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5743 CFLAGS="$saved_CFLAGS"
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
5750 $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5751 saved_CFLAGS="$CFLAGS"
5752 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5754 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5760 int main(int argc, char **argv) {
5761 /* Some math to catch -ftrapv problems in the toolchain */
5762 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5765 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5766 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5771 if ac_fn_c_try_compile "$LINENO"; then :
5773 if `grep -i "unrecognized option" conftest.err >/dev/null`
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 CFLAGS="$saved_CFLAGS"
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5780 $as_echo "yes" >&6; }
5781 CFLAGS="$saved_CFLAGS $_define_flag"
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 CFLAGS="$saved_CFLAGS"
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5793 $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
5794 saved_CFLAGS="$CFLAGS"
5795 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5797 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5803 int main(int argc, char **argv) {
5804 /* Some math to catch -ftrapv problems in the toolchain */
5805 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5808 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5809 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5814 if ac_fn_c_try_compile "$LINENO"; then :
5816 if `grep -i "unrecognized option" conftest.err >/dev/null`
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 CFLAGS="$saved_CFLAGS"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823 $as_echo "yes" >&6; }
5824 CFLAGS="$saved_CFLAGS $_define_flag"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 CFLAGS="$saved_CFLAGS"
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5
5836 $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; }
5837 saved_CFLAGS="$CFLAGS"
5838 CFLAGS="$CFLAGS $WERROR -Wall"
5840 test "x$_define_flag" = "x" && _define_flag="-Wall"
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5846 int main(int argc, char **argv) {
5847 /* Some math to catch -ftrapv problems in the toolchain */
5848 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5851 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5852 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5857 if ac_fn_c_try_compile "$LINENO"; then :
5859 if `grep -i "unrecognized option" conftest.err >/dev/null`
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 CFLAGS="$saved_CFLAGS"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5867 CFLAGS="$saved_CFLAGS $_define_flag"
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 CFLAGS="$saved_CFLAGS"
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
5879 $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5880 saved_CFLAGS="$CFLAGS"
5881 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
5883 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5889 int main(int argc, char **argv) {
5890 /* Some math to catch -ftrapv problems in the toolchain */
5891 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5894 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5895 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5900 if ac_fn_c_try_compile "$LINENO"; then :
5902 if `grep -i "unrecognized option" conftest.err >/dev/null`
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 CFLAGS="$saved_CFLAGS"
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5909 $as_echo "yes" >&6; }
5910 CFLAGS="$saved_CFLAGS $_define_flag"
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 CFLAGS="$saved_CFLAGS"
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5
5922 $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; }
5923 saved_CFLAGS="$CFLAGS"
5924 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
5926 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5932 int main(int argc, char **argv) {
5933 /* Some math to catch -ftrapv problems in the toolchain */
5934 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5937 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5938 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5943 if ac_fn_c_try_compile "$LINENO"; then :
5945 if `grep -i "unrecognized option" conftest.err >/dev/null`
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 CFLAGS="$saved_CFLAGS"
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5952 $as_echo "yes" >&6; }
5953 CFLAGS="$saved_CFLAGS $_define_flag"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5958 CFLAGS="$saved_CFLAGS"
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5
5965 $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; }
5966 saved_CFLAGS="$CFLAGS"
5967 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
5969 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5975 int main(int argc, char **argv) {
5976 /* Some math to catch -ftrapv problems in the toolchain */
5977 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5980 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5981 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5986 if ac_fn_c_try_compile "$LINENO"; then :
5988 if `grep -i "unrecognized option" conftest.err >/dev/null`
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 CFLAGS="$saved_CFLAGS"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5995 $as_echo "yes" >&6; }
5996 CFLAGS="$saved_CFLAGS $_define_flag"
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6001 CFLAGS="$saved_CFLAGS"
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5
6008 $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; }
6009 saved_CFLAGS="$CFLAGS"
6010 CFLAGS="$CFLAGS $WERROR -Wformat-security"
6012 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6018 int main(int argc, char **argv) {
6019 /* Some math to catch -ftrapv problems in the toolchain */
6020 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6023 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6024 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6029 if ac_fn_c_try_compile "$LINENO"; then :
6031 if `grep -i "unrecognized option" conftest.err >/dev/null`
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034 $as_echo "no" >&6; }
6035 CFLAGS="$saved_CFLAGS"
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6038 $as_echo "yes" >&6; }
6039 CFLAGS="$saved_CFLAGS $_define_flag"
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6044 CFLAGS="$saved_CFLAGS"
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
6051 $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; }
6052 saved_CFLAGS="$CFLAGS"
6053 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
6055 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6061 int main(int argc, char **argv) {
6062 /* Some math to catch -ftrapv problems in the toolchain */
6063 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6066 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6067 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6072 if ac_fn_c_try_compile "$LINENO"; then :
6074 if `grep -i "unrecognized option" conftest.err >/dev/null`
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6078 CFLAGS="$saved_CFLAGS"
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6081 $as_echo "yes" >&6; }
6082 CFLAGS="$saved_CFLAGS $_define_flag"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6087 CFLAGS="$saved_CFLAGS"
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5
6094 $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
6095 saved_CFLAGS="$CFLAGS"
6096 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
6097 _define_flag="-Wno-pointer-sign"
6098 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6104 int main(int argc, char **argv) {
6105 /* Some math to catch -ftrapv problems in the toolchain */
6106 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6109 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6110 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6115 if ac_fn_c_try_compile "$LINENO"; then :
6117 if `grep -i "unrecognized option" conftest.err >/dev/null`
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 CFLAGS="$saved_CFLAGS"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6124 $as_echo "yes" >&6; }
6125 CFLAGS="$saved_CFLAGS $_define_flag"
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6130 CFLAGS="$saved_CFLAGS"
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5
6137 $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; }
6138 saved_CFLAGS="$CFLAGS"
6139 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6140 _define_flag="-Wno-unused-result"
6141 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6147 int main(int argc, char **argv) {
6148 /* Some math to catch -ftrapv problems in the toolchain */
6149 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6152 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6153 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6158 if ac_fn_c_try_compile "$LINENO"; then :
6160 if `grep -i "unrecognized option" conftest.err >/dev/null`
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 CFLAGS="$saved_CFLAGS"
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6167 $as_echo "yes" >&6; }
6168 CFLAGS="$saved_CFLAGS $_define_flag"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 CFLAGS="$saved_CFLAGS"
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6180 $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; }
6181 saved_CFLAGS="$CFLAGS"
6182 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6184 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6190 int main(int argc, char **argv) {
6191 /* Some math to catch -ftrapv problems in the toolchain */
6192 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6195 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6196 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6201 if ac_fn_c_try_compile "$LINENO"; then :
6203 if `grep -i "unrecognized option" conftest.err >/dev/null`
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 CFLAGS="$saved_CFLAGS"
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6210 $as_echo "yes" >&6; }
6211 CFLAGS="$saved_CFLAGS $_define_flag"
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 CFLAGS="$saved_CFLAGS"
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 if test "x$use_toolchain_hardening" = "x1"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mfunction-return=thunk" >&5
6224 $as_echo_n "checking if $CC supports compile flag -mfunction-return=thunk... " >&6; }
6225 saved_CFLAGS="$CFLAGS"
6226 CFLAGS="$CFLAGS $WERROR -mfunction-return=thunk"
6228 test "x$_define_flag" = "x" && _define_flag="-mfunction-return=thunk"
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6234 int main(int argc, char **argv) {
6235 /* Some math to catch -ftrapv problems in the toolchain */
6236 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6239 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6240 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6245 if ac_fn_c_try_compile "$LINENO"; then :
6247 if `grep -i "unrecognized option" conftest.err >/dev/null`
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6251 CFLAGS="$saved_CFLAGS"
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6254 $as_echo "yes" >&6; }
6255 CFLAGS="$saved_CFLAGS $_define_flag"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 CFLAGS="$saved_CFLAGS"
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mindirect-branch=thunk" >&5
6267 $as_echo_n "checking if $CC supports compile flag -mindirect-branch=thunk... " >&6; }
6268 saved_CFLAGS="$CFLAGS"
6269 CFLAGS="$CFLAGS $WERROR -mindirect-branch=thunk"
6271 test "x$_define_flag" = "x" && _define_flag="-mindirect-branch=thunk"
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6277 int main(int argc, char **argv) {
6278 /* Some math to catch -ftrapv problems in the toolchain */
6279 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6282 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6283 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6288 if ac_fn_c_try_compile "$LINENO"; then :
6290 if `grep -i "unrecognized option" conftest.err >/dev/null`
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 CFLAGS="$saved_CFLAGS"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6297 $as_echo "yes" >&6; }
6298 CFLAGS="$saved_CFLAGS $_define_flag"
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6303 CFLAGS="$saved_CFLAGS"
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mretpoline" >&5
6310 $as_echo_n "checking if $CC supports compile flag -mretpoline... " >&6; }
6311 saved_CFLAGS="$CFLAGS"
6312 CFLAGS="$CFLAGS $WERROR -mretpoline"
6314 test "x$_define_flag" = "x" && _define_flag="-mretpoline"
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6320 int main(int argc, char **argv) {
6321 /* Some math to catch -ftrapv problems in the toolchain */
6322 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6325 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6326 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6331 if ac_fn_c_try_compile "$LINENO"; then :
6333 if `grep -i "unrecognized option" conftest.err >/dev/null`
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6337 CFLAGS="$saved_CFLAGS"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6340 $as_echo "yes" >&6; }
6341 CFLAGS="$saved_CFLAGS $_define_flag"
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 CFLAGS="$saved_CFLAGS"
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,retpolineplt" >&5
6353 $as_echo_n "checking if $LD supports link flag -Wl,-z,retpolineplt... " >&6; }
6354 saved_LDFLAGS="$LDFLAGS"
6355 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,retpolineplt"
6357 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,retpolineplt"
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6363 int main(int argc, char **argv) {
6364 /* Some math to catch -ftrapv problems in the toolchain */
6365 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6368 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6369 long long p = n * o;
6370 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6375 if ac_fn_c_try_link "$LINENO"; then :
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6377 $as_echo "yes" >&6; }
6378 LDFLAGS="$saved_LDFLAGS $_define_flag"
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6382 LDFLAGS="$saved_LDFLAGS"
6385 rm -f core conftest.err conftest.$ac_objext \
6386 conftest$ac_exeext conftest.$ac_ext
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6390 $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; }
6391 saved_CFLAGS="$CFLAGS"
6392 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6394 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6400 int main(int argc, char **argv) {
6401 /* Some math to catch -ftrapv problems in the toolchain */
6402 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6405 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6406 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6411 if ac_fn_c_try_compile "$LINENO"; then :
6413 if `grep -i "unrecognized option" conftest.err >/dev/null`
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417 CFLAGS="$saved_CFLAGS"
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6420 $as_echo "yes" >&6; }
6421 CFLAGS="$saved_CFLAGS $_define_flag"
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 CFLAGS="$saved_CFLAGS"
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5
6433 $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
6434 saved_LDFLAGS="$LDFLAGS"
6435 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6437 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6443 int main(int argc, char **argv) {
6444 /* Some math to catch -ftrapv problems in the toolchain */
6445 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6448 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6449 long long p = n * o;
6450 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6455 if ac_fn_c_try_link "$LINENO"; then :
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6457 $as_echo "yes" >&6; }
6458 LDFLAGS="$saved_LDFLAGS $_define_flag"
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 LDFLAGS="$saved_LDFLAGS"
6465 rm -f core conftest.err conftest.$ac_objext \
6466 conftest$ac_exeext conftest.$ac_ext
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5
6470 $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; }
6471 saved_LDFLAGS="$LDFLAGS"
6472 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6474 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6480 int main(int argc, char **argv) {
6481 /* Some math to catch -ftrapv problems in the toolchain */
6482 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6485 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6486 long long p = n * o;
6487 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6492 if ac_fn_c_try_link "$LINENO"; then :
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6494 $as_echo "yes" >&6; }
6495 LDFLAGS="$saved_LDFLAGS $_define_flag"
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6499 LDFLAGS="$saved_LDFLAGS"
6502 rm -f core conftest.err conftest.$ac_objext \
6503 conftest$ac_exeext conftest.$ac_ext
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6507 $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
6508 saved_LDFLAGS="$LDFLAGS"
6509 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6511 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6517 int main(int argc, char **argv) {
6518 /* Some math to catch -ftrapv problems in the toolchain */
6519 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6522 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6523 long long p = n * o;
6524 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6529 if ac_fn_c_try_link "$LINENO"; then :
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6531 $as_echo "yes" >&6; }
6532 LDFLAGS="$saved_LDFLAGS $_define_flag"
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 LDFLAGS="$saved_LDFLAGS"
6539 rm -f core conftest.err conftest.$ac_objext \
6540 conftest$ac_exeext conftest.$ac_ext
6542 # NB. -ftrapv expects certain support functions to be present in
6543 # the compiler library (libgcc or similar) to detect integer operations
6544 # that can overflow. We must check that the result of enabling it
6545 # actually links. The test program compiled/linked includes a number
6546 # of integer operations that should exercise this.
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6549 $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; }
6550 saved_CFLAGS="$CFLAGS"
6551 CFLAGS="$CFLAGS $WERROR -ftrapv"
6553 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6559 int main(int argc, char **argv) {
6560 /* Some math to catch -ftrapv problems in the toolchain */
6561 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6564 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6565 long long int p = n * o;
6566 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6571 if ac_fn_c_try_link "$LINENO"; then :
6573 if `grep -i "unrecognized option" conftest.err >/dev/null`
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 CFLAGS="$saved_CFLAGS"
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6580 $as_echo "yes" >&6; }
6581 CFLAGS="$saved_CFLAGS $_define_flag"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6586 CFLAGS="$saved_CFLAGS"
6589 rm -f core conftest.err conftest.$ac_objext \
6590 conftest$ac_exeext conftest.$ac_ext
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
6594 $as_echo_n "checking gcc version... " >&6; }
6595 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6597 1.*) no_attrib_nonnull=1 ;;
6601 2.*) no_attrib_nonnull=1 ;;
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
6605 $as_echo "$GCC_VER" >&6; }
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
6608 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
6609 saved_CFLAGS="$CFLAGS"
6610 CFLAGS="$CFLAGS -fno-builtin-memset"
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6617 char b[10]; memset(b, 0, sizeof(b));
6622 if ac_fn_c_try_link "$LINENO"; then :
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6624 $as_echo "yes" >&6; }
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6628 CFLAGS="$saved_CFLAGS"
6631 rm -f core conftest.err conftest.$ac_objext \
6632 conftest$ac_exeext conftest.$ac_ext
6634 # -fstack-protector-all doesn't always work for some GCC versions
6635 # and/or platforms, so we test if we can. If it's not supported
6636 # on a given platform gcc will emit a warning so we use -Werror.
6637 if test "x$use_stack_protector" = "x1"; then
6638 for t in -fstack-protector-strong -fstack-protector-all \
6639 -fstack-protector; do
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
6641 $as_echo_n "checking if $CC supports $t... " >&6; }
6642 saved_CFLAGS="$CFLAGS"
6643 saved_LDFLAGS="$LDFLAGS"
6644 CFLAGS="$CFLAGS $t -Werror"
6645 LDFLAGS="$LDFLAGS $t -Werror"
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6654 snprintf(x, sizeof(x), "XXX");
6660 if ac_fn_c_try_link "$LINENO"; then :
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6662 $as_echo "yes" >&6; }
6663 CFLAGS="$saved_CFLAGS $t"
6664 LDFLAGS="$saved_LDFLAGS $t"
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
6666 $as_echo_n "checking if $t works... " >&6; }
6667 if test "$cross_compiling" = yes; then :
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
6669 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6681 snprintf(x, sizeof(x), "XXX");
6687 if ac_fn_c_try_run "$LINENO"; then :
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6689 $as_echo "yes" >&6; }
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6696 conftest.$ac_objext conftest.beam conftest.$ac_ext
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6705 rm -f core conftest.err conftest.$ac_objext \
6706 conftest$ac_exeext conftest.$ac_ext
6707 CFLAGS="$saved_CFLAGS"
6708 LDFLAGS="$saved_LDFLAGS"
6712 if test -z "$have_llong_max"; then
6713 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6714 unset ac_cv_have_decl_LLONG_MAX
6715 saved_CFLAGS="$CFLAGS"
6716 CFLAGS="$CFLAGS -std=gnu99"
6717 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
6720 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
6723 CFLAGS="$saved_CFLAGS"
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
6730 $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6735 __attribute__((__unused__)) static void foo(void){return;}
6744 if ac_fn_c_try_compile "$LINENO"; then :
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6746 $as_echo "yes" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6751 $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ prototype args" >&5
6758 $as_echo_n "checking if compiler allows __attribute__ prototype args... " >&6; }
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6763 typedef void foo(const char *, ...) __attribute__((format(printf, 1, 2)));
6772 if ac_fn_c_try_compile "$LINENO"; then :
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6774 $as_echo "yes" >&6; }
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6779 $as_echo "#define NO_ATTRIBUTE_ON_PROTOTYPE_ARGS 1" >>confdefs.h
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 if test "x$no_attrib_nonnull" != "x1" ; then
6787 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6792 # Check whether --with-rpath was given.
6793 if test "${with_rpath+set}" = set; then :
6794 withval=$with_rpath;
6795 if test "x$withval" = "xno" ; then
6798 if test "x$withval" = "xyes" ; then
6806 # Allow user to specify flags
6808 # Check whether --with-cflags was given.
6809 if test "${with_cflags+set}" = set; then :
6810 withval=$with_cflags;
6811 if test -n "$withval" && test "x$withval" != "xno" && \
6812 test "x${withval}" != "xyes"; then
6813 CFLAGS="$CFLAGS $withval"
6821 # Check whether --with-cflags-after was given.
6822 if test "${with_cflags_after+set}" = set; then :
6823 withval=$with_cflags_after;
6824 if test -n "$withval" && test "x$withval" != "xno" && \
6825 test "x${withval}" != "xyes"; then
6826 CFLAGS_AFTER="$withval"
6833 # Check whether --with-cppflags was given.
6834 if test "${with_cppflags+set}" = set; then :
6835 withval=$with_cppflags;
6836 if test -n "$withval" && test "x$withval" != "xno" && \
6837 test "x${withval}" != "xyes"; then
6838 CPPFLAGS="$CPPFLAGS $withval"
6845 # Check whether --with-ldflags was given.
6846 if test "${with_ldflags+set}" = set; then :
6847 withval=$with_ldflags;
6848 if test -n "$withval" && test "x$withval" != "xno" && \
6849 test "x${withval}" != "xyes"; then
6850 LDFLAGS="$LDFLAGS $withval"
6857 # Check whether --with-ldflags-after was given.
6858 if test "${with_ldflags_after+set}" = set; then :
6859 withval=$with_ldflags_after;
6860 if test -n "$withval" && test "x$withval" != "xno" && \
6861 test "x${withval}" != "xyes"; then
6862 LDFLAGS_AFTER="$withval"
6869 # Check whether --with-libs was given.
6870 if test "${with_libs+set}" = set; then :
6872 if test -n "$withval" && test "x$withval" != "xno" && \
6873 test "x${withval}" != "xyes"; then
6874 LIBS="$LIBS $withval"
6881 # Check whether --with-Werror was given.
6882 if test "${with_Werror+set}" = set; then :
6883 withval=$with_Werror;
6884 if test -n "$withval" && test "x$withval" != "xno"; then
6885 werror_flags="-Werror"
6886 if test "x${withval}" != "xyes"; then
6887 werror_flags="$withval"
6928 security/pam_appl.h \
6971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6972 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6973 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6974 cat >>confdefs.h <<_ACEOF
6975 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6983 # On some platforms (eg SunOS4) sys/audit.h requires sys/[time|types|label.h]
6984 # to be included first.
6985 for ac_header in sys/audit.h
6987 ac_fn_c_check_header_compile "$LINENO" "sys/audit.h" "ac_cv_header_sys_audit_h" "
6988 #ifdef HAVE_SYS_TIME_H
6989 # include <sys/time.h>
6991 #ifdef HAVE_SYS_TYPES_H
6992 # include <sys/types.h>
6994 #ifdef HAVE_SYS_LABEL_H
6995 # include <sys/label.h>
6999 if test "x$ac_cv_header_sys_audit_h" = xyes; then :
7000 cat >>confdefs.h <<_ACEOF
7001 #define HAVE_SYS_AUDIT_H 1
7009 # sys/capsicum.h requires sys/types.h
7010 for ac_header in sys/capsicum.h
7012 ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "
7013 #ifdef HAVE_SYS_TYPES_H
7014 # include <sys/types.h>
7018 if test "x$ac_cv_header_sys_capsicum_h" = xyes; then :
7019 cat >>confdefs.h <<_ACEOF
7020 #define HAVE_SYS_CAPSICUM_H 1
7028 # net/route.h requires sys/socket.h and sys/types.h.
7029 # sys/sysctl.h also requires sys/param.h
7030 for ac_header in net/route.h sys/sysctl.h
7032 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7033 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7034 #ifdef HAVE_SYS_TYPES_H
7035 # include <sys/types.h>
7037 #include <sys/param.h>
7038 #include <sys/socket.h>
7041 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7042 cat >>confdefs.h <<_ACEOF
7043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7051 # lastlog.h requires sys/time.h to be included first on Solaris
7052 for ac_header in lastlog.h
7054 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
7055 #ifdef HAVE_SYS_TIME_H
7056 # include <sys/time.h>
7060 if test "x$ac_cv_header_lastlog_h" = xyes; then :
7061 cat >>confdefs.h <<_ACEOF
7062 #define HAVE_LASTLOG_H 1
7070 # sys/ptms.h requires sys/stream.h to be included first on Solaris
7071 for ac_header in sys/ptms.h
7073 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
7074 #ifdef HAVE_SYS_STREAM_H
7075 # include <sys/stream.h>
7079 if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
7080 cat >>confdefs.h <<_ACEOF
7081 #define HAVE_SYS_PTMS_H 1
7089 # login_cap.h requires sys/types.h on NetBSD
7090 for ac_header in login_cap.h
7092 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
7093 #include <sys/types.h>
7096 if test "x$ac_cv_header_login_cap_h" = xyes; then :
7097 cat >>confdefs.h <<_ACEOF
7098 #define HAVE_LOGIN_CAP_H 1
7106 # older BSDs need sys/param.h before sys/mount.h
7107 for ac_header in sys/mount.h
7109 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
7110 #include <sys/param.h>
7113 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
7114 cat >>confdefs.h <<_ACEOF
7115 #define HAVE_SYS_MOUNT_H 1
7123 # Android requires sys/socket.h to be included before sys/un.h
7124 for ac_header in sys/un.h
7126 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
7127 #include <sys/types.h>
7128 #include <sys/socket.h>
7131 if test "x$ac_cv_header_sys_un_h" = xyes; then :
7132 cat >>confdefs.h <<_ACEOF
7133 #define HAVE_SYS_UN_H 1
7141 # Messages for features tested for in target-specific section
7147 # Support for Solaris/Illumos privileges (this test is used by both
7148 # the --with-solaris-privs option and --with-sandbox=solaris).
7151 # Check for some target-specific stuff
7154 # Some versions of VAC won't allow macro redefinitions at
7155 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
7156 # particularly with older versions of vac or xlc.
7157 # It also throws errors about null macro argments, but these are
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
7160 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7164 #define testmacro foo
7165 #define testmacro bar
7174 if ac_fn_c_try_compile "$LINENO"; then :
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7176 $as_echo "yes" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
7181 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
7182 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
7183 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
7190 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
7191 if (test -z "$blibpath"); then
7192 blibpath="/usr/lib:/lib"
7194 saved_LDFLAGS="$LDFLAGS"
7195 if test "$GCC" = "yes"; then
7196 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
7198 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
7200 for tryflags in $flags ;do
7201 if (test -z "$blibflags"); then
7202 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7214 if ac_fn_c_try_link "$LINENO"; then :
7217 rm -f core conftest.err conftest.$ac_objext \
7218 conftest$ac_exeext conftest.$ac_ext
7221 if (test -z "$blibflags"); then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7223 $as_echo "not found" >&6; }
7224 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
7227 $as_echo "$blibflags" >&6; }
7229 LDFLAGS="$saved_LDFLAGS"
7230 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
7231 if test "x$ac_cv_func_authenticate" = xyes; then :
7233 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
7237 $as_echo_n "checking for authenticate in -ls... " >&6; }
7238 if ${ac_cv_lib_s_authenticate+:} false; then :
7239 $as_echo_n "(cached) " >&6
7241 ac_check_lib_save_LIBS=$LIBS
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7246 /* Override any GCC internal prototype to avoid an error.
7247 Use char because int might match the return type of a GCC
7248 builtin and then its argument prototype would still apply. */
7252 char authenticate ();
7256 return authenticate ();
7261 if ac_fn_c_try_link "$LINENO"; then :
7262 ac_cv_lib_s_authenticate=yes
7264 ac_cv_lib_s_authenticate=no
7266 rm -f core conftest.err conftest.$ac_objext \
7267 conftest$ac_exeext conftest.$ac_ext
7268 LIBS=$ac_check_lib_save_LIBS
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
7271 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
7272 if test "x$ac_cv_lib_s_authenticate" = xyes; then :
7273 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
7282 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
7284 if test "x$ac_cv_have_decl_authenticate" = xyes; then :
7290 cat >>confdefs.h <<_ACEOF
7291 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
7293 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
7295 if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
7301 cat >>confdefs.h <<_ACEOF
7302 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
7304 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
7306 if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
7312 cat >>confdefs.h <<_ACEOF
7313 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
7315 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
7317 if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
7323 cat >>confdefs.h <<_ACEOF
7324 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
7326 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
7328 if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
7334 cat >>confdefs.h <<_ACEOF
7335 #define HAVE_DECL_SETAUTHDB $ac_have_decl
7338 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
7341 if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
7347 cat >>confdefs.h <<_ACEOF
7348 #define HAVE_DECL_LOGINFAILED $ac_have_decl
7350 if test $ac_have_decl = 1; then :
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
7352 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 #include <usersec.h>
7359 (void)loginfailed("user","host","tty",0);
7364 if ac_fn_c_try_compile "$LINENO"; then :
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7366 $as_echo "yes" >&6; }
7368 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 for ac_func in getgrset setauthdb
7380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7381 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7382 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7383 cat >>confdefs.h <<_ACEOF
7384 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7390 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
7394 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
7396 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
7400 check_for_aix_broken_getaddrinfo=1
7402 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7405 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7408 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7411 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7414 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7417 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7420 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7423 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7426 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
7429 $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7432 $as_echo "#define BROKEN_STRNDUP 1" >>confdefs.h
7435 $as_echo "#define BROKEN_STRNLEN 1" >>confdefs.h
7440 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7443 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7447 check_for_libcrypt_later=1
7448 LIBS="$LIBS /usr/lib/textreadmode.o"
7450 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
7453 $as_echo "#define USE_PIPES 1" >>confdefs.h
7456 $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h
7459 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7462 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7465 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7468 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
7471 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
7473 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
7474 # reasons which cause compile warnings, so we disable those warnings.
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5
7477 $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; }
7478 saved_CFLAGS="$CFLAGS"
7479 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
7481 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7487 int main(int argc, char **argv) {
7488 /* Some math to catch -ftrapv problems in the toolchain */
7489 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
7492 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
7493 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
7498 if ac_fn_c_try_compile "$LINENO"; then :
7500 if `grep -i "unrecognized option" conftest.err >/dev/null`
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 CFLAGS="$saved_CFLAGS"
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7507 $as_echo "yes" >&6; }
7508 CFLAGS="$saved_CFLAGS $_define_flag"
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 CFLAGS="$saved_CFLAGS"
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7523 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7525 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7527 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
7533 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
7534 if test "$cross_compiling" = yes; then :
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
7536 $as_echo "assume it is working" >&6; }
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <mach-o/dyld.h>
7541 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7548 if ac_fn_c_try_run "$LINENO"; then :
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
7550 $as_echo "working" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
7553 $as_echo "buggy" >&6; }
7555 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7560 conftest.$ac_objext conftest.beam conftest.$ac_ext
7563 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7565 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7567 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7570 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7573 cat >>confdefs.h <<_ACEOF
7574 #define BIND_8_COMPAT 1
7578 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7581 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7584 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7587 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
7588 if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
7592 $as_echo "#define AU_IPv4 0" >>confdefs.h
7594 #include <bsm/audit.h>
7596 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
7602 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7604 for ac_func in sandbox_init
7606 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
7607 if test "x$ac_cv_func_sandbox_init" = xyes; then :
7608 cat >>confdefs.h <<_ACEOF
7609 #define HAVE_SANDBOX_INIT 1
7615 for ac_header in sandbox.h
7617 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
7618 if test "x$ac_cv_header_sandbox_h" = xyes; then :
7619 cat >>confdefs.h <<_ACEOF
7620 #define HAVE_SANDBOX_H 1
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5
7628 $as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; }
7629 if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then :
7630 $as_echo_n "(cached) " >&6
7632 ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-lsandbox $LIBS"
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7643 char sandbox_apply ();
7647 return sandbox_apply ();
7652 if ac_fn_c_try_link "$LINENO"; then :
7653 ac_cv_lib_sandbox_sandbox_apply=yes
7655 ac_cv_lib_sandbox_sandbox_apply=no
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5
7662 $as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; }
7663 if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then :
7665 SSHDLIBS="$SSHDLIBS -lsandbox"
7671 SSHDLIBS="$SSHDLIBS -lcrypt"
7672 TEST_MALLOC_OPTIONS="AFGJPRX"
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7677 $as_echo_n "checking for socket in -lnetwork... " >&6; }
7678 if ${ac_cv_lib_network_socket+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 ac_check_lib_save_LIBS=$LIBS
7682 LIBS="-lnetwork $LIBS"
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7686 /* Override any GCC internal prototype to avoid an error.
7687 Use char because int might match the return type of a GCC
7688 builtin and then its argument prototype would still apply. */
7701 if ac_fn_c_try_link "$LINENO"; then :
7702 ac_cv_lib_network_socket=yes
7704 ac_cv_lib_network_socket=no
7706 rm -f core conftest.err conftest.$ac_objext \
7707 conftest$ac_exeext conftest.$ac_ext
7708 LIBS=$ac_check_lib_save_LIBS
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7711 $as_echo "$ac_cv_lib_network_socket" >&6; }
7712 if test "x$ac_cv_lib_network_socket" = xyes; then :
7713 cat >>confdefs.h <<_ACEOF
7714 #define HAVE_LIBNETWORK 1
7717 LIBS="-lnetwork $LIBS"
7721 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
7726 # first we define all of the options common to all HP-UX releases
7727 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7728 IPADDR_IN_DISPLAY=yes
7729 $as_echo "#define USE_PIPES 1" >>confdefs.h
7731 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7734 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
7736 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
7739 $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
7744 $as_echo_n "checking for t_error in -lxnet... " >&6; }
7745 if ${ac_cv_lib_xnet_t_error+:} false; then :
7746 $as_echo_n "(cached) " >&6
7748 ac_check_lib_save_LIBS=$LIBS
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7753 /* Override any GCC internal prototype to avoid an error.
7754 Use char because int might match the return type of a GCC
7755 builtin and then its argument prototype would still apply. */
7768 if ac_fn_c_try_link "$LINENO"; then :
7769 ac_cv_lib_xnet_t_error=yes
7771 ac_cv_lib_xnet_t_error=no
7773 rm -f core conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7775 LIBS=$ac_check_lib_save_LIBS
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
7778 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
7779 if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
7780 cat >>confdefs.h <<_ACEOF
7781 #define HAVE_LIBXNET 1
7787 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
7791 # next, we define all of the options specific to major releases
7794 if test -z "$GCC"; then
7795 CFLAGS="$CFLAGS -Ae"
7800 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7803 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7806 $as_echo "#define USE_BTMP 1" >>confdefs.h
7808 check_for_hpux_broken_getaddrinfo=1
7809 check_for_conflicting_getspnam=1
7813 # lastly, we define options specific to minor releases
7817 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7819 disable_ptmx_check=yes
7820 LIBS="$LIBS -lsecpw"
7825 PATH="$PATH:/usr/etc"
7827 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7829 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7831 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7833 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7836 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7838 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7842 PATH="$PATH:/usr/etc"
7844 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
7847 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
7850 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
7852 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
7853 if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7855 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
7859 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7861 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7863 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7865 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7868 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7870 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7872 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7875 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7876 check_for_libcrypt_later=1
7877 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7879 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7881 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7884 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7887 $as_echo "#define USE_BTMP 1" >>confdefs.h
7893 check_for_libcrypt_later=1
7894 check_for_openpty_ctty_bug=1
7895 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE"
7897 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7900 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7902 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7905 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
7908 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7910 $as_echo "#define USE_BTMP 1" >>confdefs.h
7913 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
7915 inet6_default_4in6=yes
7919 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
7923 # tun(4) forwarding compat code
7924 for ac_header in linux/if_tun.h
7926 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
7927 if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
7928 cat >>confdefs.h <<_ACEOF
7929 #define HAVE_LINUX_IF_TUN_H 1
7936 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7938 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
7941 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7944 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7947 ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "
7948 #ifdef HAVE_SYS_TYPES_H
7949 # include <sys/types.H>
7953 if test "x$ac_cv_header_linux_if_h" = xyes; then :
7955 $as_echo "#define SYS_RDOMAIN_LINUX 1" >>confdefs.h
7960 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
7965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7966 cat >>confdefs.h <<_ACEOF
7967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7980 #if _MIPS_SIM != _ABIO32
7992 if ac_fn_c_try_compile "$LINENO"; then :
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7998 #if _MIPS_SIM != _ABIN32
8010 if ac_fn_c_try_compile "$LINENO"; then :
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8016 #if _MIPS_SIM != _ABI64
8028 if ac_fn_c_try_compile "$LINENO"; then :
8031 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
8044 $as_echo_n "checking for seccomp architecture... " >&6; }
8048 seccomp_audit_arch=AUDIT_ARCH_X86_64
8051 seccomp_audit_arch=AUDIT_ARCH_I386
8054 seccomp_audit_arch=AUDIT_ARCH_ARM
8057 seccomp_audit_arch=AUDIT_ARCH_AARCH64
8060 seccomp_audit_arch=AUDIT_ARCH_S390X
8063 seccomp_audit_arch=AUDIT_ARCH_S390
8066 seccomp_audit_arch=AUDIT_ARCH_PPC64
8069 seccomp_audit_arch=AUDIT_ARCH_PPC64LE
8072 seccomp_audit_arch=AUDIT_ARCH_MIPS
8075 seccomp_audit_arch=AUDIT_ARCH_MIPSEL
8080 seccomp_audit_arch=AUDIT_ARCH_MIPS64N32
8083 seccomp_audit_arch=AUDIT_ARCH_MIPS64
8090 seccomp_audit_arch=AUDIT_ARCH_MIPSEL64N32
8093 seccomp_audit_arch=AUDIT_ARCH_MIPSEL64
8098 if test "x$seccomp_audit_arch" != "x" ; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
8100 $as_echo "\"$seccomp_audit_arch\"" >&6; }
8102 cat >>confdefs.h <<_ACEOF
8103 #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
8108 $as_echo "architecture not supported" >&6; }
8111 mips-sony-bsd|mips-sony-newsos4)
8113 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8118 check_for_libcrypt_before=1
8119 if test "x$withval" != "xno" ; then
8122 CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE"
8124 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
8126 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
8127 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
8131 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
8137 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
8139 TEST_MALLOC_OPTIONS="AJRX"
8141 $as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h
8145 check_for_libcrypt_later=1
8147 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
8150 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
8152 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
8153 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
8157 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
8163 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
8165 TEST_MALLOC_OPTIONS="AJRX"
8166 # Preauth crypto occasionally uses file descriptors for crypto offload
8167 # and will crash if they cannot be opened.
8169 $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
8173 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8175 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8177 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8181 conf_lastlog_location="/usr/adm/lastlog"
8182 conf_utmp_location=/etc/utmp
8183 conf_wtmp_location=/usr/adm/wtmp
8184 maildir=/usr/spool/mail
8186 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
8188 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
8190 $as_echo "#define USE_PIPES 1" >>confdefs.h
8193 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
8199 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
8202 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
8205 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
8208 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
8210 TEST_MALLOC_OPTIONS="AFGJPRX"
8213 if test "x$withval" != "xno" ; then
8216 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
8218 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
8220 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
8223 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
8225 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8227 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8229 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8232 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8235 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
8237 external_path_file=/etc/default/login
8238 # hardwire lastlog location (can't detect it on some versions)
8239 conf_lastlog_location="/var/adm/lastlog"
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
8241 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
8242 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8243 if test "$sol2ver" -ge 8; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8245 $as_echo "yes" >&6; }
8246 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
8249 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 $as_echo "no" >&6; }
8255 for ac_func in setpflags
8257 ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags"
8258 if test "x$ac_cv_func_setpflags" = xyes; then :
8259 cat >>confdefs.h <<_ACEOF
8260 #define HAVE_SETPFLAGS 1
8266 for ac_func in setppriv
8268 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
8269 if test "x$ac_cv_func_setppriv" = xyes; then :
8270 cat >>confdefs.h <<_ACEOF
8271 #define HAVE_SETPPRIV 1
8277 for ac_func in priv_basicset
8279 ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset"
8280 if test "x$ac_cv_func_priv_basicset" = xyes; then :
8281 cat >>confdefs.h <<_ACEOF
8282 #define HAVE_PRIV_BASICSET 1
8288 for ac_header in priv.h
8290 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
8291 if test "x$ac_cv_header_priv_h" = xyes; then :
8292 cat >>confdefs.h <<_ACEOF
8293 #define HAVE_PRIV_H 1
8301 # Check whether --with-solaris-contracts was given.
8302 if test "${with_solaris_contracts+set}" = set; then :
8303 withval=$with_solaris_contracts;
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
8305 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
8306 if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
8307 $as_echo_n "(cached) " >&6
8309 ac_check_lib_save_LIBS=$LIBS
8310 LIBS="-lcontract $LIBS"
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8314 /* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8320 char ct_tmpl_activate ();
8324 return ct_tmpl_activate ();
8329 if ac_fn_c_try_link "$LINENO"; then :
8330 ac_cv_lib_contract_ct_tmpl_activate=yes
8332 ac_cv_lib_contract_ct_tmpl_activate=no
8334 rm -f core conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext conftest.$ac_ext
8336 LIBS=$ac_check_lib_save_LIBS
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8339 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8340 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
8342 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
8344 LIBS="$LIBS -lcontract"
8352 # Check whether --with-solaris-projects was given.
8353 if test "${with_solaris_projects+set}" = set; then :
8354 withval=$with_solaris_projects;
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
8356 $as_echo_n "checking for setproject in -lproject... " >&6; }
8357 if ${ac_cv_lib_project_setproject+:} false; then :
8358 $as_echo_n "(cached) " >&6
8360 ac_check_lib_save_LIBS=$LIBS
8361 LIBS="-lproject $LIBS"
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8365 /* Override any GCC internal prototype to avoid an error.
8366 Use char because int might match the return type of a GCC
8367 builtin and then its argument prototype would still apply. */
8375 return setproject ();
8380 if ac_fn_c_try_link "$LINENO"; then :
8381 ac_cv_lib_project_setproject=yes
8383 ac_cv_lib_project_setproject=no
8385 rm -f core conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8387 LIBS=$ac_check_lib_save_LIBS
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
8390 $as_echo "$ac_cv_lib_project_setproject" >&6; }
8391 if test "x$ac_cv_lib_project_setproject" = xyes; then :
8393 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
8395 LIBS="$LIBS -lproject"
8403 # Check whether --with-solaris-privs was given.
8404 if test "${with_solaris_privs+set}" = set; then :
8405 withval=$with_solaris_privs;
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5
8407 $as_echo_n "checking for Solaris/Illumos privilege support... " >&6; }
8408 if test "x$ac_cv_func_setppriv" = "xyes" -a \
8409 "x$ac_cv_header_priv_h" = "xyes" ; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8412 $as_echo "found" >&6; }
8414 $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h
8417 $as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8422 $as_echo "not found" >&6; }
8423 as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5
8428 TEST_SHELL=$SHELL # let configure find us a capable shell
8431 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8432 for ac_func in getpwanam
8434 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
8435 if test "x$ac_cv_func_getpwanam" = xyes; then :
8436 cat >>confdefs.h <<_ACEOF
8437 #define HAVE_GETPWANAM 1
8443 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
8445 conf_utmp_location=/etc/utmp
8446 conf_wtmp_location=/var/adm/wtmp
8447 conf_lastlog_location=/var/adm/lastlog
8448 $as_echo "#define USE_PIPES 1" >>confdefs.h
8451 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
8456 $as_echo "#define USE_PIPES 1" >>confdefs.h
8458 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8460 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8462 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8464 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8468 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
8470 $as_echo_n "checking for dlsym in -ldl... " >&6; }
8471 if ${ac_cv_lib_dl_dlsym+:} false; then :
8472 $as_echo_n "(cached) " >&6
8474 ac_check_lib_save_LIBS=$LIBS
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8479 /* Override any GCC internal prototype to avoid an error.
8480 Use char because int might match the return type of a GCC
8481 builtin and then its argument prototype would still apply. */
8494 if ac_fn_c_try_link "$LINENO"; then :
8495 ac_cv_lib_dl_dlsym=yes
8497 ac_cv_lib_dl_dlsym=no
8499 rm -f core conftest.err conftest.$ac_objext \
8500 conftest$ac_exeext conftest.$ac_ext
8501 LIBS=$ac_check_lib_save_LIBS
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
8504 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
8505 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
8506 cat >>confdefs.h <<_ACEOF
8507 #define HAVE_LIBDL 1
8514 # -lresolv needs to be at the end of LIBS or DNS lookups break
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
8516 $as_echo_n "checking for res_query in -lresolv... " >&6; }
8517 if ${ac_cv_lib_resolv_res_query+:} false; then :
8518 $as_echo_n "(cached) " >&6
8520 ac_check_lib_save_LIBS=$LIBS
8521 LIBS="-lresolv $LIBS"
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8525 /* Override any GCC internal prototype to avoid an error.
8526 Use char because int might match the return type of a GCC
8527 builtin and then its argument prototype would still apply. */
8535 return res_query ();
8540 if ac_fn_c_try_link "$LINENO"; then :
8541 ac_cv_lib_resolv_res_query=yes
8543 ac_cv_lib_resolv_res_query=no
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_lib_save_LIBS
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
8550 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
8551 if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
8552 LIBS="$LIBS -lresolv"
8555 IPADDR_IN_DISPLAY=yes
8556 $as_echo "#define USE_PIPES 1" >>confdefs.h
8558 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
8560 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8562 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8564 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8566 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8568 external_path_file=/etc/default/login
8569 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8570 # Attention: always take care to bind libsocket and libnsl before libc,
8571 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8573 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8575 $as_echo "#define USE_PIPES 1" >>confdefs.h
8577 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8579 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8581 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8584 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8586 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8588 TEST_SHELL=$SHELL # let configure find us a capable shell
8590 # UnixWare 7.x, OpenUNIX 8
8592 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
8594 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
8596 $as_echo "#define USE_PIPES 1" >>confdefs.h
8598 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8600 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8602 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8604 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8606 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8608 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
8610 TEST_SHELL=$SHELL # let configure find us a capable shell
8611 check_for_libcrypt_later=1
8613 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8614 maildir=/var/spool/mail
8615 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
8618 $as_echo_n "checking for getluid in -lprot... " >&6; }
8619 if ${ac_cv_lib_prot_getluid+:} false; then :
8620 $as_echo_n "(cached) " >&6
8622 ac_check_lib_save_LIBS=$LIBS
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8627 /* Override any GCC internal prototype to avoid an error.
8628 Use char because int might match the return type of a GCC
8629 builtin and then its argument prototype would still apply. */
8642 if ac_fn_c_try_link "$LINENO"; then :
8643 ac_cv_lib_prot_getluid=yes
8645 ac_cv_lib_prot_getluid=no
8647 rm -f core conftest.err conftest.$ac_objext \
8648 conftest$ac_exeext conftest.$ac_ext
8649 LIBS=$ac_check_lib_save_LIBS
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
8652 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
8653 if test "x$ac_cv_lib_prot_getluid" = xyes; then :
8655 for ac_func in getluid setluid
8657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8658 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8659 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8660 cat >>confdefs.h <<_ACEOF
8661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8671 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8678 # SCO UNIX and OEM versions of SCO UNIX
8680 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
8682 # SCO OpenServer 5.x
8684 if test -z "$GCC"; then
8685 CFLAGS="$CFLAGS -belf"
8687 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8689 $as_echo "#define USE_PIPES 1" >>confdefs.h
8691 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8693 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8695 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8697 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8699 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8701 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8703 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8705 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8707 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8709 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8711 for ac_func in getluid setluid
8713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8714 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8715 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8716 cat >>confdefs.h <<_ACEOF
8717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8724 TEST_SHELL=$SHELL # let configure find us a capable shell
8725 SKIP_DISABLE_LASTLOG_DEFINE=yes
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
8729 $as_echo_n "checking for Digital Unix SIA... " >&6; }
8732 # Check whether --with-osfsia was given.
8733 if test "${with_osfsia+set}" = set; then :
8734 withval=$with_osfsia;
8735 if test "x$withval" = "xno" ; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8737 $as_echo "disabled" >&6; }
8743 if test -z "$no_osfsia" ; then
8744 if test -f /etc/sia/matrix.conf; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8746 $as_echo "yes" >&6; }
8748 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
8751 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
8753 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8755 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8761 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
8765 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8767 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8769 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8771 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8774 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
8779 $as_echo "#define USE_PIPES 1" >>confdefs.h
8781 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
8783 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
8785 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8788 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
8790 enable_etc_default_login=no # has incompatible /etc/default/login
8793 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8801 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
8803 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8806 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
8811 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8813 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
8819 $as_echo_n "checking compiler and flags for sanity... " >&6; }
8820 if test "$cross_compiling" = yes; then :
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
8822 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8836 if ac_fn_c_try_run "$LINENO"; then :
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8838 $as_echo "yes" >&6; }
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842 $as_echo "no" >&6; }
8843 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
8846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8847 conftest.$ac_objext conftest.beam conftest.$ac_ext
8851 # Checks for libraries.
8852 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
8853 if test "x$ac_cv_func_setsockopt" = xyes; then :
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
8857 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
8858 if ${ac_cv_lib_socket_setsockopt+:} false; then :
8859 $as_echo_n "(cached) " >&6
8861 ac_check_lib_save_LIBS=$LIBS
8862 LIBS="-lsocket $LIBS"
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8866 /* Override any GCC internal prototype to avoid an error.
8867 Use char because int might match the return type of a GCC
8868 builtin and then its argument prototype would still apply. */
8876 return setsockopt ();
8881 if ac_fn_c_try_link "$LINENO"; then :
8882 ac_cv_lib_socket_setsockopt=yes
8884 ac_cv_lib_socket_setsockopt=no
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 LIBS=$ac_check_lib_save_LIBS
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
8891 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
8892 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
8893 cat >>confdefs.h <<_ACEOF
8894 #define HAVE_LIBSOCKET 1
8897 LIBS="-lsocket $LIBS"
8904 for ac_func in dirname
8906 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
8907 if test "x$ac_cv_func_dirname" = xyes; then :
8908 cat >>confdefs.h <<_ACEOF
8909 #define HAVE_DIRNAME 1
8911 for ac_header in libgen.h
8913 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8914 if test "x$ac_cv_header_libgen_h" = xyes; then :
8915 cat >>confdefs.h <<_ACEOF
8916 #define HAVE_LIBGEN_H 1
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
8926 $as_echo_n "checking for dirname in -lgen... " >&6; }
8927 if ${ac_cv_lib_gen_dirname+:} false; then :
8928 $as_echo_n "(cached) " >&6
8930 ac_check_lib_save_LIBS=$LIBS
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8935 /* Override any GCC internal prototype to avoid an error.
8936 Use char because int might match the return type of a GCC
8937 builtin and then its argument prototype would still apply. */
8950 if ac_fn_c_try_link "$LINENO"; then :
8951 ac_cv_lib_gen_dirname=yes
8953 ac_cv_lib_gen_dirname=no
8955 rm -f core conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext conftest.$ac_ext
8957 LIBS=$ac_check_lib_save_LIBS
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
8960 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
8961 if test "x$ac_cv_lib_gen_dirname" = xyes; then :
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
8964 $as_echo_n "checking for broken dirname... " >&6; }
8965 if ${ac_cv_have_broken_dirname+:} false; then :
8966 $as_echo_n "(cached) " >&6
8971 if test "$cross_compiling" = yes; then :
8972 ac_cv_have_broken_dirname="no"
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8980 int main(int argc, char **argv) {
8983 strncpy(buf,"/etc", 32);
8985 if (!s || strncmp(s, "/", 32) != 0) {
8993 if ac_fn_c_try_run "$LINENO"; then :
8994 ac_cv_have_broken_dirname="no"
8996 ac_cv_have_broken_dirname="yes"
8998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8999 conftest.$ac_objext conftest.beam conftest.$ac_ext
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
9006 $as_echo "$ac_cv_have_broken_dirname" >&6; }
9007 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
9009 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
9011 for ac_header in libgen.h
9013 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
9014 if test "x$ac_cv_header_libgen_h" = xyes; then :
9015 cat >>confdefs.h <<_ACEOF
9016 #define HAVE_LIBGEN_H 1
9032 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
9033 if test "x$ac_cv_func_getspnam" = xyes; then :
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
9037 $as_echo_n "checking for getspnam in -lgen... " >&6; }
9038 if ${ac_cv_lib_gen_getspnam+:} false; then :
9039 $as_echo_n "(cached) " >&6
9041 ac_check_lib_save_LIBS=$LIBS
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9046 /* Override any GCC internal prototype to avoid an error.
9047 Use char because int might match the return type of a GCC
9048 builtin and then its argument prototype would still apply. */
9061 if ac_fn_c_try_link "$LINENO"; then :
9062 ac_cv_lib_gen_getspnam=yes
9064 ac_cv_lib_gen_getspnam=no
9066 rm -f core conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
9068 LIBS=$ac_check_lib_save_LIBS
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
9071 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
9072 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
9079 $as_echo_n "checking for library containing basename... " >&6; }
9080 if ${ac_cv_search_basename+:} false; then :
9081 $as_echo_n "(cached) " >&6
9083 ac_func_search_save_LIBS=$LIBS
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9087 /* Override any GCC internal prototype to avoid an error.
9088 Use char because int might match the return type of a GCC
9089 builtin and then its argument prototype would still apply. */
9102 for ac_lib in '' gen; do
9103 if test -z "$ac_lib"; then
9104 ac_res="none required"
9107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9109 if ac_fn_c_try_link "$LINENO"; then :
9110 ac_cv_search_basename=$ac_res
9112 rm -f core conftest.err conftest.$ac_objext \
9114 if ${ac_cv_search_basename+:} false; then :
9118 if ${ac_cv_search_basename+:} false; then :
9121 ac_cv_search_basename=no
9124 LIBS=$ac_func_search_save_LIBS
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
9127 $as_echo "$ac_cv_search_basename" >&6; }
9128 ac_res=$ac_cv_search_basename
9129 if test "$ac_res" != no; then :
9130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9132 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
9138 # Check whether --with-zlib was given.
9139 if test "${with_zlib+set}" = set; then :
9140 withval=$with_zlib; if test "x$withval" = "xno" ; then
9141 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
9142 elif test "x$withval" != "xyes"; then
9143 if test -d "$withval/lib"; then
9144 if test -n "${need_dash_r}"; then
9145 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9147 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9150 if test -n "${need_dash_r}"; then
9151 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9153 LDFLAGS="-L${withval} ${LDFLAGS}"
9156 if test -d "$withval/include"; then
9157 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9159 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9166 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9167 if test "x$ac_cv_header_zlib_h" = xyes; then :
9170 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
9175 $as_echo_n "checking for deflate in -lz... " >&6; }
9176 if ${ac_cv_lib_z_deflate+:} false; then :
9177 $as_echo_n "(cached) " >&6
9179 ac_check_lib_save_LIBS=$LIBS
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9184 /* Override any GCC internal prototype to avoid an error.
9185 Use char because int might match the return type of a GCC
9186 builtin and then its argument prototype would still apply. */
9199 if ac_fn_c_try_link "$LINENO"; then :
9200 ac_cv_lib_z_deflate=yes
9202 ac_cv_lib_z_deflate=no
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9206 LIBS=$ac_check_lib_save_LIBS
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
9209 $as_echo "$ac_cv_lib_z_deflate" >&6; }
9210 if test "x$ac_cv_lib_z_deflate" = xyes; then :
9211 cat >>confdefs.h <<_ACEOF
9219 saved_CPPFLAGS="$CPPFLAGS"
9220 saved_LDFLAGS="$LDFLAGS"
9222 if test -n "${need_dash_r}"; then
9223 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
9225 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
9227 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9232 /* Override any GCC internal prototype to avoid an error.
9233 Use char because int might match the return type of a GCC
9234 builtin and then its argument prototype would still apply. */
9247 if ac_fn_c_try_link "$LINENO"; then :
9248 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
9252 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
9256 rm -f core conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9264 # Check whether --with-zlib-version-check was given.
9265 if test "${with_zlib_version_check+set}" = set; then :
9266 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
9267 zlib_check_nonfatal=1
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
9275 $as_echo_n "checking for possibly buggy zlib... " >&6; }
9276 if test "$cross_compiling" = yes; then :
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
9278 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9292 int a=0, b=0, c=0, d=0, n, v;
9293 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
9294 if (n != 3 && n != 4)
9296 v = a*1000000 + b*10000 + c*100 + d;
9297 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
9300 if (a == 1 && b == 1 && c >= 4)
9303 /* 1.2.3 and up are OK */
9313 if ac_fn_c_try_run "$LINENO"; then :
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9318 $as_echo "yes" >&6; }
9319 if test -z "$zlib_check_nonfatal" ; then
9320 as_fn_error $? "*** zlib too old - check config.log ***
9321 Your reported zlib version has known security problems. It's possible your
9322 vendor has fixed these problems without changing the version number. If you
9323 are sure this is the case, you can disable the check by running
9324 \"./configure --without-zlib-version-check\".
9325 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
9326 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
9329 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
9333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9334 conftest.$ac_objext conftest.beam conftest.$ac_ext
9338 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9339 if test "x$ac_cv_func_strcasecmp" = xyes; then :
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
9343 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
9344 if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
9345 $as_echo_n "(cached) " >&6
9347 ac_check_lib_save_LIBS=$LIBS
9348 LIBS="-lresolv $LIBS"
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9362 return strcasecmp ();
9367 if ac_fn_c_try_link "$LINENO"; then :
9368 ac_cv_lib_resolv_strcasecmp=yes
9370 ac_cv_lib_resolv_strcasecmp=no
9372 rm -f core conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
9374 LIBS=$ac_check_lib_save_LIBS
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
9377 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
9378 if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
9379 LIBS="$LIBS -lresolv"
9385 for ac_func in utimes
9387 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
9388 if test "x$ac_cv_func_utimes" = xyes; then :
9389 cat >>confdefs.h <<_ACEOF
9390 #define HAVE_UTIMES 1
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
9395 $as_echo_n "checking for utimes in -lc89... " >&6; }
9396 if ${ac_cv_lib_c89_utimes+:} false; then :
9397 $as_echo_n "(cached) " >&6
9399 ac_check_lib_save_LIBS=$LIBS
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9404 /* Override any GCC internal prototype to avoid an error.
9405 Use char because int might match the return type of a GCC
9406 builtin and then its argument prototype would still apply. */
9419 if ac_fn_c_try_link "$LINENO"; then :
9420 ac_cv_lib_c89_utimes=yes
9422 ac_cv_lib_c89_utimes=no
9424 rm -f core conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9426 LIBS=$ac_check_lib_save_LIBS
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
9429 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
9430 if test "x$ac_cv_lib_c89_utimes" = xyes; then :
9431 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
9441 for ac_header in bsd/libutil.h libutil.h
9443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9444 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9446 cat >>confdefs.h <<_ACEOF
9447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
9455 $as_echo_n "checking for library containing fmt_scaled... " >&6; }
9456 if ${ac_cv_search_fmt_scaled+:} false; then :
9457 $as_echo_n "(cached) " >&6
9459 ac_func_search_save_LIBS=$LIBS
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9473 return fmt_scaled ();
9478 for ac_lib in '' util bsd; do
9479 if test -z "$ac_lib"; then
9480 ac_res="none required"
9483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 ac_cv_search_fmt_scaled=$ac_res
9488 rm -f core conftest.err conftest.$ac_objext \
9490 if ${ac_cv_search_fmt_scaled+:} false; then :
9494 if ${ac_cv_search_fmt_scaled+:} false; then :
9497 ac_cv_search_fmt_scaled=no
9500 LIBS=$ac_func_search_save_LIBS
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
9503 $as_echo "$ac_cv_search_fmt_scaled" >&6; }
9504 ac_res=$ac_cv_search_fmt_scaled
9505 if test "$ac_res" != no; then :
9506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
9511 $as_echo_n "checking for library containing scan_scaled... " >&6; }
9512 if ${ac_cv_search_scan_scaled+:} false; then :
9513 $as_echo_n "(cached) " >&6
9515 ac_func_search_save_LIBS=$LIBS
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9519 /* Override any GCC internal prototype to avoid an error.
9520 Use char because int might match the return type of a GCC
9521 builtin and then its argument prototype would still apply. */
9525 char scan_scaled ();
9529 return scan_scaled ();
9534 for ac_lib in '' util bsd; do
9535 if test -z "$ac_lib"; then
9536 ac_res="none required"
9539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9541 if ac_fn_c_try_link "$LINENO"; then :
9542 ac_cv_search_scan_scaled=$ac_res
9544 rm -f core conftest.err conftest.$ac_objext \
9546 if ${ac_cv_search_scan_scaled+:} false; then :
9550 if ${ac_cv_search_scan_scaled+:} false; then :
9553 ac_cv_search_scan_scaled=no
9556 LIBS=$ac_func_search_save_LIBS
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
9559 $as_echo "$ac_cv_search_scan_scaled" >&6; }
9560 ac_res=$ac_cv_search_scan_scaled
9561 if test "$ac_res" != no; then :
9562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
9567 $as_echo_n "checking for library containing login... " >&6; }
9568 if ${ac_cv_search_login+:} false; then :
9569 $as_echo_n "(cached) " >&6
9571 ac_func_search_save_LIBS=$LIBS
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9590 for ac_lib in '' util bsd; do
9591 if test -z "$ac_lib"; then
9592 ac_res="none required"
9595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9597 if ac_fn_c_try_link "$LINENO"; then :
9598 ac_cv_search_login=$ac_res
9600 rm -f core conftest.err conftest.$ac_objext \
9602 if ${ac_cv_search_login+:} false; then :
9606 if ${ac_cv_search_login+:} false; then :
9609 ac_cv_search_login=no
9612 LIBS=$ac_func_search_save_LIBS
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
9615 $as_echo "$ac_cv_search_login" >&6; }
9616 ac_res=$ac_cv_search_login
9617 if test "$ac_res" != no; then :
9618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
9623 $as_echo_n "checking for library containing logout... " >&6; }
9624 if ${ac_cv_search_logout+:} false; then :
9625 $as_echo_n "(cached) " >&6
9627 ac_func_search_save_LIBS=$LIBS
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9646 for ac_lib in '' util bsd; do
9647 if test -z "$ac_lib"; then
9648 ac_res="none required"
9651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9653 if ac_fn_c_try_link "$LINENO"; then :
9654 ac_cv_search_logout=$ac_res
9656 rm -f core conftest.err conftest.$ac_objext \
9658 if ${ac_cv_search_logout+:} false; then :
9662 if ${ac_cv_search_logout+:} false; then :
9665 ac_cv_search_logout=no
9668 LIBS=$ac_func_search_save_LIBS
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
9671 $as_echo "$ac_cv_search_logout" >&6; }
9672 ac_res=$ac_cv_search_logout
9673 if test "$ac_res" != no; then :
9674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
9679 $as_echo_n "checking for library containing logwtmp... " >&6; }
9680 if ${ac_cv_search_logwtmp+:} false; then :
9681 $as_echo_n "(cached) " >&6
9683 ac_func_search_save_LIBS=$LIBS
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9702 for ac_lib in '' util bsd; do
9703 if test -z "$ac_lib"; then
9704 ac_res="none required"
9707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9709 if ac_fn_c_try_link "$LINENO"; then :
9710 ac_cv_search_logwtmp=$ac_res
9712 rm -f core conftest.err conftest.$ac_objext \
9714 if ${ac_cv_search_logwtmp+:} false; then :
9718 if ${ac_cv_search_logwtmp+:} false; then :
9721 ac_cv_search_logwtmp=no
9724 LIBS=$ac_func_search_save_LIBS
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
9727 $as_echo "$ac_cv_search_logwtmp" >&6; }
9728 ac_res=$ac_cv_search_logwtmp
9729 if test "$ac_res" != no; then :
9730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
9735 $as_echo_n "checking for library containing openpty... " >&6; }
9736 if ${ac_cv_search_openpty+:} false; then :
9737 $as_echo_n "(cached) " >&6
9739 ac_func_search_save_LIBS=$LIBS
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9743 /* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
9758 for ac_lib in '' util bsd; do
9759 if test -z "$ac_lib"; then
9760 ac_res="none required"
9763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9765 if ac_fn_c_try_link "$LINENO"; then :
9766 ac_cv_search_openpty=$ac_res
9768 rm -f core conftest.err conftest.$ac_objext \
9770 if ${ac_cv_search_openpty+:} false; then :
9774 if ${ac_cv_search_openpty+:} false; then :
9777 ac_cv_search_openpty=no
9780 LIBS=$ac_func_search_save_LIBS
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
9783 $as_echo "$ac_cv_search_openpty" >&6; }
9784 ac_res=$ac_cv_search_openpty
9785 if test "$ac_res" != no; then :
9786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
9791 $as_echo_n "checking for library containing updwtmp... " >&6; }
9792 if ${ac_cv_search_updwtmp+:} false; then :
9793 $as_echo_n "(cached) " >&6
9795 ac_func_search_save_LIBS=$LIBS
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9814 for ac_lib in '' util bsd; do
9815 if test -z "$ac_lib"; then
9816 ac_res="none required"
9819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9821 if ac_fn_c_try_link "$LINENO"; then :
9822 ac_cv_search_updwtmp=$ac_res
9824 rm -f core conftest.err conftest.$ac_objext \
9826 if ${ac_cv_search_updwtmp+:} false; then :
9830 if ${ac_cv_search_updwtmp+:} false; then :
9833 ac_cv_search_updwtmp=no
9836 LIBS=$ac_func_search_save_LIBS
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
9839 $as_echo "$ac_cv_search_updwtmp" >&6; }
9840 ac_res=$ac_cv_search_updwtmp
9841 if test "$ac_res" != no; then :
9842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9846 for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
9848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9849 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9850 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9851 cat >>confdefs.h <<_ACEOF
9852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9859 # On some platforms, inet_ntop and gethostbyname may be found in libresolv
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9862 $as_echo_n "checking for library containing inet_ntop... " >&6; }
9863 if ${ac_cv_search_inet_ntop+:} false; then :
9864 $as_echo_n "(cached) " >&6
9866 ac_func_search_save_LIBS=$LIBS
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9870 /* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
9880 return inet_ntop ();
9885 for ac_lib in '' resolv nsl; do
9886 if test -z "$ac_lib"; then
9887 ac_res="none required"
9890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9892 if ac_fn_c_try_link "$LINENO"; then :
9893 ac_cv_search_inet_ntop=$ac_res
9895 rm -f core conftest.err conftest.$ac_objext \
9897 if ${ac_cv_search_inet_ntop+:} false; then :
9901 if ${ac_cv_search_inet_ntop+:} false; then :
9904 ac_cv_search_inet_ntop=no
9907 LIBS=$ac_func_search_save_LIBS
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9910 $as_echo "$ac_cv_search_inet_ntop" >&6; }
9911 ac_res=$ac_cv_search_inet_ntop
9912 if test "$ac_res" != no; then :
9913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9918 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9919 if ${ac_cv_search_gethostbyname+:} false; then :
9920 $as_echo_n "(cached) " >&6
9922 ac_func_search_save_LIBS=$LIBS
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9926 /* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9932 char gethostbyname ();
9936 return gethostbyname ();
9941 for ac_lib in '' resolv nsl; do
9942 if test -z "$ac_lib"; then
9943 ac_res="none required"
9946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9948 if ac_fn_c_try_link "$LINENO"; then :
9949 ac_cv_search_gethostbyname=$ac_res
9951 rm -f core conftest.err conftest.$ac_objext \
9953 if ${ac_cv_search_gethostbyname+:} false; then :
9957 if ${ac_cv_search_gethostbyname+:} false; then :
9960 ac_cv_search_gethostbyname=no
9963 LIBS=$ac_func_search_save_LIBS
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9966 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9967 ac_res=$ac_cv_search_gethostbyname
9968 if test "$ac_res" != no; then :
9969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9974 # "Particular Function Checks"
9975 # see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Functions.html
9976 for ac_func in strftime
9978 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9979 if test "x$ac_cv_func_strftime" = xyes; then :
9980 cat >>confdefs.h <<_ACEOF
9981 #define HAVE_STRFTIME 1
9985 # strftime is in -lintl on SCO UNIX.
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9987 $as_echo_n "checking for strftime in -lintl... " >&6; }
9988 if ${ac_cv_lib_intl_strftime+:} false; then :
9989 $as_echo_n "(cached) " >&6
9991 ac_check_lib_save_LIBS=$LIBS
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9996 /* Override any GCC internal prototype to avoid an error.
9997 Use char because int might match the return type of a GCC
9998 builtin and then its argument prototype would still apply. */
10006 return strftime ();
10011 if ac_fn_c_try_link "$LINENO"; then :
10012 ac_cv_lib_intl_strftime=yes
10014 ac_cv_lib_intl_strftime=no
10016 rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_check_lib_save_LIBS
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
10021 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
10022 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
10023 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10025 LIBS="-lintl $LIBS"
10031 for ac_header in stdlib.h
10033 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10034 if test "x$ac_cv_header_stdlib_h" = xyes; then :
10035 cat >>confdefs.h <<_ACEOF
10036 #define HAVE_STDLIB_H 1
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10044 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10045 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
10046 $as_echo_n "(cached) " >&6
10048 if test "$cross_compiling" = yes; then :
10049 ac_cv_func_malloc_0_nonnull=no
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10054 # include <stdlib.h>
10062 return ! malloc (0);
10067 if ac_fn_c_try_run "$LINENO"; then :
10068 ac_cv_func_malloc_0_nonnull=yes
10070 ac_cv_func_malloc_0_nonnull=no
10072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10073 conftest.$ac_objext conftest.beam conftest.$ac_ext
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10078 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10079 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10081 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
10084 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
10086 case " $LIBOBJS " in
10087 *" malloc.$ac_objext "* ) ;;
10088 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10093 $as_echo "#define malloc rpl_malloc" >>confdefs.h
10098 for ac_header in stdlib.h
10100 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10101 if test "x$ac_cv_header_stdlib_h" = xyes; then :
10102 cat >>confdefs.h <<_ACEOF
10103 #define HAVE_STDLIB_H 1
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
10111 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10112 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
10113 $as_echo_n "(cached) " >&6
10115 if test "$cross_compiling" = yes; then :
10116 ac_cv_func_realloc_0_nonnull=no
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10121 # include <stdlib.h>
10129 return ! realloc (0, 0);
10134 if ac_fn_c_try_run "$LINENO"; then :
10135 ac_cv_func_realloc_0_nonnull=yes
10137 ac_cv_func_realloc_0_nonnull=no
10139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10140 conftest.$ac_objext conftest.beam conftest.$ac_ext
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
10145 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10146 if test $ac_cv_func_realloc_0_nonnull = yes; then :
10148 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
10151 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
10153 case " $LIBOBJS " in
10154 *" realloc.$ac_objext "* ) ;;
10155 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10160 $as_echo "#define realloc rpl_realloc" >>confdefs.h
10165 # autoconf doesn't have AC_FUNC_CALLOC so fake it if malloc returns NULL;
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if calloc(0, N) returns non-null" >&5
10167 $as_echo_n "checking if calloc(0, N) returns non-null... " >&6; }
10168 if test "$cross_compiling" = yes; then :
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming same as malloc" >&5
10170 $as_echo "$as_me: WARNING: cross compiling: assuming same as malloc" >&2;}
10171 func_calloc_0_nonnull="$ac_cv_func_malloc_0_nonnull"
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10176 #include <stdlib.h>
10180 void *p = calloc(0, 1); exit(p == NULL);
10186 if ac_fn_c_try_run "$LINENO"; then :
10187 func_calloc_0_nonnull=yes
10189 func_calloc_0_nonnull=no
10191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10192 conftest.$ac_objext conftest.beam conftest.$ac_ext
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $func_calloc_0_nonnull" >&5
10196 $as_echo "$func_calloc_0_nonnull" >&6; }
10198 if test "x$func_calloc_0_nonnull" == "xyes"; then
10200 $as_echo "#define HAVE_CALLOC 1" >>confdefs.h
10204 $as_echo "#define HAVE_CALLOC 0" >>confdefs.h
10207 $as_echo "#define calloc rpl_calloc" >>confdefs.h
10211 # Check for ALTDIRFUNC glob() extension
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
10213 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
10214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215 /* end confdefs.h. */
10218 #ifdef GLOB_ALTDIRFUNC
10223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10224 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
10227 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10230 $as_echo "yes" >&6; }
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 $as_echo "no" >&6; }
10242 # Check for g.gl_matchc glob() extension
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
10244 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h. */
10251 glob_t g; g.gl_matchc = 1;
10256 if ac_fn_c_try_compile "$LINENO"; then :
10259 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10262 $as_echo "yes" >&6; }
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10272 # Check for g.gl_statv glob() extension
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
10274 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10282 #ifndef GLOB_KEEPSTAT
10283 #error "glob does not support GLOB_KEEPSTAT extension"
10292 if ac_fn_c_try_compile "$LINENO"; then :
10295 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10298 $as_echo "yes" >&6; }
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303 $as_echo "no" >&6; }
10307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
10311 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
10317 cat >>confdefs.h <<_ACEOF
10318 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
10322 ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h>
10324 if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then :
10328 $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
10334 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
10335 if test "$cross_compiling" = yes; then :
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
10338 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
10339 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10347 #include <sys/types.h>
10348 #include <dirent.h>
10354 exit(sizeof(d.d_name)<=sizeof(char));
10360 if ac_fn_c_try_run "$LINENO"; then :
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10362 $as_echo "yes" >&6; }
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10366 $as_echo "no" >&6; }
10368 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
10372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10373 conftest.$ac_objext conftest.beam conftest.$ac_ext
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
10378 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
10379 if test -d "/proc/$$/fd" ; then
10381 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10384 $as_echo "yes" >&6; }
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10390 # Check whether user wants S/Key support
10393 # Check whether --with-skey was given.
10394 if test "${with_skey+set}" = set; then :
10395 withval=$with_skey;
10396 if test "x$withval" != "xno" ; then
10398 if test "x$withval" != "xyes" ; then
10399 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10400 LDFLAGS="$LDFLAGS -L${withval}/lib"
10404 $as_echo "#define SKEY 1" >>confdefs.h
10406 LIBS="-lskey $LIBS"
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
10410 $as_echo_n "checking for s/key support... " >&6; }
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10421 char *ff = skey_keyinfo(""); ff="";
10428 if ac_fn_c_try_link "$LINENO"; then :
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10430 $as_echo "yes" >&6; }
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10435 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
10438 rm -f core conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
10441 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10452 (void)skeychallenge(NULL,"name","",0);
10458 if ac_fn_c_try_compile "$LINENO"; then :
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10461 $as_echo "yes" >&6; }
10463 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468 $as_echo "no" >&6; }
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10478 # Check whether user wants to use ldns
10481 # Check whether --with-ldns was given.
10482 if test "${with_ldns+set}" = set; then :
10483 withval=$with_ldns;
10485 if test "x$withval" = "xyes" ; then
10486 if test -n "$ac_tool_prefix"; then
10487 # Extract the first word of "${ac_tool_prefix}ldns-config", so it can be a program name with args.
10488 set dummy ${ac_tool_prefix}ldns-config; ac_word=$2
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10490 $as_echo_n "checking for $ac_word... " >&6; }
10491 if ${ac_cv_path_LDNSCONFIG+:} false; then :
10492 $as_echo_n "(cached) " >&6
10494 case $LDNSCONFIG in
10496 ac_cv_path_LDNSCONFIG="$LDNSCONFIG" # Let the user override the test with a path.
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506 ac_cv_path_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 LDNSCONFIG=$ac_cv_path_LDNSCONFIG
10518 if test -n "$LDNSCONFIG"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDNSCONFIG" >&5
10520 $as_echo "$LDNSCONFIG" >&6; }
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10528 if test -z "$ac_cv_path_LDNSCONFIG"; then
10529 ac_pt_LDNSCONFIG=$LDNSCONFIG
10530 # Extract the first word of "ldns-config", so it can be a program name with args.
10531 set dummy ldns-config; ac_word=$2
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10533 $as_echo_n "checking for $ac_word... " >&6; }
10534 if ${ac_cv_path_ac_pt_LDNSCONFIG+:} false; then :
10535 $as_echo_n "(cached) " >&6
10537 case $ac_pt_LDNSCONFIG in
10539 ac_cv_path_ac_pt_LDNSCONFIG="$ac_pt_LDNSCONFIG" # Let the user override the test with a path.
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543 for as_dir in $PATH
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10549 ac_cv_path_ac_pt_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext"
10550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 ac_pt_LDNSCONFIG=$ac_cv_path_ac_pt_LDNSCONFIG
10561 if test -n "$ac_pt_LDNSCONFIG"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LDNSCONFIG" >&5
10563 $as_echo "$ac_pt_LDNSCONFIG" >&6; }
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10569 if test "x$ac_pt_LDNSCONFIG" = x; then
10572 case $cross_compiling:$ac_tool_warned in
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10576 ac_tool_warned=yes ;;
10578 LDNSCONFIG=$ac_pt_LDNSCONFIG
10581 LDNSCONFIG="$ac_cv_path_LDNSCONFIG"
10584 if test "x$LDNSCONFIG" = "xno"; then
10585 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10586 LDFLAGS="$LDFLAGS -L${withval}/lib"
10587 LIBS="-lldns $LIBS"
10590 LIBS="$LIBS `$LDNSCONFIG --libs`"
10591 CPPFLAGS="$CPPFLAGS `$LDNSCONFIG --cflags`"
10594 elif test "x$withval" != "xno" ; then
10595 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10596 LDFLAGS="$LDFLAGS -L${withval}/lib"
10597 LIBS="-lldns $LIBS"
10601 # Verify that it works.
10602 if test "x$ldns" = "xyes" ; then
10604 $as_echo "#define HAVE_LDNS 1" >>confdefs.h
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
10608 $as_echo_n "checking for ldns support... " >&6; }
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10613 #include <stdlib.h>
10614 #include <stdint.h>
10615 #include <ldns/ldns.h>
10616 int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
10620 if ac_fn_c_try_link "$LINENO"; then :
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10622 $as_echo "yes" >&6; }
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10627 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10637 # Check whether user wants libedit support
10640 # Check whether --with-libedit was given.
10641 if test "${with_libedit+set}" = set; then :
10642 withval=$with_libedit; if test "x$withval" != "xno" ; then
10643 if test "x$withval" = "xyes" ; then
10644 if test -n "$ac_tool_prefix"; then
10645 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10646 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648 $as_echo_n "checking for $ac_word... " >&6; }
10649 if ${ac_cv_path_PKGCONFIG+:} false; then :
10650 $as_echo_n "(cached) " >&6
10654 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
10657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658 for as_dir in $PATH
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10664 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 PKGCONFIG=$ac_cv_path_PKGCONFIG
10676 if test -n "$PKGCONFIG"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10678 $as_echo "$PKGCONFIG" >&6; }
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10686 if test -z "$ac_cv_path_PKGCONFIG"; then
10687 ac_pt_PKGCONFIG=$PKGCONFIG
10688 # Extract the first word of "pkg-config", so it can be a program name with args.
10689 set dummy pkg-config; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
10693 $as_echo_n "(cached) " >&6
10695 case $ac_pt_PKGCONFIG in
10697 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
10719 if test -n "$ac_pt_PKGCONFIG"; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
10721 $as_echo "$ac_pt_PKGCONFIG" >&6; }
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10727 if test "x$ac_pt_PKGCONFIG" = x; then
10730 case $cross_compiling:$ac_tool_warned in
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10734 ac_tool_warned=yes ;;
10736 PKGCONFIG=$ac_pt_PKGCONFIG
10739 PKGCONFIG="$ac_cv_path_PKGCONFIG"
10742 if test "x$PKGCONFIG" != "xno"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
10744 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
10745 if "$PKGCONFIG" libedit; then
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10747 $as_echo "yes" >&6; }
10748 use_pkgconfig_for_libedit=yes
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; }
10755 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10756 if test -n "${need_dash_r}"; then
10757 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10759 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10762 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
10763 LIBEDIT=`$PKGCONFIG --libs libedit`
10764 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
10766 LIBEDIT="-ledit -lcurses"
10768 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
10770 $as_echo_n "checking for el_init in -ledit... " >&6; }
10771 if ${ac_cv_lib_edit_el_init+:} false; then :
10772 $as_echo_n "(cached) " >&6
10774 ac_check_lib_save_LIBS=$LIBS
10775 LIBS="-ledit $OTHERLIBS
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10780 /* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 ac_cv_lib_edit_el_init=yes
10798 ac_cv_lib_edit_el_init=no
10800 rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
10805 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
10806 if test "x$ac_cv_lib_edit_el_init" = xyes; then :
10808 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
10814 as_fn_error $? "libedit not found" "$LINENO" 5
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
10818 $as_echo_n "checking if libedit version is compatible... " >&6; }
10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h. */
10821 #include <histedit.h>
10827 el_init("", NULL, NULL, NULL);
10834 if ac_fn_c_try_compile "$LINENO"; then :
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10836 $as_echo "yes" >&6; }
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10840 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10851 # Check whether --with-audit was given.
10852 if test "${with_audit+set}" = set; then :
10853 withval=$with_audit;
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
10855 $as_echo_n "checking for supported audit module... " >&6; }
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
10859 $as_echo "bsm" >&6; }
10861 for ac_header in bsm/audit.h
10863 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
10870 if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
10871 cat >>confdefs.h <<_ACEOF
10872 #define HAVE_BSM_AUDIT_H 1
10876 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
10882 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
10883 if ${ac_cv_lib_bsm_getaudit+:} false; then :
10884 $as_echo_n "(cached) " >&6
10886 ac_check_lib_save_LIBS=$LIBS
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10891 /* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
10901 return getaudit ();
10906 if ac_fn_c_try_link "$LINENO"; then :
10907 ac_cv_lib_bsm_getaudit=yes
10909 ac_cv_lib_bsm_getaudit=no
10911 rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913 LIBS=$ac_check_lib_save_LIBS
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
10916 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
10917 if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
10918 cat >>confdefs.h <<_ACEOF
10919 #define HAVE_LIBBSM 1
10925 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
10928 for ac_func in getaudit
10930 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
10931 if test "x$ac_cv_func_getaudit" = xyes; then :
10932 cat >>confdefs.h <<_ACEOF
10933 #define HAVE_GETAUDIT 1
10937 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
10941 # These are optional
10942 for ac_func in getaudit_addr aug_get_machine
10944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10945 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10946 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10947 cat >>confdefs.h <<_ACEOF
10948 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10955 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
10957 if test "$sol2ver" -ge 11; then
10958 SSHDLIBS="$SSHDLIBS -lscf"
10960 $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
10966 $as_echo "linux" >&6; }
10968 for ac_header in libaudit.h
10970 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10971 if test "x$ac_cv_header_libaudit_h" = xyes; then :
10972 cat >>confdefs.h <<_ACEOF
10973 #define HAVE_LIBAUDIT_H 1
10980 SSHDLIBS="$SSHDLIBS -laudit"
10982 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
10988 $as_echo "debug" >&6; }
10990 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10998 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
11006 # Check whether --with-pie was given.
11007 if test "${with_pie+set}" = set; then :
11009 if test "x$withval" = "xno"; then
11012 if test "x$withval" = "xyes"; then
11019 if test "x$use_pie" = "x"; then
11022 if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
11023 # Turn off automatic PIE when toolchain hardening is off.
11026 if test "x$use_pie" = "xauto"; then
11027 # Automatic PIE requires gcc >= 4.x
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5
11029 $as_echo_n "checking for gcc >= 4.x... " >&6; }
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 #if !defined(__GNUC__) || __GNUC__ < 4
11034 #error gcc is too old
11038 if ac_fn_c_try_compile "$LINENO"; then :
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11040 $as_echo "yes" >&6; }
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 if test "x$use_pie" != "xno"; then
11050 SAVED_CFLAGS="$CFLAGS"
11051 SAVED_LDFLAGS="$LDFLAGS"
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5
11054 $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; }
11055 saved_CFLAGS="$CFLAGS"
11056 CFLAGS="$CFLAGS $WERROR -fPIE"
11058 test "x$_define_flag" = "x" && _define_flag="-fPIE"
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11062 #include <stdlib.h>
11064 int main(int argc, char **argv) {
11065 /* Some math to catch -ftrapv problems in the toolchain */
11066 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11068 double m = l / 0.5;
11069 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11070 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11075 if ac_fn_c_try_compile "$LINENO"; then :
11077 if `grep -i "unrecognized option" conftest.err >/dev/null`
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11081 CFLAGS="$saved_CFLAGS"
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11084 $as_echo "yes" >&6; }
11085 CFLAGS="$saved_CFLAGS $_define_flag"
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11090 CFLAGS="$saved_CFLAGS"
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5
11097 $as_echo_n "checking if $LD supports link flag -pie... " >&6; }
11098 saved_LDFLAGS="$LDFLAGS"
11099 LDFLAGS="$LDFLAGS $WERROR -pie"
11101 test "x$_define_flag" = "x" && _define_flag="-pie"
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11105 #include <stdlib.h>
11107 int main(int argc, char **argv) {
11108 /* Some math to catch -ftrapv problems in the toolchain */
11109 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11111 double m = l / 0.5;
11112 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11113 long long p = n * o;
11114 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
11119 if ac_fn_c_try_link "$LINENO"; then :
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11121 $as_echo "yes" >&6; }
11122 LDFLAGS="$saved_LDFLAGS $_define_flag"
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11126 LDFLAGS="$saved_LDFLAGS"
11129 rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11132 # We use both -fPIE and -pie or neither.
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5
11134 $as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; }
11135 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
11136 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11138 $as_echo "yes" >&6; }
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11142 CFLAGS="$SAVED_CFLAGS"
11143 LDFLAGS="$SAVED_LDFLAGS"
11148 Blowfish_initstate \
11149 Blowfish_expandstate \
11150 Blowfish_expand0state \
11151 Blowfish_stream2word \
11270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11271 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11272 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11273 cat >>confdefs.h <<_ACEOF
11274 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11281 ac_fn_c_check_decl "$LINENO" "bzero" "ac_cv_have_decl_bzero" "$ac_includes_default"
11282 if test "x$ac_cv_have_decl_bzero" = xyes; then :
11288 cat >>confdefs.h <<_ACEOF
11289 #define HAVE_DECL_BZERO $ac_have_decl
11293 for ac_func in mblen mbtowc nl_langinfo wcwidth
11295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11298 cat >>confdefs.h <<_ACEOF
11299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11306 TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes}
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5
11308 $as_echo_n "checking for utf8 locale support... " >&6; }
11309 if test "$cross_compiling" = yes; then :
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11311 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11317 #include <locale.h>
11318 #include <stdlib.h>
11324 char *loc = setlocale(LC_CTYPE, "en_US.UTF-8");
11333 if ac_fn_c_try_run "$LINENO"; then :
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11335 $as_echo "yes" >&6; }
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11342 conftest.$ac_objext conftest.beam conftest.$ac_ext
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11352 return (isblank('a'));
11357 if ac_fn_c_try_link "$LINENO"; then :
11359 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
11363 rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11367 # Check whether --enable-pkcs11 was given.
11368 if test "${enable_pkcs11+set}" = set; then :
11369 enableval=$enable_pkcs11;
11370 if test "x$enableval" = "xno" ; then
11378 # PKCS11 depends on OpenSSL.
11379 if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then
11380 # PKCS#11 support requires dlopen() and co
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11382 $as_echo_n "checking for library containing dlopen... " >&6; }
11383 if ${ac_cv_search_dlopen+:} false; then :
11384 $as_echo_n "(cached) " >&6
11386 ac_func_search_save_LIBS=$LIBS
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11390 /* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11405 for ac_lib in '' dl; do
11406 if test -z "$ac_lib"; then
11407 ac_res="none required"
11410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 ac_cv_search_dlopen=$ac_res
11415 rm -f core conftest.err conftest.$ac_objext \
11417 if ${ac_cv_search_dlopen+:} false; then :
11421 if ${ac_cv_search_dlopen+:} false; then :
11424 ac_cv_search_dlopen=no
11426 rm conftest.$ac_ext
11427 LIBS=$ac_func_search_save_LIBS
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11430 $as_echo "$ac_cv_search_dlopen" >&6; }
11431 ac_res=$ac_cv_search_dlopen
11432 if test "$ac_res" != no; then :
11433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11434 ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
11437 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
11439 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
11448 # IRIX has a const char return value for gai_strerror()
11449 for ac_func in gai_strerror
11451 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
11452 if test "x$ac_cv_func_gai_strerror" = xyes; then :
11453 cat >>confdefs.h <<_ACEOF
11454 #define HAVE_GAI_STRERROR 1
11457 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11462 #include <sys/types.h>
11463 #include <sys/socket.h>
11466 const char *gai_strerror(int);
11473 str = gai_strerror(0);
11479 if ac_fn_c_try_compile "$LINENO"; then :
11482 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
11491 $as_echo_n "checking for library containing nanosleep... " >&6; }
11492 if ${ac_cv_search_nanosleep+:} false; then :
11493 $as_echo_n "(cached) " >&6
11495 ac_func_search_save_LIBS=$LIBS
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11499 /* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11509 return nanosleep ();
11514 for ac_lib in '' rt posix4; do
11515 if test -z "$ac_lib"; then
11516 ac_res="none required"
11519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11521 if ac_fn_c_try_link "$LINENO"; then :
11522 ac_cv_search_nanosleep=$ac_res
11524 rm -f core conftest.err conftest.$ac_objext \
11526 if ${ac_cv_search_nanosleep+:} false; then :
11530 if ${ac_cv_search_nanosleep+:} false; then :
11533 ac_cv_search_nanosleep=no
11535 rm conftest.$ac_ext
11536 LIBS=$ac_func_search_save_LIBS
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
11539 $as_echo "$ac_cv_search_nanosleep" >&6; }
11540 ac_res=$ac_cv_search_nanosleep
11541 if test "$ac_res" != no; then :
11542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11544 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11550 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11551 if ${ac_cv_search_clock_gettime+:} false; then :
11552 $as_echo_n "(cached) " >&6
11554 ac_func_search_save_LIBS=$LIBS
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11558 /* Override any GCC internal prototype to avoid an error.
11559 Use char because int might match the return type of a GCC
11560 builtin and then its argument prototype would still apply. */
11564 char clock_gettime ();
11568 return clock_gettime ();
11573 for ac_lib in '' rt; do
11574 if test -z "$ac_lib"; then
11575 ac_res="none required"
11578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11580 if ac_fn_c_try_link "$LINENO"; then :
11581 ac_cv_search_clock_gettime=$ac_res
11583 rm -f core conftest.err conftest.$ac_objext \
11585 if ${ac_cv_search_clock_gettime+:} false; then :
11589 if ${ac_cv_search_clock_gettime+:} false; then :
11592 ac_cv_search_clock_gettime=no
11594 rm conftest.$ac_ext
11595 LIBS=$ac_func_search_save_LIBS
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11598 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11599 ac_res=$ac_cv_search_clock_gettime
11600 if test "$ac_res" != no; then :
11601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11603 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
11608 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
11609 #ifdef HAVE_STRING_H
11610 # include <string.h>
11614 if test "x$ac_cv_have_decl_strsep" = xyes; then :
11615 for ac_func in strsep
11617 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
11618 if test "x$ac_cv_func_strsep" = xyes; then :
11619 cat >>confdefs.h <<_ACEOF
11620 #define HAVE_STRSEP 1
11629 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
11632 if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
11633 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
11636 for ac_func in tcsendbreak
11638 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
11639 if test "x$ac_cv_func_tcsendbreak" = xyes; then :
11640 cat >>confdefs.h <<_ACEOF
11641 #define HAVE_TCSENDBREAK 1
11650 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
11652 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
11658 cat >>confdefs.h <<_ACEOF
11659 #define HAVE_DECL_H_ERRNO $ac_have_decl
11663 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
11664 #include <sys/types.h>
11665 #include <sys/socket.h>
11668 if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
11674 cat >>confdefs.h <<_ACEOF
11675 #define HAVE_DECL_SHUT_RD $ac_have_decl
11679 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
11680 #include <sys/types.h>
11681 #ifdef HAVE_SYS_STAT_H
11682 # include <sys/stat.h>
11684 #ifdef HAVE_FCNTL_H
11685 # include <fcntl.h>
11689 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
11695 cat >>confdefs.h <<_ACEOF
11696 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
11700 ac_fn_c_check_decl "$LINENO" "readv" "ac_cv_have_decl_readv" "
11701 #include <sys/types.h>
11702 #include <sys/uio.h>
11703 #include <unistd.h>
11706 if test "x$ac_cv_have_decl_readv" = xyes; then :
11712 cat >>confdefs.h <<_ACEOF
11713 #define HAVE_DECL_READV $ac_have_decl
11715 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
11716 #include <sys/types.h>
11717 #include <sys/uio.h>
11718 #include <unistd.h>
11721 if test "x$ac_cv_have_decl_writev" = xyes; then :
11727 cat >>confdefs.h <<_ACEOF
11728 #define HAVE_DECL_WRITEV $ac_have_decl
11732 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
11733 #include <sys/param.h>
11736 if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
11742 cat >>confdefs.h <<_ACEOF
11743 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
11747 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
11748 #include <stddef.h>
11751 if test "x$ac_cv_have_decl_offsetof" = xyes; then :
11757 cat >>confdefs.h <<_ACEOF
11758 #define HAVE_DECL_OFFSETOF $ac_have_decl
11762 # extra bits for select(2)
11763 ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
11764 #include <sys/param.h>
11765 #include <sys/types.h>
11766 #ifdef HAVE_SYS_SYSMACROS_H
11767 #include <sys/sysmacros.h>
11769 #ifdef HAVE_SYS_SELECT_H
11770 #include <sys/select.h>
11772 #ifdef HAVE_SYS_TIME_H
11773 #include <sys/time.h>
11775 #ifdef HAVE_UNISTD_H
11776 #include <unistd.h>
11780 if test "x$ac_cv_have_decl_howmany" = xyes; then :
11786 cat >>confdefs.h <<_ACEOF
11787 #define HAVE_DECL_HOWMANY $ac_have_decl
11789 ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
11790 #include <sys/param.h>
11791 #include <sys/types.h>
11792 #ifdef HAVE_SYS_SYSMACROS_H
11793 #include <sys/sysmacros.h>
11795 #ifdef HAVE_SYS_SELECT_H
11796 #include <sys/select.h>
11798 #ifdef HAVE_SYS_TIME_H
11799 #include <sys/time.h>
11801 #ifdef HAVE_UNISTD_H
11802 #include <unistd.h>
11806 if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
11812 cat >>confdefs.h <<_ACEOF
11813 #define HAVE_DECL_NFDBITS $ac_have_decl
11816 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
11817 #include <sys/param.h>
11818 #include <sys/types.h>
11819 #ifdef HAVE_SYS_SELECT_H
11820 #include <sys/select.h>
11822 #ifdef HAVE_SYS_TIME_H
11823 #include <sys/time.h>
11825 #ifdef HAVE_UNISTD_H
11826 #include <unistd.h>
11830 if test "x$ac_cv_type_fd_mask" = xyes; then :
11832 cat >>confdefs.h <<_ACEOF
11833 #define HAVE_FD_MASK 1
11840 for ac_func in setresuid
11842 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
11843 if test "x$ac_cv_func_setresuid" = xyes; then :
11844 cat >>confdefs.h <<_ACEOF
11845 #define HAVE_SETRESUID 1
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
11849 $as_echo_n "checking if setresuid seems to work... " >&6; }
11850 if test "$cross_compiling" = yes; then :
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11852 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11858 #include <stdlib.h>
11876 if ac_fn_c_try_run "$LINENO"; then :
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11878 $as_echo "yes" >&6; }
11881 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11884 $as_echo "not implemented" >&6; }
11886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11887 conftest.$ac_objext conftest.beam conftest.$ac_ext
11895 for ac_func in setresgid
11897 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
11898 if test "x$ac_cv_func_setresgid" = xyes; then :
11899 cat >>confdefs.h <<_ACEOF
11900 #define HAVE_SETRESGID 1
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
11904 $as_echo_n "checking if setresgid seems to work... " >&6; }
11905 if test "$cross_compiling" = yes; then :
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11907 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11913 #include <stdlib.h>
11931 if ac_fn_c_try_run "$LINENO"; then :
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11933 $as_echo "yes" >&6; }
11936 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11939 $as_echo "not implemented" >&6; }
11941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11942 conftest.$ac_objext conftest.beam conftest.$ac_ext
11950 for ac_func in realpath
11952 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
11953 if test "x$ac_cv_func_realpath" = xyes; then :
11954 cat >>confdefs.h <<_ACEOF
11955 #define HAVE_REALPATH 1
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5
11959 $as_echo_n "checking if realpath works with non-existent files... " >&6; }
11960 if test "$cross_compiling" = yes; then :
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5
11962 $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11968 #include <limits.h>
11969 #include <stdlib.h>
11976 char buf[PATH_MAX];
11977 if (realpath("/opensshnonexistentfilename1234", buf) == NULL)
11978 if (errno == ENOENT)
11986 if ac_fn_c_try_run "$LINENO"; then :
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988 $as_echo "yes" >&6; }
11991 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11997 conftest.$ac_objext conftest.beam conftest.$ac_ext
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fflush(NULL)" >&5
12006 $as_echo_n "checking for working fflush(NULL)... " >&6; }
12007 if test "$cross_compiling" = yes; then :
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5
12009 $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12018 fflush(NULL); exit(0);
12023 if ac_fn_c_try_run "$LINENO"; then :
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025 $as_echo "yes" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12030 $as_echo "#define FFLUSH_NULL_BUG 1" >>confdefs.h
12033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12034 conftest.$ac_objext conftest.beam conftest.$ac_ext
12038 for ac_func in gettimeofday time
12040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12041 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12042 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12043 cat >>confdefs.h <<_ACEOF
12044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12050 for ac_func in endutent getutent getutid getutline pututline setutent
12052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12054 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12055 cat >>confdefs.h <<_ACEOF
12056 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12062 for ac_func in utmpname
12064 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
12065 if test "x$ac_cv_func_utmpname" = xyes; then :
12066 cat >>confdefs.h <<_ACEOF
12067 #define HAVE_UTMPNAME 1
12073 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
12075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12076 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12077 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12078 cat >>confdefs.h <<_ACEOF
12079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12085 for ac_func in setutxdb setutxent utmpxname
12087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12088 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12089 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12090 cat >>confdefs.h <<_ACEOF
12091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12097 for ac_func in getlastlogxbyname
12099 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
12100 if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
12101 cat >>confdefs.h <<_ACEOF
12102 #define HAVE_GETLASTLOGXBYNAME 1
12109 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
12110 if test "x$ac_cv_func_daemon" = xyes; then :
12112 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
12116 $as_echo_n "checking for daemon in -lbsd... " >&6; }
12117 if ${ac_cv_lib_bsd_daemon+:} false; then :
12118 $as_echo_n "(cached) " >&6
12120 ac_check_lib_save_LIBS=$LIBS
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_bsd_daemon=yes
12143 ac_cv_lib_bsd_daemon=no
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
12150 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
12151 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
12152 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
12160 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12161 if test "x$ac_cv_func_getpagesize" = xyes; then :
12163 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
12167 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
12168 if ${ac_cv_lib_ucb_getpagesize+:} false; then :
12169 $as_echo_n "(cached) " >&6
12171 ac_check_lib_save_LIBS=$LIBS
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12176 /* Override any GCC internal prototype to avoid an error.
12177 Use char because int might match the return type of a GCC
12178 builtin and then its argument prototype would still apply. */
12182 char getpagesize ();
12186 return getpagesize ();
12191 if ac_fn_c_try_link "$LINENO"; then :
12192 ac_cv_lib_ucb_getpagesize=yes
12194 ac_cv_lib_ucb_getpagesize=no
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LIBS=$ac_check_lib_save_LIBS
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
12201 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
12202 if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
12203 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
12211 # Check for broken snprintf
12212 if test "x$ac_cv_func_snprintf" = "xyes" ; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
12214 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
12215 if test "$cross_compiling" = yes; then :
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12217 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12228 snprintf(b,5,"123456789");
12235 if ac_fn_c_try_run "$LINENO"; then :
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12237 $as_echo "yes" >&6; }
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12243 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
12246 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
12249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12250 conftest.$ac_objext conftest.beam conftest.$ac_ext
12255 # We depend on vsnprintf returning the right thing on overflow: the
12256 # number of characters it tried to create (as per SUSv3)
12257 if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
12259 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
12260 if test "$cross_compiling" = yes; then :
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
12262 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12268 #include <sys/types.h>
12270 #include <stdarg.h>
12272 int x_snprintf(char *str, size_t count, const char *fmt, ...)
12278 ret = vsnprintf(str, count, fmt, ap);
12288 if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
12290 if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
12298 if ac_fn_c_try_run "$LINENO"; then :
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12300 $as_echo "yes" >&6; }
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12306 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
12309 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
12312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12313 conftest.$ac_objext conftest.beam conftest.$ac_ext
12318 # On systems where [v]snprintf is broken, but is declared in stdio,
12319 # check that the fmt argument is const char * or just char *.
12320 # This is only useful for when BROKEN_SNPRINTF
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
12322 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12327 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
12339 if ac_fn_c_try_compile "$LINENO"; then :
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341 $as_echo "yes" >&6; }
12343 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
12351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 # Check for missing getpeereid (or equiv) support
12355 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
12357 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12361 #include <sys/types.h>
12362 #include <sys/socket.h>
12366 int i = SO_PEERCRED;
12371 if ac_fn_c_try_compile "$LINENO"; then :
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12373 $as_echo "yes" >&6; }
12375 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
12389 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
12390 if test "$cross_compiling" = yes; then :
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12393 $as_echo "yes" >&6; }
12394 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12402 #include <stdlib.h>
12408 char template[]="conftest.mkstemp-test";
12409 if (mkstemp(template) == -1)
12418 if ac_fn_c_try_run "$LINENO"; then :
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12426 $as_echo "yes" >&6; }
12428 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
12432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12433 conftest.$ac_objext conftest.beam conftest.$ac_ext
12438 if test ! -z "$check_for_openpty_ctty_bug"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
12440 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
12441 if test "$cross_compiling" = yes; then :
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
12444 $as_echo "cross-compiling, assuming yes" >&6; }
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12452 #include <sys/fcntl.h>
12453 #include <sys/types.h>
12454 #include <sys/wait.h>
12461 int fd, ptyfd, ttyfd, status;
12464 if (pid < 0) { /* failed */
12466 } else if (pid > 0) { /* parent */
12467 waitpid(pid, &status, 0);
12468 if (WIFEXITED(status))
12469 exit(WEXITSTATUS(status));
12472 } else { /* child */
12473 close(0); close(1); close(2);
12475 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
12476 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
12478 exit(3); /* Acquired ctty: broken */
12480 exit(0); /* Did not acquire ctty: OK */
12487 if ac_fn_c_try_run "$LINENO"; then :
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12490 $as_echo "yes" >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495 $as_echo "no" >&6; }
12496 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
12500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12501 conftest.$ac_objext conftest.beam conftest.$ac_ext
12506 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
12507 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
12509 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
12510 if test "$cross_compiling" = yes; then :
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
12513 $as_echo "cross-compiling, assuming yes" >&6; }
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12521 #include <sys/socket.h>
12524 #include <netinet/in.h>
12526 #define TEST_PORT "2222"
12533 struct addrinfo *gai_ai, *ai, hints;
12534 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
12536 memset(&hints, 0, sizeof(hints));
12537 hints.ai_family = PF_UNSPEC;
12538 hints.ai_socktype = SOCK_STREAM;
12539 hints.ai_flags = AI_PASSIVE;
12541 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
12543 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
12547 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
12548 if (ai->ai_family != AF_INET6)
12551 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
12552 sizeof(ntop), strport, sizeof(strport),
12553 NI_NUMERICHOST|NI_NUMERICSERV);
12556 if (err == EAI_SYSTEM)
12557 perror("getnameinfo EAI_SYSTEM");
12559 fprintf(stderr, "getnameinfo failed: %s\n",
12560 gai_strerror(err));
12564 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
12567 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
12568 if (errno == EBADF)
12578 if ac_fn_c_try_run "$LINENO"; then :
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12581 $as_echo "yes" >&6; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12587 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
12591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12592 conftest.$ac_objext conftest.beam conftest.$ac_ext
12597 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
12598 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
12600 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
12601 if test "$cross_compiling" = yes; then :
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
12604 $as_echo "cross-compiling, assuming no" >&6; }
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12612 #include <sys/socket.h>
12615 #include <netinet/in.h>
12617 #define TEST_PORT "2222"
12624 struct addrinfo *gai_ai, *ai, hints;
12625 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
12627 memset(&hints, 0, sizeof(hints));
12628 hints.ai_family = PF_UNSPEC;
12629 hints.ai_socktype = SOCK_STREAM;
12630 hints.ai_flags = AI_PASSIVE;
12632 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
12634 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
12638 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
12639 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
12642 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
12643 sizeof(ntop), strport, sizeof(strport),
12644 NI_NUMERICHOST|NI_NUMERICSERV);
12646 if (ai->ai_family == AF_INET && err != 0) {
12647 perror("getnameinfo");
12657 if ac_fn_c_try_run "$LINENO"; then :
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12660 $as_echo "yes" >&6; }
12662 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
12673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12674 conftest.$ac_objext conftest.beam conftest.$ac_ext
12679 if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
12680 ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h>
12681 #include <sys/socket.h>
12684 if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then :
12690 cat >>confdefs.h <<_ACEOF
12691 #define HAVE_DECL_AI_NUMERICSERV $ac_have_decl
12696 if test "x$check_for_conflicting_getspnam" = "x1"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
12698 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12701 #include <shadow.h>
12710 if ac_fn_c_try_compile "$LINENO"; then :
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12718 $as_echo "yes" >&6; }
12720 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
12725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 if test "x$ac_cv_func_strnvis" = "xyes"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5
12730 $as_echo_n "checking for working strnvis... " >&6; }
12731 if test "$cross_compiling" = yes; then :
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5
12733 $as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;}
12735 $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12742 #include <signal.h>
12743 #include <stdlib.h>
12744 #include <string.h>
12746 static void sighandler(int sig) { _exit(1); }
12754 signal(SIGSEGV, sighandler);
12755 if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0)
12763 if ac_fn_c_try_run "$LINENO"; then :
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12765 $as_echo "yes" >&6; }
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12770 $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
12773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12774 conftest.$ac_objext conftest.beam conftest.$ac_ext
12779 for ac_func in getpgrp
12781 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
12782 if test "x$ac_cv_func_getpgrp" = xyes; then :
12783 cat >>confdefs.h <<_ACEOF
12784 #define HAVE_GETPGRP 1
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpgrp accepts zero args" >&5
12788 $as_echo_n "checking if getpgrp accepts zero args... " >&6; }
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12791 $ac_includes_default
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12802 $as_echo "yes" >&6; }
12804 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12810 $as_echo "#define GETPGRP_VOID 0" >>confdefs.h
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820 # Search for OpenSSL
12821 saved_CPPFLAGS="$CPPFLAGS"
12822 saved_LDFLAGS="$LDFLAGS"
12824 # Check whether --with-ssl-dir was given.
12825 if test "${with_ssl_dir+set}" = set; then :
12826 withval=$with_ssl_dir;
12827 if test "x$openssl" = "xno" ; then
12828 as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5
12830 if test "x$withval" != "xno" ; then
12833 ./*|../*) withval="`pwd`/$withval"
12835 if test -d "$withval/lib"; then
12836 if test -n "${need_dash_r}"; then
12837 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12839 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12841 elif test -d "$withval/lib64"; then
12842 if test -n "${need_dash_r}"; then
12843 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
12845 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
12848 if test -n "${need_dash_r}"; then
12849 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12851 LDFLAGS="-L${withval} ${LDFLAGS}"
12854 if test -d "$withval/include"; then
12855 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12857 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12866 # Check whether --with-openssl-header-check was given.
12867 if test "${with_openssl_header_check+set}" = set; then :
12868 withval=$with_openssl_header_check;
12869 if test "x$withval" = "xno" ; then
12870 openssl_check_nonfatal=1
12879 # Check whether --with-ssl-engine was given.
12880 if test "${with_ssl_engine+set}" = set; then :
12881 withval=$with_ssl_engine;
12882 if test "x$withval" != "xno" ; then
12883 if test "x$openssl" = "xno" ; then
12884 as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5
12893 if test "x$openssl" = "xyes" ; then
12894 LIBS="-lcrypto $LIBS"
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12898 /* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12908 return RAND_add ();
12913 if ac_fn_c_try_link "$LINENO"; then :
12915 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12919 if test -n "${need_dash_r}"; then
12920 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
12922 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
12924 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
12925 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
12926 if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
12929 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12936 /* Override any GCC internal prototype to avoid an error.
12937 Use char because int might match the return type of a GCC
12938 builtin and then its argument prototype would still apply. */
12946 return RAND_add ();
12951 if ac_fn_c_try_link "$LINENO"; then :
12952 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12956 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
12960 rm -f core conftest.err conftest.$ac_objext \
12961 conftest$ac_exeext conftest.$ac_ext
12965 rm -f core conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext conftest.$ac_ext
12968 # Determine OpenSSL header version
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
12970 $as_echo_n "checking OpenSSL header version... " >&6; }
12971 if test "$cross_compiling" = yes; then :
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12974 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12981 #include <stdlib.h>
12983 #include <string.h>
12984 #include <openssl/opensslv.h>
12985 #define DATA "conftest.sslincver"
12994 fd = fopen(DATA,"w");
12998 if ((rc = fprintf(fd, "%08lx (%s)\n",
12999 (unsigned long)OPENSSL_VERSION_NUMBER,
13000 OPENSSL_VERSION_TEXT)) < 0)
13009 if ac_fn_c_try_run "$LINENO"; then :
13011 ssl_header_ver=`cat conftest.sslincver`
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
13013 $as_echo "$ssl_header_ver" >&6; }
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13018 $as_echo "not found" >&6; }
13019 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
13022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13023 conftest.$ac_objext conftest.beam conftest.$ac_ext
13027 # Determine OpenSSL library version
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
13029 $as_echo_n "checking OpenSSL library version... " >&6; }
13030 if test "$cross_compiling" = yes; then :
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
13033 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13041 #include <string.h>
13042 #include <openssl/opensslv.h>
13043 #include <openssl/crypto.h>
13044 #define DATA "conftest.ssllibver"
13053 fd = fopen(DATA,"w");
13057 if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(),
13058 SSLeay_version(SSLEAY_VERSION))) < 0)
13067 if ac_fn_c_try_run "$LINENO"; then :
13069 ssl_library_ver=`cat conftest.ssllibver`
13070 # Check version is supported.
13071 case "$ssl_library_ver" in
13073 as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5
13076 200*) ;; # LibreSSL
13078 as_fn_error $? "OpenSSL >= 1.1.0 is not yet supported (have \"$ssl_library_ver\")" "$LINENO" 5
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
13082 $as_echo "$ssl_library_ver" >&6; }
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13087 $as_echo "not found" >&6; }
13088 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
13091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13092 conftest.$ac_objext conftest.beam conftest.$ac_ext
13096 # Sanity check OpenSSL headers
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
13098 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
13099 if test "$cross_compiling" = yes; then :
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
13102 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13109 #include <string.h>
13110 #include <openssl/opensslv.h>
13111 #include <openssl/crypto.h>
13117 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
13123 if ac_fn_c_try_run "$LINENO"; then :
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13126 $as_echo "yes" >&6; }
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13132 if test "x$openssl_check_nonfatal" = "x"; then
13133 as_fn_error $? "Your OpenSSL headers do not match your
13134 library. Check config.log for details.
13135 If you are sure your installation is consistent, you can disable the check
13136 by running \"./configure --without-openssl-header-check\".
13137 Also see contrib/findssl.sh for help identifying header/library mismatches.
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
13141 library. Check config.log for details.
13142 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
13143 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
13144 library. Check config.log for details.
13145 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
13149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13150 conftest.$ac_objext conftest.beam conftest.$ac_ext
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
13155 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158 #include <openssl/evp.h>
13162 SSLeay_add_all_algorithms();
13167 if ac_fn_c_try_link "$LINENO"; then :
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13170 $as_echo "yes" >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
13179 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13182 #include <openssl/evp.h>
13186 SSLeay_add_all_algorithms();
13191 if ac_fn_c_try_link "$LINENO"; then :
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13194 $as_echo "yes" >&6; }
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13204 rm -f core conftest.err conftest.$ac_objext \
13205 conftest$ac_exeext conftest.$ac_ext
13209 rm -f core conftest.err conftest.$ac_objext \
13210 conftest$ac_exeext conftest.$ac_ext
13214 DSA_generate_parameters_ex \
13215 EVP_DigestInit_ex \
13216 EVP_DigestFinal_ex \
13218 EVP_MD_CTX_cleanup \
13219 EVP_MD_CTX_copy_ex \
13221 RSA_generate_key_ex \
13222 RSA_get_default_method \
13225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13227 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13228 cat >>confdefs.h <<_ACEOF
13229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13236 if test "x$openssl_engine" = "xyes" ; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
13238 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13242 #include <openssl/engine.h>
13248 ENGINE_load_builtin_engines();
13249 ENGINE_register_all_complete();
13255 if ac_fn_c_try_compile "$LINENO"; then :
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13257 $as_echo "yes" >&6; }
13259 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
13263 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
13266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13269 # Check for OpenSSL without EVP_aes_{192,256}_cbc
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
13271 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13275 #include <string.h>
13276 #include <openssl/evp.h>
13282 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
13288 if ac_fn_c_try_link "$LINENO"; then :
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 $as_echo "no" >&6; }
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13296 $as_echo "yes" >&6; }
13298 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
13303 rm -f core conftest.err conftest.$ac_objext \
13304 conftest$ac_exeext conftest.$ac_ext
13306 # Check for OpenSSL with EVP_aes_*ctr
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
13308 $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13312 #include <string.h>
13313 #include <openssl/evp.h>
13319 exit(EVP_aes_128_ctr() == NULL ||
13320 EVP_aes_192_cbc() == NULL ||
13321 EVP_aes_256_cbc() == NULL);
13327 if ac_fn_c_try_link "$LINENO"; then :
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13330 $as_echo "yes" >&6; }
13332 $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13345 # Check for OpenSSL with EVP_aes_*gcm
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
13347 $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13351 #include <string.h>
13352 #include <openssl/evp.h>
13358 exit(EVP_aes_128_gcm() == NULL ||
13359 EVP_aes_256_gcm() == NULL ||
13360 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
13361 EVP_CTRL_GCM_IV_GEN == 0 ||
13362 EVP_CTRL_GCM_SET_TAG == 0 ||
13363 EVP_CTRL_GCM_GET_TAG == 0 ||
13364 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
13370 if ac_fn_c_try_link "$LINENO"; then :
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13373 $as_echo "yes" >&6; }
13375 $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13382 unsupported_algorithms="$unsupported_cipers \
13383 aes128-gcm@openssh.com \
13384 aes256-gcm@openssh.com"
13388 rm -f core conftest.err conftest.$ac_objext \
13389 conftest$ac_exeext conftest.$ac_ext
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
13392 $as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
13393 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
13394 $as_echo_n "(cached) " >&6
13396 ac_func_search_save_LIBS=$LIBS
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13400 /* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13406 char EVP_CIPHER_CTX_ctrl ();
13410 return EVP_CIPHER_CTX_ctrl ();
13415 for ac_lib in '' crypto; do
13416 if test -z "$ac_lib"; then
13417 ac_res="none required"
13420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13422 if ac_fn_c_try_link "$LINENO"; then :
13423 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
13425 rm -f core conftest.err conftest.$ac_objext \
13427 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
13431 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
13434 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
13436 rm conftest.$ac_ext
13437 LIBS=$ac_func_search_save_LIBS
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
13440 $as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
13441 ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
13442 if test "$ac_res" != no; then :
13443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13445 $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
13451 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13455 #include <string.h>
13456 #include <openssl/evp.h>
13462 if(EVP_DigestUpdate(NULL, NULL,0))
13469 if ac_fn_c_try_link "$LINENO"; then :
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13472 $as_echo "yes" >&6; }
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13479 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
13484 rm -f core conftest.err conftest.$ac_objext \
13485 conftest$ac_exeext conftest.$ac_ext
13487 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
13488 # because the system crypt() is more featureful.
13489 if test "x$check_for_libcrypt_before" = "x1"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13491 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
13492 if ${ac_cv_lib_crypt_crypt+:} false; then :
13493 $as_echo_n "(cached) " >&6
13495 ac_check_lib_save_LIBS=$LIBS
13496 LIBS="-lcrypt $LIBS"
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13500 /* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13515 if ac_fn_c_try_link "$LINENO"; then :
13516 ac_cv_lib_crypt_crypt=yes
13518 ac_cv_lib_crypt_crypt=no
13520 rm -f core conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13522 LIBS=$ac_check_lib_save_LIBS
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13525 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13526 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13527 cat >>confdefs.h <<_ACEOF
13528 #define HAVE_LIBCRYPT 1
13531 LIBS="-lcrypt $LIBS"
13537 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
13538 # version in OpenSSL.
13539 if test "x$check_for_libcrypt_later" = "x1"; then
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13541 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
13542 if ${ac_cv_lib_crypt_crypt+:} false; then :
13543 $as_echo_n "(cached) " >&6
13545 ac_check_lib_save_LIBS=$LIBS
13546 LIBS="-lcrypt $LIBS"
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13550 /* Override any GCC internal prototype to avoid an error.
13551 Use char because int might match the return type of a GCC
13552 builtin and then its argument prototype would still apply. */
13565 if ac_fn_c_try_link "$LINENO"; then :
13566 ac_cv_lib_crypt_crypt=yes
13568 ac_cv_lib_crypt_crypt=no
13570 rm -f core conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572 LIBS=$ac_check_lib_save_LIBS
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13575 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13576 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13577 LIBS="$LIBS -lcrypt"
13581 for ac_func in crypt DES_crypt
13583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13585 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13586 cat >>confdefs.h <<_ACEOF
13587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13594 # Search for SHA256 support in libc and/or OpenSSL
13595 for ac_func in SHA256_Update EVP_sha256
13597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13600 cat >>confdefs.h <<_ACEOF
13601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13605 unsupported_algorithms="$unsupported_algorithms \
13608 diffie-hellman-group-exchange-sha256 \
13609 hmac-sha2-256-etm@openssh.com \
13610 hmac-sha2-512-etm@openssh.com"
13616 # Search for RIPE-MD support in OpenSSL
13617 for ac_func in EVP_ripemd160
13619 ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160"
13620 if test "x$ac_cv_func_EVP_ripemd160" = xyes; then :
13621 cat >>confdefs.h <<_ACEOF
13622 #define HAVE_EVP_RIPEMD160 1
13626 unsupported_algorithms="$unsupported_algorithms \
13628 hmac-ripemd160@openssh.com \
13629 hmac-ripemd160-etm@openssh.com"
13636 # Check complete ECC support in OpenSSL
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
13638 $as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; }
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13642 #include <openssl/ec.h>
13643 #include <openssl/ecdh.h>
13644 #include <openssl/ecdsa.h>
13645 #include <openssl/evp.h>
13646 #include <openssl/objects.h>
13647 #include <openssl/opensslv.h>
13653 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
13654 const EVP_MD *m = EVP_sha256(); /* We need this too */
13660 if ac_fn_c_try_link "$LINENO"; then :
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13662 $as_echo "yes" >&6; }
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666 $as_echo "no" >&6; }
13669 rm -f core conftest.err conftest.$ac_objext \
13670 conftest$ac_exeext conftest.$ac_ext
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5
13673 $as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; }
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13677 #include <openssl/ec.h>
13678 #include <openssl/ecdh.h>
13679 #include <openssl/ecdsa.h>
13680 #include <openssl/evp.h>
13681 #include <openssl/objects.h>
13682 #include <openssl/opensslv.h>
13688 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
13689 const EVP_MD *m = EVP_sha384(); /* We need this too */
13695 if ac_fn_c_try_link "$LINENO"; then :
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13697 $as_echo "yes" >&6; }
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 $as_echo "no" >&6; }
13704 rm -f core conftest.err conftest.$ac_objext \
13705 conftest$ac_exeext conftest.$ac_ext
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5
13708 $as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; }
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13712 #include <openssl/ec.h>
13713 #include <openssl/ecdh.h>
13714 #include <openssl/ecdsa.h>
13715 #include <openssl/evp.h>
13716 #include <openssl/objects.h>
13717 #include <openssl/opensslv.h>
13723 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
13724 const EVP_MD *m = EVP_sha512(); /* We need this too */
13730 if ac_fn_c_try_link "$LINENO"; then :
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13732 $as_echo "yes" >&6; }
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5
13734 $as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; }
13735 if test "$cross_compiling" = yes; then :
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5
13737 $as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13744 #include <openssl/ec.h>
13745 #include <openssl/ecdh.h>
13746 #include <openssl/ecdsa.h>
13747 #include <openssl/evp.h>
13748 #include <openssl/objects.h>
13749 #include <openssl/opensslv.h>
13755 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
13756 const EVP_MD *m = EVP_sha512(); /* We need this too */
13757 exit(e == NULL || m == NULL);
13763 if ac_fn_c_try_run "$LINENO"; then :
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13765 $as_echo "yes" >&6; }
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769 $as_echo "no" >&6; }
13771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13772 conftest.$ac_objext conftest.beam conftest.$ac_ext
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13780 rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13783 COMMENT_OUT_ECC="#no ecc#"
13786 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
13787 test x$enable_nistp521 = x1; then
13789 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
13792 if test x$enable_nistp256 = x1; then
13794 $as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h
13799 unsupported_algorithms="$unsupported_algorithms \
13800 ecdsa-sha2-nistp256 \
13801 ecdh-sha2-nistp256 \
13802 ecdsa-sha2-nistp256-cert-v01@openssh.com"
13804 if test x$enable_nistp384 = x1; then
13806 $as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h
13811 unsupported_algorithms="$unsupported_algorithms \
13812 ecdsa-sha2-nistp384 \
13813 ecdh-sha2-nistp384 \
13814 ecdsa-sha2-nistp384-cert-v01@openssh.com"
13816 if test x$enable_nistp521 = x1; then
13818 $as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h
13823 unsupported_algorithms="$unsupported_algorithms \
13824 ecdh-sha2-nistp521 \
13825 ecdsa-sha2-nistp521 \
13826 ecdsa-sha2-nistp521-cert-v01@openssh.com"
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13833 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
13834 if ${ac_cv_lib_crypt_crypt+:} false; then :
13835 $as_echo_n "(cached) " >&6
13837 ac_check_lib_save_LIBS=$LIBS
13838 LIBS="-lcrypt $LIBS"
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13857 if ac_fn_c_try_link "$LINENO"; then :
13858 ac_cv_lib_crypt_crypt=yes
13860 ac_cv_lib_crypt_crypt=no
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 LIBS=$ac_check_lib_save_LIBS
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13867 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13868 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13869 LIBS="$LIBS -lcrypt"
13872 for ac_func in crypt
13874 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13875 if test "x$ac_cv_func_crypt" = xyes; then :
13876 cat >>confdefs.h <<_ACEOF
13877 #define HAVE_CRYPT 1
13889 arc4random_uniform \
13892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13893 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13894 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13895 cat >>confdefs.h <<_ACEOF
13896 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
13905 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
13906 if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
13907 $as_echo_n "(cached) " >&6
13909 ac_check_lib_save_LIBS=$LIBS
13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912 /* end confdefs.h. */
13914 /* Override any GCC internal prototype to avoid an error.
13915 Use char because int might match the return type of a GCC
13916 builtin and then its argument prototype would still apply. */
13920 char ia_openinfo ();
13924 return ia_openinfo ();
13929 if ac_fn_c_try_link "$LINENO"; then :
13930 ac_cv_lib_iaf_ia_openinfo=yes
13932 ac_cv_lib_iaf_ia_openinfo=no
13934 rm -f core conftest.err conftest.$ac_objext \
13935 conftest$ac_exeext conftest.$ac_ext
13936 LIBS=$ac_check_lib_save_LIBS
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
13939 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
13940 if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
13943 for ac_func in set_id
13945 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
13946 if test "x$ac_cv_func_set_id" = xyes; then :
13947 cat >>confdefs.h <<_ACEOF
13948 #define HAVE_SET_ID 1
13950 SSHDLIBS="$SSHDLIBS -liaf"
13952 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
13963 ### Configure cryptographic random number support
13965 # Check wheter OpenSSL seeds itself
13966 if test "x$openssl" = "xyes" ; then
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
13968 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
13969 if test "$cross_compiling" = yes; then :
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13972 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13973 # This is safe, since we will fatal() at runtime if
13974 # OpenSSL is not seeded correctly.
13975 OPENSSL_SEEDS_ITSELF=yes
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13982 #include <string.h>
13983 #include <openssl/rand.h>
13989 exit(RAND_status() == 1 ? 0 : 1);
13995 if ac_fn_c_try_run "$LINENO"; then :
13997 OPENSSL_SEEDS_ITSELF=yes
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 $as_echo "yes" >&6; }
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 $as_echo "no" >&6; }
14007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14008 conftest.$ac_objext conftest.beam conftest.$ac_ext
14015 # Check whether --with-prngd-port was given.
14016 if test "${with_prngd_port+set}" = set; then :
14017 withval=$with_prngd_port;
14025 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
14028 if test ! -z "$withval" ; then
14029 PRNGD_PORT="$withval"
14031 cat >>confdefs.h <<_ACEOF
14032 #define PRNGD_PORT $PRNGD_PORT
14041 # PRNGD Unix domain socket
14043 # Check whether --with-prngd-socket was given.
14044 if test "${with_prngd_socket+set}" = set; then :
14045 withval=$with_prngd_socket;
14048 withval="/var/run/egd-pool"
14056 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
14060 if test ! -z "$withval" ; then
14061 if test ! -z "$PRNGD_PORT" ; then
14062 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
14064 if test ! -r "$withval" ; then
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
14066 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
14068 PRNGD_SOCKET="$withval"
14070 cat >>confdefs.h <<_ACEOF
14071 #define PRNGD_SOCKET "$PRNGD_SOCKET"
14078 # Check for existing socket only if we don't have a random device already
14079 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
14081 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
14082 # Insert other locations here
14083 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
14084 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
14085 PRNGD_SOCKET="$sock"
14086 cat >>confdefs.h <<_ACEOF
14087 #define PRNGD_SOCKET "$PRNGD_SOCKET"
14093 if test ! -z "$PRNGD_SOCKET" ; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
14095 $as_echo "$PRNGD_SOCKET" >&6; }
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14098 $as_echo "not found" >&6; }
14106 # Which randomness source do we use?
14107 if test ! -z "$PRNGD_PORT" ; then
14108 RAND_MSG="PRNGd port $PRNGD_PORT"
14109 elif test ! -z "$PRNGD_SOCKET" ; then
14110 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
14111 elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
14113 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
14115 RAND_MSG="OpenSSL internal ONLY"
14116 elif test "x$openssl" = "xno" ; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5
14118 $as_echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;}
14120 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
14123 # Check for PAM libs
14126 # Check whether --with-pam was given.
14127 if test "${with_pam+set}" = set; then :
14129 if test "x$withval" != "xno" ; then
14130 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
14131 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
14132 as_fn_error $? "PAM headers not found" "$LINENO" 5
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14138 if ${ac_cv_lib_dl_dlopen+:} false; then :
14139 $as_echo_n "(cached) " >&6
14141 ac_check_lib_save_LIBS=$LIBS
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14161 if ac_fn_c_try_link "$LINENO"; then :
14162 ac_cv_lib_dl_dlopen=yes
14164 ac_cv_lib_dl_dlopen=no
14166 rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14172 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14173 cat >>confdefs.h <<_ACEOF
14174 #define HAVE_LIBDL 1
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
14182 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
14183 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
14184 $as_echo_n "(cached) " >&6
14186 ac_check_lib_save_LIBS=$LIBS
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14191 /* Override any GCC internal prototype to avoid an error.
14192 Use char because int might match the return type of a GCC
14193 builtin and then its argument prototype would still apply. */
14197 char pam_set_item ();
14201 return pam_set_item ();
14206 if ac_fn_c_try_link "$LINENO"; then :
14207 ac_cv_lib_pam_pam_set_item=yes
14209 ac_cv_lib_pam_pam_set_item=no
14211 rm -f core conftest.err conftest.$ac_objext \
14212 conftest$ac_exeext conftest.$ac_ext
14213 LIBS=$ac_check_lib_save_LIBS
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
14216 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
14217 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
14218 cat >>confdefs.h <<_ACEOF
14219 #define HAVE_LIBPAM 1
14225 as_fn_error $? "*** libpam missing" "$LINENO" 5
14228 for ac_func in pam_getenvlist
14230 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
14231 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
14232 cat >>confdefs.h <<_ACEOF
14233 #define HAVE_PAM_GETENVLIST 1
14239 for ac_func in pam_putenv
14241 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
14242 if test "x$ac_cv_func_pam_putenv" = xyes; then :
14243 cat >>confdefs.h <<_ACEOF
14244 #define HAVE_PAM_PUTENV 1
14254 SSHDLIBS="$SSHDLIBS -lpam"
14256 $as_echo "#define USE_PAM 1" >>confdefs.h
14259 if test $ac_cv_lib_dl_dlopen = yes; then
14262 # libdl already in LIBS
14265 SSHDLIBS="$SSHDLIBS -ldl"
14276 # Check whether --with-pam-service was given.
14277 if test "${with_pam_service+set}" = set; then :
14278 withval=$with_pam_service;
14279 if test "x$withval" != "xno" && \
14280 test "x$withval" != "xyes" ; then
14282 cat >>confdefs.h <<_ACEOF
14283 #define SSHD_PAM_SERVICE "$withval"
14292 # Check for older PAM
14293 if test "x$PAM_MSG" = "xyes" ; then
14294 # Check PAM strerror arguments (old PAM)
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
14296 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14300 #include <stdlib.h>
14301 #if defined(HAVE_SECURITY_PAM_APPL_H)
14302 #include <security/pam_appl.h>
14303 #elif defined (HAVE_PAM_PAM_APPL_H)
14304 #include <pam/pam_appl.h>
14311 (void)pam_strerror((pam_handle_t *)NULL, -1);
14317 if ac_fn_c_try_compile "$LINENO"; then :
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 $as_echo "no" >&6; }
14323 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14326 $as_echo "yes" >&6; }
14327 PAM_MSG="yes (old library)"
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
14339 SSH_PRIVSEP_USER=sshd
14343 # Check whether --with-privsep-user was given.
14344 if test "${with_privsep_user+set}" = set; then :
14345 withval=$with_privsep_user;
14346 if test -n "$withval" && test "x$withval" != "xno" && \
14347 test "x${withval}" != "xyes"; then
14348 SSH_PRIVSEP_USER=$withval
14354 if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
14362 cat >>confdefs.h <<_ACEOF
14363 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
14369 if test "x$have_linux_no_new_privs" = "x1" ; then
14370 ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
14371 #include <sys/types.h>
14372 #include <linux/seccomp.h>
14375 if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
14376 have_seccomp_filter=1
14380 if test "x$have_seccomp_filter" = "x1" ; then
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
14382 $as_echo_n "checking kernel for seccomp_filter support... " >&6; }
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14388 #include <linux/audit.h>
14389 #include <linux/seccomp.h>
14390 #include <stdlib.h>
14391 #include <sys/prctl.h>
14396 int i = $seccomp_audit_arch;
14398 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
14399 exit(errno == EFAULT ? 0 : 1);
14404 if ac_fn_c_try_link "$LINENO"; then :
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14406 $as_echo "yes" >&6; }
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14410 $as_echo "no" >&6; }
14411 # Disable seccomp filter as a target
14412 have_seccomp_filter=0
14416 rm -f core conftest.err conftest.$ac_objext \
14417 conftest$ac_exeext conftest.$ac_ext
14420 # Decide which sandbox style to use
14423 # Check whether --with-sandbox was given.
14424 if test "${with_sandbox+set}" = set; then :
14425 withval=$with_sandbox;
14426 if test "x$withval" = "xyes" ; then
14429 sandbox_arg="$withval"
14436 # Some platforms (seems to be the ones that have a kernel poll(2)-type
14437 # function with which they implement select(2)) use an extra file descriptor
14438 # when calling select(2), which means we can't use the rlimit sandbox.
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
14440 $as_echo_n "checking if select works with descriptor rlimit... " >&6; }
14441 if test "$cross_compiling" = yes; then :
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14443 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14444 select_works_with_rlimit=yes
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14450 #include <sys/types.h>
14451 #ifdef HAVE_SYS_TIME_H
14452 # include <sys/time.h>
14454 #include <sys/resource.h>
14455 #ifdef HAVE_SYS_SELECT_H
14456 # include <sys/select.h>
14460 #include <stdlib.h>
14466 struct rlimit rl_zero;
14471 fd = open("/dev/null", O_RDONLY);
14474 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14475 setrlimit(RLIMIT_FSIZE, &rl_zero);
14476 setrlimit(RLIMIT_NOFILE, &rl_zero);
14479 r = select(fd+1, &fds, NULL, NULL, &tv);
14480 exit (r == -1 ? 1 : 0);
14486 if ac_fn_c_try_run "$LINENO"; then :
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14488 $as_echo "yes" >&6; }
14489 select_works_with_rlimit=yes
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14492 $as_echo "no" >&6; }
14493 select_works_with_rlimit=no
14495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14496 conftest.$ac_objext conftest.beam conftest.$ac_ext
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
14501 $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
14502 if test "$cross_compiling" = yes; then :
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14504 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14505 rlimit_nofile_zero_works=yes
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14511 #include <sys/types.h>
14512 #ifdef HAVE_SYS_TIME_H
14513 # include <sys/time.h>
14515 #include <sys/resource.h>
14517 #include <stdlib.h>
14523 struct rlimit rl_zero;
14527 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14528 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
14529 exit (r == -1 ? 1 : 0);
14535 if ac_fn_c_try_run "$LINENO"; then :
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14537 $as_echo "yes" >&6; }
14538 rlimit_nofile_zero_works=yes
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14541 $as_echo "no" >&6; }
14542 rlimit_nofile_zero_works=no
14544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14545 conftest.$ac_objext conftest.beam conftest.$ac_ext
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
14550 $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
14551 if test "$cross_compiling" = yes; then :
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14553 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14559 #include <sys/types.h>
14560 #include <sys/resource.h>
14561 #include <stdlib.h>
14567 struct rlimit rl_zero;
14569 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14570 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
14576 if ac_fn_c_try_run "$LINENO"; then :
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14578 $as_echo "yes" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 $as_echo "no" >&6; }
14583 $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
14586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14587 conftest.$ac_objext conftest.beam conftest.$ac_ext
14591 if test "x$sandbox_arg" = "xpledge" || \
14592 ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then
14593 test "x$ac_cv_func_pledge" != "xyes" && \
14594 as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5
14595 SANDBOX_STYLE="pledge"
14597 $as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h
14599 elif test "x$sandbox_arg" = "xsystrace" || \
14600 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
14601 test "x$have_systr_policy_kill" != "x1" && \
14602 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
14603 SANDBOX_STYLE="systrace"
14605 $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
14607 elif test "x$sandbox_arg" = "xdarwin" || \
14608 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
14609 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
14610 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
14611 "x$ac_cv_header_sandbox_h" != "xyes" && \
14612 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
14613 SANDBOX_STYLE="darwin"
14615 $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
14617 elif test "x$sandbox_arg" = "xseccomp_filter" || \
14618 ( test -z "$sandbox_arg" && \
14619 test "x$have_seccomp_filter" = "x1" && \
14620 test "x$ac_cv_header_elf_h" = "xyes" && \
14621 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
14622 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
14623 test "x$seccomp_audit_arch" != "x" && \
14624 test "x$have_linux_no_new_privs" = "x1" && \
14625 test "x$ac_cv_func_prctl" = "xyes" ) ; then
14626 test "x$seccomp_audit_arch" = "x" && \
14627 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
14628 test "x$have_linux_no_new_privs" != "x1" && \
14629 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
14630 test "x$have_seccomp_filter" != "x1" && \
14631 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
14632 test "x$ac_cv_func_prctl" != "xyes" && \
14633 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
14634 SANDBOX_STYLE="seccomp_filter"
14636 $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
14638 elif test "x$sandbox_arg" = "xcapsicum" || \
14639 ( test -z "$sandbox_arg" && \
14640 test "x$ac_cv_header_sys_capsicum_h" = "xyes" && \
14641 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
14642 test "x$ac_cv_header_sys_capsicum_h" != "xyes" && \
14643 as_fn_error $? "capsicum sandbox requires sys/capsicum.h header" "$LINENO" 5
14644 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
14645 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5
14646 SANDBOX_STYLE="capsicum"
14648 $as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h
14650 elif test "x$sandbox_arg" = "xrlimit" || \
14651 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
14652 test "x$select_works_with_rlimit" = "xyes" && \
14653 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
14654 test "x$ac_cv_func_setrlimit" != "xyes" && \
14655 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
14656 test "x$select_works_with_rlimit" != "xyes" && \
14657 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
14658 SANDBOX_STYLE="rlimit"
14660 $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
14662 elif test "x$sandbox_arg" = "xsolaris" || \
14663 ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then
14664 SANDBOX_STYLE="solaris"
14666 $as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h
14668 elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
14669 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
14670 SANDBOX_STYLE="none"
14672 $as_echo "#define SANDBOX_NULL 1" >>confdefs.h
14675 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
14678 # Cheap hack to ensure NEWS-OS libraries are arranged right.
14679 if test ! -z "$SONY" ; then
14680 LIBS="$LIBS -liberty";
14683 # Check for long long datatypes
14684 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14685 if test "x$ac_cv_type_long_long" = xyes; then :
14687 cat >>confdefs.h <<_ACEOF
14688 #define HAVE_LONG_LONG 1
14693 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
14694 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
14696 cat >>confdefs.h <<_ACEOF
14697 #define HAVE_UNSIGNED_LONG_LONG 1
14702 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
14703 if test "x$ac_cv_type_long_double" = xyes; then :
14705 cat >>confdefs.h <<_ACEOF
14706 #define HAVE_LONG_DOUBLE 1
14713 # Check datatype sizes
14714 # The cast to long int works around a bug in the HP C Compiler
14715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14717 # This bug is HP SR number 8606223364.
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
14719 $as_echo_n "checking size of short int... " >&6; }
14720 if ${ac_cv_sizeof_short_int+:} false; then :
14721 $as_echo_n "(cached) " >&6
14723 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
14726 if test "$ac_cv_type_short_int" = yes; then
14727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14729 as_fn_error 77 "cannot compute sizeof (short int)
14730 See \`config.log' for more details" "$LINENO" 5; }
14732 ac_cv_sizeof_short_int=0
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
14738 $as_echo "$ac_cv_sizeof_short_int" >&6; }
14742 cat >>confdefs.h <<_ACEOF
14743 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14747 # The cast to long int works around a bug in the HP C Compiler
14748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14750 # This bug is HP SR number 8606223364.
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14752 $as_echo_n "checking size of int... " >&6; }
14753 if ${ac_cv_sizeof_int+:} false; then :
14754 $as_echo_n "(cached) " >&6
14756 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14759 if test "$ac_cv_type_int" = yes; then
14760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14762 as_fn_error 77 "cannot compute sizeof (int)
14763 See \`config.log' for more details" "$LINENO" 5; }
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14771 $as_echo "$ac_cv_sizeof_int" >&6; }
14775 cat >>confdefs.h <<_ACEOF
14776 #define SIZEOF_INT $ac_cv_sizeof_int
14780 # The cast to long int works around a bug in the HP C Compiler
14781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14783 # This bug is HP SR number 8606223364.
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14785 $as_echo_n "checking size of long int... " >&6; }
14786 if ${ac_cv_sizeof_long_int+:} false; then :
14787 $as_echo_n "(cached) " >&6
14789 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
14792 if test "$ac_cv_type_long_int" = yes; then
14793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14795 as_fn_error 77 "cannot compute sizeof (long int)
14796 See \`config.log' for more details" "$LINENO" 5; }
14798 ac_cv_sizeof_long_int=0
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14804 $as_echo "$ac_cv_sizeof_long_int" >&6; }
14808 cat >>confdefs.h <<_ACEOF
14809 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14813 # The cast to long int works around a bug in the HP C Compiler
14814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14816 # This bug is HP SR number 8606223364.
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
14818 $as_echo_n "checking size of long long int... " >&6; }
14819 if ${ac_cv_sizeof_long_long_int+:} false; then :
14820 $as_echo_n "(cached) " >&6
14822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
14825 if test "$ac_cv_type_long_long_int" = yes; then
14826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14828 as_fn_error 77 "cannot compute sizeof (long long int)
14829 See \`config.log' for more details" "$LINENO" 5; }
14831 ac_cv_sizeof_long_long_int=0
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
14837 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
14841 cat >>confdefs.h <<_ACEOF
14842 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14847 # Sanity check long long for some platforms (AIX)
14848 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
14849 ac_cv_sizeof_long_long_int=0
14852 # compute LLONG_MIN and LLONG_MAX if we don't know them.
14853 if test -z "$have_llong_max"; then
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
14855 $as_echo_n "checking for max value of long long... " >&6; }
14856 if test "$cross_compiling" = yes; then :
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
14859 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
14863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14867 /* Why is this so damn hard? */
14871 #define __USE_ISOC99
14872 #include <limits.h>
14873 #define DATA "conftest.llminmax"
14874 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
14877 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
14878 * we do this the hard way.
14881 fprint_ll(FILE *f, long long n)
14884 int l[sizeof(long long) * 8];
14887 if (fprintf(f, "-") < 0)
14889 for (i = 0; n != 0; i++) {
14890 l[i] = my_abs(n % 10);
14894 if (fprintf(f, "%d", l[--i]) < 0)
14897 if (fprintf(f, " ") < 0)
14907 long long i, llmin, llmax = 0;
14909 if((f = fopen(DATA,"w")) == NULL)
14912 #if defined(LLONG_MIN) && defined(LLONG_MAX)
14913 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
14917 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
14918 /* This will work on one's complement and two's complement */
14919 for (i = 1; i > llmax; i <<= 1, i++)
14921 llmin = llmax + 1LL; /* wrap */
14925 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
14926 || llmax - 1 > llmax || llmin == llmax || llmin == 0
14927 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
14928 fprintf(f, "unknown unknown\n");
14932 if (fprint_ll(f, llmin) < 0)
14934 if (fprint_ll(f, llmax) < 0)
14944 if ac_fn_c_try_run "$LINENO"; then :
14946 llong_min=`$AWK '{print $1}' conftest.llminmax`
14947 llong_max=`$AWK '{print $2}' conftest.llminmax`
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
14950 $as_echo "$llong_max" >&6; }
14952 cat >>confdefs.h <<_ACEOF
14953 #define LLONG_MAX ${llong_max}LL
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
14957 $as_echo_n "checking for min value of long long... " >&6; }
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
14959 $as_echo "$llong_min" >&6; }
14961 cat >>confdefs.h <<_ACEOF
14962 #define LLONG_MIN ${llong_min}LL
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14969 $as_echo "not found" >&6; }
14972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14973 conftest.$ac_objext conftest.beam conftest.$ac_ext
14979 # More checks for data types
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
14981 $as_echo_n "checking for u_int type... " >&6; }
14982 if ${ac_cv_have_u_int+:} false; then :
14983 $as_echo_n "(cached) " >&6
14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14987 /* end confdefs.h. */
14988 #include <sys/types.h>
14997 if ac_fn_c_try_compile "$LINENO"; then :
14998 ac_cv_have_u_int="yes"
15000 ac_cv_have_u_int="no"
15003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
15007 $as_echo "$ac_cv_have_u_int" >&6; }
15008 if test "x$ac_cv_have_u_int" = "xyes" ; then
15010 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
15016 $as_echo_n "checking for intXX_t types... " >&6; }
15017 if ${ac_cv_have_intxx_t+:} false; then :
15018 $as_echo_n "(cached) " >&6
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 #include <sys/types.h>
15027 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033 ac_cv_have_intxx_t="yes"
15035 ac_cv_have_intxx_t="no"
15038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
15042 $as_echo "$ac_cv_have_intxx_t" >&6; }
15043 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15045 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
15050 if (test -z "$have_intxx_t" && \
15051 test "x$ac_cv_header_stdint_h" = "xyes")
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
15054 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 #include <stdint.h>
15061 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15066 if ac_fn_c_try_compile "$LINENO"; then :
15068 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15071 $as_echo "yes" >&6; }
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075 $as_echo "no" >&6; }
15078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
15082 $as_echo_n "checking for int64_t type... " >&6; }
15083 if ${ac_cv_have_int64_t+:} false; then :
15084 $as_echo_n "(cached) " >&6
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15090 #include <sys/types.h>
15091 #ifdef HAVE_STDINT_H
15092 # include <stdint.h>
15094 #include <sys/socket.h>
15095 #ifdef HAVE_SYS_BITYPES_H
15096 # include <sys/bitypes.h>
15109 if ac_fn_c_try_compile "$LINENO"; then :
15110 ac_cv_have_int64_t="yes"
15112 ac_cv_have_int64_t="no"
15115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
15119 $as_echo "$ac_cv_have_int64_t" >&6; }
15120 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15122 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
15127 $as_echo_n "checking for u_intXX_t types... " >&6; }
15128 if ${ac_cv_have_u_intxx_t+:} false; then :
15129 $as_echo_n "(cached) " >&6
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15134 #include <sys/types.h>
15138 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15143 if ac_fn_c_try_compile "$LINENO"; then :
15144 ac_cv_have_u_intxx_t="yes"
15146 ac_cv_have_u_intxx_t="no"
15149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
15153 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
15154 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15156 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
15161 if test -z "$have_u_intxx_t" ; then
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
15163 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166 #include <sys/socket.h>
15170 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15175 if ac_fn_c_try_compile "$LINENO"; then :
15177 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15180 $as_echo "yes" >&6; }
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15184 $as_echo "no" >&6; }
15187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
15191 $as_echo_n "checking for u_int64_t types... " >&6; }
15192 if ${ac_cv_have_u_int64_t+:} false; then :
15193 $as_echo_n "(cached) " >&6
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198 #include <sys/types.h>
15202 u_int64_t a; a = 1;
15207 if ac_fn_c_try_compile "$LINENO"; then :
15208 ac_cv_have_u_int64_t="yes"
15210 ac_cv_have_u_int64_t="no"
15213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
15217 $as_echo "$ac_cv_have_u_int64_t" >&6; }
15218 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15220 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
15225 if (test -z "$have_u_int64_t" && \
15226 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
15229 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15232 #include <sys/bitypes.h>
15241 if ac_fn_c_try_compile "$LINENO"; then :
15243 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15246 $as_echo "yes" >&6; }
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15250 $as_echo "no" >&6; }
15253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256 if test -z "$have_u_intxx_t" ; then
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
15258 $as_echo_n "checking for uintXX_t types... " >&6; }
15259 if ${ac_cv_have_uintxx_t+:} false; then :
15260 $as_echo_n "(cached) " >&6
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15266 #include <sys/types.h>
15281 if ac_fn_c_try_compile "$LINENO"; then :
15282 ac_cv_have_uintxx_t="yes"
15284 ac_cv_have_uintxx_t="no"
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
15291 $as_echo "$ac_cv_have_uintxx_t" >&6; }
15292 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15294 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
15299 if (test -z "$have_uintxx_t" && \
15300 test "x$ac_cv_header_stdint_h" = "xyes")
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
15303 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305 /* end confdefs.h. */
15306 #include <stdint.h>
15310 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
15315 if ac_fn_c_try_compile "$LINENO"; then :
15317 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15320 $as_echo "yes" >&6; }
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324 $as_echo "no" >&6; }
15327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330 if (test -z "$have_uintxx_t" && \
15331 test "x$ac_cv_header_inttypes_h" = "xyes")
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5
15334 $as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; }
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15337 #include <inttypes.h>
15341 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
15346 if ac_fn_c_try_compile "$LINENO"; then :
15348 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15351 $as_echo "yes" >&6; }
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355 $as_echo "no" >&6; }
15358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15362 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15365 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15369 #include <sys/bitypes.h>
15375 int8_t a; int16_t b; int32_t c;
15376 u_int8_t e; u_int16_t f; u_int32_t g;
15377 a = b = c = e = f = g = 1;
15383 if ac_fn_c_try_compile "$LINENO"; then :
15385 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
15387 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15390 $as_echo "yes" >&6; }
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15394 $as_echo "no" >&6; }
15397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
15402 $as_echo_n "checking for u_char... " >&6; }
15403 if ${ac_cv_have_u_char+:} false; then :
15404 $as_echo_n "(cached) " >&6
15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h. */
15409 #include <sys/types.h>
15413 u_char foo; foo = 125;
15418 if ac_fn_c_try_compile "$LINENO"; then :
15419 ac_cv_have_u_char="yes"
15421 ac_cv_have_u_char="no"
15424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
15428 $as_echo "$ac_cv_have_u_char" >&6; }
15429 if test "x$ac_cv_have_u_char" = "xyes" ; then
15431 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
15435 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "
15436 #include <sys/types.h>
15437 #include <stdint.h>
15440 if test "x$ac_cv_type_intmax_t" = xyes; then :
15442 cat >>confdefs.h <<_ACEOF
15443 #define HAVE_INTMAX_T 1
15448 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
15449 #include <sys/types.h>
15450 #include <stdint.h>
15453 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15455 cat >>confdefs.h <<_ACEOF
15456 #define HAVE_UINTMAX_T 1
15464 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
15465 #include <sys/socket.h>
15467 if test "x$ac_cv_type_socklen_t" = xyes; then :
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
15472 $as_echo_n "checking for socklen_t equivalent... " >&6; }
15473 if ${curl_cv_socklen_t_equiv+:} false; then :
15474 $as_echo_n "(cached) " >&6
15477 # Systems have either "struct sockaddr *" or
15478 # "void *" as the second argument to getpeername
15479 curl_cv_socklen_t_equiv=
15480 for arg2 in "struct sockaddr" void; do
15481 for t in int size_t unsigned long "unsigned long"; do
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15485 #include <sys/types.h>
15486 #include <sys/socket.h>
15488 int getpeername (int, $arg2 *, $t *);
15495 getpeername(0,0,&len);
15501 if ac_fn_c_try_compile "$LINENO"; then :
15503 curl_cv_socklen_t_equiv="$t"
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 if test "x$curl_cv_socklen_t_equiv" = x; then
15512 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
15518 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
15520 cat >>confdefs.h <<_ACEOF
15521 #define socklen_t $curl_cv_socklen_t_equiv
15528 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
15530 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15532 cat >>confdefs.h <<_ACEOF
15533 #define HAVE_SIG_ATOMIC_T 1
15539 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
15540 #include <sys/types.h>
15541 #ifdef HAVE_SYS_BITYPES_H
15542 #include <sys/bitypes.h>
15544 #ifdef HAVE_SYS_STATFS_H
15545 #include <sys/statfs.h>
15547 #ifdef HAVE_SYS_STATVFS_H
15548 #include <sys/statvfs.h>
15552 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15554 cat >>confdefs.h <<_ACEOF
15555 #define HAVE_FSBLKCNT_T 1
15560 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
15561 #include <sys/types.h>
15562 #ifdef HAVE_SYS_BITYPES_H
15563 #include <sys/bitypes.h>
15565 #ifdef HAVE_SYS_STATFS_H
15566 #include <sys/statfs.h>
15568 #ifdef HAVE_SYS_STATVFS_H
15569 #include <sys/statvfs.h>
15573 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15575 cat >>confdefs.h <<_ACEOF
15576 #define HAVE_FSFILCNT_T 1
15583 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
15584 #include <sys/types.h>
15585 #ifdef HAVE_SYS_BITYPES_H
15586 #include <sys/bitypes.h>
15588 #ifdef HAVE_SYS_STATFS_H
15589 #include <sys/statfs.h>
15591 #ifdef HAVE_SYS_STATVFS_H
15592 #include <sys/statvfs.h>
15594 #ifdef HAVE_SYS_VFS_H
15595 #include <sys/vfs.h>
15599 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
15601 cat >>confdefs.h <<_ACEOF
15602 #define HAVE_STRUCT_STATFS_F_FLAGS 1
15610 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
15611 #include <netinet/in.h>
15613 if test "x$ac_cv_type_in_addr_t" = xyes; then :
15615 cat >>confdefs.h <<_ACEOF
15616 #define HAVE_IN_ADDR_T 1
15621 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
15622 #include <netinet/in.h>
15624 if test "x$ac_cv_type_in_port_t" = xyes; then :
15626 cat >>confdefs.h <<_ACEOF
15627 #define HAVE_IN_PORT_T 1
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
15635 $as_echo_n "checking for size_t... " >&6; }
15636 if ${ac_cv_have_size_t+:} false; then :
15637 $as_echo_n "(cached) " >&6
15640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15641 /* end confdefs.h. */
15642 #include <sys/types.h>
15646 size_t foo; foo = 1235;
15651 if ac_fn_c_try_compile "$LINENO"; then :
15652 ac_cv_have_size_t="yes"
15654 ac_cv_have_size_t="no"
15657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
15661 $as_echo "$ac_cv_have_size_t" >&6; }
15662 if test "x$ac_cv_have_size_t" = "xyes" ; then
15664 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15669 $as_echo_n "checking for ssize_t... " >&6; }
15670 if ${ac_cv_have_ssize_t+:} false; then :
15671 $as_echo_n "(cached) " >&6
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 #include <sys/types.h>
15680 ssize_t foo; foo = 1235;
15685 if ac_fn_c_try_compile "$LINENO"; then :
15686 ac_cv_have_ssize_t="yes"
15688 ac_cv_have_ssize_t="no"
15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
15695 $as_echo "$ac_cv_have_ssize_t" >&6; }
15696 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
15698 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
15703 $as_echo_n "checking for clock_t... " >&6; }
15704 if ${ac_cv_have_clock_t+:} false; then :
15705 $as_echo_n "(cached) " >&6
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15714 clock_t foo; foo = 1235;
15719 if ac_fn_c_try_compile "$LINENO"; then :
15720 ac_cv_have_clock_t="yes"
15722 ac_cv_have_clock_t="no"
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
15729 $as_echo "$ac_cv_have_clock_t" >&6; }
15730 if test "x$ac_cv_have_clock_t" = "xyes" ; then
15732 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
15737 $as_echo_n "checking for sa_family_t... " >&6; }
15738 if ${ac_cv_have_sa_family_t+:} false; then :
15739 $as_echo_n "(cached) " >&6
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15745 #include <sys/types.h>
15746 #include <sys/socket.h>
15751 sa_family_t foo; foo = 1235;
15756 if ac_fn_c_try_compile "$LINENO"; then :
15757 ac_cv_have_sa_family_t="yes"
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15762 #include <sys/types.h>
15763 #include <sys/socket.h>
15764 #include <netinet/in.h>
15769 sa_family_t foo; foo = 1235;
15774 if ac_fn_c_try_compile "$LINENO"; then :
15775 ac_cv_have_sa_family_t="yes"
15777 ac_cv_have_sa_family_t="no"
15780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
15787 $as_echo "$ac_cv_have_sa_family_t" >&6; }
15788 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
15790 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
15795 $as_echo_n "checking for pid_t... " >&6; }
15796 if ${ac_cv_have_pid_t+:} false; then :
15797 $as_echo_n "(cached) " >&6
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15802 #include <sys/types.h>
15806 pid_t foo; foo = 1235;
15811 if ac_fn_c_try_compile "$LINENO"; then :
15812 ac_cv_have_pid_t="yes"
15814 ac_cv_have_pid_t="no"
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
15821 $as_echo "$ac_cv_have_pid_t" >&6; }
15822 if test "x$ac_cv_have_pid_t" = "xyes" ; then
15824 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
15829 $as_echo_n "checking for mode_t... " >&6; }
15830 if ${ac_cv_have_mode_t+:} false; then :
15831 $as_echo_n "(cached) " >&6
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15836 #include <sys/types.h>
15840 mode_t foo; foo = 1235;
15845 if ac_fn_c_try_compile "$LINENO"; then :
15846 ac_cv_have_mode_t="yes"
15848 ac_cv_have_mode_t="no"
15851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
15855 $as_echo "$ac_cv_have_mode_t" >&6; }
15856 if test "x$ac_cv_have_mode_t" = "xyes" ; then
15858 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
15864 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15865 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
15866 $as_echo_n "(cached) " >&6
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15872 #include <sys/types.h>
15873 #include <sys/socket.h>
15878 struct sockaddr_storage s;
15883 if ac_fn_c_try_compile "$LINENO"; then :
15884 ac_cv_have_struct_sockaddr_storage="yes"
15886 ac_cv_have_struct_sockaddr_storage="no"
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
15893 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
15894 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
15896 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
15901 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
15902 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
15903 $as_echo_n "(cached) " >&6
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15909 #include <sys/types.h>
15910 #include <netinet/in.h>
15915 struct sockaddr_in6 s; s.sin6_family = 0;
15920 if ac_fn_c_try_compile "$LINENO"; then :
15921 ac_cv_have_struct_sockaddr_in6="yes"
15923 ac_cv_have_struct_sockaddr_in6="no"
15926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
15930 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
15931 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
15933 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
15938 $as_echo_n "checking for struct in6_addr... " >&6; }
15939 if ${ac_cv_have_struct_in6_addr+:} false; then :
15940 $as_echo_n "(cached) " >&6
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15946 #include <sys/types.h>
15947 #include <netinet/in.h>
15952 struct in6_addr s; s.s6_addr[0] = 0;
15957 if ac_fn_c_try_compile "$LINENO"; then :
15958 ac_cv_have_struct_in6_addr="yes"
15960 ac_cv_have_struct_in6_addr="no"
15963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
15967 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
15968 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
15970 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
15973 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
15974 #ifdef HAVE_SYS_TYPES_H
15975 #include <sys/types.h>
15977 #include <netinet/in.h>
15980 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15982 cat >>confdefs.h <<_ACEOF
15983 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
15992 $as_echo_n "checking for struct addrinfo... " >&6; }
15993 if ${ac_cv_have_struct_addrinfo+:} false; then :
15994 $as_echo_n "(cached) " >&6
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16000 #include <sys/types.h>
16001 #include <sys/socket.h>
16007 struct addrinfo s; s.ai_flags = AI_PASSIVE;
16012 if ac_fn_c_try_compile "$LINENO"; then :
16013 ac_cv_have_struct_addrinfo="yes"
16015 ac_cv_have_struct_addrinfo="no"
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
16022 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
16023 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
16025 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
16030 $as_echo_n "checking for struct timeval... " >&6; }
16031 if ${ac_cv_have_struct_timeval+:} false; then :
16032 $as_echo_n "(cached) " >&6
16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16037 #include <sys/time.h>
16041 struct timeval tv; tv.tv_sec = 1;
16046 if ac_fn_c_try_compile "$LINENO"; then :
16047 ac_cv_have_struct_timeval="yes"
16049 ac_cv_have_struct_timeval="no"
16052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
16056 $as_echo "$ac_cv_have_struct_timeval" >&6; }
16057 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
16059 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
16061 have_struct_timeval=1
16064 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
16065 if test "x$ac_cv_type_struct_timespec" = xyes; then :
16067 cat >>confdefs.h <<_ACEOF
16068 #define HAVE_STRUCT_TIMESPEC 1
16075 # We need int64_t or else certian parts of the compile will fail.
16076 if test "x$ac_cv_have_int64_t" = "xno" && \
16077 test "x$ac_cv_sizeof_long_int" != "x8" && \
16078 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
16079 echo "OpenSSH requires int64_t support. Contact your vendor or install"
16080 echo "an alternative compiler (I.E., GCC) before continuing."
16084 if test "$cross_compiling" = yes; then :
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
16086 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16093 #include <string.h>
16094 #ifdef HAVE_SNPRINTF
16098 char expected_out[50];
16100 #if (SIZEOF_LONG_INT == 8)
16101 long int num = 0x7fffffffffffffff;
16103 long long num = 0x7fffffffffffffffll;
16105 strcpy(expected_out, "9223372036854775807");
16106 snprintf(buf, mazsize, "%lld", num);
16107 if(strcmp(buf, expected_out) != 0)
16112 main() { exit(0); }
16116 if ac_fn_c_try_run "$LINENO"; then :
16119 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
16122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16123 conftest.$ac_objext conftest.beam conftest.$ac_ext
16129 # look for field 'ut_host' in header 'utmp.h'
16130 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16131 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
16133 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
16134 if eval \${$ossh_varname+:} false; then :
16135 $as_echo_n "(cached) " >&6
16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h. */
16143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16144 $EGREP "ut_host" >/dev/null 2>&1; then :
16145 eval "$ossh_varname=yes"
16147 eval "$ossh_varname=no"
16153 ossh_result=`eval 'echo $'"$ossh_varname"`
16154 if test -n "`echo $ossh_varname`"; then
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16156 $as_echo "$ossh_result" >&6; }
16157 if test "x$ossh_result" = "xyes"; then
16159 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16164 $as_echo "no" >&6; }
16168 # look for field 'ut_host' in header 'utmpx.h'
16169 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16170 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
16172 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
16173 if eval \${$ossh_varname+:} false; then :
16174 $as_echo_n "(cached) " >&6
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16183 $EGREP "ut_host" >/dev/null 2>&1; then :
16184 eval "$ossh_varname=yes"
16186 eval "$ossh_varname=no"
16192 ossh_result=`eval 'echo $'"$ossh_varname"`
16193 if test -n "`echo $ossh_varname`"; then
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16195 $as_echo "$ossh_result" >&6; }
16196 if test "x$ossh_result" = "xyes"; then
16198 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16203 $as_echo "no" >&6; }
16207 # look for field 'syslen' in header 'utmpx.h'
16208 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16209 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
16211 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
16212 if eval \${$ossh_varname+:} false; then :
16213 $as_echo_n "(cached) " >&6
16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16222 $EGREP "syslen" >/dev/null 2>&1; then :
16223 eval "$ossh_varname=yes"
16225 eval "$ossh_varname=no"
16231 ossh_result=`eval 'echo $'"$ossh_varname"`
16232 if test -n "`echo $ossh_varname`"; then
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16234 $as_echo "$ossh_result" >&6; }
16235 if test "x$ossh_result" = "xyes"; then
16237 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16242 $as_echo "no" >&6; }
16246 # look for field 'ut_pid' in header 'utmp.h'
16247 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16248 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
16250 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
16251 if eval \${$ossh_varname+:} false; then :
16252 $as_echo_n "(cached) " >&6
16255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h. */
16260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16261 $EGREP "ut_pid" >/dev/null 2>&1; then :
16262 eval "$ossh_varname=yes"
16264 eval "$ossh_varname=no"
16270 ossh_result=`eval 'echo $'"$ossh_varname"`
16271 if test -n "`echo $ossh_varname`"; then
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16273 $as_echo "$ossh_result" >&6; }
16274 if test "x$ossh_result" = "xyes"; then
16276 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16281 $as_echo "no" >&6; }
16285 # look for field 'ut_type' in header 'utmp.h'
16286 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16287 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
16289 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
16290 if eval \${$ossh_varname+:} false; then :
16291 $as_echo_n "(cached) " >&6
16294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295 /* end confdefs.h. */
16299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16300 $EGREP "ut_type" >/dev/null 2>&1; then :
16301 eval "$ossh_varname=yes"
16303 eval "$ossh_varname=no"
16309 ossh_result=`eval 'echo $'"$ossh_varname"`
16310 if test -n "`echo $ossh_varname`"; then
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16312 $as_echo "$ossh_result" >&6; }
16313 if test "x$ossh_result" = "xyes"; then
16315 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16320 $as_echo "no" >&6; }
16324 # look for field 'ut_type' in header 'utmpx.h'
16325 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16326 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
16328 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
16329 if eval \${$ossh_varname+:} false; then :
16330 $as_echo_n "(cached) " >&6
16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h. */
16338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16339 $EGREP "ut_type" >/dev/null 2>&1; then :
16340 eval "$ossh_varname=yes"
16342 eval "$ossh_varname=no"
16348 ossh_result=`eval 'echo $'"$ossh_varname"`
16349 if test -n "`echo $ossh_varname`"; then
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16351 $as_echo "$ossh_result" >&6; }
16352 if test "x$ossh_result" = "xyes"; then
16354 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359 $as_echo "no" >&6; }
16363 # look for field 'ut_tv' in header 'utmp.h'
16364 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16365 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
16367 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
16368 if eval \${$ossh_varname+:} false; then :
16369 $as_echo_n "(cached) " >&6
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16378 $EGREP "ut_tv" >/dev/null 2>&1; then :
16379 eval "$ossh_varname=yes"
16381 eval "$ossh_varname=no"
16387 ossh_result=`eval 'echo $'"$ossh_varname"`
16388 if test -n "`echo $ossh_varname`"; then
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16390 $as_echo "$ossh_result" >&6; }
16391 if test "x$ossh_result" = "xyes"; then
16393 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398 $as_echo "no" >&6; }
16402 # look for field 'ut_id' in header 'utmp.h'
16403 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16404 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
16406 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
16407 if eval \${$ossh_varname+:} false; then :
16408 $as_echo_n "(cached) " >&6
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16417 $EGREP "ut_id" >/dev/null 2>&1; then :
16418 eval "$ossh_varname=yes"
16420 eval "$ossh_varname=no"
16426 ossh_result=`eval 'echo $'"$ossh_varname"`
16427 if test -n "`echo $ossh_varname`"; then
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16429 $as_echo "$ossh_result" >&6; }
16430 if test "x$ossh_result" = "xyes"; then
16432 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16437 $as_echo "no" >&6; }
16441 # look for field 'ut_id' in header 'utmpx.h'
16442 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16443 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
16445 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
16446 if eval \${$ossh_varname+:} false; then :
16447 $as_echo_n "(cached) " >&6
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16456 $EGREP "ut_id" >/dev/null 2>&1; then :
16457 eval "$ossh_varname=yes"
16459 eval "$ossh_varname=no"
16465 ossh_result=`eval 'echo $'"$ossh_varname"`
16466 if test -n "`echo $ossh_varname`"; then
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16468 $as_echo "$ossh_result" >&6; }
16469 if test "x$ossh_result" = "xyes"; then
16471 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16476 $as_echo "no" >&6; }
16480 # look for field 'ut_addr' in header 'utmp.h'
16481 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16482 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
16484 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
16485 if eval \${$ossh_varname+:} false; then :
16486 $as_echo_n "(cached) " >&6
16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h. */
16494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16495 $EGREP "ut_addr" >/dev/null 2>&1; then :
16496 eval "$ossh_varname=yes"
16498 eval "$ossh_varname=no"
16504 ossh_result=`eval 'echo $'"$ossh_varname"`
16505 if test -n "`echo $ossh_varname`"; then
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16507 $as_echo "$ossh_result" >&6; }
16508 if test "x$ossh_result" = "xyes"; then
16510 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16515 $as_echo "no" >&6; }
16519 # look for field 'ut_addr' in header 'utmpx.h'
16520 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16521 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
16523 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
16524 if eval \${$ossh_varname+:} false; then :
16525 $as_echo_n "(cached) " >&6
16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16534 $EGREP "ut_addr" >/dev/null 2>&1; then :
16535 eval "$ossh_varname=yes"
16537 eval "$ossh_varname=no"
16543 ossh_result=`eval 'echo $'"$ossh_varname"`
16544 if test -n "`echo $ossh_varname`"; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16546 $as_echo "$ossh_result" >&6; }
16547 if test "x$ossh_result" = "xyes"; then
16549 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16554 $as_echo "no" >&6; }
16558 # look for field 'ut_addr_v6' in header 'utmp.h'
16559 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16560 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
16562 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
16563 if eval \${$ossh_varname+:} false; then :
16564 $as_echo_n "(cached) " >&6
16567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h. */
16572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16573 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
16574 eval "$ossh_varname=yes"
16576 eval "$ossh_varname=no"
16582 ossh_result=`eval 'echo $'"$ossh_varname"`
16583 if test -n "`echo $ossh_varname`"; then
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16585 $as_echo "$ossh_result" >&6; }
16586 if test "x$ossh_result" = "xyes"; then
16588 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16593 $as_echo "no" >&6; }
16597 # look for field 'ut_addr_v6' in header 'utmpx.h'
16598 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16599 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
16601 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
16602 if eval \${$ossh_varname+:} false; then :
16603 $as_echo_n "(cached) " >&6
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16612 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
16613 eval "$ossh_varname=yes"
16615 eval "$ossh_varname=no"
16621 ossh_result=`eval 'echo $'"$ossh_varname"`
16622 if test -n "`echo $ossh_varname`"; then
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16624 $as_echo "$ossh_result" >&6; }
16625 if test "x$ossh_result" = "xyes"; then
16627 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16632 $as_echo "no" >&6; }
16636 # look for field 'ut_exit' in header 'utmp.h'
16637 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16638 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
16640 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
16641 if eval \${$ossh_varname+:} false; then :
16642 $as_echo_n "(cached) " >&6
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16651 $EGREP "ut_exit" >/dev/null 2>&1; then :
16652 eval "$ossh_varname=yes"
16654 eval "$ossh_varname=no"
16660 ossh_result=`eval 'echo $'"$ossh_varname"`
16661 if test -n "`echo $ossh_varname`"; then
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16663 $as_echo "$ossh_result" >&6; }
16664 if test "x$ossh_result" = "xyes"; then
16666 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16671 $as_echo "no" >&6; }
16675 # look for field 'ut_time' in header 'utmp.h'
16676 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16677 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
16679 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
16680 if eval \${$ossh_varname+:} false; then :
16681 $as_echo_n "(cached) " >&6
16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h. */
16689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16690 $EGREP "ut_time" >/dev/null 2>&1; then :
16691 eval "$ossh_varname=yes"
16693 eval "$ossh_varname=no"
16699 ossh_result=`eval 'echo $'"$ossh_varname"`
16700 if test -n "`echo $ossh_varname`"; then
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16702 $as_echo "$ossh_result" >&6; }
16703 if test "x$ossh_result" = "xyes"; then
16705 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16710 $as_echo "no" >&6; }
16714 # look for field 'ut_time' in header 'utmpx.h'
16715 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16716 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
16718 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
16719 if eval \${$ossh_varname+:} false; then :
16720 $as_echo_n "(cached) " >&6
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16729 $EGREP "ut_time" >/dev/null 2>&1; then :
16730 eval "$ossh_varname=yes"
16732 eval "$ossh_varname=no"
16738 ossh_result=`eval 'echo $'"$ossh_varname"`
16739 if test -n "`echo $ossh_varname`"; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16741 $as_echo "$ossh_result" >&6; }
16742 if test "x$ossh_result" = "xyes"; then
16744 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749 $as_echo "no" >&6; }
16753 # look for field 'ut_tv' in header 'utmpx.h'
16754 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16755 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
16757 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
16758 if eval \${$ossh_varname+:} false; then :
16759 $as_echo_n "(cached) " >&6
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16768 $EGREP "ut_tv" >/dev/null 2>&1; then :
16769 eval "$ossh_varname=yes"
16771 eval "$ossh_varname=no"
16777 ossh_result=`eval 'echo $'"$ossh_varname"`
16778 if test -n "`echo $ossh_varname`"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16780 $as_echo "$ossh_result" >&6; }
16781 if test "x$ossh_result" = "xyes"; then
16783 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16792 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16793 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16802 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16803 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
16805 cat >>confdefs.h <<_ACEOF
16806 #define HAVE_STRUCT_STAT_ST_MTIM 1
16812 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "$ac_includes_default"
16813 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
16815 cat >>confdefs.h <<_ACEOF
16816 #define HAVE_STRUCT_STAT_ST_MTIME 1
16822 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
16823 #include <sys/types.h>
16827 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
16829 cat >>confdefs.h <<_ACEOF
16830 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
16835 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
16836 #include <sys/types.h>
16840 if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
16842 cat >>confdefs.h <<_ACEOF
16843 #define HAVE_STRUCT_PASSWD_PW_CLASS 1
16848 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
16849 #include <sys/types.h>
16853 if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
16855 cat >>confdefs.h <<_ACEOF
16856 #define HAVE_STRUCT_PASSWD_PW_CHANGE 1
16861 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
16862 #include <sys/types.h>
16866 if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
16868 cat >>confdefs.h <<_ACEOF
16869 #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
16876 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
16878 #if HAVE_SYS_TYPES_H
16879 # include <sys/types.h>
16881 #include <netinet/in.h>
16882 #include <arpa/nameser.h>
16883 #include <resolv.h>
16886 if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
16890 $as_echo "#define __res_state state" >>confdefs.h
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
16896 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
16897 if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
16898 $as_echo_n "(cached) " >&6
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16904 #include <sys/types.h>
16905 #include <sys/socket.h>
16910 struct sockaddr_storage s; s.ss_family = 1;
16915 if ac_fn_c_try_compile "$LINENO"; then :
16916 ac_cv_have_ss_family_in_struct_ss="yes"
16918 ac_cv_have_ss_family_in_struct_ss="no"
16920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
16924 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
16925 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
16927 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
16932 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
16933 if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
16934 $as_echo_n "(cached) " >&6
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16940 #include <sys/types.h>
16941 #include <sys/socket.h>
16946 struct sockaddr_storage s; s.__ss_family = 1;
16951 if ac_fn_c_try_compile "$LINENO"; then :
16952 ac_cv_have___ss_family_in_struct_ss="yes"
16954 ac_cv_have___ss_family_in_struct_ss="no"
16957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
16961 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
16962 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
16964 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
16969 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
16970 if ${ac_cv_have_accrights_in_msghdr+:} false; then :
16971 $as_echo_n "(cached) " >&6
16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16977 #include <sys/types.h>
16978 #include <sys/socket.h>
16979 #include <sys/uio.h>
16985 #ifdef msg_accrights
16986 #error "msg_accrights is a macro"
16990 m.msg_accrights = 0;
16997 if ac_fn_c_try_compile "$LINENO"; then :
16998 ac_cv_have_accrights_in_msghdr="yes"
17000 ac_cv_have_accrights_in_msghdr="no"
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
17007 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
17008 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
17010 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
17015 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17019 #include <sys/param.h>
17020 #include <sys/stat.h>
17021 #ifdef HAVE_SYS_TIME_H
17022 # include <sys/time.h>
17024 #ifdef HAVE_SYS_MOUNT_H
17025 #include <sys/mount.h>
17027 #ifdef HAVE_SYS_STATVFS_H
17028 #include <sys/statvfs.h>
17034 struct statvfs s; s.f_fsid = 0;
17039 if ac_fn_c_try_compile "$LINENO"; then :
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17041 $as_echo "yes" >&6; }
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17044 $as_echo "no" >&6; }
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
17047 $as_echo_n "checking if fsid_t has member val... " >&6; }
17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h. */
17051 #include <sys/types.h>
17052 #include <sys/statvfs.h>
17057 fsid_t t; t.val[0] = 0;
17062 if ac_fn_c_try_compile "$LINENO"; then :
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17064 $as_echo "yes" >&6; }
17066 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17070 $as_echo "no" >&6; }
17072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
17075 $as_echo_n "checking if f_fsid has member __val... " >&6; }
17076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077 /* end confdefs.h. */
17079 #include <sys/types.h>
17080 #include <sys/statvfs.h>
17085 fsid_t t; t.__val[0] = 0;
17090 if ac_fn_c_try_compile "$LINENO"; then :
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17092 $as_echo "yes" >&6; }
17094 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17098 $as_echo "no" >&6; }
17100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
17106 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
17107 if ${ac_cv_have_control_in_msghdr+:} false; then :
17108 $as_echo_n "(cached) " >&6
17111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h. */
17114 #include <sys/types.h>
17115 #include <sys/socket.h>
17116 #include <sys/uio.h>
17123 #error "msg_control is a macro"
17134 if ac_fn_c_try_compile "$LINENO"; then :
17135 ac_cv_have_control_in_msghdr="yes"
17137 ac_cv_have_control_in_msghdr="no"
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
17144 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
17145 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
17147 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
17152 $as_echo_n "checking if libc defines __progname... " >&6; }
17153 if ${ac_cv_libc_defines___progname+:} false; then :
17154 $as_echo_n "(cached) " >&6
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17163 extern char *__progname; printf("%s", __progname);
17168 if ac_fn_c_try_link "$LINENO"; then :
17169 ac_cv_libc_defines___progname="yes"
17171 ac_cv_libc_defines___progname="no"
17174 rm -f core conftest.err conftest.$ac_objext \
17175 conftest$ac_exeext conftest.$ac_ext
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
17179 $as_echo "$ac_cv_libc_defines___progname" >&6; }
17180 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
17182 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
17187 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
17188 if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
17189 $as_echo_n "(cached) " >&6
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17198 printf("%s", __FUNCTION__);
17203 if ac_fn_c_try_link "$LINENO"; then :
17204 ac_cv_cc_implements___FUNCTION__="yes"
17206 ac_cv_cc_implements___FUNCTION__="no"
17209 rm -f core conftest.err conftest.$ac_objext \
17210 conftest$ac_exeext conftest.$ac_ext
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
17214 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
17215 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
17217 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
17222 $as_echo_n "checking whether $CC implements __func__... " >&6; }
17223 if ${ac_cv_cc_implements___func__+:} false; then :
17224 $as_echo_n "(cached) " >&6
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h. */
17233 printf("%s", __func__);
17238 if ac_fn_c_try_link "$LINENO"; then :
17239 ac_cv_cc_implements___func__="yes"
17241 ac_cv_cc_implements___func__="no"
17244 rm -f core conftest.err conftest.$ac_objext \
17245 conftest$ac_exeext conftest.$ac_ext
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
17249 $as_echo "$ac_cv_cc_implements___func__" >&6; }
17250 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
17252 $as_echo "#define HAVE___func__ 1" >>confdefs.h
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
17257 $as_echo_n "checking whether va_copy exists... " >&6; }
17258 if ${ac_cv_have_va_copy+:} false; then :
17259 $as_echo_n "(cached) " >&6
17262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263 /* end confdefs.h. */
17265 #include <stdarg.h>
17276 if ac_fn_c_try_link "$LINENO"; then :
17277 ac_cv_have_va_copy="yes"
17279 ac_cv_have_va_copy="no"
17282 rm -f core conftest.err conftest.$ac_objext \
17283 conftest$ac_exeext conftest.$ac_ext
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
17287 $as_echo "$ac_cv_have_va_copy" >&6; }
17288 if test "x$ac_cv_have_va_copy" = "xyes" ; then
17290 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
17295 $as_echo_n "checking whether __va_copy exists... " >&6; }
17296 if ${ac_cv_have___va_copy+:} false; then :
17297 $as_echo_n "(cached) " >&6
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17303 #include <stdarg.h>
17314 if ac_fn_c_try_link "$LINENO"; then :
17315 ac_cv_have___va_copy="yes"
17317 ac_cv_have___va_copy="no"
17320 rm -f core conftest.err conftest.$ac_objext \
17321 conftest$ac_exeext conftest.$ac_ext
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
17325 $as_echo "$ac_cv_have___va_copy" >&6; }
17326 if test "x$ac_cv_have___va_copy" = "xyes" ; then
17328 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
17333 $as_echo_n "checking whether getopt has optreset support... " >&6; }
17334 if ${ac_cv_have_getopt_optreset+:} false; then :
17335 $as_echo_n "(cached) " >&6
17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h. */
17340 #include <getopt.h>
17344 extern int optreset; optreset = 0;
17349 if ac_fn_c_try_link "$LINENO"; then :
17350 ac_cv_have_getopt_optreset="yes"
17352 ac_cv_have_getopt_optreset="no"
17355 rm -f core conftest.err conftest.$ac_objext \
17356 conftest$ac_exeext conftest.$ac_ext
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
17360 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
17361 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
17363 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
17368 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
17369 if ${ac_cv_libc_defines_sys_errlist+:} false; then :
17370 $as_echo_n "(cached) " >&6
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17379 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
17384 if ac_fn_c_try_link "$LINENO"; then :
17385 ac_cv_libc_defines_sys_errlist="yes"
17387 ac_cv_libc_defines_sys_errlist="no"
17390 rm -f core conftest.err conftest.$ac_objext \
17391 conftest$ac_exeext conftest.$ac_ext
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
17395 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
17396 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
17398 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
17404 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
17405 if ${ac_cv_libc_defines_sys_nerr+:} false; then :
17406 $as_echo_n "(cached) " >&6
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17415 extern int sys_nerr; printf("%i", sys_nerr);
17420 if ac_fn_c_try_link "$LINENO"; then :
17421 ac_cv_libc_defines_sys_nerr="yes"
17423 ac_cv_libc_defines_sys_nerr="no"
17426 rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
17431 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
17432 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
17434 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
17438 # Check libraries needed by DNS fingerprint support
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
17440 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
17441 if ${ac_cv_search_getrrsetbyname+:} false; then :
17442 $as_echo_n "(cached) " >&6
17444 ac_func_search_save_LIBS=$LIBS
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17448 /* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17454 char getrrsetbyname ();
17458 return getrrsetbyname ();
17463 for ac_lib in '' resolv; do
17464 if test -z "$ac_lib"; then
17465 ac_res="none required"
17468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17470 if ac_fn_c_try_link "$LINENO"; then :
17471 ac_cv_search_getrrsetbyname=$ac_res
17473 rm -f core conftest.err conftest.$ac_objext \
17475 if ${ac_cv_search_getrrsetbyname+:} false; then :
17479 if ${ac_cv_search_getrrsetbyname+:} false; then :
17482 ac_cv_search_getrrsetbyname=no
17484 rm conftest.$ac_ext
17485 LIBS=$ac_func_search_save_LIBS
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
17488 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
17489 ac_res=$ac_cv_search_getrrsetbyname
17490 if test "$ac_res" != no; then :
17491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17493 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
17497 # Needed by our getrrsetbyname()
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
17499 $as_echo_n "checking for library containing res_query... " >&6; }
17500 if ${ac_cv_search_res_query+:} false; then :
17501 $as_echo_n "(cached) " >&6
17503 ac_func_search_save_LIBS=$LIBS
17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h. */
17507 /* Override any GCC internal prototype to avoid an error.
17508 Use char because int might match the return type of a GCC
17509 builtin and then its argument prototype would still apply. */
17517 return res_query ();
17522 for ac_lib in '' resolv; do
17523 if test -z "$ac_lib"; then
17524 ac_res="none required"
17527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17529 if ac_fn_c_try_link "$LINENO"; then :
17530 ac_cv_search_res_query=$ac_res
17532 rm -f core conftest.err conftest.$ac_objext \
17534 if ${ac_cv_search_res_query+:} false; then :
17538 if ${ac_cv_search_res_query+:} false; then :
17541 ac_cv_search_res_query=no
17543 rm conftest.$ac_ext
17544 LIBS=$ac_func_search_save_LIBS
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
17547 $as_echo "$ac_cv_search_res_query" >&6; }
17548 ac_res=$ac_cv_search_res_query
17549 if test "$ac_res" != no; then :
17550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
17555 $as_echo_n "checking for library containing dn_expand... " >&6; }
17556 if ${ac_cv_search_dn_expand+:} false; then :
17557 $as_echo_n "(cached) " >&6
17559 ac_func_search_save_LIBS=$LIBS
17560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h. */
17563 /* Override any GCC internal prototype to avoid an error.
17564 Use char because int might match the return type of a GCC
17565 builtin and then its argument prototype would still apply. */
17573 return dn_expand ();
17578 for ac_lib in '' resolv; do
17579 if test -z "$ac_lib"; then
17580 ac_res="none required"
17583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17585 if ac_fn_c_try_link "$LINENO"; then :
17586 ac_cv_search_dn_expand=$ac_res
17588 rm -f core conftest.err conftest.$ac_objext \
17590 if ${ac_cv_search_dn_expand+:} false; then :
17594 if ${ac_cv_search_dn_expand+:} false; then :
17597 ac_cv_search_dn_expand=no
17599 rm conftest.$ac_ext
17600 LIBS=$ac_func_search_save_LIBS
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
17603 $as_echo "$ac_cv_search_dn_expand" >&6; }
17604 ac_res=$ac_cv_search_dn_expand
17605 if test "$ac_res" != no; then :
17606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
17611 $as_echo_n "checking if res_query will link... " >&6; }
17612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17613 /* end confdefs.h. */
17615 #include <sys/types.h>
17616 #include <netinet/in.h>
17617 #include <arpa/nameser.h>
17619 #include <resolv.h>
17625 res_query (0, 0, 0, 0, 0);
17631 if ac_fn_c_try_link "$LINENO"; then :
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17633 $as_echo "yes" >&6; }
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17636 $as_echo "no" >&6; }
17638 LIBS="$LIBS -lresolv"
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
17640 $as_echo_n "checking for res_query in -lresolv... " >&6; }
17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642 /* end confdefs.h. */
17644 #include <sys/types.h>
17645 #include <netinet/in.h>
17646 #include <arpa/nameser.h>
17648 #include <resolv.h>
17654 res_query (0, 0, 0, 0, 0);
17660 if ac_fn_c_try_link "$LINENO"; then :
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17662 $as_echo "yes" >&6; }
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17666 $as_echo "no" >&6; }
17668 rm -f core conftest.err conftest.$ac_objext \
17669 conftest$ac_exeext conftest.$ac_ext
17672 rm -f core conftest.err conftest.$ac_objext \
17673 conftest$ac_exeext conftest.$ac_ext
17674 for ac_func in _getshort _getlong
17676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17679 cat >>confdefs.h <<_ACEOF
17680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17686 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
17687 #include <arpa/nameser.h>
17689 if test "x$ac_cv_have_decl__getshort" = xyes; then :
17695 cat >>confdefs.h <<_ACEOF
17696 #define HAVE_DECL__GETSHORT $ac_have_decl
17698 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
17699 #include <arpa/nameser.h>
17701 if test "x$ac_cv_have_decl__getlong" = xyes; then :
17707 cat >>confdefs.h <<_ACEOF
17708 #define HAVE_DECL__GETLONG $ac_have_decl
17711 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
17713 if test "x$ac_cv_member_HEADER_ad" = xyes; then :
17715 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
17724 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
17725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17726 /* end confdefs.h. */
17729 #if HAVE_SYS_TYPES_H
17730 # include <sys/types.h>
17732 #include <netinet/in.h>
17733 #include <arpa/nameser.h>
17734 #include <resolv.h>
17735 extern struct __res_state _res;
17741 struct __res_state *volatile p = &_res; /* force resolution of _res */
17748 if ac_fn_c_try_link "$LINENO"; then :
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17750 $as_echo "yes" >&6; }
17752 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17757 $as_echo "no" >&6; }
17760 rm -f core conftest.err conftest.$ac_objext \
17761 conftest$ac_exeext conftest.$ac_ext
17763 # Check whether user wants SELinux support
17767 # Check whether --with-selinux was given.
17768 if test "${with_selinux+set}" = set; then :
17769 withval=$with_selinux; if test "x$withval" != "xno" ; then
17772 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
17775 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
17776 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
17779 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
17784 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
17785 if ${ac_cv_lib_selinux_setexeccon+:} false; then :
17786 $as_echo_n "(cached) " >&6
17788 ac_check_lib_save_LIBS=$LIBS
17789 LIBS="-lselinux $LIBS"
17790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17791 /* end confdefs.h. */
17793 /* Override any GCC internal prototype to avoid an error.
17794 Use char because int might match the return type of a GCC
17795 builtin and then its argument prototype would still apply. */
17799 char setexeccon ();
17803 return setexeccon ();
17808 if ac_fn_c_try_link "$LINENO"; then :
17809 ac_cv_lib_selinux_setexeccon=yes
17811 ac_cv_lib_selinux_setexeccon=no
17813 rm -f core conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
17815 LIBS=$ac_check_lib_save_LIBS
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
17818 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
17819 if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
17820 LIBSELINUX="-lselinux"
17821 LIBS="$LIBS -lselinux"
17824 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
17827 SSHLIBS="$SSHLIBS $LIBSELINUX"
17828 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
17829 for ac_func in getseuserbyname get_default_context_with_level
17831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17832 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17833 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17834 cat >>confdefs.h <<_ACEOF
17835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17849 # Check whether user wants Kerberos 5 support
17852 # Check whether --with-kerberos5 was given.
17853 if test "${with_kerberos5+set}" = set; then :
17854 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
17855 if test "x$withval" = "xyes" ; then
17856 KRB5ROOT="/usr/local"
17858 KRB5ROOT=${withval}
17862 $as_echo "#define KRB5 1" >>confdefs.h
17866 if test -n "$ac_tool_prefix"; then
17867 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
17868 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17870 $as_echo_n "checking for $ac_word... " >&6; }
17871 if ${ac_cv_path_KRB5CONF+:} false; then :
17872 $as_echo_n "(cached) " >&6
17876 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
17879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17880 as_dummy="$KRB5ROOT/bin:$PATH"
17881 for as_dir in $as_dummy
17884 test -z "$as_dir" && as_dir=.
17885 for ac_exec_ext in '' $ac_executable_extensions; do
17886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17887 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
17888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17898 KRB5CONF=$ac_cv_path_KRB5CONF
17899 if test -n "$KRB5CONF"; then
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
17901 $as_echo "$KRB5CONF" >&6; }
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17904 $as_echo "no" >&6; }
17909 if test -z "$ac_cv_path_KRB5CONF"; then
17910 ac_pt_KRB5CONF=$KRB5CONF
17911 # Extract the first word of "krb5-config", so it can be a program name with args.
17912 set dummy krb5-config; ac_word=$2
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17914 $as_echo_n "checking for $ac_word... " >&6; }
17915 if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then :
17916 $as_echo_n "(cached) " >&6
17918 case $ac_pt_KRB5CONF in
17920 ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path.
17923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17924 as_dummy="$KRB5ROOT/bin:$PATH"
17925 for as_dir in $as_dummy
17928 test -z "$as_dir" && as_dir=.
17929 for ac_exec_ext in '' $ac_executable_extensions; do
17930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17931 ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
17932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17942 ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF
17943 if test -n "$ac_pt_KRB5CONF"; then
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5
17945 $as_echo "$ac_pt_KRB5CONF" >&6; }
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17948 $as_echo "no" >&6; }
17951 if test "x$ac_pt_KRB5CONF" = x; then
17952 KRB5CONF="$KRB5ROOT/bin/krb5-config"
17954 case $cross_compiling:$ac_tool_warned in
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17958 ac_tool_warned=yes ;;
17960 KRB5CONF=$ac_pt_KRB5CONF
17963 KRB5CONF="$ac_cv_path_KRB5CONF"
17966 if test -x $KRB5CONF ; then
17967 K5CFLAGS="`$KRB5CONF --cflags`"
17968 K5LIBS="`$KRB5CONF --libs`"
17969 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
17972 $as_echo_n "checking for gssapi support... " >&6; }
17973 if $KRB5CONF | grep gssapi >/dev/null ; then
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17975 $as_echo "yes" >&6; }
17977 $as_echo "#define GSSAPI 1" >>confdefs.h
17979 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
17980 GSSLIBS="`$KRB5CONF --libs gssapi`"
17981 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17984 $as_echo "no" >&6; }
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17987 $as_echo_n "checking whether we are using Heimdal... " >&6; }
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17995 char *tmp = heimdal_version;
18000 if ac_fn_c_try_compile "$LINENO"; then :
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18002 $as_echo "yes" >&6; }
18004 $as_echo "#define HEIMDAL 1" >>confdefs.h
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
18014 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18016 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18024 char *tmp = heimdal_version;
18029 if ac_fn_c_try_compile "$LINENO"; then :
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18031 $as_echo "yes" >&6; }
18032 $as_echo "#define HEIMDAL 1" >>confdefs.h
18035 K5LIBS="$K5LIBS -lcom_err -lasn1"
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
18037 $as_echo_n "checking for net_write in -lroken... " >&6; }
18038 if ${ac_cv_lib_roken_net_write+:} false; then :
18039 $as_echo_n "(cached) " >&6
18041 ac_check_lib_save_LIBS=$LIBS
18042 LIBS="-lroken $LIBS"
18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h. */
18046 /* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18056 return net_write ();
18061 if ac_fn_c_try_link "$LINENO"; then :
18062 ac_cv_lib_roken_net_write=yes
18064 ac_cv_lib_roken_net_write=no
18066 rm -f core conftest.err conftest.$ac_objext \
18067 conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
18071 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
18072 if test "x$ac_cv_lib_roken_net_write" = xyes; then :
18073 K5LIBS="$K5LIBS -lroken"
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18077 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18078 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
18079 $as_echo_n "(cached) " >&6
18081 ac_check_lib_save_LIBS=$LIBS
18083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h. */
18086 /* Override any GCC internal prototype to avoid an error.
18087 Use char because int might match the return type of a GCC
18088 builtin and then its argument prototype would still apply. */
18092 char des_cbc_encrypt ();
18096 return des_cbc_encrypt ();
18101 if ac_fn_c_try_link "$LINENO"; then :
18102 ac_cv_lib_des_des_cbc_encrypt=yes
18104 ac_cv_lib_des_des_cbc_encrypt=no
18106 rm -f core conftest.err conftest.$ac_objext \
18107 conftest$ac_exeext conftest.$ac_ext
18108 LIBS=$ac_check_lib_save_LIBS
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18111 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18112 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
18113 K5LIBS="$K5LIBS -ldes"
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18119 $as_echo "no" >&6; }
18120 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
18125 $as_echo_n "checking for library containing dn_expand... " >&6; }
18126 if ${ac_cv_search_dn_expand+:} false; then :
18127 $as_echo_n "(cached) " >&6
18129 ac_func_search_save_LIBS=$LIBS
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h. */
18133 /* Override any GCC internal prototype to avoid an error.
18134 Use char because int might match the return type of a GCC
18135 builtin and then its argument prototype would still apply. */
18143 return dn_expand ();
18148 for ac_lib in '' resolv; do
18149 if test -z "$ac_lib"; then
18150 ac_res="none required"
18153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18155 if ac_fn_c_try_link "$LINENO"; then :
18156 ac_cv_search_dn_expand=$ac_res
18158 rm -f core conftest.err conftest.$ac_objext \
18160 if ${ac_cv_search_dn_expand+:} false; then :
18164 if ${ac_cv_search_dn_expand+:} false; then :
18167 ac_cv_search_dn_expand=no
18169 rm conftest.$ac_ext
18170 LIBS=$ac_func_search_save_LIBS
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
18173 $as_echo "$ac_cv_search_dn_expand" >&6; }
18174 ac_res=$ac_cv_search_dn_expand
18175 if test "$ac_res" != no; then :
18176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
18182 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
18183 if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
18184 $as_echo_n "(cached) " >&6
18186 ac_check_lib_save_LIBS=$LIBS
18187 LIBS="-lgssapi_krb5 $LIBS"
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18191 /* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18197 char gss_init_sec_context ();
18201 return gss_init_sec_context ();
18206 if ac_fn_c_try_link "$LINENO"; then :
18207 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
18209 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
18211 rm -f core conftest.err conftest.$ac_objext \
18212 conftest$ac_exeext conftest.$ac_ext
18213 LIBS=$ac_check_lib_save_LIBS
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
18216 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
18217 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
18218 $as_echo "#define GSSAPI 1" >>confdefs.h
18220 GSSLIBS="-lgssapi_krb5"
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
18223 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
18224 if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
18225 $as_echo_n "(cached) " >&6
18227 ac_check_lib_save_LIBS=$LIBS
18228 LIBS="-lgssapi $LIBS"
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18238 char gss_init_sec_context ();
18242 return gss_init_sec_context ();
18247 if ac_fn_c_try_link "$LINENO"; then :
18248 ac_cv_lib_gssapi_gss_init_sec_context=yes
18250 ac_cv_lib_gssapi_gss_init_sec_context=no
18252 rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
18257 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
18258 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
18259 $as_echo "#define GSSAPI 1" >>confdefs.h
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
18264 $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
18265 if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
18266 $as_echo_n "(cached) " >&6
18268 ac_check_lib_save_LIBS=$LIBS
18270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18273 /* Override any GCC internal prototype to avoid an error.
18274 Use char because int might match the return type of a GCC
18275 builtin and then its argument prototype would still apply. */
18279 char gss_init_sec_context ();
18283 return gss_init_sec_context ();
18288 if ac_fn_c_try_link "$LINENO"; then :
18289 ac_cv_lib_gss_gss_init_sec_context=yes
18291 ac_cv_lib_gss_gss_init_sec_context=no
18293 rm -f core conftest.err conftest.$ac_objext \
18294 conftest$ac_exeext conftest.$ac_ext
18295 LIBS=$ac_check_lib_save_LIBS
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
18298 $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
18299 if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
18300 $as_echo "#define GSSAPI 1" >>confdefs.h
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
18305 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
18315 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
18316 if test "x$ac_cv_header_gssapi_h" = xyes; then :
18319 unset ac_cv_header_gssapi_h
18320 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
18321 for ac_header in gssapi.h
18323 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
18324 if test "x$ac_cv_header_gssapi_h" = xyes; then :
18325 cat >>confdefs.h <<_ACEOF
18326 #define HAVE_GSSAPI_H 1
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
18331 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
18344 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
18345 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
18346 if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
18355 if test ! -z "$need_dash_r" ; then
18356 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
18358 if test ! -z "$blibpath" ; then
18359 blibpath="$blibpath:${KRB5ROOT}/lib"
18362 for ac_header in gssapi.h gssapi/gssapi.h
18364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18365 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18367 cat >>confdefs.h <<_ACEOF
18368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18375 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
18377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18378 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18379 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18380 cat >>confdefs.h <<_ACEOF
18381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18388 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
18390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18391 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18393 cat >>confdefs.h <<_ACEOF
18394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
18403 $as_echo_n "checking for library containing k_hasafs... " >&6; }
18404 if ${ac_cv_search_k_hasafs+:} false; then :
18405 $as_echo_n "(cached) " >&6
18407 ac_func_search_save_LIBS=$LIBS
18408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18411 /* Override any GCC internal prototype to avoid an error.
18412 Use char because int might match the return type of a GCC
18413 builtin and then its argument prototype would still apply. */
18421 return k_hasafs ();
18426 for ac_lib in '' kafs; do
18427 if test -z "$ac_lib"; then
18428 ac_res="none required"
18431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18433 if ac_fn_c_try_link "$LINENO"; then :
18434 ac_cv_search_k_hasafs=$ac_res
18436 rm -f core conftest.err conftest.$ac_objext \
18438 if ${ac_cv_search_k_hasafs+:} false; then :
18442 if ${ac_cv_search_k_hasafs+:} false; then :
18445 ac_cv_search_k_hasafs=no
18447 rm conftest.$ac_ext
18448 LIBS=$ac_func_search_save_LIBS
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
18451 $as_echo "$ac_cv_search_k_hasafs" >&6; }
18452 ac_res=$ac_cv_search_k_hasafs
18453 if test "$ac_res" != no; then :
18454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18456 $as_echo "#define USE_AFS 1" >>confdefs.h
18461 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
18462 #ifdef HAVE_GSSAPI_H
18463 # include <gssapi.h>
18464 #elif defined(HAVE_GSSAPI_GSSAPI_H)
18465 # include <gssapi/gssapi.h>
18468 #ifdef HAVE_GSSAPI_GENERIC_H
18469 # include <gssapi_generic.h>
18470 #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
18471 # include <gssapi/gssapi_generic.h>
18475 if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
18481 cat >>confdefs.h <<_ACEOF
18482 #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
18486 LIBS="$LIBS $K5LIBS"
18487 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
18489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18492 cat >>confdefs.h <<_ACEOF
18493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18509 # Looking for programs, paths and files
18511 PRIVSEP_PATH=/var/empty
18513 # Check whether --with-privsep-path was given.
18514 if test "${with_privsep_path+set}" = set; then :
18515 withval=$with_privsep_path;
18516 if test -n "$withval" && test "x$withval" != "xno" && \
18517 test "x${withval}" != "xyes"; then
18518 PRIVSEP_PATH=$withval
18527 # Check whether --with-xauth was given.
18528 if test "${with_xauth+set}" = set; then :
18529 withval=$with_xauth;
18530 if test -n "$withval" && test "x$withval" != "xno" && \
18531 test "x${withval}" != "xyes"; then
18532 xauth_path=$withval
18538 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
18539 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
18540 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
18541 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
18542 # Extract the first word of "xauth", so it can be a program name with args.
18543 set dummy xauth; ac_word=$2
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18545 $as_echo_n "checking for $ac_word... " >&6; }
18546 if ${ac_cv_path_xauth_path+:} false; then :
18547 $as_echo_n "(cached) " >&6
18549 case $xauth_path in
18551 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
18554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18555 for as_dir in $TestPath
18558 test -z "$as_dir" && as_dir=.
18559 for ac_exec_ext in '' $ac_executable_extensions; do
18560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18561 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
18562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18572 xauth_path=$ac_cv_path_xauth_path
18573 if test -n "$xauth_path"; then
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
18575 $as_echo "$xauth_path" >&6; }
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18578 $as_echo "no" >&6; }
18582 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
18583 xauth_path="/usr/openwin/bin/xauth"
18591 # Check whether --enable-strip was given.
18592 if test "${enable_strip+set}" = set; then :
18593 enableval=$enable_strip;
18594 if test "x$enableval" = "xno" ; then
18603 if test -z "$xauth_path" ; then
18604 XAUTH_PATH="undefined"
18608 cat >>confdefs.h <<_ACEOF
18609 #define XAUTH_PATH "$xauth_path"
18612 XAUTH_PATH=$xauth_path
18616 # Check for mail directory
18618 # Check whether --with-maildir was given.
18619 if test "${with_maildir+set}" = set; then :
18620 withval=$with_maildir;
18621 if test "X$withval" != X && test "x$withval" != xno && \
18622 test "x${withval}" != xyes; then
18624 cat >>confdefs.h <<_ACEOF
18625 #define MAIL_DIRECTORY "$withval"
18632 if test "X$maildir" != "X"; then
18633 cat >>confdefs.h <<_ACEOF
18634 #define MAIL_DIRECTORY "$maildir"
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
18639 $as_echo_n "checking Discovering system mail directory... " >&6; }
18640 if test "$cross_compiling" = yes; then :
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
18643 $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
18647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18651 #include <string.h>
18652 #ifdef HAVE_PATHS_H
18655 #ifdef HAVE_MAILLOCK_H
18656 #include <maillock.h>
18658 #define DATA "conftest.maildir"
18667 fd = fopen(DATA,"w");
18671 #if defined (_PATH_MAILDIR)
18672 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
18674 #elif defined (MAILDIR)
18675 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
18677 #elif defined (_PATH_MAIL)
18678 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
18690 if ac_fn_c_try_run "$LINENO"; then :
18692 maildir_what=`awk -F: '{print $1}' conftest.maildir`
18693 maildir=`awk -F: '{print $2}' conftest.maildir \
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
18696 $as_echo "Using: $maildir from $maildir_what" >&6; }
18697 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
18698 cat >>confdefs.h <<_ACEOF
18699 #define MAIL_DIRECTORY "$maildir"
18706 if test "X$ac_status" = "X2";then
18707 # our test program didn't find it. Default to /var/spool/mail
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
18709 $as_echo "Using: default value of /var/spool/mail" >&6; }
18710 cat >>confdefs.h <<_ACEOF
18711 #define MAIL_DIRECTORY "/var/spool/mail"
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
18716 $as_echo "*** not found ***" >&6; }
18720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18721 conftest.$ac_objext conftest.beam conftest.$ac_ext
18730 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
18732 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
18733 disable_ptmx_check=yes
18735 if test -z "$no_dev_ptmx" ; then
18736 if test "x$disable_ptmx_check" != "xyes" ; then
18737 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
18739 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
18740 if eval \${$as_ac_File+:} false; then :
18741 $as_echo_n "(cached) " >&6
18743 test "$cross_compiling" = yes &&
18744 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18745 if test -r ""/dev/ptmx""; then
18746 eval "$as_ac_File=yes"
18748 eval "$as_ac_File=no"
18751 eval ac_res=\$$as_ac_File
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18753 $as_echo "$ac_res" >&6; }
18754 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18757 cat >>confdefs.h <<_ACEOF
18758 #define HAVE_DEV_PTMX 1
18769 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
18770 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
18772 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
18773 if eval \${$as_ac_File+:} false; then :
18774 $as_echo_n "(cached) " >&6
18776 test "$cross_compiling" = yes &&
18777 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18778 if test -r ""/dev/ptc""; then
18779 eval "$as_ac_File=yes"
18781 eval "$as_ac_File=no"
18784 eval ac_res=\$$as_ac_File
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18786 $as_echo "$ac_res" >&6; }
18787 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18790 cat >>confdefs.h <<_ACEOF
18791 #define HAVE_DEV_PTS_AND_PTC 1
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
18801 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
18804 # Options from here on. Some of these are preset by platform above
18806 # Check whether --with-mantype was given.
18807 if test "${with_mantype+set}" = set; then :
18808 withval=$with_mantype;
18814 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
18821 if test -z "$MANTYPE"; then
18822 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
18823 for ac_prog in nroff awf
18825 # Extract the first word of "$ac_prog", so it can be a program name with args.
18826 set dummy $ac_prog; ac_word=$2
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18828 $as_echo_n "checking for $ac_word... " >&6; }
18829 if ${ac_cv_path_NROFF+:} false; then :
18830 $as_echo_n "(cached) " >&6
18834 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
18837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18838 for as_dir in $TestPath
18841 test -z "$as_dir" && as_dir=.
18842 for ac_exec_ext in '' $ac_executable_extensions; do
18843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18844 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
18845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18855 NROFF=$ac_cv_path_NROFF
18856 if test -n "$NROFF"; then
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
18858 $as_echo "$NROFF" >&6; }
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18861 $as_echo "no" >&6; }
18865 test -n "$NROFF" && break
18867 test -n "$NROFF" || NROFF="/bin/false"
18869 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
18871 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
18878 if test "$MANTYPE" = "doc"; then
18881 mansubdir=$MANTYPE;
18885 # Check whether to enable MD5 passwords
18888 # Check whether --with-md5-passwords was given.
18889 if test "${with_md5_passwords+set}" = set; then :
18890 withval=$with_md5_passwords;
18891 if test "x$withval" != "xno" ; then
18893 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
18902 # Whether to disable shadow password support
18904 # Check whether --with-shadow was given.
18905 if test "${with_shadow+set}" = set; then :
18906 withval=$with_shadow;
18907 if test "x$withval" = "xno" ; then
18908 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
18917 if test -z "$disable_shadow" ; then
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
18919 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18923 #include <sys/types.h>
18924 #include <shadow.h>
18930 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
18935 if ac_fn_c_try_compile "$LINENO"; then :
18936 sp_expire_available=yes
18938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18940 if test "x$sp_expire_available" = "xyes" ; then
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18942 $as_echo "yes" >&6; }
18944 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18948 $as_echo "no" >&6; }
18952 # Use ip address instead of hostname in $DISPLAY
18953 if test ! -z "$IPADDR_IN_DISPLAY" ; then
18954 DISPLAY_HACK_MSG="yes"
18956 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
18959 DISPLAY_HACK_MSG="no"
18961 # Check whether --with-ipaddr-display was given.
18962 if test "${with_ipaddr_display+set}" = set; then :
18963 withval=$with_ipaddr_display;
18964 if test "x$withval" != "xno" ; then
18965 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
18967 DISPLAY_HACK_MSG="yes"
18975 # check for /etc/default/login and use it if present.
18976 # Check whether --enable-etc-default-login was given.
18977 if test "${enable_etc_default_login+set}" = set; then :
18978 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
18980 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
18981 etc_default_login=no
18983 etc_default_login=yes
18986 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
18989 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
18990 etc_default_login=no
18992 etc_default_login=yes
18998 if test "x$etc_default_login" != "xno"; then
18999 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
19001 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
19002 if eval \${$as_ac_File+:} false; then :
19003 $as_echo_n "(cached) " >&6
19005 test "$cross_compiling" = yes &&
19006 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19007 if test -r ""/etc/default/login""; then
19008 eval "$as_ac_File=yes"
19010 eval "$as_ac_File=no"
19013 eval ac_res=\$$as_ac_File
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19015 $as_echo "$ac_res" >&6; }
19016 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
19017 external_path_file=/etc/default/login
19020 if test "x$external_path_file" = "x/etc/default/login"; then
19022 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
19027 if test $ac_cv_func_login_getcapbool = "yes" && \
19028 test $ac_cv_header_login_cap_h = "yes" ; then
19029 external_path_file=/etc/login.conf
19032 # Whether to mess with the default path
19033 SERVER_PATH_MSG="(default)"
19035 # Check whether --with-default-path was given.
19036 if test "${with_default_path+set}" = set; then :
19037 withval=$with_default_path;
19038 if test "x$external_path_file" = "x/etc/login.conf" ; then
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19040 --with-default-path=PATH has no effect on this system.
19041 Edit /etc/login.conf instead." >&5
19042 $as_echo "$as_me: WARNING:
19043 --with-default-path=PATH has no effect on this system.
19044 Edit /etc/login.conf instead." >&2;}
19045 elif test "x$withval" != "xno" ; then
19046 if test ! -z "$external_path_file" ; then
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19048 --with-default-path=PATH will only be used if PATH is not defined in
19049 $external_path_file ." >&5
19050 $as_echo "$as_me: WARNING:
19051 --with-default-path=PATH will only be used if PATH is not defined in
19052 $external_path_file ." >&2;}
19054 user_path="$withval"
19055 SERVER_PATH_MSG="$withval"
19059 if test "x$external_path_file" = "x/etc/login.conf" ; then
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
19061 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
19063 if test ! -z "$external_path_file" ; then
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19065 If PATH is defined in $external_path_file, ensure the path to scp is included,
19066 otherwise scp will not work." >&5
19067 $as_echo "$as_me: WARNING:
19068 If PATH is defined in $external_path_file, ensure the path to scp is included,
19069 otherwise scp will not work." >&2;}
19071 if test "$cross_compiling" = yes; then :
19072 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
19075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19076 /* end confdefs.h. */
19078 /* find out what STDPATH is */
19080 #ifdef HAVE_PATHS_H
19081 # include <paths.h>
19083 #ifndef _PATH_STDPATH
19084 # ifdef _PATH_USERPATH /* Irix */
19085 # define _PATH_STDPATH _PATH_USERPATH
19087 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
19090 #include <sys/types.h>
19091 #include <sys/stat.h>
19093 #define DATA "conftest.stdpath"
19102 fd = fopen(DATA,"w");
19106 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
19115 if ac_fn_c_try_run "$LINENO"; then :
19116 user_path=`cat conftest.stdpath`
19118 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
19120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19121 conftest.$ac_objext conftest.beam conftest.$ac_ext
19124 # make sure $bindir is in USER_PATH so scp will work
19125 t_bindir="${bindir}"
19126 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
19127 t_bindir=`eval echo ${t_bindir}`
19129 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
19132 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
19135 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
19136 if test $? -ne 0 ; then
19137 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
19138 if test $? -ne 0 ; then
19139 user_path=$user_path:$t_bindir
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
19141 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
19148 if test "x$external_path_file" != "x/etc/login.conf" ; then
19150 cat >>confdefs.h <<_ACEOF
19151 #define USER_PATH "$user_path"
19157 # Set superuser path separately to user path
19159 # Check whether --with-superuser-path was given.
19160 if test "${with_superuser_path+set}" = set; then :
19161 withval=$with_superuser_path;
19162 if test -n "$withval" && test "x$withval" != "xno" && \
19163 test "x${withval}" != "xyes"; then
19165 cat >>confdefs.h <<_ACEOF
19166 #define SUPERUSER_PATH "$withval"
19169 superuser_path=$withval
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
19178 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
19179 IPV4_IN6_HACK_MSG="no"
19181 # Check whether --with-4in6 was given.
19182 if test "${with_4in6+set}" = set; then :
19183 withval=$with_4in6;
19184 if test "x$withval" != "xno" ; then
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19186 $as_echo "yes" >&6; }
19188 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
19190 IPV4_IN6_HACK_MSG="yes"
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193 $as_echo "no" >&6; }
19198 if test "x$inet6_default_4in6" = "xyes"; then
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
19200 $as_echo "yes (default)" >&6; }
19201 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
19203 IPV4_IN6_HACK_MSG="yes"
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
19206 $as_echo "no (default)" >&6; }
19213 # Whether to enable BSD auth support
19216 # Check whether --with-bsd-auth was given.
19217 if test "${with_bsd_auth+set}" = set; then :
19218 withval=$with_bsd_auth;
19219 if test "x$withval" != "xno" ; then
19221 $as_echo "#define BSD_AUTH 1" >>confdefs.h
19230 # Where to place sshd.pid
19232 # make sure the directory exists
19233 if test ! -d $piddir ; then
19234 piddir=`eval echo ${sysconfdir}`
19236 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
19241 # Check whether --with-pid-dir was given.
19242 if test "${with_pid_dir+set}" = set; then :
19243 withval=$with_pid_dir;
19244 if test -n "$withval" && test "x$withval" != "xno" && \
19245 test "x${withval}" != "xyes"; then
19247 if test ! -d $piddir ; then
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
19249 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
19258 cat >>confdefs.h <<_ACEOF
19259 #define _PATH_SSH_PIDDIR "$piddir"
19264 # Check whether --enable-lastlog was given.
19265 if test "${enable_lastlog+set}" = set; then :
19266 enableval=$enable_lastlog;
19267 if test "x$enableval" = "xno" ; then
19268 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
19275 # Check whether --enable-utmp was given.
19276 if test "${enable_utmp+set}" = set; then :
19277 enableval=$enable_utmp;
19278 if test "x$enableval" = "xno" ; then
19279 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19286 # Check whether --enable-utmpx was given.
19287 if test "${enable_utmpx+set}" = set; then :
19288 enableval=$enable_utmpx;
19289 if test "x$enableval" = "xno" ; then
19291 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
19298 # Check whether --enable-wtmp was given.
19299 if test "${enable_wtmp+set}" = set; then :
19300 enableval=$enable_wtmp;
19301 if test "x$enableval" = "xno" ; then
19302 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19309 # Check whether --enable-wtmpx was given.
19310 if test "${enable_wtmpx+set}" = set; then :
19311 enableval=$enable_wtmpx;
19312 if test "x$enableval" = "xno" ; then
19314 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
19321 # Check whether --enable-libutil was given.
19322 if test "${enable_libutil+set}" = set; then :
19323 enableval=$enable_libutil;
19324 if test "x$enableval" = "xno" ; then
19325 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
19332 # Check whether --enable-pututline was given.
19333 if test "${enable_pututline+set}" = set; then :
19334 enableval=$enable_pututline;
19335 if test "x$enableval" = "xno" ; then
19337 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
19344 # Check whether --enable-pututxline was given.
19345 if test "${enable_pututxline+set}" = set; then :
19346 enableval=$enable_pututxline;
19347 if test "x$enableval" = "xno" ; then
19349 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
19357 # Check whether --with-lastlog was given.
19358 if test "${with_lastlog+set}" = set; then :
19359 withval=$with_lastlog;
19360 if test "x$withval" = "xno" ; then
19361 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
19363 elif test -n "$withval" && test "x${withval}" != "xyes"; then
19364 conf_lastlog_location=$withval
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
19373 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
19374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375 /* end confdefs.h. */
19377 #include <sys/types.h>
19379 #ifdef HAVE_LASTLOG_H
19380 # include <lastlog.h>
19382 #ifdef HAVE_PATHS_H
19383 # include <paths.h>
19385 #ifdef HAVE_LOGIN_H
19386 # include <login.h>
19392 char *lastlog = LASTLOG_FILE;
19397 if ac_fn_c_try_compile "$LINENO"; then :
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19399 $as_echo "yes" >&6; }
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19403 $as_echo "no" >&6; }
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
19405 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
19406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407 /* end confdefs.h. */
19409 #include <sys/types.h>
19411 #ifdef HAVE_LASTLOG_H
19412 # include <lastlog.h>
19414 #ifdef HAVE_PATHS_H
19415 # include <paths.h>
19421 char *lastlog = _PATH_LASTLOG;
19426 if ac_fn_c_try_compile "$LINENO"; then :
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19428 $as_echo "yes" >&6; }
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19432 $as_echo "no" >&6; }
19433 system_lastlog_path=no
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19441 if test -z "$conf_lastlog_location"; then
19442 if test x"$system_lastlog_path" = x"no" ; then
19443 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
19444 if (test -d "$f" || test -f "$f") ; then
19445 conf_lastlog_location=$f
19448 if test -z "$conf_lastlog_location"; then
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
19450 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
19455 if test -n "$conf_lastlog_location"; then
19457 cat >>confdefs.h <<_ACEOF
19458 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
19464 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
19465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19466 /* end confdefs.h. */
19468 #include <sys/types.h>
19470 #ifdef HAVE_PATHS_H
19471 # include <paths.h>
19477 char *utmp = UTMP_FILE;
19482 if ac_fn_c_try_compile "$LINENO"; then :
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484 $as_echo "yes" >&6; }
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19487 $as_echo "no" >&6; }
19488 system_utmp_path=no
19491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19492 if test -z "$conf_utmp_location"; then
19493 if test x"$system_utmp_path" = x"no" ; then
19494 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
19495 if test -f $f ; then
19496 conf_utmp_location=$f
19499 if test -z "$conf_utmp_location"; then
19500 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19505 if test -n "$conf_utmp_location"; then
19507 cat >>confdefs.h <<_ACEOF
19508 #define CONF_UTMP_FILE "$conf_utmp_location"
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
19514 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19518 #include <sys/types.h>
19520 #ifdef HAVE_PATHS_H
19521 # include <paths.h>
19527 char *wtmp = WTMP_FILE;
19532 if ac_fn_c_try_compile "$LINENO"; then :
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19534 $as_echo "yes" >&6; }
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19537 $as_echo "no" >&6; }
19538 system_wtmp_path=no
19541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19542 if test -z "$conf_wtmp_location"; then
19543 if test x"$system_wtmp_path" = x"no" ; then
19544 for f in /usr/adm/wtmp /var/log/wtmp; do
19545 if test -f $f ; then
19546 conf_wtmp_location=$f
19549 if test -z "$conf_wtmp_location"; then
19550 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19555 if test -n "$conf_wtmp_location"; then
19557 cat >>confdefs.h <<_ACEOF
19558 #define CONF_WTMP_FILE "$conf_wtmp_location"
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
19564 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
19565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566 /* end confdefs.h. */
19568 #include <sys/types.h>
19570 #ifdef HAVE_UTMPX_H
19573 #ifdef HAVE_PATHS_H
19574 # include <paths.h>
19580 char *wtmpx = WTMPX_FILE;
19585 if ac_fn_c_try_compile "$LINENO"; then :
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19587 $as_echo "yes" >&6; }
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19590 $as_echo "no" >&6; }
19591 system_wtmpx_path=no
19594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19595 if test -z "$conf_wtmpx_location"; then
19596 if test x"$system_wtmpx_path" = x"no" ; then
19597 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
19602 cat >>confdefs.h <<_ACEOF
19603 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
19609 if test ! -z "$blibpath" ; then
19610 LDFLAGS="$LDFLAGS $blibflags$blibpath"
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
19612 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
19615 ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
19616 #ifdef HAVE_SYS_TYPES_H
19617 #include <sys/types.h>
19622 #ifdef HAVE_UTMPX_H
19625 #ifdef HAVE_LASTLOG_H
19626 #include <lastlog.h>
19630 if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
19634 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
19635 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
19642 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
19643 #ifdef HAVE_SYS_TYPES_H
19644 #include <sys/types.h>
19649 #ifdef HAVE_UTMPX_H
19652 #ifdef HAVE_LASTLOG_H
19653 #include <lastlog.h>
19657 if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
19661 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19663 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19669 CFLAGS="$CFLAGS $werror_flags"
19671 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
19676 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
19677 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
19681 TEST_SSH_IPV6=$TEST_SSH_IPV6
19683 TEST_SSH_UTF8=$TEST_SSH_UTF8
19685 TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
19687 UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
19689 DEPEND=$(cat $srcdir/.depend)
19692 CFLAGS="${CFLAGS} ${CFLAGS_AFTER}"
19693 LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}"
19696 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
19698 cat >confcache <<\_ACEOF
19699 # This file is a shell script that caches the results of configure
19700 # tests run on this system so they can be shared between configure
19701 # scripts and configure runs, see configure's option --config-cache.
19702 # It is not useful on other systems. If it contains results you don't
19703 # want to keep, you may remove or edit it.
19705 # config.status only pays attention to the cache file if you give it
19706 # the --recheck option to rerun configure.
19708 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19709 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19710 # following values.
19714 # The following way of writing the cache mishandles newlines in values,
19715 # but we know of no workaround that is simple, portable, and efficient.
19716 # So, we kill variables containing newlines.
19717 # Ultrix sh set writes to stderr and can't be redirected directly,
19718 # and sets the high bit in the cache file unless we assign to the vars.
19720 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19721 eval ac_val=\$$ac_var
19725 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19726 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19729 _ | IFS | as_nl) ;; #(
19730 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19731 *) { eval $ac_var=; unset $ac_var;} ;;
19737 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19738 *${as_nl}ac_space=\ *)
19739 # `set' does not quote correctly, so add quotes: double-quote
19740 # substitution turns \\\\ into \\, and sed turns \\ into \.
19743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19746 # `set' quotes correctly as required by POSIX, so do not add quotes.
19747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19756 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19758 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19760 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19761 if test -w "$cache_file"; then
19762 if test "x$cache_file" != "x/dev/null"; then
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19764 $as_echo "$as_me: updating cache $cache_file" >&6;}
19765 if test ! -f "$cache_file" || test -h "$cache_file"; then
19766 cat confcache >"$cache_file"
19768 case $cache_file in #(
19770 mv -f confcache "$cache_file"$$ &&
19771 mv -f "$cache_file"$$ "$cache_file" ;; #(
19773 mv -f confcache "$cache_file" ;;
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19779 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19784 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19785 # Let make expand exec_prefix.
19786 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19788 DEFS=-DHAVE_CONFIG_H
19793 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19794 # 1. Remove the extension, and $U if already installed.
19795 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19796 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19797 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19798 # will be set to the directory where LIBOBJS objects are built.
19799 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19800 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19802 LIBOBJS=$ac_libobjs
19804 LTLIBOBJS=$ac_ltlibobjs
19809 : "${CONFIG_STATUS=./config.status}"
19811 ac_clean_files_save=$ac_clean_files
19812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19814 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19816 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19818 # Generated by $as_me.
19819 # Run this file to recreate the current configuration.
19820 # Compiler output produced by configure, useful for debugging
19821 # configure, is in config.log if it exists.
19824 ac_cs_recheck=false
19827 SHELL=\${CONFIG_SHELL-$SHELL}
19830 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19831 ## -------------------- ##
19832 ## M4sh Initialization. ##
19833 ## -------------------- ##
19835 # Be more Bourne compatible
19836 DUALCASE=1; export DUALCASE # for MKS sh
19837 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19840 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19841 # is contrary to our usage. Disable this feature.
19842 alias -g '${1+"$@"}'='"$@"'
19843 setopt NO_GLOB_SUBST
19845 case `(set -o) 2>/dev/null` in #(
19857 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19858 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19859 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19860 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19861 # Prefer a ksh shell builtin over an external printf program on Solaris,
19862 # but without wasting forks for bash or zsh.
19863 if test -z "$BASH_VERSION$ZSH_VERSION" \
19864 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19865 as_echo='print -r --'
19866 as_echo_n='print -rn --'
19867 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19868 as_echo='printf %s\n'
19869 as_echo_n='printf %s'
19871 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19872 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19873 as_echo_n='/usr/ucb/echo -n'
19875 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19876 as_echo_n_body='eval
19880 expr "X$arg" : "X\\(.*\\)$as_nl";
19881 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19883 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19885 export as_echo_n_body
19886 as_echo_n='sh -c $as_echo_n_body as_echo'
19888 export as_echo_body
19889 as_echo='sh -c $as_echo_body as_echo'
19892 # The user is always right.
19893 if test "${PATH_SEPARATOR+set}" != set; then
19895 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19896 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19903 # We need space, tab and new line, in precisely that order. Quoting is
19904 # there to prevent editors from complaining about space-tab.
19905 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19906 # splitting by setting IFS to empty value.)
19909 # Find who we are. Look in the path if we contain no directory separator.
19912 *[\\/]* ) as_myself=$0 ;;
19913 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19914 for as_dir in $PATH
19917 test -z "$as_dir" && as_dir=.
19918 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19924 # We did not find ourselves, most probably we were run as `sh COMMAND'
19925 # in which case we are not to be found in the path.
19926 if test "x$as_myself" = x; then
19929 if test ! -f "$as_myself"; then
19930 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19934 # Unset variables that we do not need and which cause bugs (e.g. in
19935 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19936 # suppresses any "Segmentation fault" message there. '((' could
19937 # trigger a bug in pdksh 5.2.14.
19938 for as_var in BASH_ENV ENV MAIL MAILPATH
19939 do eval test x\${$as_var+set} = xset \
19940 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19956 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19957 # ----------------------------------------
19958 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19959 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19960 # script with STATUS, using 1 if that was 0.
19963 as_status=$1; test $as_status -eq 0 && as_status=1
19965 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19966 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19968 $as_echo "$as_me: error: $2" >&2
19969 as_fn_exit $as_status
19973 # as_fn_set_status STATUS
19974 # -----------------------
19975 # Set $? to STATUS, without forking.
19976 as_fn_set_status ()
19979 } # as_fn_set_status
19981 # as_fn_exit STATUS
19982 # -----------------
19983 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19987 as_fn_set_status $1
19993 # Portably unset VAR.
19996 { eval $1=; unset $1;}
19998 as_unset=as_fn_unset
19999 # as_fn_append VAR VALUE
20000 # ----------------------
20001 # Append the text in VALUE to the end of the definition contained in VAR. Take
20002 # advantage of any shell optimizations that allow amortized linear growth over
20003 # repeated appends, instead of the typical quadratic growth present in naive
20005 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20006 eval 'as_fn_append ()
20017 # as_fn_arith ARG...
20018 # ------------------
20019 # Perform arithmetic evaluation on the ARGs, and store the result in the
20020 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20021 # must be portable across $(()) and expr.
20022 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20023 eval 'as_fn_arith ()
20030 as_val=`expr "$@" || test $? -eq 1`
20035 if expr a : '\(a\)' >/dev/null 2>&1 &&
20036 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20042 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20043 as_basename=basename
20048 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20054 as_me=`$as_basename -- "$0" ||
20055 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20056 X"$0" : 'X\(//\)$' \| \
20057 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20059 sed '/^.*\/\([^/][^/]*\)\/*$/{
20073 # Avoid depending upon Character Ranges.
20074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20077 as_cr_digits='0123456789'
20078 as_cr_alnum=$as_cr_Letters$as_cr_digits
20080 ECHO_C= ECHO_N= ECHO_T=
20081 case `echo -n x` in #(((((
20083 case `echo 'xy\c'` in
20084 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20086 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20093 rm -f conf$$ conf$$.exe conf$$.file
20094 if test -d conf$$.dir; then
20095 rm -f conf$$.dir/conf$$.file
20098 mkdir conf$$.dir 2>/dev/null
20100 if (echo >conf$$.file) 2>/dev/null; then
20101 if ln -s conf$$.file conf$$ 2>/dev/null; then
20103 # ... but there are two gotchas:
20104 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20105 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20106 # In both cases, we have to default to `cp -pR'.
20107 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20109 elif ln conf$$.file conf$$ 2>/dev/null; then
20117 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20118 rmdir conf$$.dir 2>/dev/null
20123 # Create "$as_dir" as a directory, including parents if necessary.
20128 -*) as_dir=./$as_dir;;
20130 test -d "$as_dir" || eval $as_mkdir_p || {
20134 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20135 *) as_qdir=$as_dir;;
20137 as_dirs="'$as_qdir' $as_dirs"
20138 as_dir=`$as_dirname -- "$as_dir" ||
20139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20140 X"$as_dir" : 'X\(//\)[^/]' \| \
20141 X"$as_dir" : 'X\(//\)$' \| \
20142 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20143 $as_echo X"$as_dir" |
20144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20148 /^X\(\/\/\)[^/].*/{
20161 test -d "$as_dir" && break
20163 test -z "$as_dirs" || eval "mkdir $as_dirs"
20164 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20168 if mkdir -p . 2>/dev/null; then
20169 as_mkdir_p='mkdir -p "$as_dir"'
20171 test -d ./-p && rmdir ./-p
20176 # as_fn_executable_p FILE
20177 # -----------------------
20178 # Test if FILE is an executable regular file.
20179 as_fn_executable_p ()
20181 test -f "$1" && test -x "$1"
20182 } # as_fn_executable_p
20183 as_test_x='test -x'
20184 as_executable_p=as_fn_executable_p
20186 # Sed expression to map a string onto a valid CPP name.
20187 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20189 # Sed expression to map a string onto a valid variable name.
20190 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20194 ## ----------------------------------- ##
20195 ## Main body of $CONFIG_STATUS script. ##
20196 ## ----------------------------------- ##
20198 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20201 # Save the log message, to keep $0 and so on meaningful, and to
20202 # report actual input values of CONFIG_FILES etc. instead of their
20203 # values after options handling.
20205 This file was extended by OpenSSH $as_me Portable, which was
20206 generated by GNU Autoconf 2.69. Invocation command line was
20208 CONFIG_FILES = $CONFIG_FILES
20209 CONFIG_HEADERS = $CONFIG_HEADERS
20210 CONFIG_LINKS = $CONFIG_LINKS
20211 CONFIG_COMMANDS = $CONFIG_COMMANDS
20214 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20219 case $ac_config_files in *"
20220 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20223 case $ac_config_headers in *"
20224 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20229 # Files that config.status was made for.
20230 config_files="$ac_config_files"
20231 config_headers="$ac_config_headers"
20235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20237 \`$as_me' instantiates files and other configuration actions
20238 from templates according to the current configuration. Unless the files
20239 and actions are specified as TAGs, all are instantiated by default.
20241 Usage: $0 [OPTION]... [TAG]...
20243 -h, --help print this help, then exit
20244 -V, --version print version number and configuration settings, then exit
20245 --config print configuration, then exit
20246 -q, --quiet, --silent
20247 do not print progress messages
20248 -d, --debug don't remove temporary files
20249 --recheck update $as_me by reconfiguring in the same conditions
20250 --file=FILE[:TEMPLATE]
20251 instantiate the configuration file FILE
20252 --header=FILE[:TEMPLATE]
20253 instantiate the configuration header FILE
20255 Configuration files:
20258 Configuration headers:
20261 Report bugs to <openssh-unix-dev@mindrot.org>."
20264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20265 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20267 OpenSSH config.status Portable
20268 configured by $0, generated by GNU Autoconf 2.69,
20269 with options \\"\$ac_cs_config\\"
20271 Copyright (C) 2012 Free Software Foundation, Inc.
20272 This config.status script is free software; the Free Software Foundation
20273 gives unlimited permission to copy, distribute and modify it."
20280 test -n "\$AWK" || AWK=awk
20283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20284 # The default lists apply if the user does not specify any file.
20290 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20291 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20307 # Handling of the options.
20308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20310 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20311 $as_echo "$ac_cs_version"; exit ;;
20312 --config | --confi | --conf | --con | --co | --c )
20313 $as_echo "$ac_cs_config"; exit ;;
20314 --debug | --debu | --deb | --de | --d | -d )
20316 --file | --fil | --fi | --f )
20319 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20320 '') as_fn_error $? "missing file argument" ;;
20322 as_fn_append CONFIG_FILES " '$ac_optarg'"
20323 ac_need_defaults=false;;
20324 --header | --heade | --head | --hea )
20327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20329 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20330 ac_need_defaults=false;;
20332 # Conflict between --help and --header
20333 as_fn_error $? "ambiguous option: \`$1'
20334 Try \`$0 --help' for more information.";;
20335 --help | --hel | -h )
20336 $as_echo "$ac_cs_usage"; exit ;;
20337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20338 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20341 # This is an error.
20342 -*) as_fn_error $? "unrecognized option: \`$1'
20343 Try \`$0 --help' for more information." ;;
20345 *) as_fn_append ac_config_targets " $1"
20346 ac_need_defaults=false ;;
20352 ac_configure_extra_args=
20354 if $ac_cs_silent; then
20356 ac_configure_extra_args="$ac_configure_extra_args --silent"
20360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20361 if \$ac_cs_recheck; then
20362 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20364 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20365 CONFIG_SHELL='$SHELL'
20366 export CONFIG_SHELL
20371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20375 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20376 ## Running $as_me. ##
20382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20387 # Handling of arguments.
20388 for ac_config_target in $ac_config_targets
20390 case $ac_config_target in
20391 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20392 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20393 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
20394 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
20395 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
20396 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
20397 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
20398 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
20400 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20405 # If the user did not use the arguments to specify the items to instantiate,
20406 # then the envvar interface is used. Set only those that are not.
20407 # We use the long form for the default assignment because of an extremely
20408 # bizarre bug on SunOS 4.1.3.
20409 if $ac_need_defaults; then
20410 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20411 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20414 # Have a temporary directory for convenience. Make it in the build tree
20415 # simply because there is no reason against having it here, and in addition,
20416 # creating and moving files from /tmp can sometimes cause problems.
20417 # Hook for its removal unless debugging.
20418 # Note that there is a small window in which the directory will not be cleaned:
20419 # after its creation but before its name has been assigned to `$tmp'.
20423 trap 'exit_status=$?
20424 : "${ac_tmp:=$tmp}"
20425 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20427 trap 'as_fn_exit 1' 1 2 13 15
20429 # Create a (secure) tmp directory for tmp files.
20432 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20436 tmp=./conf$$-$RANDOM
20437 (umask 077 && mkdir "$tmp")
20438 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20441 # Set up the scripts for CONFIG_FILES section.
20442 # No need to generate them if there are no CONFIG_FILES.
20443 # This happens for instance with `./config.status config.h'.
20444 if test -n "$CONFIG_FILES"; then
20447 ac_cr=`echo X | tr X '\015'`
20448 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20449 # But we know of no other shell where ac_cr would be empty at this
20450 # point, so we can use a bashism as a fallback.
20451 if test "x$ac_cr" = x; then
20452 eval ac_cr=\$\'\\r\'
20454 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20455 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20458 ac_cs_awk_cr=$ac_cr
20461 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20466 echo "cat >conf$$subs.awk <<_ACEOF" &&
20467 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20469 } >conf$$subs.sh ||
20470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20471 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20473 for ac_last_try in false false false false false :; do
20474 . ./conf$$subs.sh ||
20475 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20477 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20478 if test $ac_delim_n = $ac_delim_num; then
20480 elif $ac_last_try; then
20481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20486 rm -f conf$$subs.sh
20488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20489 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20493 s/^/S["/; s/!.*/"]=/
20503 s/\(.\{148\}\)..*/\1/
20505 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20517 s/\(.\{148\}\)..*/\1/
20519 s/["\\]/\\&/g; s/^/"/; s/$/"/
20523 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20528 ' <conf$$subs.awk | sed '
20533 ' >>$CONFIG_STATUS || ac_write_fail=1
20534 rm -f conf$$subs.awk
20535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20537 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20538 for (key in S) S_is_set[key] = 1
20544 nfields = split(line, field, "@")
20546 len = length(field[1])
20547 for (i = 2; i < nfields; i++) {
20549 keylen = length(key)
20550 if (S_is_set[key]) {
20552 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20553 len += length(value) + length(field[++i])
20564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20565 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20566 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20569 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20570 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20573 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20574 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20575 # trailing colons and then remove the whole line if VPATH becomes empty
20576 # (actually we leave an empty line to preserve line numbers).
20577 if test "x$srcdir" = x.; then
20578 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20597 fi # test -n "$CONFIG_FILES"
20599 # Set up the scripts for CONFIG_HEADERS section.
20600 # No need to generate them if there are no CONFIG_HEADERS.
20601 # This happens for instance with `./config.status Makefile'.
20602 if test -n "$CONFIG_HEADERS"; then
20603 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20607 # Transform confdefs.h into an awk script `defines.awk', embedded as
20608 # here-document in config.status, that substitutes the proper values into
20609 # config.h.in to produce config.h.
20611 # Create a delimiter string that does not exist in confdefs.h, to ease
20612 # handling of long lines.
20614 for ac_last_try in false false :; do
20615 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20616 if test -z "$ac_tt"; then
20618 elif $ac_last_try; then
20619 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20625 # For the awk script, D is an array of macro values keyed by name,
20626 # likewise P contains macro parameters if any. Preserve backslash
20627 # newline sequences.
20629 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20631 s/.\{148\}/&'"$ac_delim"'/g
20634 s/^[ ]*#[ ]*define[ ][ ]*/ /
20641 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20643 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20647 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20648 D["\1"]=" \3\\\\\\n"\\/p
20650 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20655 s/.\{148\}/&'"$ac_delim"'/g
20660 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20663 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20665 ' <confdefs.h | sed '
20666 s/'"$ac_delim"'/"\\\
20667 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20670 for (key in D) D_is_set[key] = 1
20673 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20675 split(line, arg, " ")
20676 if (arg[1] == "#") {
20680 defundef = substr(arg[1], 2)
20683 split(mac1, mac2, "(") #)
20685 prefix = substr(line, 1, index(line, defundef) - 1)
20686 if (D_is_set[macro]) {
20687 # Preserve the white space surrounding the "#".
20688 print prefix "define", macro P[macro] D[macro]
20691 # Replace #undef with comments. This is necessary, for example,
20692 # in the case of _POSIX_SOURCE, which is predefined and required
20693 # on some systems where configure will not decide to define it.
20694 if (defundef == "undef") {
20695 print "/*", prefix defundef, macro, "*/"
20703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20704 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20705 fi # test -n "$CONFIG_HEADERS"
20708 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
20713 :[FHLC]) ac_mode=$ac_tag; continue;;
20715 case $ac_mode$ac_tag in
20717 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20718 :[FH]-) ac_tag=-:-;;
20719 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20736 -) ac_f="$ac_tmp/stdin";;
20737 *) # Look for the file first in the build tree, then in the source tree
20738 # (if the path is not absolute). The absolute path cannot be DOS-style,
20739 # because $ac_f cannot contain `:'.
20743 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20745 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20747 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20748 as_fn_append ac_file_inputs " '$ac_f'"
20751 # Let's still pretend it is `configure' which instantiates (i.e., don't
20752 # use $as_me), people would be surprised to read:
20753 # /* config.h. Generated by config.status. */
20754 configure_input='Generated from '`
20755 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20757 if test x"$ac_file" != x-; then
20758 configure_input="$ac_file. $configure_input"
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20760 $as_echo "$as_me: creating $ac_file" >&6;}
20762 # Neutralize special characters interpreted by sed in replacement strings.
20763 case $configure_input in #(
20764 *\&* | *\|* | *\\* )
20765 ac_sed_conf_input=`$as_echo "$configure_input" |
20766 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20767 *) ac_sed_conf_input=$configure_input;;
20771 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20777 ac_dir=`$as_dirname -- "$ac_file" ||
20778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20779 X"$ac_file" : 'X\(//\)[^/]' \| \
20780 X"$ac_file" : 'X\(//\)$' \| \
20781 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20782 $as_echo X"$ac_file" |
20783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20787 /^X\(\/\/\)[^/].*/{
20800 as_dir="$ac_dir"; as_fn_mkdir_p
20804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20807 # A ".." for each directory in $ac_dir_suffix.
20808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20809 case $ac_top_builddir_sub in
20810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20814 ac_abs_top_builddir=$ac_pwd
20815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20816 # for backward compatibility:
20817 ac_top_builddir=$ac_top_build_prefix
20820 .) # We are building in place.
20822 ac_top_srcdir=$ac_top_builddir_sub
20823 ac_abs_top_srcdir=$ac_pwd ;;
20824 [\\/]* | ?:[\\/]* ) # Absolute name.
20825 ac_srcdir=$srcdir$ac_dir_suffix;
20826 ac_top_srcdir=$srcdir
20827 ac_abs_top_srcdir=$srcdir ;;
20828 *) # Relative name.
20829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20830 ac_top_srcdir=$ac_top_build_prefix$srcdir
20831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20846 ac_MKDIR_P=$MKDIR_P
20848 [\\/$]* | ?:[\\/]* ) ;;
20849 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20854 # If the template does not know about datarootdir, expand it.
20855 # FIXME: This hack should be removed a few years after 2.60.
20856 ac_datarootdir_hack=; ac_datarootdir_seen=
20867 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20868 *datarootdir*) ac_datarootdir_seen=yes;;
20869 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20871 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20874 ac_datarootdir_hack='
20875 s&@datadir@&$datadir&g
20876 s&@docdir@&$docdir&g
20877 s&@infodir@&$infodir&g
20878 s&@localedir@&$localedir&g
20879 s&@mandir@&$mandir&g
20880 s&\\\${datarootdir}&$datarootdir&g' ;;
20884 # Neutralize VPATH when `$srcdir' = `.'.
20885 # Shell code in configure.ac might set extrasub.
20886 # FIXME: do we really want to maintain this feature?
20887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20888 ac_sed_extra="$ac_vpsub
20891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20894 s|@configure_input@|$ac_sed_conf_input|;t t
20895 s&@top_builddir@&$ac_top_builddir_sub&;t t
20896 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20897 s&@srcdir@&$ac_srcdir&;t t
20898 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20899 s&@top_srcdir@&$ac_top_srcdir&;t t
20900 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20901 s&@builddir@&$ac_builddir&;t t
20902 s&@abs_builddir@&$ac_abs_builddir&;t t
20903 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20904 s&@INSTALL@&$ac_INSTALL&;t t
20905 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20906 $ac_datarootdir_hack
20908 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20909 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20911 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20912 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20913 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20914 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20916 which seems to be undefined. Please make sure it is defined" >&5
20917 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20918 which seems to be undefined. Please make sure it is defined" >&2;}
20920 rm -f "$ac_tmp/stdin"
20922 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20923 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20931 if test x"$ac_file" != x-; then
20933 $as_echo "/* $configure_input */" \
20934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20935 } >"$ac_tmp/config.h" \
20936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20937 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20939 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20942 mv "$ac_tmp/config.h" "$ac_file" \
20943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20946 $as_echo "/* $configure_input */" \
20947 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20948 || as_fn_error $? "could not create -" "$LINENO" 5
20960 ac_clean_files=$ac_clean_files_save
20962 test $ac_write_fail = 0 ||
20963 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20966 # configure is writing to config.log, and then calls config.status.
20967 # config.status does its own redirection, appending to config.log.
20968 # Unfortunately, on DOS this fails, as config.log is still kept open
20969 # by configure, so config.status won't be able to write to it; its
20970 # output is simply discarded. So we exec the FD to /dev/null,
20971 # effectively closing config.log, so it can be properly (re)opened and
20972 # appended to by config.status. When coming back to configure, we
20973 # need to make the FD available again.
20974 if test "$no_create" != yes; then
20976 ac_config_status_args=
20977 test "$silent" = yes &&
20978 ac_config_status_args="$ac_config_status_args --quiet"
20980 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20983 # would make configure fail if this is the last instruction.
20984 $ac_cs_success || as_fn_exit 1
20986 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20988 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20992 # Print summary of options
20994 # Someone please show me a better way :)
20995 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
20996 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
20997 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
20998 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
20999 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
21000 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
21001 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
21002 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
21003 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
21004 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
21007 echo "OpenSSH has been configured with the following options:"
21008 echo " User binaries: $B"
21009 echo " System binaries: $C"
21010 echo " Configuration files: $D"
21011 echo " Askpass program: $E"
21012 echo " Manual pages: $F"
21013 echo " PID file: $G"
21014 echo " Privilege separation chroot path: $H"
21015 if test "x$external_path_file" = "x/etc/login.conf" ; then
21016 echo " At runtime, sshd will use the path defined in $external_path_file"
21017 echo " Make sure the path to scp is present, otherwise scp will not work"
21019 echo " sshd default user PATH: $I"
21020 if test ! -z "$external_path_file"; then
21021 echo " (If PATH is set in $external_path_file it will be used instead. If"
21022 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
21025 if test ! -z "$superuser_path" ; then
21026 echo " sshd superuser user PATH: $J"
21028 echo " Manpage format: $MANTYPE"
21029 echo " PAM support: $PAM_MSG"
21030 echo " OSF SIA support: $SIA_MSG"
21031 echo " KerberosV support: $KRB5_MSG"
21032 echo " SELinux support: $SELINUX_MSG"
21033 echo " S/KEY support: $SKEY_MSG"
21034 echo " MD5 password support: $MD5_MSG"
21035 echo " libedit support: $LIBEDIT_MSG"
21036 echo " libldns support: $LDNS_MSG"
21037 echo " Solaris process contract support: $SPC_MSG"
21038 echo " Solaris project support: $SP_MSG"
21039 echo " Solaris privilege support: $SPP_MSG"
21040 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
21041 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
21042 echo " BSD Auth support: $BSD_AUTH_MSG"
21043 echo " Random number source: $RAND_MSG"
21044 echo " Privsep sandbox style: $SANDBOX_STYLE"
21048 echo " Host: ${host}"
21049 echo " Compiler: ${CC}"
21050 echo " Compiler flags: ${CFLAGS}"
21051 echo "Preprocessor flags: ${CPPFLAGS}"
21052 echo " Linker flags: ${LDFLAGS}"
21053 echo " Libraries: ${LIBS}"
21054 if test ! -z "${SSHDLIBS}"; then
21055 echo " +for sshd: ${SSHDLIBS}"
21057 if test ! -z "${SSHLIBS}"; then
21058 echo " +for ssh: ${SSHLIBS}"
21063 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
21064 echo "SVR4 style packages are supported with \"make package\""
21068 if test "x$PAM_MSG" = "xyes" ; then
21069 echo "PAM is enabled. You may need to install a PAM control file "
21070 echo "for sshd, otherwise password authentication may fail. "
21071 echo "Example PAM control files can be found in the contrib/ "
21072 echo "subdirectory"
21076 if test ! -z "$NO_PEERCHECK" ; then
21077 echo "WARNING: the operating system that you are using does not"
21078 echo "appear to support getpeereid(), getpeerucred() or the"
21079 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
21080 echo "enforce security checks to prevent unauthorised connections to"
21081 echo "ssh-agent. Their absence increases the risk that a malicious"
21082 echo "user can connect to your agent."
21086 if test "$AUDIT_MODULE" = "bsm" ; then
21087 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
21088 echo "See the Solaris section in README.platform for details."