2 # From configure.ac Revision: 1.568 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for OpenSSH Portable.
6 # Report bugs to <openssh-unix-dev@mindrot.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir=.
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 *v*x* | *x*v* ) as_opts=-vx ;;
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: openssh-unix-dev@mindrot.org about your system,
244 $0: including any error possibly output before this
245 $0: message. Then install a modern shell, or manually run
246 $0: the script under such a shell if you do have one."
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
378 as_status=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 test -n "$DJDIR" || exec 7<&0 </dev/null
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552 ac_default_prefix=/usr/local
554 ac_config_libobj_dir=.
561 # Identity of this package.
562 PACKAGE_NAME='OpenSSH'
563 PACKAGE_TARNAME='openssh'
564 PACKAGE_VERSION='Portable'
565 PACKAGE_STRING='OpenSSH Portable'
566 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
569 ac_unique_file="ssh.c"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
583 # ifdef HAVE_STDLIB_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
606 ac_subst_vars='LTLIBOBJS
608 UNSUPPORTED_ALGORITHMS
631 LOGIN_PROGRAM_FALLBACK
633 MAKE_PACKAGE_SUPPORTED
699 program_transform_name
712 enable_option_checking
722 with_solaris_contracts
723 with_solaris_projects
726 with_zlib_version_check
734 with_openssl_header_check
751 enable_etc_default_login
767 ac_precious_vars='build_alias
778 # Initialize some variables set by options.
780 ac_init_version=false
781 ac_unrecognized_opts=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
867 cache_file=config.cache ;;
869 -datadir | --datadir | --datadi | --datad)
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
895 eval enable_$ac_useropt=no ;;
897 -docdir | --docdir | --docdi | --doc | --do)
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
921 eval enable_$ac_useropt=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval with_$ac_useropt=\$ac_optarg ;;
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1141 eval with_$ac_useropt=no ;;
1144 # Obsolete; use --with-x.
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $? "missing argument to $ac_option"
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1212 # Be sure to have absolute directory names.
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used" >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --disable-largefile omit support for large files
1392 --disable-strip Disable calling strip(1) on install
1393 --disable-etc-default-login Disable using PATH from /etc/default/login no
1394 --disable-lastlog disable use of lastlog even if detected no
1395 --disable-utmp disable use of utmp even if detected no
1396 --disable-utmpx disable use of utmpx even if detected no
1397 --disable-wtmp disable use of wtmp even if detected no
1398 --disable-wtmpx disable use of wtmpx even if detected no
1399 --disable-libutil disable use of libutil (login() etc.) no
1400 --disable-pututline disable use of pututline() etc. (uwtmp) no
1401 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --without-stackprotect Don't use compiler's stack protection
1407 --without-hardening Don't use toolchain hardening flags
1408 --without-rpath Disable auto-added -R linker paths
1409 --with-cflags Specify additional flags to pass to compiler
1410 --with-cppflags Specify additional flags to pass to preprocessor
1411 --with-ldflags Specify additional flags to pass to linker
1412 --with-libs Specify additional libraries to link with
1413 --with-Werror Build main code with -Werror
1414 --with-solaris-contracts Enable Solaris process contracts (experimental)
1415 --with-solaris-projects Enable Solaris projects (experimental)
1416 --with-osfsia Enable Digital Unix SIA
1417 --with-zlib=PATH Use zlib in PATH
1418 --without-zlib-version-check Disable zlib version check
1419 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1420 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1421 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1422 --with-libedit[=PATH] Enable libedit support for sftp
1423 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1424 --with-pie Build Position Independent Executables if possible
1425 --with-ssl-dir=PATH Specify path to OpenSSL installation
1426 --without-openssl-header-check Disable OpenSSL version consistency check
1427 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1428 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1429 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1430 --with-pam Enable PAM support
1431 --with-privsep-user=user Specify non-privileged user for privilege separation
1432 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum)
1433 --with-selinux Enable SELinux support
1434 --with-kerberos5=PATH Enable Kerberos 5 support
1435 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1436 --with-xauth=PATH Specify path to xauth program
1437 --with-maildir=/path/to/mail Specify your system mail directory
1438 --with-mantype=man|cat|doc Set man page type
1439 --with-md5-passwords Enable use of MD5 passwords
1440 --without-shadow Disable shadow password support
1441 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1442 --with-default-path= Specify default \$PATH environment for server
1443 --with-superuser-path= Specify different path for super-user
1444 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1445 --with-bsd-auth Enable BSD auth support
1446 --with-pid-dir=PATH Specify location of ssh.pid file
1447 --with-lastlog=FILE|DIR specify lastlog location common locations
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to <openssh-unix-dev@mindrot.org>.
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1492 .) # We are building in place.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1525 OpenSSH configure Portable
1526 generated by GNU Autoconf 2.68
1528 Copyright (C) 2010 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_c_try_compile
1577 # ac_fn_c_try_run LINENO
1578 # ----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1580 # that executables *can* be run.
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_link"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>&5
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1595 { { case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_try") 2>&5
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; }; }; then :
1607 $as_echo "$as_me: program exited with status $ac_status" >&5
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 ac_retval=$ac_status
1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1619 # ac_fn_c_try_cpp LINENO
1620 # ----------------------
1621 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } > conftest.i && {
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists and can be compiled using the include files in
1659 # INCLUDES, setting the cache variable VAR accordingly.
1660 ac_fn_c_check_header_compile ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if eval \${$3+:} false; then :
1666 $as_echo_n "(cached) " >&6
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1673 if ac_fn_c_try_compile "$LINENO"; then :
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 } # ac_fn_c_check_header_compile
1687 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1688 # ---------------------------------------------
1689 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1691 ac_fn_c_check_decl ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 as_decl_name=`echo $2|sed 's/ *(.*//'`
1695 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1697 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1707 #ifndef $as_decl_name
1709 (void) $as_decl_use;
1711 (void) $as_decl_name;
1719 if ac_fn_c_try_compile "$LINENO"; then :
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 } # ac_fn_c_check_decl
1733 # ac_fn_c_try_link LINENO
1734 # -----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext conftest$ac_exeext
1740 if { { ac_try="$ac_link"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest$ac_exeext && {
1759 test "$cross_compiling" = yes ||
1760 $as_test_x conftest$ac_exeext
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771 # interfere with the next link command; also delete a directory that is
1772 # left behind by Apple's compiler. We do this before executing the actions.
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1777 } # ac_fn_c_try_link
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1784 ac_fn_c_check_header_mongrel ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if eval \${$3+:} false; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1797 # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1808 ac_header_compiler=no
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1821 if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1824 ac_header_preproc=no
1826 rm -f conftest.err conftest.i conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1830 # So? What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 ( $as_echo "## ------------------------------------------- ##
1850 ## Report this to openssh-unix-dev@mindrot.org ##
1851 ## ------------------------------------------- ##"
1852 ) | sed "s/^/$as_me: WARNING: /" >&2
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1860 eval "$3=\$ac_header_compiler"
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 } # ac_fn_c_check_header_mongrel
1870 # ac_fn_c_check_func LINENO FUNC VAR
1871 # ----------------------------------
1872 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1873 ac_fn_c_check_func ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1885 #define $2 innocuous_$2
1887 /* System header to define __stub macros and hopefully few prototypes,
1888 which can conflict with char $2 (); below.
1889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1890 <limits.h> exists even on freestanding compilers. */
1893 # include <limits.h>
1895 # include <assert.h>
1900 /* Override any GCC internal prototype to avoid an error.
1901 Use char because int might match the return type of a GCC
1902 builtin and then its argument prototype would still apply. */
1907 /* The GNU C library defines this for functions which it implements
1908 to always fail with ENOSYS. Some functions are actually named
1909 something starting with __ and the normal name is an alias. */
1910 #if defined __stub_$2 || defined __stub___$2
1922 if ac_fn_c_try_link "$LINENO"; then :
1927 rm -f core conftest.err conftest.$ac_objext \
1928 conftest$ac_exeext conftest.$ac_ext
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 } # ac_fn_c_check_func
1937 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1938 # -------------------------------------------
1939 # Tests whether TYPE exists after having included INCLUDES, setting cache
1940 # variable VAR accordingly.
1941 ac_fn_c_check_type ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1975 if ac_fn_c_try_compile "$LINENO"; then :
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_type
1991 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1992 # --------------------------------------------
1993 # Tries to find the compile-time value of EXPR in a program that includes
1994 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1996 ac_fn_c_compute_int ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if test "$cross_compiling" = yes; then
2000 # Depending upon the size, compute the lo and hi bounds.
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 static int test_array [1 - 2 * !(($2) >= 0)];
2014 if ac_fn_c_try_compile "$LINENO"; then :
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_hi=$ac_mid; break
2033 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2034 if test $ac_lo -le $ac_mid; then
2038 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2049 static int test_array [1 - 2 * !(($2) < 0)];
2056 if ac_fn_c_try_compile "$LINENO"; then :
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2065 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_lo=$ac_mid; break
2075 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2076 if test $ac_mid -le $ac_hi; then
2080 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 # Binary search between lo and hi bounds.
2091 while test "x$ac_lo" != "x$ac_hi"; do
2092 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 if ac_fn_c_try_compile "$LINENO"; then :
2109 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2121 static long int longval () { return $2; }
2122 static unsigned long int ulongval () { return $2; }
2129 FILE *f = fopen ("conftest.val", "w");
2134 long int i = longval ();
2137 fprintf (f, "%ld", i);
2141 unsigned long int i = ulongval ();
2144 fprintf (f, "%lu", i);
2146 /* Do not output a trailing newline, as this causes \r\n confusion
2147 on some platforms. */
2148 return ferror (f) || fclose (f) != 0;
2154 if ac_fn_c_try_run "$LINENO"; then :
2155 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2160 conftest.$ac_objext conftest.beam conftest.$ac_ext
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165 as_fn_set_status $ac_retval
2167 } # ac_fn_c_compute_int
2169 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2170 # ----------------------------------------------------
2171 # Tries to find if the field MEMBER exists in type AGGR, after including
2172 # INCLUDES, setting cache variable VAR accordingly.
2173 ac_fn_c_check_member ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2177 $as_echo_n "checking for $2.$3... " >&6; }
2178 if eval \${$4+:} false; then :
2179 $as_echo_n "(cached) " >&6
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2194 if ac_fn_c_try_compile "$LINENO"; then :
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2204 if (sizeof ac_aggr.$3)
2210 if ac_fn_c_try_compile "$LINENO"; then :
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 } # ac_fn_c_check_member
2225 cat >config.log <<_ACEOF
2226 This file contains any messages produced by compilers while
2227 running configure, to aid debugging if configure makes a mistake.
2229 It was created by OpenSSH $as_me Portable, which was
2230 generated by GNU Autoconf 2.68. Invocation command line was
2242 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2243 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2244 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2245 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2246 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2248 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2249 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2251 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2252 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2253 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2254 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2255 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2256 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2257 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 $as_echo "PATH: $as_dir"
2282 # Keep a trace of the command line.
2283 # Strip out --no-create and --no-recursion so they do not pile up.
2284 # Strip out --silent because we don't want to record it for future runs.
2285 # Also quote any args containing shell meta-characters.
2286 # Make two passes to allow for proper duplicate-argument suppression.
2290 ac_must_keep_next=false
2296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2298 | -silent | --silent | --silen | --sile | --sil)
2301 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2304 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2306 as_fn_append ac_configure_args1 " '$ac_arg'"
2307 if test $ac_must_keep_next = true; then
2308 ac_must_keep_next=false # Got value, back to normal.
2311 *=* | --config-cache | -C | -disable-* | --disable-* \
2312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2314 | -with-* | --with-* | -without-* | --without-* | --x)
2315 case "$ac_configure_args0 " in
2316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2319 -* ) ac_must_keep_next=true ;;
2322 as_fn_append ac_configure_args " '$ac_arg'"
2327 { ac_configure_args0=; unset ac_configure_args0;}
2328 { ac_configure_args1=; unset ac_configure_args1;}
2330 # When interrupted or exit'd, cleanup temporary files, and complete
2331 # config.log. We remove comments because anyway the quotes in there
2332 # would cause problems or look ugly.
2333 # WARNING: Use '\'' to represent an apostrophe within the trap.
2334 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2335 trap 'exit_status=$?
2336 # Save into config.log some information that might help in debugging.
2340 $as_echo "## ---------------- ##
2341 ## Cache variables. ##
2342 ## ---------------- ##"
2344 # The following way of writing the cache mishandles newlines in values,
2346 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2347 eval ac_val=\$$ac_var
2351 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2352 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2355 _ | IFS | as_nl) ;; #(
2356 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2357 *) { eval $ac_var=; unset $ac_var;} ;;
2362 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2363 *${as_nl}ac_space=\ *)
2365 "s/'\''/'\''\\\\'\'''\''/g;
2366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2369 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2376 $as_echo "## ----------------- ##
2377 ## Output variables. ##
2378 ## ----------------- ##"
2380 for ac_var in $ac_subst_vars
2382 eval ac_val=\$$ac_var
2384 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2386 $as_echo "$ac_var='\''$ac_val'\''"
2390 if test -n "$ac_subst_files"; then
2391 $as_echo "## ------------------- ##
2392 ## File substitutions. ##
2393 ## ------------------- ##"
2395 for ac_var in $ac_subst_files
2397 eval ac_val=\$$ac_var
2399 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2401 $as_echo "$ac_var='\''$ac_val'\''"
2406 if test -s confdefs.h; then
2407 $as_echo "## ----------- ##
2414 test "$ac_signal" != 0 &&
2415 $as_echo "$as_me: caught signal $ac_signal"
2416 $as_echo "$as_me: exit $exit_status"
2418 rm -f core *.core core.conftest.* &&
2419 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2422 for ac_signal in 1 2 13 15; do
2423 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2427 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2428 rm -f -r conftest* confdefs.h
2430 $as_echo "/* confdefs.h */" > confdefs.h
2432 # Predefined preprocessor variables.
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_NAME "$PACKAGE_NAME"
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_STRING "$PACKAGE_STRING"
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_URL "$PACKAGE_URL"
2459 # Let the site file select an alternate cache file if it wants to.
2460 # Prefer an explicitly selected file to automatically selected ones.
2463 if test -n "$CONFIG_SITE"; then
2464 # We do not want a PATH search for config.site.
2465 case $CONFIG_SITE in #((
2466 -*) ac_site_file1=./$CONFIG_SITE;;
2467 */*) ac_site_file1=$CONFIG_SITE;;
2468 *) ac_site_file1=./$CONFIG_SITE;;
2470 elif test "x$prefix" != xNONE; then
2471 ac_site_file1=$prefix/share/config.site
2472 ac_site_file2=$prefix/etc/config.site
2474 ac_site_file1=$ac_default_prefix/share/config.site
2475 ac_site_file2=$ac_default_prefix/etc/config.site
2477 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2479 test "x$ac_site_file" = xNONE && continue
2480 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2482 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2483 sed 's/^/| /' "$ac_site_file" >&5
2485 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 as_fn_error $? "failed to load site script $ac_site_file
2488 See \`config.log' for more details" "$LINENO" 5; }
2492 if test -r "$cache_file"; then
2493 # Some versions of bash will fail to source /dev/null (special files
2494 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2495 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2497 $as_echo "$as_me: loading cache $cache_file" >&6;}
2499 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2500 *) . "./$cache_file";;
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2505 $as_echo "$as_me: creating cache $cache_file" >&6;}
2509 # Check that the precious variables saved in the cache have kept the same
2511 ac_cache_corrupted=false
2512 for ac_var in $ac_precious_vars; do
2513 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2514 eval ac_new_set=\$ac_env_${ac_var}_set
2515 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2516 eval ac_new_val=\$ac_env_${ac_var}_value
2517 case $ac_old_set,$ac_new_set in
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2524 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2525 ac_cache_corrupted=: ;;
2528 if test "x$ac_old_val" != "x$ac_new_val"; then
2529 # differences in whitespace do not lead to failure.
2530 ac_old_val_w=`echo x $ac_old_val`
2531 ac_new_val_w=`echo x $ac_new_val`
2532 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2534 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2535 ac_cache_corrupted=:
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2538 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2539 eval $ac_var=\$ac_old_val
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2542 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2544 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2547 # Pass precious variables to config.status.
2548 if test "$ac_new_set" = set; then
2550 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2551 *) ac_arg=$ac_var=$ac_new_val ;;
2553 case " $ac_configure_args " in
2554 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2555 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2559 if $ac_cache_corrupted; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2563 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2564 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2566 ## -------------------- ##
2567 ## Main body of script. ##
2568 ## -------------------- ##
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586 ac_config_headers="$ac_config_headers config.h"
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593 if test -n "$ac_tool_prefix"; then
2594 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_CC+:} false; then :
2599 $as_echo_n "(cached) " >&6
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 if test -n "$CC"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2624 $as_echo "$CC" >&6; }
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2632 if test -z "$ac_cv_prog_CC"; then
2634 # Extract the first word of "gcc", so it can be a program name with args.
2635 set dummy gcc; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2639 $as_echo_n "(cached) " >&6
2641 if test -n "$ac_ct_CC"; then
2642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_ac_ct_CC="gcc"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2662 if test -n "$ac_ct_CC"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2664 $as_echo "$ac_ct_CC" >&6; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2670 if test "x$ac_ct_CC" = x; then
2673 case $cross_compiling:$ac_tool_warned in
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677 ac_tool_warned=yes ;;
2685 if test -z "$CC"; then
2686 if test -n "$ac_tool_prefix"; then
2687 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2688 set dummy ${ac_tool_prefix}cc; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_CC+:} false; then :
2692 $as_echo_n "(cached) " >&6
2694 if test -n "$CC"; then
2695 ac_cv_prog_CC="$CC" # Let the user override the test.
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704 ac_cv_prog_CC="${ac_tool_prefix}cc"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 if test -n "$CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 $as_echo "$CC" >&6; }
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2726 if test -z "$CC"; then
2727 # Extract the first word of "cc", so it can be a program name with args.
2728 set dummy cc; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_prog_CC+:} false; then :
2732 $as_echo_n "(cached) " >&6
2734 if test -n "$CC"; then
2735 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2746 ac_prog_rejected=yes
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 if test $ac_prog_rejected = yes; then
2758 # We found a bogon in the path, so make sure we never use it.
2759 set dummy $ac_cv_prog_CC
2761 if test $# != 0; then
2762 # We chose a different compiler from the bogus one.
2763 # However, it has the same basename, so the bogon will be chosen
2764 # first if we set CC to just the basename; use the full file name.
2766 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2772 if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774 $as_echo "$CC" >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2782 if test -z "$CC"; then
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in cl.exe
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_CC+:} false; then :
2791 $as_echo_n "(cached) " >&6
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 if test -n "$CC"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816 $as_echo "$CC" >&6; }
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2823 test -n "$CC" && break
2826 if test -z "$CC"; then
2828 for ac_prog in cl.exe
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$ac_ct_CC"; then
2838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CC="$ac_prog"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858 if test -n "$ac_ct_CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2860 $as_echo "$ac_ct_CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2867 test -n "$ac_ct_CC" && break
2870 if test "x$ac_ct_CC" = x; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2886 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888 as_fn_error $? "no acceptable C compiler found in \$PATH
2889 See \`config.log' for more details" "$LINENO" 5; }
2891 # Provide some information about the compiler.
2892 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2895 for ac_option in --version -v -V -qversion; do
2896 { { ac_try="$ac_compiler $ac_option >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902 $as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2905 if test -s conftest.err; then
2907 ... rest of stderr output deleted ...
2908 10q' conftest.err >conftest.er1
2909 cat conftest.er1 >&5
2911 rm -f conftest.er1 conftest.err
2912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913 test $ac_status = 0; }
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2927 ac_clean_files_save=$ac_clean_files
2928 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2929 # Try to create an executable without -o first, disregard a.out.
2930 # It will help us diagnose broken compilers, and finding out an intuition
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2933 $as_echo_n "checking whether the C compiler works... " >&6; }
2934 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2936 # The possible output files:
2937 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2940 for ac_file in $ac_files
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2944 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2949 if { { ac_try="$ac_link_default"
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2955 $as_echo "$ac_try_echo"; } >&5
2956 (eval "$ac_link_default") 2>&5
2958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2959 test $ac_status = 0; }; then :
2960 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2961 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2962 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2963 # so that the user can short-circuit this test for compilers unknown to
2965 for ac_file in $ac_files ''
2967 test -f "$ac_file" || continue
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2972 # We found the default executable, but exeext='' is most
2976 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2978 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2980 # We set ac_cv_exeext here because the later test for it is not
2981 # safe: cross compilers may not add the suffix if given an `-o'
2982 # argument, so we may need to know it at that point already.
2983 # Even if this section looks crufty: it has the advantage of
2990 test "$ac_cv_exeext" = no && ac_cv_exeext=
2995 if test -z "$ac_file"; then :
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
2998 $as_echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003 as_fn_error 77 "C compiler cannot create executables
3004 See \`config.log' for more details" "$LINENO" 5; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3007 $as_echo "yes" >&6; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3010 $as_echo_n "checking for C compiler default output file name... " >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3012 $as_echo "$ac_file" >&6; }
3013 ac_exeext=$ac_cv_exeext
3015 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3016 ac_clean_files=$ac_clean_files_save
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3018 $as_echo_n "checking for suffix of executables... " >&6; }
3019 if { { ac_try="$ac_link"
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025 $as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link") 2>&5
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }; then :
3030 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3031 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3032 # work properly (i.e., refer to `conftest.exe'), while it won't with
3034 for ac_file in conftest.exe conftest conftest.*; do
3035 test -f "$ac_file" || continue
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3038 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3047 See \`config.log' for more details" "$LINENO" 5; }
3049 rm -f conftest conftest$ac_cv_exeext
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3051 $as_echo "$ac_cv_exeext" >&6; }
3053 rm -f conftest.$ac_ext
3054 EXEEXT=$ac_cv_exeext
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3062 FILE *f = fopen ("conftest.out", "w");
3063 return ferror (f) || fclose (f) != 0;
3069 ac_clean_files="$ac_clean_files conftest.out"
3070 # Check that the compiler produces executables we can run. If not, either
3071 # the compiler is broken, or we cross compile.
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3073 $as_echo_n "checking whether we are cross compiling... " >&6; }
3074 if test "$cross_compiling" != yes; then
3075 { { ac_try="$ac_link"
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081 $as_echo "$ac_try_echo"; } >&5
3082 (eval "$ac_link") 2>&5
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }
3086 if { ac_try='./conftest$ac_cv_exeext'
3087 { { case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_try") 2>&5
3095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096 test $ac_status = 0; }; }; then
3099 if test "$cross_compiling" = maybe; then
3102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 as_fn_error $? "cannot run C compiled programs.
3105 If you meant to cross compile, use \`--host'.
3106 See \`config.log' for more details" "$LINENO" 5; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3111 $as_echo "$cross_compiling" >&6; }
3113 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3114 ac_clean_files=$ac_clean_files_save
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3116 $as_echo_n "checking for suffix of object files... " >&6; }
3117 if ${ac_cv_objext+:} false; then :
3118 $as_echo_n "(cached) " >&6
3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h. */
3131 rm -f conftest.o conftest.obj
3132 if { { ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_compile") 2>&5
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }; then :
3143 for ac_file in conftest.o conftest.obj conftest.*; do
3144 test -f "$ac_file" || continue;
3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3147 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3152 $as_echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "cannot compute suffix of object files: cannot compile
3158 See \`config.log' for more details" "$LINENO" 5; }
3160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3163 $as_echo "$ac_cv_objext" >&6; }
3164 OBJEXT=$ac_cv_objext
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3167 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3168 if ${ac_cv_c_compiler_gnu+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3185 if ac_fn_c_try_compile "$LINENO"; then :
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3195 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3196 if test $ac_compiler_gnu = yes; then
3201 ac_test_CFLAGS=${CFLAGS+set}
3202 ac_save_CFLAGS=$CFLAGS
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3204 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3205 if ${ac_cv_prog_cc_g+:} false; then :
3206 $as_echo_n "(cached) " >&6
3208 ac_save_c_werror_flag=$ac_c_werror_flag
3209 ac_c_werror_flag=yes
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3223 if ac_fn_c_try_compile "$LINENO"; then :
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3238 if ac_fn_c_try_compile "$LINENO"; then :
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3254 if ac_fn_c_try_compile "$LINENO"; then :
3257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 ac_c_werror_flag=$ac_save_c_werror_flag
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3265 $as_echo "$ac_cv_prog_cc_g" >&6; }
3266 if test "$ac_test_CFLAGS" = set; then
3267 CFLAGS=$ac_save_CFLAGS
3268 elif test $ac_cv_prog_cc_g = yes; then
3269 if test "$GCC" = yes; then
3275 if test "$GCC" = yes; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3282 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3283 if ${ac_cv_prog_cc_c89+:} false; then :
3284 $as_echo_n "(cached) " >&6
3286 ac_cv_prog_cc_c89=no
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3292 #include <sys/types.h>
3293 #include <sys/stat.h>
3294 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3295 struct buf { int x; };
3296 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3297 static char *e (p, i)
3303 static char *f (char * (*g) (char **, int), char **p, ...)
3308 s = g (p, va_arg (v,int));
3313 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3314 function prototypes and stuff, but not '\xHH' hex character constants.
3315 These don't provoke an error unfortunately, instead are silently treated
3316 as 'x'. The following induces an error, until -std is added to get
3317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3318 array size at least. It's necessary to write '\x00'==0 to get something
3319 that's true only with -std. */
3320 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3323 inside strings and character constants. */
3325 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3327 int test (int i, double x);
3328 struct s1 {int (*f) (int a);};
3329 struct s2 {int (*f) (double a);};
3330 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3336 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3341 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3342 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3344 CC="$ac_save_CC $ac_arg"
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_cv_prog_cc_c89=$ac_arg
3348 rm -f core conftest.err conftest.$ac_objext
3349 test "x$ac_cv_prog_cc_c89" != "xno" && break
3351 rm -f conftest.$ac_ext
3356 case "x$ac_cv_prog_cc_c89" in
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3359 $as_echo "none needed" >&6; } ;;
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3362 $as_echo "unsupported" >&6; } ;;
3364 CC="$CC $ac_cv_prog_cc_c89"
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3366 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3368 if test "x$ac_cv_prog_cc_c89" != xno; then :
3373 ac_cpp='$CPP $CPPFLAGS'
3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3380 if test -f "$ac_dir/install-sh"; then
3382 ac_install_sh="$ac_aux_dir/install-sh -c"
3384 elif test -f "$ac_dir/install.sh"; then
3386 ac_install_sh="$ac_aux_dir/install.sh -c"
3388 elif test -f "$ac_dir/shtool"; then
3390 ac_install_sh="$ac_aux_dir/shtool install -c"
3394 if test -z "$ac_aux_dir"; then
3395 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3398 # These three variables are undocumented and unsupported,
3399 # and are intended to be withdrawn in a future Autoconf release.
3400 # They can cause serious problems if a builder's source tree is in a directory
3401 # whose full name contains unusual characters.
3402 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3403 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3404 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3407 # Make sure we can run config.sub.
3408 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3409 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3412 $as_echo_n "checking build system type... " >&6; }
3413 if ${ac_cv_build+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 ac_build_alias=$build_alias
3417 test "x$ac_build_alias" = x &&
3418 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3419 test "x$ac_build_alias" = x &&
3420 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3421 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3426 $as_echo "$ac_cv_build" >&6; }
3427 case $ac_cv_build in
3429 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3432 ac_save_IFS=$IFS; IFS='-'
3438 # Remember, the first character of IFS is used to create $*,
3439 # except with old shells:
3442 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3446 $as_echo_n "checking host system type... " >&6; }
3447 if ${ac_cv_host+:} false; then :
3448 $as_echo_n "(cached) " >&6
3450 if test "x$host_alias" = x; then
3451 ac_cv_host=$ac_cv_build
3453 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3454 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3459 $as_echo "$ac_cv_host" >&6; }
3462 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3465 ac_save_IFS=$IFS; IFS='-'
3471 # Remember, the first character of IFS is used to create $*,
3472 # except with old shells:
3475 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3485 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3486 # On Suns, sometimes $CPP names a directory.
3487 if test -n "$CPP" && test -d "$CPP"; then
3490 if test -z "$CPP"; then
3491 if ${ac_cv_prog_CPP+:} false; then :
3492 $as_echo_n "(cached) " >&6
3494 # Double quotes because CPP needs to be expanded
3495 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3498 for ac_c_preproc_warn_flag in '' yes
3500 # Use a header file that comes with gcc, so configuring glibc
3501 # with a fresh cross-compiler works.
3502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503 # <limits.h> exists even on freestanding compilers.
3504 # On the NeXT, cc -E runs the code through the compiler's parser,
3505 # not just through cpp. "Syntax error" is here to catch this case.
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3509 # include <limits.h>
3511 # include <assert.h>
3515 if ac_fn_c_try_cpp "$LINENO"; then :
3518 # Broken: fails on valid input.
3521 rm -f conftest.err conftest.i conftest.$ac_ext
3523 # OK, works on sane cases. Now check whether nonexistent headers
3524 # can be detected and how.
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527 #include <ac_nonexistent.h>
3529 if ac_fn_c_try_cpp "$LINENO"; then :
3530 # Broken: success on invalid input.
3533 # Passes both tests.
3537 rm -f conftest.err conftest.i conftest.$ac_ext
3540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541 rm -f conftest.i conftest.err conftest.$ac_ext
3542 if $ac_preproc_ok; then :
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3555 $as_echo "$CPP" >&6; }
3557 for ac_c_preproc_warn_flag in '' yes
3559 # Use a header file that comes with gcc, so configuring glibc
3560 # with a fresh cross-compiler works.
3561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3562 # <limits.h> exists even on freestanding compilers.
3563 # On the NeXT, cc -E runs the code through the compiler's parser,
3564 # not just through cpp. "Syntax error" is here to catch this case.
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3568 # include <limits.h>
3570 # include <assert.h>
3574 if ac_fn_c_try_cpp "$LINENO"; then :
3577 # Broken: fails on valid input.
3580 rm -f conftest.err conftest.i conftest.$ac_ext
3582 # OK, works on sane cases. Now check whether nonexistent headers
3583 # can be detected and how.
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586 #include <ac_nonexistent.h>
3588 if ac_fn_c_try_cpp "$LINENO"; then :
3589 # Broken: success on invalid input.
3592 # Passes both tests.
3596 rm -f conftest.err conftest.i conftest.$ac_ext
3599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3600 rm -f conftest.i conftest.err conftest.$ac_ext
3601 if $ac_preproc_ok; then :
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3607 See \`config.log' for more details" "$LINENO" 5; }
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3618 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3619 if ${ac_cv_path_GREP+:} false; then :
3620 $as_echo_n "(cached) " >&6
3622 if test -z "$GREP"; then
3623 ac_path_GREP_found=false
3624 # Loop through the user's path and test for each of PROGNAME-LIST
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629 test -z "$as_dir" && as_dir=.
3630 for ac_prog in grep ggrep; do
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3633 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3634 # Check for GNU ac_path_GREP and select it if it is found.
3635 # Check for GNU $ac_path_GREP
3636 case `"$ac_path_GREP" --version 2>&1` in
3638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3641 $as_echo_n 0123456789 >"conftest.in"
3644 cat "conftest.in" "conftest.in" >"conftest.tmp"
3645 mv "conftest.tmp" "conftest.in"
3646 cp "conftest.in" "conftest.nl"
3647 $as_echo 'GREP' >> "conftest.nl"
3648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650 as_fn_arith $ac_count + 1 && ac_count=$as_val
3651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3652 # Best one so far, save it but keep looking for a better one
3653 ac_cv_path_GREP="$ac_path_GREP"
3654 ac_path_GREP_max=$ac_count
3656 # 10*(2^10) chars as input seems more than enough
3657 test $ac_count -gt 10 && break
3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662 $ac_path_GREP_found && break 3
3667 if test -z "$ac_cv_path_GREP"; then
3668 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3671 ac_cv_path_GREP=$GREP
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3676 $as_echo "$ac_cv_path_GREP" >&6; }
3677 GREP="$ac_cv_path_GREP"
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3681 $as_echo_n "checking for egrep... " >&6; }
3682 if ${ac_cv_path_EGREP+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3686 then ac_cv_path_EGREP="$GREP -E"
3688 if test -z "$EGREP"; then
3689 ac_path_EGREP_found=false
3690 # Loop through the user's path and test for each of PROGNAME-LIST
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3695 test -z "$as_dir" && as_dir=.
3696 for ac_prog in egrep; do
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3699 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3700 # Check for GNU ac_path_EGREP and select it if it is found.
3701 # Check for GNU $ac_path_EGREP
3702 case `"$ac_path_EGREP" --version 2>&1` in
3704 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3707 $as_echo_n 0123456789 >"conftest.in"
3710 cat "conftest.in" "conftest.in" >"conftest.tmp"
3711 mv "conftest.tmp" "conftest.in"
3712 cp "conftest.in" "conftest.nl"
3713 $as_echo 'EGREP' >> "conftest.nl"
3714 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3716 as_fn_arith $ac_count + 1 && ac_count=$as_val
3717 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3718 # Best one so far, save it but keep looking for a better one
3719 ac_cv_path_EGREP="$ac_path_EGREP"
3720 ac_path_EGREP_max=$ac_count
3722 # 10*(2^10) chars as input seems more than enough
3723 test $ac_count -gt 10 && break
3725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3728 $ac_path_EGREP_found && break 3
3733 if test -z "$ac_cv_path_EGREP"; then
3734 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3737 ac_cv_path_EGREP=$EGREP
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3743 $as_echo "$ac_cv_path_EGREP" >&6; }
3744 EGREP="$ac_cv_path_EGREP"
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3748 $as_echo_n "checking for ANSI C header files... " >&6; }
3749 if ${ac_cv_header_stdc+:} false; then :
3750 $as_echo_n "(cached) " >&6
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_header_stdc=yes
3770 ac_cv_header_stdc=no
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 if test $ac_cv_header_stdc = yes; then
3775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "memchr" >/dev/null 2>&1; then :
3785 ac_cv_header_stdc=no
3791 if test $ac_cv_header_stdc = yes; then
3792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 $EGREP "free" >/dev/null 2>&1; then :
3802 ac_cv_header_stdc=no
3808 if test $ac_cv_header_stdc = yes; then
3809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3810 if test "$cross_compiling" = yes; then :
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3817 #if ((' ' & 0x0FF) == 0x020)
3818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3821 # define ISLOWER(c) \
3822 (('a' <= (c) && (c) <= 'i') \
3823 || ('j' <= (c) && (c) <= 'r') \
3824 || ('s' <= (c) && (c) <= 'z'))
3825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3833 for (i = 0; i < 256; i++)
3834 if (XOR (islower (i), ISLOWER (i))
3835 || toupper (i) != TOUPPER (i))
3840 if ac_fn_c_try_run "$LINENO"; then :
3843 ac_cv_header_stdc=no
3845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3846 conftest.$ac_objext conftest.beam conftest.$ac_ext
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3852 $as_echo "$ac_cv_header_stdc" >&6; }
3853 if test $ac_cv_header_stdc = yes; then
3855 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3859 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3860 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3861 inttypes.h stdint.h unistd.h
3863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3864 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3867 cat >>confdefs.h <<_ACEOF
3868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3877 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3878 if ${ac_cv_c_bigendian+:} false; then :
3879 $as_echo_n "(cached) " >&6
3881 ac_cv_c_bigendian=unknown
3882 # See if we're dealing with a universal compiler.
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885 #ifndef __APPLE_CC__
3886 not a universal capable compiler
3891 if ac_fn_c_try_compile "$LINENO"; then :
3893 # Check for potential -arch flags. It is not universal unless
3894 # there are at least two -arch flags with different values.
3897 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3898 if test -n "$ac_prev"; then
3900 i?86 | x86_64 | ppc | ppc64)
3901 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3904 ac_cv_c_bigendian=universal
3910 elif test "x$ac_word" = "x-arch"; then
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 if test $ac_cv_c_bigendian = unknown; then
3917 # See if sys/param.h defines the BYTE_ORDER macro.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <sys/types.h>
3921 #include <sys/param.h>
3926 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3927 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3936 if ac_fn_c_try_compile "$LINENO"; then :
3937 # It does; now see whether it defined to BIG_ENDIAN or not.
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940 #include <sys/types.h>
3941 #include <sys/param.h>
3946 #if BYTE_ORDER != BIG_ENDIAN
3954 if ac_fn_c_try_compile "$LINENO"; then :
3955 ac_cv_c_bigendian=yes
3957 ac_cv_c_bigendian=no
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 if test $ac_cv_c_bigendian = unknown; then
3964 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3972 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 # It does; now see whether it defined to _BIG_ENDIAN or not.
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998 ac_cv_c_bigendian=yes
4000 ac_cv_c_bigendian=no
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 if test $ac_cv_c_bigendian = unknown; then
4007 # Compile a test program.
4008 if test "$cross_compiling" = yes; then :
4009 # Try to guess by grepping values from an object file.
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 short int ascii_mm[] =
4013 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4014 short int ascii_ii[] =
4015 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4016 int use_ascii (int i) {
4017 return ascii_mm[i] + ascii_ii[i];
4019 short int ebcdic_ii[] =
4020 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4021 short int ebcdic_mm[] =
4022 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4023 int use_ebcdic (int i) {
4024 return ebcdic_mm[i] + ebcdic_ii[i];
4031 return use_ascii (foo) == use_ebcdic (foo);
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4038 ac_cv_c_bigendian=yes
4040 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4041 if test "$ac_cv_c_bigendian" = unknown; then
4042 ac_cv_c_bigendian=no
4044 # finding both strings is unlikely to happen, but who knows?
4045 ac_cv_c_bigendian=unknown
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053 $ac_includes_default
4058 /* Are we little or big endian? From Harbison&Steele. */
4062 char c[sizeof (long int)];
4065 return u.c[sizeof (long int) - 1] == 1;
4071 if ac_fn_c_try_run "$LINENO"; then :
4072 ac_cv_c_bigendian=no
4074 ac_cv_c_bigendian=yes
4076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4077 conftest.$ac_objext conftest.beam conftest.$ac_ext
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4083 $as_echo "$ac_cv_c_bigendian" >&6; }
4084 case $ac_cv_c_bigendian in #(
4086 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4092 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4096 as_fn_error $? "unknown endianness
4097 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4101 # Checks for programs.
4102 for ac_prog in gawk mawk nawk awk
4104 # Extract the first word of "$ac_prog", so it can be a program name with args.
4105 set dummy $ac_prog; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if ${ac_cv_prog_AWK+:} false; then :
4109 $as_echo_n "(cached) " >&6
4111 if test -n "$AWK"; then
4112 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121 ac_cv_prog_AWK="$ac_prog"
4122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 if test -n "$AWK"; then
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4134 $as_echo "$AWK" >&6; }
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4141 test -n "$AWK" && break
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4150 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4151 # On Suns, sometimes $CPP names a directory.
4152 if test -n "$CPP" && test -d "$CPP"; then
4155 if test -z "$CPP"; then
4156 if ${ac_cv_prog_CPP+:} false; then :
4157 $as_echo_n "(cached) " >&6
4159 # Double quotes because CPP needs to be expanded
4160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4163 for ac_c_preproc_warn_flag in '' yes
4165 # Use a header file that comes with gcc, so configuring glibc
4166 # with a fresh cross-compiler works.
4167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168 # <limits.h> exists even on freestanding compilers.
4169 # On the NeXT, cc -E runs the code through the compiler's parser,
4170 # not just through cpp. "Syntax error" is here to catch this case.
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4174 # include <limits.h>
4176 # include <assert.h>
4180 if ac_fn_c_try_cpp "$LINENO"; then :
4183 # Broken: fails on valid input.
4186 rm -f conftest.err conftest.i conftest.$ac_ext
4188 # OK, works on sane cases. Now check whether nonexistent headers
4189 # can be detected and how.
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #include <ac_nonexistent.h>
4194 if ac_fn_c_try_cpp "$LINENO"; then :
4195 # Broken: success on invalid input.
4198 # Passes both tests.
4202 rm -f conftest.err conftest.i conftest.$ac_ext
4205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4206 rm -f conftest.i conftest.err conftest.$ac_ext
4207 if $ac_preproc_ok; then :
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4220 $as_echo "$CPP" >&6; }
4222 for ac_c_preproc_warn_flag in '' yes
4224 # Use a header file that comes with gcc, so configuring glibc
4225 # with a fresh cross-compiler works.
4226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227 # <limits.h> exists even on freestanding compilers.
4228 # On the NeXT, cc -E runs the code through the compiler's parser,
4229 # not just through cpp. "Syntax error" is here to catch this case.
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4233 # include <limits.h>
4235 # include <assert.h>
4239 if ac_fn_c_try_cpp "$LINENO"; then :
4242 # Broken: fails on valid input.
4245 rm -f conftest.err conftest.i conftest.$ac_ext
4247 # OK, works on sane cases. Now check whether nonexistent headers
4248 # can be detected and how.
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #include <ac_nonexistent.h>
4253 if ac_fn_c_try_cpp "$LINENO"; then :
4254 # Broken: success on invalid input.
4257 # Passes both tests.
4261 rm -f conftest.err conftest.i conftest.$ac_ext
4264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4265 rm -f conftest.i conftest.err conftest.$ac_ext
4266 if $ac_preproc_ok; then :
4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4272 See \`config.log' for more details" "$LINENO" 5; }
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 if test -n "$ac_tool_prefix"; then
4282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_RANLIB+:} false; then :
4287 $as_echo_n "(cached) " >&6
4289 if test -n "$RANLIB"; then
4290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 RANLIB=$ac_cv_prog_RANLIB
4310 if test -n "$RANLIB"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4312 $as_echo "$RANLIB" >&6; }
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4320 if test -z "$ac_cv_prog_RANLIB"; then
4321 ac_ct_RANLIB=$RANLIB
4322 # Extract the first word of "ranlib", so it can be a program name with args.
4323 set dummy ranlib; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4327 $as_echo_n "(cached) " >&6
4329 if test -n "$ac_ct_RANLIB"; then
4330 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_ac_ct_RANLIB="ranlib"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4350 if test -n "$ac_ct_RANLIB"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4352 $as_echo "$ac_ct_RANLIB" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4358 if test "x$ac_ct_RANLIB" = x; then
4361 case $cross_compiling:$ac_tool_warned in
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4365 ac_tool_warned=yes ;;
4367 RANLIB=$ac_ct_RANLIB
4370 RANLIB="$ac_cv_prog_RANLIB"
4373 # Find a good install program. We prefer a C program (faster),
4374 # so one script is as good as another. But avoid the broken or
4375 # incompatible versions:
4376 # SysV /etc/install, /usr/sbin/install
4377 # SunOS /usr/etc/install
4378 # IRIX /sbin/install
4380 # AmigaOS /C/install, which installs bootblocks on floppy discs
4381 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4382 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4383 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4384 # OS/2's system install, which has a completely different semantic
4385 # ./install, which can be erroneously created by make from ./install.sh.
4386 # Reject install programs that cannot install multiple files.
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4388 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4389 if test -z "$INSTALL"; then
4390 if ${ac_cv_path_install+:} false; then :
4391 $as_echo_n "(cached) " >&6
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 # Account for people who put trailing slashes in PATH elements.
4399 case $as_dir/ in #((
4400 ./ | .// | /[cC]/* | \
4401 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4402 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4405 # OSF1 and SCO ODT 3.0 have their own names for install.
4406 # Don't use installbsd from OSF since it installs stuff as root
4408 for ac_prog in ginstall scoinst install; do
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4411 if test $ac_prog = install &&
4412 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4413 # AIX install. It has an incompatible calling convention.
4415 elif test $ac_prog = install &&
4416 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4417 # program-specific install script used by HP pwplus--don't use.
4420 rm -rf conftest.one conftest.two conftest.dir
4421 echo one > conftest.one
4422 echo two > conftest.two
4424 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4425 test -s conftest.one && test -s conftest.two &&
4426 test -s conftest.dir/conftest.one &&
4427 test -s conftest.dir/conftest.two
4429 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4442 rm -rf conftest.one conftest.two conftest.dir
4445 if test "${ac_cv_path_install+set}" = set; then
4446 INSTALL=$ac_cv_path_install
4448 # As a last resort, use the slow shell script. Don't cache a
4449 # value for INSTALL within a source directory, because that will
4450 # break other packages using the cache if that directory is
4451 # removed, or if the value is a relative name.
4452 INSTALL=$ac_install_sh
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4456 $as_echo "$INSTALL" >&6; }
4458 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4459 # It thinks the first close brace ends the variable substitution.
4460 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4462 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4464 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4467 $as_echo_n "checking for egrep... " >&6; }
4468 if ${ac_cv_path_EGREP+:} false; then :
4469 $as_echo_n "(cached) " >&6
4471 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4472 then ac_cv_path_EGREP="$GREP -E"
4474 if test -z "$EGREP"; then
4475 ac_path_EGREP_found=false
4476 # Loop through the user's path and test for each of PROGNAME-LIST
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481 test -z "$as_dir" && as_dir=.
4482 for ac_prog in egrep; do
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4485 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4486 # Check for GNU ac_path_EGREP and select it if it is found.
4487 # Check for GNU $ac_path_EGREP
4488 case `"$ac_path_EGREP" --version 2>&1` in
4490 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4493 $as_echo_n 0123456789 >"conftest.in"
4496 cat "conftest.in" "conftest.in" >"conftest.tmp"
4497 mv "conftest.tmp" "conftest.in"
4498 cp "conftest.in" "conftest.nl"
4499 $as_echo 'EGREP' >> "conftest.nl"
4500 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502 as_fn_arith $ac_count + 1 && ac_count=$as_val
4503 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4504 # Best one so far, save it but keep looking for a better one
4505 ac_cv_path_EGREP="$ac_path_EGREP"
4506 ac_path_EGREP_max=$ac_count
4508 # 10*(2^10) chars as input seems more than enough
4509 test $ac_count -gt 10 && break
4511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514 $ac_path_EGREP_found && break 3
4519 if test -z "$ac_cv_path_EGREP"; then
4520 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4523 ac_cv_path_EGREP=$EGREP
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4529 $as_echo "$ac_cv_path_EGREP" >&6; }
4530 EGREP="$ac_cv_path_EGREP"
4533 # Extract the first word of "ar", so it can be a program name with args.
4534 set dummy ar; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_path_AR+:} false; then :
4538 $as_echo_n "(cached) " >&6
4542 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 if test -n "$AR"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4566 $as_echo "$AR" >&6; }
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4573 # Extract the first word of "cat", so it can be a program name with args.
4574 set dummy cat; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_path_CAT+:} false; then :
4578 $as_echo_n "(cached) " >&6
4582 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 if test -n "$CAT"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4606 $as_echo "$CAT" >&6; }
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4613 # Extract the first word of "kill", so it can be a program name with args.
4614 set dummy kill; 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_path_KILL+:} false; then :
4618 $as_echo_n "(cached) " >&6
4622 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 KILL=$ac_cv_path_KILL
4644 if test -n "$KILL"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4646 $as_echo "$KILL" >&6; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4653 for ac_prog in perl5 perl
4655 # Extract the first word of "$ac_prog", so it can be a program name with args.
4656 set dummy $ac_prog; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if ${ac_cv_path_PERL+:} false; then :
4660 $as_echo_n "(cached) " >&6
4664 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 PERL=$ac_cv_path_PERL
4686 if test -n "$PERL"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4688 $as_echo "$PERL" >&6; }
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4695 test -n "$PERL" && break
4698 # Extract the first word of "sed", so it can be a program name with args.
4699 set dummy sed; ac_word=$2
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701 $as_echo_n "checking for $ac_word... " >&6; }
4702 if ${ac_cv_path_SED+:} false; then :
4703 $as_echo_n "(cached) " >&6
4707 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 if test -n "$SED"; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4731 $as_echo "$SED" >&6; }
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4739 # Extract the first word of "ent", so it can be a program name with args.
4740 set dummy ent; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if ${ac_cv_path_ENT+:} false; then :
4744 $as_echo_n "(cached) " >&6
4748 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 if test -n "$ENT"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4772 $as_echo "$ENT" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4780 # Extract the first word of "bash", so it can be a program name with args.
4781 set dummy bash; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 case $TEST_MINUS_S_SH in
4789 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4811 if test -n "$TEST_MINUS_S_SH"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4813 $as_echo "$TEST_MINUS_S_SH" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4820 # Extract the first word of "ksh", so it can be a program name with args.
4821 set dummy ksh; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 case $TEST_MINUS_S_SH in
4829 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4851 if test -n "$TEST_MINUS_S_SH"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4853 $as_echo "$TEST_MINUS_S_SH" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4860 # Extract the first word of "sh", so it can be a program name with args.
4861 set dummy sh; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4865 $as_echo_n "(cached) " >&6
4867 case $TEST_MINUS_S_SH in
4869 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4891 if test -n "$TEST_MINUS_S_SH"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4893 $as_echo "$TEST_MINUS_S_SH" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4900 # Extract the first word of "sh", so it can be a program name with args.
4901 set dummy sh; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if ${ac_cv_path_SH+:} false; then :
4905 $as_echo_n "(cached) " >&6
4909 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 if test -n "$SH"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4933 $as_echo "$SH" >&6; }
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4940 # Extract the first word of "groff", so it can be a program name with args.
4941 set dummy groff; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if ${ac_cv_path_GROFF+:} false; then :
4945 $as_echo_n "(cached) " >&6
4949 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 GROFF=$ac_cv_path_GROFF
4971 if test -n "$GROFF"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4973 $as_echo "$GROFF" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4980 # Extract the first word of "nroff", so it can be a program name with args.
4981 set dummy nroff; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_path_NROFF+:} false; then :
4985 $as_echo_n "(cached) " >&6
4989 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 NROFF=$ac_cv_path_NROFF
5011 if test -n "$NROFF"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5013 $as_echo "$NROFF" >&6; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5020 # Extract the first word of "mandoc", so it can be a program name with args.
5021 set dummy mandoc; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_path_MANDOC+:} false; then :
5025 $as_echo_n "(cached) " >&6
5029 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 MANDOC=$ac_cv_path_MANDOC
5051 if test -n "$MANDOC"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5053 $as_echo "$MANDOC" >&6; }
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5063 if test "x$MANDOC" != "x" ; then
5065 elif test "x$NROFF" != "x" ; then
5066 MANFMT="$NROFF -mandoc"
5067 elif test "x$GROFF" != "x" ; then
5068 MANFMT="$GROFF -mandoc -Tascii"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5071 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5076 # Extract the first word of "groupadd", so it can be a program name with args.
5077 set dummy groupadd; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5081 $as_echo_n "(cached) " >&6
5083 case $PATH_GROUPADD_PROG in
5085 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5107 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5108 if test -n "$PATH_GROUPADD_PROG"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5110 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5117 # Extract the first word of "useradd", so it can be a program name with args.
5118 set dummy useradd; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5122 $as_echo_n "(cached) " >&6
5124 case $PATH_USERADD_PROG in
5126 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5148 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5149 if test -n "$PATH_USERADD_PROG"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5151 $as_echo "$PATH_USERADD_PROG" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 # Extract the first word of "pkgmk", so it can be a program name with args.
5159 set dummy pkgmk; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5163 $as_echo_n "(cached) " >&6
5165 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5166 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5186 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5187 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5189 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5196 if test -x /sbin/sh; then
5197 STARTUP_SCRIPT_SHELL=/sbin/sh
5200 STARTUP_SCRIPT_SHELL=/bin/sh
5205 # Check whether --enable-largefile was given.
5206 if test "${enable_largefile+set}" = set; then :
5207 enableval=$enable_largefile;
5210 if test "$enable_largefile" != no; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5213 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5214 if ${ac_cv_sys_largefile_CC+:} false; then :
5215 $as_echo_n "(cached) " >&6
5217 ac_cv_sys_largefile_CC=no
5218 if test "$GCC" != yes; then
5221 # IRIX 6.2 and later do not support large files by default,
5222 # so use the C compiler's -n32 option if that helps.
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225 #include <sys/types.h>
5226 /* Check that off_t can represent 2**63 - 1 correctly.
5227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5228 since some C++ compilers masquerading as C compilers
5229 incorrectly reject 9223372036854775807. */
5230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5232 && LARGE_OFF_T % 2147483647 == 1)
5242 if ac_fn_c_try_compile "$LINENO"; then :
5245 rm -f core conftest.err conftest.$ac_objext
5247 if ac_fn_c_try_compile "$LINENO"; then :
5248 ac_cv_sys_largefile_CC=' -n32'; break
5250 rm -f core conftest.err conftest.$ac_objext
5254 rm -f conftest.$ac_ext
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5258 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5259 if test "$ac_cv_sys_largefile_CC" != no; then
5260 CC=$CC$ac_cv_sys_largefile_CC
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5264 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5265 if ${ac_cv_sys_file_offset_bits+:} false; then :
5266 $as_echo_n "(cached) " >&6
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 #include <sys/types.h>
5272 /* Check that off_t can represent 2**63 - 1 correctly.
5273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5274 since some C++ compilers masquerading as C compilers
5275 incorrectly reject 9223372036854775807. */
5276 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5278 && LARGE_OFF_T % 2147483647 == 1)
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289 ac_cv_sys_file_offset_bits=no; break
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 #define _FILE_OFFSET_BITS 64
5295 #include <sys/types.h>
5296 /* Check that off_t can represent 2**63 - 1 correctly.
5297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5298 since some C++ compilers masquerading as C compilers
5299 incorrectly reject 9223372036854775807. */
5300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5302 && LARGE_OFF_T % 2147483647 == 1)
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 ac_cv_sys_file_offset_bits=64; break
5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 ac_cv_sys_file_offset_bits=unknown
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5321 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5322 case $ac_cv_sys_file_offset_bits in #(
5325 cat >>confdefs.h <<_ACEOF
5326 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5331 if test $ac_cv_sys_file_offset_bits = unknown; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5333 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5334 if ${ac_cv_sys_large_files+:} false; then :
5335 $as_echo_n "(cached) " >&6
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340 #include <sys/types.h>
5341 /* Check that off_t can represent 2**63 - 1 correctly.
5342 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5343 since some C++ compilers masquerading as C compilers
5344 incorrectly reject 9223372036854775807. */
5345 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5346 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5347 && LARGE_OFF_T % 2147483647 == 1)
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358 ac_cv_sys_large_files=no; break
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 #define _LARGE_FILES 1
5364 #include <sys/types.h>
5365 /* Check that off_t can represent 2**63 - 1 correctly.
5366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5367 since some C++ compilers masquerading as C compilers
5368 incorrectly reject 9223372036854775807. */
5369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5371 && LARGE_OFF_T % 2147483647 == 1)
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 ac_cv_sys_large_files=1; break
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 ac_cv_sys_large_files=unknown
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5390 $as_echo "$ac_cv_sys_large_files" >&6; }
5391 case $ac_cv_sys_large_files in #(
5394 cat >>confdefs.h <<_ACEOF
5395 #define _LARGE_FILES $ac_cv_sys_large_files
5404 if test -z "$AR" ; then
5405 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5408 # Use LOGIN_PROGRAM from environment if possible
5409 if test ! -z "$LOGIN_PROGRAM" ; then
5411 cat >>confdefs.h <<_ACEOF
5412 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5417 # Extract the first word of "login", so it can be a program name with args.
5418 set dummy login; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5422 $as_echo_n "(cached) " >&6
5424 case $LOGIN_PROGRAM_FALLBACK in
5426 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5448 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5450 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5457 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5458 cat >>confdefs.h <<_ACEOF
5459 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5465 # Extract the first word of "passwd", so it can be a program name with args.
5466 set dummy passwd; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5470 $as_echo_n "(cached) " >&6
5472 case $PATH_PASSWD_PROG in
5474 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5496 if test -n "$PATH_PASSWD_PROG"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5498 $as_echo "$PATH_PASSWD_PROG" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5505 if test ! -z "$PATH_PASSWD_PROG" ; then
5507 cat >>confdefs.h <<_ACEOF
5508 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5513 if test -z "$LD" ; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5519 $as_echo_n "checking for inline... " >&6; }
5520 if ${ac_cv_c_inline+:} false; then :
5521 $as_echo_n "(cached) " >&6
5524 for ac_kw in inline __inline__ __inline; do
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5529 static $ac_kw foo_t static_foo () {return 0; }
5530 $ac_kw foo_t foo () {return 0; }
5534 if ac_fn_c_try_compile "$LINENO"; then :
5535 ac_cv_c_inline=$ac_kw
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 test "$ac_cv_c_inline" != no && break
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5543 $as_echo "$ac_cv_c_inline" >&6; }
5545 case $ac_cv_c_inline in
5548 case $ac_cv_c_inline in
5550 *) ac_val=$ac_cv_c_inline;;
5552 cat >>confdefs.h <<_ACEOF
5554 #define inline $ac_val
5561 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5563 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5567 ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5568 #include <sys/types.h>
5569 #include <sys/param.h>
5570 #include <dev/systrace.h>
5573 if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5574 have_systr_policy_kill=1
5577 ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5578 #include <sys/types.h>
5579 #include <sys/resource.h>
5582 if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5584 $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5588 ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5589 #include <sys/types.h>
5590 #include <linux/prctl.h>
5593 if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5594 have_linux_no_new_privs=1
5598 use_stack_protector=1
5599 use_toolchain_hardening=1
5601 # Check whether --with-stackprotect was given.
5602 if test "${with_stackprotect+set}" = set; then :
5603 withval=$with_stackprotect;
5604 if test "x$withval" = "xno"; then
5605 use_stack_protector=0
5610 # Check whether --with-hardening was given.
5611 if test "${with_hardening+set}" = set; then :
5612 withval=$with_hardening;
5613 if test "x$withval" = "xno"; then
5614 use_toolchain_hardening=0
5619 # We use -Werror for the tests only so that we catch warnings like "this is
5620 # on by default" for things like -fPIE.
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
5622 $as_echo_n "checking if $CC supports -Werror... " >&6; }
5623 saved_CFLAGS="$CFLAGS"
5624 CFLAGS="$CFLAGS -Werror"
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 int main(void) { return 0; }
5629 if ac_fn_c_try_compile "$LINENO"; then :
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5631 $as_echo "yes" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 CFLAGS="$saved_CFLAGS"
5642 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
5645 $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5646 saved_CFLAGS="$CFLAGS"
5647 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5649 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5655 int main(int argc, char **argv) {
5656 /* Some math to catch -ftrapv problems in the toolchain */
5657 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5660 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5661 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5666 if ac_fn_c_try_compile "$LINENO"; then :
5668 if `grep -i "unrecognized option" conftest.err >/dev/null`
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 CFLAGS="$saved_CFLAGS"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675 $as_echo "yes" >&6; }
5676 CFLAGS="$saved_CFLAGS $_define_flag"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 CFLAGS="$saved_CFLAGS"
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5688 $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
5689 saved_CFLAGS="$CFLAGS"
5690 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5692 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5698 int main(int argc, char **argv) {
5699 /* Some math to catch -ftrapv problems in the toolchain */
5700 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5703 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5704 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5709 if ac_fn_c_try_compile "$LINENO"; then :
5711 if `grep -i "unrecognized option" conftest.err >/dev/null`
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5715 CFLAGS="$saved_CFLAGS"
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5718 $as_echo "yes" >&6; }
5719 CFLAGS="$saved_CFLAGS $_define_flag"
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 $as_echo "no" >&6; }
5724 CFLAGS="$saved_CFLAGS"
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5
5731 $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; }
5732 saved_CFLAGS="$CFLAGS"
5733 CFLAGS="$CFLAGS $WERROR -Wall"
5735 test "x$_define_flag" = "x" && _define_flag="-Wall"
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5741 int main(int argc, char **argv) {
5742 /* Some math to catch -ftrapv problems in the toolchain */
5743 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5746 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5747 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5752 if ac_fn_c_try_compile "$LINENO"; then :
5754 if `grep -i "unrecognized option" conftest.err >/dev/null`
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 CFLAGS="$saved_CFLAGS"
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5761 $as_echo "yes" >&6; }
5762 CFLAGS="$saved_CFLAGS $_define_flag"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 CFLAGS="$saved_CFLAGS"
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
5774 $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5775 saved_CFLAGS="$CFLAGS"
5776 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
5778 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5784 int main(int argc, char **argv) {
5785 /* Some math to catch -ftrapv problems in the toolchain */
5786 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5789 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5790 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5795 if ac_fn_c_try_compile "$LINENO"; then :
5797 if `grep -i "unrecognized option" conftest.err >/dev/null`
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 CFLAGS="$saved_CFLAGS"
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5804 $as_echo "yes" >&6; }
5805 CFLAGS="$saved_CFLAGS $_define_flag"
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5810 CFLAGS="$saved_CFLAGS"
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5
5817 $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; }
5818 saved_CFLAGS="$CFLAGS"
5819 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
5821 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5827 int main(int argc, char **argv) {
5828 /* Some math to catch -ftrapv problems in the toolchain */
5829 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5832 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5833 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5838 if ac_fn_c_try_compile "$LINENO"; then :
5840 if `grep -i "unrecognized option" conftest.err >/dev/null`
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 CFLAGS="$saved_CFLAGS"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5847 $as_echo "yes" >&6; }
5848 CFLAGS="$saved_CFLAGS $_define_flag"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 CFLAGS="$saved_CFLAGS"
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5
5860 $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; }
5861 saved_CFLAGS="$CFLAGS"
5862 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
5864 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5870 int main(int argc, char **argv) {
5871 /* Some math to catch -ftrapv problems in the toolchain */
5872 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5875 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5876 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5881 if ac_fn_c_try_compile "$LINENO"; then :
5883 if `grep -i "unrecognized option" conftest.err >/dev/null`
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5887 CFLAGS="$saved_CFLAGS"
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5890 $as_echo "yes" >&6; }
5891 CFLAGS="$saved_CFLAGS $_define_flag"
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 CFLAGS="$saved_CFLAGS"
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5
5903 $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; }
5904 saved_CFLAGS="$CFLAGS"
5905 CFLAGS="$CFLAGS $WERROR -Wformat-security"
5907 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5913 int main(int argc, char **argv) {
5914 /* Some math to catch -ftrapv problems in the toolchain */
5915 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5918 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5919 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5924 if ac_fn_c_try_compile "$LINENO"; then :
5926 if `grep -i "unrecognized option" conftest.err >/dev/null`
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 $as_echo "no" >&6; }
5930 CFLAGS="$saved_CFLAGS"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5933 $as_echo "yes" >&6; }
5934 CFLAGS="$saved_CFLAGS $_define_flag"
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5939 CFLAGS="$saved_CFLAGS"
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
5946 $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; }
5947 saved_CFLAGS="$CFLAGS"
5948 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
5950 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5956 int main(int argc, char **argv) {
5957 /* Some math to catch -ftrapv problems in the toolchain */
5958 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5961 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5962 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5967 if ac_fn_c_try_compile "$LINENO"; then :
5969 if `grep -i "unrecognized option" conftest.err >/dev/null`
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5973 CFLAGS="$saved_CFLAGS"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5976 $as_echo "yes" >&6; }
5977 CFLAGS="$saved_CFLAGS $_define_flag"
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 CFLAGS="$saved_CFLAGS"
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5
5989 $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
5990 saved_CFLAGS="$CFLAGS"
5991 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
5992 _define_flag="-Wno-pointer-sign"
5993 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5999 int main(int argc, char **argv) {
6000 /* Some math to catch -ftrapv problems in the toolchain */
6001 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6004 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6005 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6010 if ac_fn_c_try_compile "$LINENO"; then :
6012 if `grep -i "unrecognized option" conftest.err >/dev/null`
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 CFLAGS="$saved_CFLAGS"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6019 $as_echo "yes" >&6; }
6020 CFLAGS="$saved_CFLAGS $_define_flag"
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6025 CFLAGS="$saved_CFLAGS"
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5
6032 $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; }
6033 saved_CFLAGS="$CFLAGS"
6034 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6035 _define_flag="-Wno-unused-result"
6036 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6042 int main(int argc, char **argv) {
6043 /* Some math to catch -ftrapv problems in the toolchain */
6044 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6047 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6048 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6053 if ac_fn_c_try_compile "$LINENO"; then :
6055 if `grep -i "unrecognized option" conftest.err >/dev/null`
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 CFLAGS="$saved_CFLAGS"
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6062 $as_echo "yes" >&6; }
6063 CFLAGS="$saved_CFLAGS $_define_flag"
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 CFLAGS="$saved_CFLAGS"
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6075 $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; }
6076 saved_CFLAGS="$CFLAGS"
6077 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6079 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6085 int main(int argc, char **argv) {
6086 /* Some math to catch -ftrapv problems in the toolchain */
6087 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6090 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6091 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6096 if ac_fn_c_try_compile "$LINENO"; then :
6098 if `grep -i "unrecognized option" conftest.err >/dev/null`
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 CFLAGS="$saved_CFLAGS"
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6105 $as_echo "yes" >&6; }
6106 CFLAGS="$saved_CFLAGS $_define_flag"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 CFLAGS="$saved_CFLAGS"
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6118 $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; }
6119 saved_CFLAGS="$CFLAGS"
6120 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6122 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6128 int main(int argc, char **argv) {
6129 /* Some math to catch -ftrapv problems in the toolchain */
6130 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6133 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6134 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6139 if ac_fn_c_try_compile "$LINENO"; then :
6141 if `grep -i "unrecognized option" conftest.err >/dev/null`
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6145 CFLAGS="$saved_CFLAGS"
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6148 $as_echo "yes" >&6; }
6149 CFLAGS="$saved_CFLAGS $_define_flag"
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 CFLAGS="$saved_CFLAGS"
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 if test "x$use_toolchain_hardening" = "x1"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5
6162 $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
6163 saved_LDFLAGS="$LDFLAGS"
6164 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6166 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6172 int main(int argc, char **argv) {
6173 /* Some math to catch -ftrapv problems in the toolchain */
6174 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6177 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6178 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6183 if ac_fn_c_try_link "$LINENO"; then :
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6185 $as_echo "yes" >&6; }
6186 LDFLAGS="$saved_LDFLAGS $_define_flag"
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6190 LDFLAGS="$saved_LDFLAGS"
6193 rm -f core conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5
6198 $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; }
6199 saved_LDFLAGS="$LDFLAGS"
6200 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6202 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6208 int main(int argc, char **argv) {
6209 /* Some math to catch -ftrapv problems in the toolchain */
6210 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6213 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6214 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6219 if ac_fn_c_try_link "$LINENO"; then :
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6221 $as_echo "yes" >&6; }
6222 LDFLAGS="$saved_LDFLAGS $_define_flag"
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6226 LDFLAGS="$saved_LDFLAGS"
6229 rm -f core conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6234 $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
6235 saved_LDFLAGS="$LDFLAGS"
6236 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6238 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6244 int main(int argc, char **argv) {
6245 /* Some math to catch -ftrapv problems in the toolchain */
6246 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6249 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6250 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6255 if ac_fn_c_try_link "$LINENO"; then :
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6257 $as_echo "yes" >&6; }
6258 LDFLAGS="$saved_LDFLAGS $_define_flag"
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 LDFLAGS="$saved_LDFLAGS"
6265 rm -f core conftest.err conftest.$ac_objext \
6266 conftest$ac_exeext conftest.$ac_ext
6268 # NB. -ftrapv expects certain support functions to be present in
6269 # the compiler library (libgcc or similar) to detect integer operations
6270 # that can overflow. We must check that the result of enabling it
6271 # actually links. The test program compiled/linked includes a number
6272 # of integer operations that should exercise this.
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6275 $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; }
6276 saved_CFLAGS="$CFLAGS"
6277 CFLAGS="$CFLAGS $WERROR -ftrapv"
6279 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6285 int main(int argc, char **argv) {
6286 /* Some math to catch -ftrapv problems in the toolchain */
6287 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6290 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6291 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6296 if ac_fn_c_try_link "$LINENO"; then :
6298 if `grep -i "unrecognized option" conftest.err >/dev/null`
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6302 CFLAGS="$saved_CFLAGS"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6305 $as_echo "yes" >&6; }
6306 CFLAGS="$saved_CFLAGS $_define_flag"
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 CFLAGS="$saved_CFLAGS"
6314 rm -f core conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext conftest.$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
6319 $as_echo_n "checking gcc version... " >&6; }
6320 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6322 1.*) no_attrib_nonnull=1 ;;
6326 2.*) no_attrib_nonnull=1 ;;
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
6330 $as_echo "$GCC_VER" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
6333 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
6334 saved_CFLAGS="$CFLAGS"
6335 CFLAGS="$CFLAGS -fno-builtin-memset"
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6342 char b[10]; memset(b, 0, sizeof(b));
6347 if ac_fn_c_try_link "$LINENO"; then :
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6349 $as_echo "yes" >&6; }
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6353 CFLAGS="$saved_CFLAGS"
6356 rm -f core conftest.err conftest.$ac_objext \
6357 conftest$ac_exeext conftest.$ac_ext
6359 # -fstack-protector-all doesn't always work for some GCC versions
6360 # and/or platforms, so we test if we can. If it's not supported
6361 # on a given platform gcc will emit a warning so we use -Werror.
6362 if test "x$use_stack_protector" = "x1"; then
6363 for t in -fstack-protector-strong -fstack-protector-all \
6364 -fstack-protector; do
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
6366 $as_echo_n "checking if $CC supports $t... " >&6; }
6367 saved_CFLAGS="$CFLAGS"
6368 saved_LDFLAGS="$LDFLAGS"
6369 CFLAGS="$CFLAGS $t -Werror"
6370 LDFLAGS="$LDFLAGS $t -Werror"
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6379 snprintf(x, sizeof(x), "XXX");
6385 if ac_fn_c_try_link "$LINENO"; then :
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6387 $as_echo "yes" >&6; }
6388 CFLAGS="$saved_CFLAGS $t"
6389 LDFLAGS="$saved_LDFLAGS $t"
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
6391 $as_echo_n "checking if $t works... " >&6; }
6392 if test "$cross_compiling" = yes; then :
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
6394 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6406 snprintf(x, sizeof(x), "XXX");
6412 if ac_fn_c_try_run "$LINENO"; then :
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6414 $as_echo "yes" >&6; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6421 conftest.$ac_objext conftest.beam conftest.$ac_ext
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6430 rm -f core conftest.err conftest.$ac_objext \
6431 conftest$ac_exeext conftest.$ac_ext
6432 CFLAGS="$saved_CFLAGS"
6433 LDFLAGS="$saved_LDFLAGS"
6437 if test -z "$have_llong_max"; then
6438 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6439 unset ac_cv_have_decl_LLONG_MAX
6440 saved_CFLAGS="$CFLAGS"
6441 CFLAGS="$CFLAGS -std=gnu99"
6442 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
6445 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
6448 CFLAGS="$saved_CFLAGS"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
6455 $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6460 __attribute__((__unused__)) static void foo(void){return;}
6469 if ac_fn_c_try_compile "$LINENO"; then :
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6471 $as_echo "yes" >&6; }
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6476 $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 if test "x$no_attrib_nonnull" != "x1" ; then
6484 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6489 # Check whether --with-rpath was given.
6490 if test "${with_rpath+set}" = set; then :
6491 withval=$with_rpath;
6492 if test "x$withval" = "xno" ; then
6495 if test "x$withval" = "xyes" ; then
6503 # Allow user to specify flags
6505 # Check whether --with-cflags was given.
6506 if test "${with_cflags+set}" = set; then :
6507 withval=$with_cflags;
6508 if test -n "$withval" && test "x$withval" != "xno" && \
6509 test "x${withval}" != "xyes"; then
6510 CFLAGS="$CFLAGS $withval"
6517 # Check whether --with-cppflags was given.
6518 if test "${with_cppflags+set}" = set; then :
6519 withval=$with_cppflags;
6520 if test -n "$withval" && test "x$withval" != "xno" && \
6521 test "x${withval}" != "xyes"; then
6522 CPPFLAGS="$CPPFLAGS $withval"
6529 # Check whether --with-ldflags was given.
6530 if test "${with_ldflags+set}" = set; then :
6531 withval=$with_ldflags;
6532 if test -n "$withval" && test "x$withval" != "xno" && \
6533 test "x${withval}" != "xyes"; then
6534 LDFLAGS="$LDFLAGS $withval"
6541 # Check whether --with-libs was given.
6542 if test "${with_libs+set}" = set; then :
6544 if test -n "$withval" && test "x$withval" != "xno" && \
6545 test "x${withval}" != "xyes"; then
6546 LIBS="$LIBS $withval"
6553 # Check whether --with-Werror was given.
6554 if test "${with_Werror+set}" = set; then :
6555 withval=$with_Werror;
6556 if test -n "$withval" && test "x$withval" != "xno"; then
6557 werror_flags="-Werror"
6558 if test "x${withval}" != "xyes"; then
6559 werror_flags="$withval"
6597 security/pam_appl.h \
6637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6638 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6639 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6640 cat >>confdefs.h <<_ACEOF
6641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6649 # lastlog.h requires sys/time.h to be included first on Solaris
6650 for ac_header in lastlog.h
6652 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6653 #ifdef HAVE_SYS_TIME_H
6654 # include <sys/time.h>
6658 if test "x$ac_cv_header_lastlog_h" = xyes; then :
6659 cat >>confdefs.h <<_ACEOF
6660 #define HAVE_LASTLOG_H 1
6668 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6669 for ac_header in sys/ptms.h
6671 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6672 #ifdef HAVE_SYS_STREAM_H
6673 # include <sys/stream.h>
6677 if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6678 cat >>confdefs.h <<_ACEOF
6679 #define HAVE_SYS_PTMS_H 1
6687 # login_cap.h requires sys/types.h on NetBSD
6688 for ac_header in login_cap.h
6690 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6691 #include <sys/types.h>
6694 if test "x$ac_cv_header_login_cap_h" = xyes; then :
6695 cat >>confdefs.h <<_ACEOF
6696 #define HAVE_LOGIN_CAP_H 1
6704 # older BSDs need sys/param.h before sys/mount.h
6705 for ac_header in sys/mount.h
6707 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6708 #include <sys/param.h>
6711 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6712 cat >>confdefs.h <<_ACEOF
6713 #define HAVE_SYS_MOUNT_H 1
6721 # Android requires sys/socket.h to be included before sys/un.h
6722 for ac_header in sys/un.h
6724 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
6725 #include <sys/types.h>
6726 #include <sys/socket.h>
6729 if test "x$ac_cv_header_sys_un_h" = xyes; then :
6730 cat >>confdefs.h <<_ACEOF
6731 #define HAVE_SYS_UN_H 1
6739 # Messages for features tested for in target-specific section
6744 # Check for some target-specific stuff
6747 # Some versions of VAC won't allow macro redefinitions at
6748 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6749 # particularly with older versions of vac or xlc.
6750 # It also throws errors about null macro argments, but these are
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6753 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6757 #define testmacro foo
6758 #define testmacro bar
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6769 $as_echo "yes" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6774 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6775 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6776 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6783 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6784 if (test -z "$blibpath"); then
6785 blibpath="/usr/lib:/lib"
6787 saved_LDFLAGS="$LDFLAGS"
6788 if test "$GCC" = "yes"; then
6789 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6791 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6793 for tryflags in $flags ;do
6794 if (test -z "$blibflags"); then
6795 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6807 if ac_fn_c_try_link "$LINENO"; then :
6810 rm -f core conftest.err conftest.$ac_objext \
6811 conftest$ac_exeext conftest.$ac_ext
6814 if (test -z "$blibflags"); then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6816 $as_echo "not found" >&6; }
6817 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6820 $as_echo "$blibflags" >&6; }
6822 LDFLAGS="$saved_LDFLAGS"
6823 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6824 if test "x$ac_cv_func_authenticate" = xyes; then :
6826 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6830 $as_echo_n "checking for authenticate in -ls... " >&6; }
6831 if ${ac_cv_lib_s_authenticate+:} false; then :
6832 $as_echo_n "(cached) " >&6
6834 ac_check_lib_save_LIBS=$LIBS
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6839 /* Override any GCC internal prototype to avoid an error.
6840 Use char because int might match the return type of a GCC
6841 builtin and then its argument prototype would still apply. */
6845 char authenticate ();
6849 return authenticate ();
6854 if ac_fn_c_try_link "$LINENO"; then :
6855 ac_cv_lib_s_authenticate=yes
6857 ac_cv_lib_s_authenticate=no
6859 rm -f core conftest.err conftest.$ac_objext \
6860 conftest$ac_exeext conftest.$ac_ext
6861 LIBS=$ac_check_lib_save_LIBS
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6864 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
6865 if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6866 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6875 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6877 if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6883 cat >>confdefs.h <<_ACEOF
6884 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
6886 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6888 if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6894 cat >>confdefs.h <<_ACEOF
6895 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6897 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6899 if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6905 cat >>confdefs.h <<_ACEOF
6906 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6908 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6910 if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6916 cat >>confdefs.h <<_ACEOF
6917 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6919 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6921 if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6927 cat >>confdefs.h <<_ACEOF
6928 #define HAVE_DECL_SETAUTHDB $ac_have_decl
6931 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6934 if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6940 cat >>confdefs.h <<_ACEOF
6941 #define HAVE_DECL_LOGINFAILED $ac_have_decl
6943 if test $ac_have_decl = 1; then :
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6945 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948 #include <usersec.h>
6952 (void)loginfailed("user","host","tty",0);
6957 if ac_fn_c_try_compile "$LINENO"; then :
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6959 $as_echo "yes" >&6; }
6961 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 for ac_func in getgrset setauthdb
6973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6974 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6975 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6976 cat >>confdefs.h <<_ACEOF
6977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6983 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6987 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6989 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6993 check_for_aix_broken_getaddrinfo=1
6995 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6998 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7001 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7004 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7007 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7010 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7013 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7016 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7019 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
7022 $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7027 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7030 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7034 check_for_libcrypt_later=1
7035 LIBS="$LIBS /usr/lib/textreadmode.o"
7037 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
7040 $as_echo "#define USE_PIPES 1" >>confdefs.h
7043 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7046 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7049 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
7052 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7055 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
7058 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
7060 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
7061 # reasons which cause compile warnings, so we disable those warnings.
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5
7064 $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; }
7065 saved_CFLAGS="$CFLAGS"
7066 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
7068 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7074 int main(int argc, char **argv) {
7075 /* Some math to catch -ftrapv problems in the toolchain */
7076 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
7079 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
7080 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
7085 if ac_fn_c_try_compile "$LINENO"; then :
7087 if `grep -i "unrecognized option" conftest.err >/dev/null`
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 CFLAGS="$saved_CFLAGS"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7094 $as_echo "yes" >&6; }
7095 CFLAGS="$saved_CFLAGS $_define_flag"
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 CFLAGS="$saved_CFLAGS"
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7110 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7112 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7114 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
7120 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
7121 if test "$cross_compiling" = yes; then :
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
7123 $as_echo "assume it is working" >&6; }
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 #include <mach-o/dyld.h>
7128 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7135 if ac_fn_c_try_run "$LINENO"; then :
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
7137 $as_echo "working" >&6; }
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
7140 $as_echo "buggy" >&6; }
7142 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7147 conftest.$ac_objext conftest.beam conftest.$ac_ext
7150 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7152 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7154 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7157 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7160 cat >>confdefs.h <<_ACEOF
7161 #define BIND_8_COMPAT 1
7165 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7168 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7171 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7174 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
7175 if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
7179 $as_echo "#define AU_IPv4 0" >>confdefs.h
7181 #include <bsm/audit.h>
7183 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
7189 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7191 for ac_func in sandbox_init
7193 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
7194 if test "x$ac_cv_func_sandbox_init" = xyes; then :
7195 cat >>confdefs.h <<_ACEOF
7196 #define HAVE_SANDBOX_INIT 1
7202 for ac_header in sandbox.h
7204 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
7205 if test "x$ac_cv_header_sandbox_h" = xyes; then :
7206 cat >>confdefs.h <<_ACEOF
7207 #define HAVE_SANDBOX_H 1
7216 SSHDLIBS="$SSHDLIBS -lcrypt"
7217 TEST_MALLOC_OPTIONS="AFGJPRX"
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7222 $as_echo_n "checking for socket in -lnetwork... " >&6; }
7223 if ${ac_cv_lib_network_socket+:} false; then :
7224 $as_echo_n "(cached) " >&6
7226 ac_check_lib_save_LIBS=$LIBS
7227 LIBS="-lnetwork $LIBS"
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7231 /* Override any GCC internal prototype to avoid an error.
7232 Use char because int might match the return type of a GCC
7233 builtin and then its argument prototype would still apply. */
7246 if ac_fn_c_try_link "$LINENO"; then :
7247 ac_cv_lib_network_socket=yes
7249 ac_cv_lib_network_socket=no
7251 rm -f core conftest.err conftest.$ac_objext \
7252 conftest$ac_exeext conftest.$ac_ext
7253 LIBS=$ac_check_lib_save_LIBS
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7256 $as_echo "$ac_cv_lib_network_socket" >&6; }
7257 if test "x$ac_cv_lib_network_socket" = xyes; then :
7258 cat >>confdefs.h <<_ACEOF
7259 #define HAVE_LIBNETWORK 1
7262 LIBS="-lnetwork $LIBS"
7266 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
7271 # first we define all of the options common to all HP-UX releases
7272 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7273 IPADDR_IN_DISPLAY=yes
7274 $as_echo "#define USE_PIPES 1" >>confdefs.h
7277 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
7279 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7282 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
7284 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
7287 $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
7292 $as_echo_n "checking for t_error in -lxnet... " >&6; }
7293 if ${ac_cv_lib_xnet_t_error+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 ac_check_lib_save_LIBS=$LIBS
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7301 /* Override any GCC internal prototype to avoid an error.
7302 Use char because int might match the return type of a GCC
7303 builtin and then its argument prototype would still apply. */
7316 if ac_fn_c_try_link "$LINENO"; then :
7317 ac_cv_lib_xnet_t_error=yes
7319 ac_cv_lib_xnet_t_error=no
7321 rm -f core conftest.err conftest.$ac_objext \
7322 conftest$ac_exeext conftest.$ac_ext
7323 LIBS=$ac_check_lib_save_LIBS
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
7326 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
7327 if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
7328 cat >>confdefs.h <<_ACEOF
7329 #define HAVE_LIBXNET 1
7335 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
7339 # next, we define all of the options specific to major releases
7342 if test -z "$GCC"; then
7343 CFLAGS="$CFLAGS -Ae"
7348 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7351 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7354 $as_echo "#define USE_BTMP 1" >>confdefs.h
7356 check_for_hpux_broken_getaddrinfo=1
7357 check_for_conflicting_getspnam=1
7361 # lastly, we define options specific to minor releases
7365 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7367 disable_ptmx_check=yes
7368 LIBS="$LIBS -lsecpw"
7373 PATH="$PATH:/usr/etc"
7375 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7377 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7379 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7381 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7384 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7386 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7390 PATH="$PATH:/usr/etc"
7392 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
7395 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
7398 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
7400 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
7401 if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7403 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
7407 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7409 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7411 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7413 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7416 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7418 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7420 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7423 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7424 check_for_libcrypt_later=1
7425 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7427 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7429 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7432 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7435 $as_echo "#define USE_BTMP 1" >>confdefs.h
7441 check_for_libcrypt_later=1
7442 check_for_openpty_ctty_bug=1
7444 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7447 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7449 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7452 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
7455 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7457 $as_echo "#define USE_BTMP 1" >>confdefs.h
7460 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
7462 inet6_default_4in6=yes
7466 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
7470 # tun(4) forwarding compat code
7471 for ac_header in linux/if_tun.h
7473 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
7474 if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
7475 cat >>confdefs.h <<_ACEOF
7476 #define HAVE_LINUX_IF_TUN_H 1
7483 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7485 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
7488 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7491 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7494 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7497 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
7499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7500 cat >>confdefs.h <<_ACEOF
7501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7508 for ac_func in prctl
7510 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
7511 if test "x$ac_cv_func_prctl" = xyes; then :
7512 cat >>confdefs.h <<_ACEOF
7513 #define HAVE_PRCTL 1
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
7520 $as_echo_n "checking for seccomp architecture... " >&6; }
7524 seccomp_audit_arch=AUDIT_ARCH_X86_64
7527 seccomp_audit_arch=AUDIT_ARCH_I386
7530 seccomp_audit_arch=AUDIT_ARCH_ARM
7533 if test "x$seccomp_audit_arch" != "x" ; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
7535 $as_echo "\"$seccomp_audit_arch\"" >&6; }
7537 cat >>confdefs.h <<_ACEOF
7538 #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
7543 $as_echo "architecture not supported" >&6; }
7546 mips-sony-bsd|mips-sony-newsos4)
7548 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7553 check_for_libcrypt_before=1
7554 if test "x$withval" != "xno" ; then
7558 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7560 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7561 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7565 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7571 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7573 TEST_MALLOC_OPTIONS="AJRX"
7575 $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7578 $as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h
7582 check_for_libcrypt_later=1
7584 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
7587 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7589 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7590 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7594 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7600 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7603 $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7605 TEST_MALLOC_OPTIONS="AJRX"
7606 # Preauth crypto occasionally uses file descriptors for crypto offload
7607 # and will crash if they cannot be opened.
7609 $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
7613 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7615 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7617 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7621 conf_lastlog_location="/usr/adm/lastlog"
7622 conf_utmp_location=/etc/utmp
7623 conf_wtmp_location=/usr/adm/wtmp
7624 maildir=/usr/spool/mail
7626 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
7628 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7630 $as_echo "#define USE_PIPES 1" >>confdefs.h
7633 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
7639 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
7642 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
7645 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
7648 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
7650 TEST_MALLOC_OPTIONS="AFGJPRX"
7653 if test "x$withval" != "xno" ; then
7656 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7658 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7661 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
7663 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7666 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7668 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7670 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7672 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7675 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7678 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7680 external_path_file=/etc/default/login
7681 # hardwire lastlog location (can't detect it on some versions)
7682 conf_lastlog_location="/var/adm/lastlog"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7684 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7685 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7686 if test "$sol2ver" -ge 8; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7688 $as_echo "yes" >&6; }
7689 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7692 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7699 # Check whether --with-solaris-contracts was given.
7700 if test "${with_solaris_contracts+set}" = set; then :
7701 withval=$with_solaris_contracts;
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7703 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7704 if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
7705 $as_echo_n "(cached) " >&6
7707 ac_check_lib_save_LIBS=$LIBS
7708 LIBS="-lcontract $LIBS"
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7712 /* Override any GCC internal prototype to avoid an error.
7713 Use char because int might match the return type of a GCC
7714 builtin and then its argument prototype would still apply. */
7718 char ct_tmpl_activate ();
7722 return ct_tmpl_activate ();
7727 if ac_fn_c_try_link "$LINENO"; then :
7728 ac_cv_lib_contract_ct_tmpl_activate=yes
7730 ac_cv_lib_contract_ct_tmpl_activate=no
7732 rm -f core conftest.err conftest.$ac_objext \
7733 conftest$ac_exeext conftest.$ac_ext
7734 LIBS=$ac_check_lib_save_LIBS
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7737 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7738 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7740 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7742 SSHDLIBS="$SSHDLIBS -lcontract"
7750 # Check whether --with-solaris-projects was given.
7751 if test "${with_solaris_projects+set}" = set; then :
7752 withval=$with_solaris_projects;
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7754 $as_echo_n "checking for setproject in -lproject... " >&6; }
7755 if ${ac_cv_lib_project_setproject+:} false; then :
7756 $as_echo_n "(cached) " >&6
7758 ac_check_lib_save_LIBS=$LIBS
7759 LIBS="-lproject $LIBS"
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7763 /* Override any GCC internal prototype to avoid an error.
7764 Use char because int might match the return type of a GCC
7765 builtin and then its argument prototype would still apply. */
7773 return setproject ();
7778 if ac_fn_c_try_link "$LINENO"; then :
7779 ac_cv_lib_project_setproject=yes
7781 ac_cv_lib_project_setproject=no
7783 rm -f core conftest.err conftest.$ac_objext \
7784 conftest$ac_exeext conftest.$ac_ext
7785 LIBS=$ac_check_lib_save_LIBS
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7788 $as_echo "$ac_cv_lib_project_setproject" >&6; }
7789 if test "x$ac_cv_lib_project_setproject" = xyes; then :
7791 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7793 SSHDLIBS="$SSHDLIBS -lproject"
7800 TEST_SHELL=$SHELL # let configure find us a capable shell
7803 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7804 for ac_func in getpwanam
7806 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7807 if test "x$ac_cv_func_getpwanam" = xyes; then :
7808 cat >>confdefs.h <<_ACEOF
7809 #define HAVE_GETPWANAM 1
7815 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7817 conf_utmp_location=/etc/utmp
7818 conf_wtmp_location=/var/adm/wtmp
7819 conf_lastlog_location=/var/adm/lastlog
7820 $as_echo "#define USE_PIPES 1" >>confdefs.h
7825 $as_echo "#define USE_PIPES 1" >>confdefs.h
7827 $as_echo "#define SSHD_ACQUIRES_CTTY 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
7837 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7839 $as_echo_n "checking for dlsym in -ldl... " >&6; }
7840 if ${ac_cv_lib_dl_dlsym+:} false; then :
7841 $as_echo_n "(cached) " >&6
7843 ac_check_lib_save_LIBS=$LIBS
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7848 /* Override any GCC internal prototype to avoid an error.
7849 Use char because int might match the return type of a GCC
7850 builtin and then its argument prototype would still apply. */
7863 if ac_fn_c_try_link "$LINENO"; then :
7864 ac_cv_lib_dl_dlsym=yes
7866 ac_cv_lib_dl_dlsym=no
7868 rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7870 LIBS=$ac_check_lib_save_LIBS
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7873 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7874 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7875 cat >>confdefs.h <<_ACEOF
7876 #define HAVE_LIBDL 1
7883 # -lresolv needs to be at the end of LIBS or DNS lookups break
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7885 $as_echo_n "checking for res_query in -lresolv... " >&6; }
7886 if ${ac_cv_lib_resolv_res_query+:} false; then :
7887 $as_echo_n "(cached) " >&6
7889 ac_check_lib_save_LIBS=$LIBS
7890 LIBS="-lresolv $LIBS"
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7894 /* Override any GCC internal prototype to avoid an error.
7895 Use char because int might match the return type of a GCC
7896 builtin and then its argument prototype would still apply. */
7904 return res_query ();
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 ac_cv_lib_resolv_res_query=yes
7912 ac_cv_lib_resolv_res_query=no
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 LIBS=$ac_check_lib_save_LIBS
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7919 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7920 if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7921 LIBS="$LIBS -lresolv"
7924 IPADDR_IN_DISPLAY=yes
7925 $as_echo "#define USE_PIPES 1" >>confdefs.h
7927 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7929 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7931 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7933 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7935 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7937 external_path_file=/etc/default/login
7938 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7939 # Attention: always take care to bind libsocket and libnsl before libc,
7940 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7942 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7944 $as_echo "#define USE_PIPES 1" >>confdefs.h
7946 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7948 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7950 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7953 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7955 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7957 TEST_SHELL=$SHELL # let configure find us a capable shell
7959 # UnixWare 7.x, OpenUNIX 8
7961 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7963 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7965 $as_echo "#define USE_PIPES 1" >>confdefs.h
7967 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7969 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7971 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7973 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7975 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7977 TEST_SHELL=$SHELL # let configure find us a capable shell
7979 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7980 maildir=/var/spool/mail
7982 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7984 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7987 $as_echo_n "checking for getluid in -lprot... " >&6; }
7988 if ${ac_cv_lib_prot_getluid+:} false; then :
7989 $as_echo_n "(cached) " >&6
7991 ac_check_lib_save_LIBS=$LIBS
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7996 /* Override any GCC internal prototype to avoid an error.
7997 Use char because int might match the return type of a GCC
7998 builtin and then its argument prototype would still apply. */
8011 if ac_fn_c_try_link "$LINENO"; then :
8012 ac_cv_lib_prot_getluid=yes
8014 ac_cv_lib_prot_getluid=no
8016 rm -f core conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8018 LIBS=$ac_check_lib_save_LIBS
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
8021 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
8022 if test "x$ac_cv_lib_prot_getluid" = xyes; then :
8024 for ac_func in getluid setluid
8026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8027 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8028 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8029 cat >>confdefs.h <<_ACEOF
8030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8036 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8038 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8044 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8046 check_for_libcrypt_later=1
8052 # SCO UNIX and OEM versions of SCO UNIX
8054 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
8056 # SCO OpenServer 5.x
8058 if test -z "$GCC"; then
8059 CFLAGS="$CFLAGS -belf"
8061 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8063 $as_echo "#define USE_PIPES 1" >>confdefs.h
8065 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8067 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8069 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8071 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8073 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8075 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8077 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8079 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8081 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8083 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8085 for ac_func in getluid setluid
8087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8088 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8089 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8090 cat >>confdefs.h <<_ACEOF
8091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8098 TEST_SHELL=$SHELL # let configure find us a capable shell
8099 SKIP_DISABLE_LASTLOG_DEFINE=yes
8103 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8105 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8107 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8109 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8111 $as_echo "#define USE_PIPES 1" >>confdefs.h
8113 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8116 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8120 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8122 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8124 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8126 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8128 $as_echo "#define USE_PIPES 1" >>confdefs.h
8130 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8133 LIBS="$LIBS -lgen -lacid -ldb"
8137 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8139 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8141 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8143 $as_echo "#define USE_PIPES 1" >>confdefs.h
8145 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8147 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8149 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
8150 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
8155 $as_echo_n "checking for Digital Unix SIA... " >&6; }
8158 # Check whether --with-osfsia was given.
8159 if test "${with_osfsia+set}" = set; then :
8160 withval=$with_osfsia;
8161 if test "x$withval" = "xno" ; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8163 $as_echo "disabled" >&6; }
8169 if test -z "$no_osfsia" ; then
8170 if test -f /etc/sia/matrix.conf; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8172 $as_echo "yes" >&6; }
8174 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
8177 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
8179 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8181 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8187 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
8191 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8193 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8195 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8197 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8200 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
8205 $as_echo "#define USE_PIPES 1" >>confdefs.h
8207 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
8209 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
8211 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8214 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
8216 enable_etc_default_login=no # has incompatible /etc/default/login
8219 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8227 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
8230 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
8232 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8235 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
8240 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8242 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
8248 $as_echo_n "checking compiler and flags for sanity... " >&6; }
8249 if test "$cross_compiling" = yes; then :
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
8251 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8265 if ac_fn_c_try_run "$LINENO"; then :
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8267 $as_echo "yes" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8272 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
8275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8276 conftest.$ac_objext conftest.beam conftest.$ac_ext
8280 # Checks for libraries.
8281 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
8282 if test "x$ac_cv_func_yp_match" = xyes; then :
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
8286 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
8287 if ${ac_cv_lib_nsl_yp_match+:} false; then :
8288 $as_echo_n "(cached) " >&6
8290 ac_check_lib_save_LIBS=$LIBS
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8295 /* Override any GCC internal prototype to avoid an error.
8296 Use char because int might match the return type of a GCC
8297 builtin and then its argument prototype would still apply. */
8310 if ac_fn_c_try_link "$LINENO"; then :
8311 ac_cv_lib_nsl_yp_match=yes
8313 ac_cv_lib_nsl_yp_match=no
8315 rm -f core conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext conftest.$ac_ext
8317 LIBS=$ac_check_lib_save_LIBS
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
8320 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
8321 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
8322 cat >>confdefs.h <<_ACEOF
8323 #define HAVE_LIBNSL 1
8332 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
8333 if test "x$ac_cv_func_setsockopt" = xyes; then :
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
8337 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
8338 if ${ac_cv_lib_socket_setsockopt+:} false; then :
8339 $as_echo_n "(cached) " >&6
8341 ac_check_lib_save_LIBS=$LIBS
8342 LIBS="-lsocket $LIBS"
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8346 /* Override any GCC internal prototype to avoid an error.
8347 Use char because int might match the return type of a GCC
8348 builtin and then its argument prototype would still apply. */
8356 return setsockopt ();
8361 if ac_fn_c_try_link "$LINENO"; then :
8362 ac_cv_lib_socket_setsockopt=yes
8364 ac_cv_lib_socket_setsockopt=no
8366 rm -f core conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext conftest.$ac_ext
8368 LIBS=$ac_check_lib_save_LIBS
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
8371 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
8372 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
8373 cat >>confdefs.h <<_ACEOF
8374 #define HAVE_LIBSOCKET 1
8377 LIBS="-lsocket $LIBS"
8384 for ac_func in dirname
8386 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
8387 if test "x$ac_cv_func_dirname" = xyes; then :
8388 cat >>confdefs.h <<_ACEOF
8389 #define HAVE_DIRNAME 1
8391 for ac_header in libgen.h
8393 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8394 if test "x$ac_cv_header_libgen_h" = xyes; then :
8395 cat >>confdefs.h <<_ACEOF
8396 #define HAVE_LIBGEN_H 1
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
8406 $as_echo_n "checking for dirname in -lgen... " >&6; }
8407 if ${ac_cv_lib_gen_dirname+:} false; then :
8408 $as_echo_n "(cached) " >&6
8410 ac_check_lib_save_LIBS=$LIBS
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8415 /* Override any GCC internal prototype to avoid an error.
8416 Use char because int might match the return type of a GCC
8417 builtin and then its argument prototype would still apply. */
8430 if ac_fn_c_try_link "$LINENO"; then :
8431 ac_cv_lib_gen_dirname=yes
8433 ac_cv_lib_gen_dirname=no
8435 rm -f core conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 LIBS=$ac_check_lib_save_LIBS
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
8440 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
8441 if test "x$ac_cv_lib_gen_dirname" = xyes; then :
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
8444 $as_echo_n "checking for broken dirname... " >&6; }
8445 if ${ac_cv_have_broken_dirname+:} false; then :
8446 $as_echo_n "(cached) " >&6
8451 if test "$cross_compiling" = yes; then :
8452 ac_cv_have_broken_dirname="no"
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8460 int main(int argc, char **argv) {
8463 strncpy(buf,"/etc", 32);
8465 if (!s || strncmp(s, "/", 32) != 0) {
8473 if ac_fn_c_try_run "$LINENO"; then :
8474 ac_cv_have_broken_dirname="no"
8476 ac_cv_have_broken_dirname="yes"
8478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8479 conftest.$ac_objext conftest.beam conftest.$ac_ext
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
8486 $as_echo "$ac_cv_have_broken_dirname" >&6; }
8487 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
8489 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
8491 for ac_header in libgen.h
8493 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8494 if test "x$ac_cv_header_libgen_h" = xyes; then :
8495 cat >>confdefs.h <<_ACEOF
8496 #define HAVE_LIBGEN_H 1
8512 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
8513 if test "x$ac_cv_func_getspnam" = xyes; then :
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
8517 $as_echo_n "checking for getspnam in -lgen... " >&6; }
8518 if ${ac_cv_lib_gen_getspnam+:} false; then :
8519 $as_echo_n "(cached) " >&6
8521 ac_check_lib_save_LIBS=$LIBS
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8526 /* Override any GCC internal prototype to avoid an error.
8527 Use char because int might match the return type of a GCC
8528 builtin and then its argument prototype would still apply. */
8541 if ac_fn_c_try_link "$LINENO"; then :
8542 ac_cv_lib_gen_getspnam=yes
8544 ac_cv_lib_gen_getspnam=no
8546 rm -f core conftest.err conftest.$ac_objext \
8547 conftest$ac_exeext conftest.$ac_ext
8548 LIBS=$ac_check_lib_save_LIBS
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
8551 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
8552 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
8559 $as_echo_n "checking for library containing basename... " >&6; }
8560 if ${ac_cv_search_basename+:} false; then :
8561 $as_echo_n "(cached) " >&6
8563 ac_func_search_save_LIBS=$LIBS
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8567 /* Override any GCC internal prototype to avoid an error.
8568 Use char because int might match the return type of a GCC
8569 builtin and then its argument prototype would still apply. */
8582 for ac_lib in '' gen; do
8583 if test -z "$ac_lib"; then
8584 ac_res="none required"
8587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8589 if ac_fn_c_try_link "$LINENO"; then :
8590 ac_cv_search_basename=$ac_res
8592 rm -f core conftest.err conftest.$ac_objext \
8594 if ${ac_cv_search_basename+:} false; then :
8598 if ${ac_cv_search_basename+:} false; then :
8601 ac_cv_search_basename=no
8604 LIBS=$ac_func_search_save_LIBS
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8607 $as_echo "$ac_cv_search_basename" >&6; }
8608 ac_res=$ac_cv_search_basename
8609 if test "$ac_res" != no; then :
8610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8612 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8618 # Check whether --with-zlib was given.
8619 if test "${with_zlib+set}" = set; then :
8620 withval=$with_zlib; if test "x$withval" = "xno" ; then
8621 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
8622 elif test "x$withval" != "xyes"; then
8623 if test -d "$withval/lib"; then
8624 if test -n "${need_dash_r}"; then
8625 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8627 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8630 if test -n "${need_dash_r}"; then
8631 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8633 LDFLAGS="-L${withval} ${LDFLAGS}"
8636 if test -d "$withval/include"; then
8637 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8639 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8646 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8647 if test "x$ac_cv_header_zlib_h" = xyes; then :
8650 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
8655 $as_echo_n "checking for deflate in -lz... " >&6; }
8656 if ${ac_cv_lib_z_deflate+:} false; then :
8657 $as_echo_n "(cached) " >&6
8659 ac_check_lib_save_LIBS=$LIBS
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8664 /* Override any GCC internal prototype to avoid an error.
8665 Use char because int might match the return type of a GCC
8666 builtin and then its argument prototype would still apply. */
8679 if ac_fn_c_try_link "$LINENO"; then :
8680 ac_cv_lib_z_deflate=yes
8682 ac_cv_lib_z_deflate=no
8684 rm -f core conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext conftest.$ac_ext
8686 LIBS=$ac_check_lib_save_LIBS
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8689 $as_echo "$ac_cv_lib_z_deflate" >&6; }
8690 if test "x$ac_cv_lib_z_deflate" = xyes; then :
8691 cat >>confdefs.h <<_ACEOF
8699 saved_CPPFLAGS="$CPPFLAGS"
8700 saved_LDFLAGS="$LDFLAGS"
8702 if test -n "${need_dash_r}"; then
8703 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8705 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8707 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8712 /* Override any GCC internal prototype to avoid an error.
8713 Use char because int might match the return type of a GCC
8714 builtin and then its argument prototype would still apply. */
8727 if ac_fn_c_try_link "$LINENO"; then :
8728 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8732 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8736 rm -f core conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8744 # Check whether --with-zlib-version-check was given.
8745 if test "${with_zlib_version_check+set}" = set; then :
8746 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8747 zlib_check_nonfatal=1
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8755 $as_echo_n "checking for possibly buggy zlib... " >&6; }
8756 if test "$cross_compiling" = yes; then :
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8758 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8772 int a=0, b=0, c=0, d=0, n, v;
8773 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8774 if (n != 3 && n != 4)
8776 v = a*1000000 + b*10000 + c*100 + d;
8777 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8780 if (a == 1 && b == 1 && c >= 4)
8783 /* 1.2.3 and up are OK */
8793 if ac_fn_c_try_run "$LINENO"; then :
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8798 $as_echo "yes" >&6; }
8799 if test -z "$zlib_check_nonfatal" ; then
8800 as_fn_error $? "*** zlib too old - check config.log ***
8801 Your reported zlib version has known security problems. It's possible your
8802 vendor has fixed these problems without changing the version number. If you
8803 are sure this is the case, you can disable the check by running
8804 \"./configure --without-zlib-version-check\".
8805 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8806 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8809 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8814 conftest.$ac_objext conftest.beam conftest.$ac_ext
8818 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8819 if test "x$ac_cv_func_strcasecmp" = xyes; then :
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8823 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8824 if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8825 $as_echo_n "(cached) " >&6
8827 ac_check_lib_save_LIBS=$LIBS
8828 LIBS="-lresolv $LIBS"
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8832 /* Override any GCC internal prototype to avoid an error.
8833 Use char because int might match the return type of a GCC
8834 builtin and then its argument prototype would still apply. */
8842 return strcasecmp ();
8847 if ac_fn_c_try_link "$LINENO"; then :
8848 ac_cv_lib_resolv_strcasecmp=yes
8850 ac_cv_lib_resolv_strcasecmp=no
8852 rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8857 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8858 if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8859 LIBS="$LIBS -lresolv"
8865 for ac_func in utimes
8867 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8868 if test "x$ac_cv_func_utimes" = xyes; then :
8869 cat >>confdefs.h <<_ACEOF
8870 #define HAVE_UTIMES 1
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8875 $as_echo_n "checking for utimes in -lc89... " >&6; }
8876 if ${ac_cv_lib_c89_utimes+:} false; then :
8877 $as_echo_n "(cached) " >&6
8879 ac_check_lib_save_LIBS=$LIBS
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8884 /* Override any GCC internal prototype to avoid an error.
8885 Use char because int might match the return type of a GCC
8886 builtin and then its argument prototype would still apply. */
8899 if ac_fn_c_try_link "$LINENO"; then :
8900 ac_cv_lib_c89_utimes=yes
8902 ac_cv_lib_c89_utimes=no
8904 rm -f core conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
8906 LIBS=$ac_check_lib_save_LIBS
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8909 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
8910 if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8911 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8921 for ac_header in bsd/libutil.h libutil.h
8923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8924 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8925 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8926 cat >>confdefs.h <<_ACEOF
8927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
8935 $as_echo_n "checking for library containing fmt_scaled... " >&6; }
8936 if ${ac_cv_search_fmt_scaled+:} false; then :
8937 $as_echo_n "(cached) " >&6
8939 ac_func_search_save_LIBS=$LIBS
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8943 /* Override any GCC internal prototype to avoid an error.
8944 Use char because int might match the return type of a GCC
8945 builtin and then its argument prototype would still apply. */
8953 return fmt_scaled ();
8958 for ac_lib in '' util bsd; do
8959 if test -z "$ac_lib"; then
8960 ac_res="none required"
8963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8965 if ac_fn_c_try_link "$LINENO"; then :
8966 ac_cv_search_fmt_scaled=$ac_res
8968 rm -f core conftest.err conftest.$ac_objext \
8970 if ${ac_cv_search_fmt_scaled+:} false; then :
8974 if ${ac_cv_search_fmt_scaled+:} false; then :
8977 ac_cv_search_fmt_scaled=no
8980 LIBS=$ac_func_search_save_LIBS
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
8983 $as_echo "$ac_cv_search_fmt_scaled" >&6; }
8984 ac_res=$ac_cv_search_fmt_scaled
8985 if test "$ac_res" != no; then :
8986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
8991 $as_echo_n "checking for library containing scan_scaled... " >&6; }
8992 if ${ac_cv_search_scan_scaled+:} false; then :
8993 $as_echo_n "(cached) " >&6
8995 ac_func_search_save_LIBS=$LIBS
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8999 /* Override any GCC internal prototype to avoid an error.
9000 Use char because int might match the return type of a GCC
9001 builtin and then its argument prototype would still apply. */
9005 char scan_scaled ();
9009 return scan_scaled ();
9014 for ac_lib in '' util bsd; do
9015 if test -z "$ac_lib"; then
9016 ac_res="none required"
9019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9021 if ac_fn_c_try_link "$LINENO"; then :
9022 ac_cv_search_scan_scaled=$ac_res
9024 rm -f core conftest.err conftest.$ac_objext \
9026 if ${ac_cv_search_scan_scaled+:} false; then :
9030 if ${ac_cv_search_scan_scaled+:} false; then :
9033 ac_cv_search_scan_scaled=no
9036 LIBS=$ac_func_search_save_LIBS
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
9039 $as_echo "$ac_cv_search_scan_scaled" >&6; }
9040 ac_res=$ac_cv_search_scan_scaled
9041 if test "$ac_res" != no; then :
9042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
9047 $as_echo_n "checking for library containing login... " >&6; }
9048 if ${ac_cv_search_login+:} false; then :
9049 $as_echo_n "(cached) " >&6
9051 ac_func_search_save_LIBS=$LIBS
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9055 /* Override any GCC internal prototype to avoid an error.
9056 Use char because int might match the return type of a GCC
9057 builtin and then its argument prototype would still apply. */
9070 for ac_lib in '' util bsd; do
9071 if test -z "$ac_lib"; then
9072 ac_res="none required"
9075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9077 if ac_fn_c_try_link "$LINENO"; then :
9078 ac_cv_search_login=$ac_res
9080 rm -f core conftest.err conftest.$ac_objext \
9082 if ${ac_cv_search_login+:} false; then :
9086 if ${ac_cv_search_login+:} false; then :
9089 ac_cv_search_login=no
9092 LIBS=$ac_func_search_save_LIBS
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
9095 $as_echo "$ac_cv_search_login" >&6; }
9096 ac_res=$ac_cv_search_login
9097 if test "$ac_res" != no; then :
9098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
9103 $as_echo_n "checking for library containing logout... " >&6; }
9104 if ${ac_cv_search_logout+:} false; then :
9105 $as_echo_n "(cached) " >&6
9107 ac_func_search_save_LIBS=$LIBS
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9111 /* Override any GCC internal prototype to avoid an error.
9112 Use char because int might match the return type of a GCC
9113 builtin and then its argument prototype would still apply. */
9126 for ac_lib in '' util bsd; do
9127 if test -z "$ac_lib"; then
9128 ac_res="none required"
9131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9133 if ac_fn_c_try_link "$LINENO"; then :
9134 ac_cv_search_logout=$ac_res
9136 rm -f core conftest.err conftest.$ac_objext \
9138 if ${ac_cv_search_logout+:} false; then :
9142 if ${ac_cv_search_logout+:} false; then :
9145 ac_cv_search_logout=no
9148 LIBS=$ac_func_search_save_LIBS
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
9151 $as_echo "$ac_cv_search_logout" >&6; }
9152 ac_res=$ac_cv_search_logout
9153 if test "$ac_res" != no; then :
9154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
9159 $as_echo_n "checking for library containing logwtmp... " >&6; }
9160 if ${ac_cv_search_logwtmp+:} false; then :
9161 $as_echo_n "(cached) " >&6
9163 ac_func_search_save_LIBS=$LIBS
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9167 /* Override any GCC internal prototype to avoid an error.
9168 Use char because int might match the return type of a GCC
9169 builtin and then its argument prototype would still apply. */
9182 for ac_lib in '' util bsd; do
9183 if test -z "$ac_lib"; then
9184 ac_res="none required"
9187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9189 if ac_fn_c_try_link "$LINENO"; then :
9190 ac_cv_search_logwtmp=$ac_res
9192 rm -f core conftest.err conftest.$ac_objext \
9194 if ${ac_cv_search_logwtmp+:} false; then :
9198 if ${ac_cv_search_logwtmp+:} false; then :
9201 ac_cv_search_logwtmp=no
9204 LIBS=$ac_func_search_save_LIBS
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
9207 $as_echo "$ac_cv_search_logwtmp" >&6; }
9208 ac_res=$ac_cv_search_logwtmp
9209 if test "$ac_res" != no; then :
9210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
9215 $as_echo_n "checking for library containing openpty... " >&6; }
9216 if ${ac_cv_search_openpty+:} false; then :
9217 $as_echo_n "(cached) " >&6
9219 ac_func_search_save_LIBS=$LIBS
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9223 /* Override any GCC internal prototype to avoid an error.
9224 Use char because int might match the return type of a GCC
9225 builtin and then its argument prototype would still apply. */
9238 for ac_lib in '' util bsd; do
9239 if test -z "$ac_lib"; then
9240 ac_res="none required"
9243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9245 if ac_fn_c_try_link "$LINENO"; then :
9246 ac_cv_search_openpty=$ac_res
9248 rm -f core conftest.err conftest.$ac_objext \
9250 if ${ac_cv_search_openpty+:} false; then :
9254 if ${ac_cv_search_openpty+:} false; then :
9257 ac_cv_search_openpty=no
9260 LIBS=$ac_func_search_save_LIBS
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
9263 $as_echo "$ac_cv_search_openpty" >&6; }
9264 ac_res=$ac_cv_search_openpty
9265 if test "$ac_res" != no; then :
9266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
9271 $as_echo_n "checking for library containing updwtmp... " >&6; }
9272 if ${ac_cv_search_updwtmp+:} false; then :
9273 $as_echo_n "(cached) " >&6
9275 ac_func_search_save_LIBS=$LIBS
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9279 /* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9294 for ac_lib in '' util bsd; do
9295 if test -z "$ac_lib"; then
9296 ac_res="none required"
9299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9301 if ac_fn_c_try_link "$LINENO"; then :
9302 ac_cv_search_updwtmp=$ac_res
9304 rm -f core conftest.err conftest.$ac_objext \
9306 if ${ac_cv_search_updwtmp+:} false; then :
9310 if ${ac_cv_search_updwtmp+:} false; then :
9313 ac_cv_search_updwtmp=no
9316 LIBS=$ac_func_search_save_LIBS
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
9319 $as_echo "$ac_cv_search_updwtmp" >&6; }
9320 ac_res=$ac_cv_search_updwtmp
9321 if test "$ac_res" != no; then :
9322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9326 for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
9328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9330 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9331 cat >>confdefs.h <<_ACEOF
9332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9339 # On some platforms, inet_ntop may be found in libresolv or libnsl.
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9341 $as_echo_n "checking for library containing inet_ntop... " >&6; }
9342 if ${ac_cv_search_inet_ntop+:} false; then :
9343 $as_echo_n "(cached) " >&6
9345 ac_func_search_save_LIBS=$LIBS
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9349 /* Override any GCC internal prototype to avoid an error.
9350 Use char because int might match the return type of a GCC
9351 builtin and then its argument prototype would still apply. */
9359 return inet_ntop ();
9364 for ac_lib in '' resolv nsl; do
9365 if test -z "$ac_lib"; then
9366 ac_res="none required"
9369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9371 if ac_fn_c_try_link "$LINENO"; then :
9372 ac_cv_search_inet_ntop=$ac_res
9374 rm -f core conftest.err conftest.$ac_objext \
9376 if ${ac_cv_search_inet_ntop+:} false; then :
9380 if ${ac_cv_search_inet_ntop+:} false; then :
9383 ac_cv_search_inet_ntop=no
9386 LIBS=$ac_func_search_save_LIBS
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9389 $as_echo "$ac_cv_search_inet_ntop" >&6; }
9390 ac_res=$ac_cv_search_inet_ntop
9391 if test "$ac_res" != no; then :
9392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9397 for ac_func in strftime
9399 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9400 if test "x$ac_cv_func_strftime" = xyes; then :
9401 cat >>confdefs.h <<_ACEOF
9402 #define HAVE_STRFTIME 1
9406 # strftime is in -lintl on SCO UNIX.
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9408 $as_echo_n "checking for strftime in -lintl... " >&6; }
9409 if ${ac_cv_lib_intl_strftime+:} false; then :
9410 $as_echo_n "(cached) " >&6
9412 ac_check_lib_save_LIBS=$LIBS
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9417 /* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9432 if ac_fn_c_try_link "$LINENO"; then :
9433 ac_cv_lib_intl_strftime=yes
9435 ac_cv_lib_intl_strftime=no
9437 rm -f core conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439 LIBS=$ac_check_lib_save_LIBS
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9442 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9443 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9444 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9453 # Check for ALTDIRFUNC glob() extension
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
9455 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9460 #ifdef GLOB_ALTDIRFUNC
9465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9466 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
9469 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9472 $as_echo "yes" >&6; }
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9477 $as_echo "no" >&6; }
9484 # Check for g.gl_matchc glob() extension
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
9486 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9493 glob_t g; g.gl_matchc = 1;
9498 if ac_fn_c_try_compile "$LINENO"; then :
9501 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9504 $as_echo "yes" >&6; }
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9514 # Check for g.gl_statv glob() extension
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
9516 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9524 #ifndef GLOB_KEEPSTAT
9525 #error "glob does not support GLOB_KEEPSTAT extension"
9534 if ac_fn_c_try_compile "$LINENO"; then :
9537 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9540 $as_echo "yes" >&6; }
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
9553 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
9559 cat >>confdefs.h <<_ACEOF
9560 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
9565 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
9566 if test "$cross_compiling" = yes; then :
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
9569 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
9570 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9578 #include <sys/types.h>
9585 exit(sizeof(d.d_name)<=sizeof(char));
9591 if ac_fn_c_try_run "$LINENO"; then :
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9593 $as_echo "yes" >&6; }
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597 $as_echo "no" >&6; }
9599 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9604 conftest.$ac_objext conftest.beam conftest.$ac_ext
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
9609 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
9610 if test -d "/proc/$$/fd" ; then
9612 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9615 $as_echo "yes" >&6; }
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618 $as_echo "no" >&6; }
9621 # Check whether user wants S/Key support
9624 # Check whether --with-skey was given.
9625 if test "${with_skey+set}" = set; then :
9627 if test "x$withval" != "xno" ; then
9629 if test "x$withval" != "xyes" ; then
9630 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9631 LDFLAGS="$LDFLAGS -L${withval}/lib"
9635 $as_echo "#define SKEY 1" >>confdefs.h
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
9641 $as_echo_n "checking for s/key support... " >&6; }
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9652 char *ff = skey_keyinfo(""); ff="";
9659 if ac_fn_c_try_link "$LINENO"; then :
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9661 $as_echo "yes" >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9666 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
9669 rm -f core conftest.err conftest.$ac_objext \
9670 conftest$ac_exeext conftest.$ac_ext
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
9672 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9683 (void)skeychallenge(NULL,"name","",0);
9689 if ac_fn_c_try_compile "$LINENO"; then :
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9692 $as_echo "yes" >&6; }
9694 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9699 $as_echo "no" >&6; }
9702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 # Check whether user wants TCP wrappers support
9712 # Check whether --with-tcp-wrappers was given.
9713 if test "${with_tcp_wrappers+set}" = set; then :
9714 withval=$with_tcp_wrappers;
9715 if test "x$withval" != "xno" ; then
9717 saved_LDFLAGS="$LDFLAGS"
9718 saved_CPPFLAGS="$CPPFLAGS"
9719 if test -n "${withval}" && \
9720 test "x${withval}" != "xyes"; then
9721 if test -d "${withval}/lib"; then
9722 if test -n "${need_dash_r}"; then
9723 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9725 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9728 if test -n "${need_dash_r}"; then
9729 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9731 LDFLAGS="-L${withval} ${LDFLAGS}"
9734 if test -d "${withval}/include"; then
9735 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9737 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
9742 $as_echo_n "checking for libwrap... " >&6; }
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9746 #include <sys/types.h>
9747 #include <sys/socket.h>
9748 #include <netinet/in.h>
9750 int deny_severity = 0, allow_severity = 0;
9762 if ac_fn_c_try_link "$LINENO"; then :
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9765 $as_echo "yes" >&6; }
9767 $as_echo "#define LIBWRAP 1" >>confdefs.h
9769 SSHDLIBS="$SSHDLIBS -lwrap"
9774 as_fn_error $? "*** libwrap missing" "$LINENO" 5
9778 rm -f core conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
9787 # Check whether user wants to use ldns
9790 # Check whether --with-ldns was given.
9791 if test "${with_ldns+set}" = set; then :
9793 if test "x$withval" != "xno" ; then
9795 if test "x$withval" != "xyes" ; then
9796 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9797 LDFLAGS="$LDFLAGS -L${withval}/lib"
9801 $as_echo "#define HAVE_LDNS 1" >>confdefs.h
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
9807 $as_echo_n "checking for ldns support... " >&6; }
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9814 #include <ldns/ldns.h>
9815 int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
9819 if ac_fn_c_try_link "$LINENO"; then :
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9821 $as_echo "yes" >&6; }
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9826 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
9829 rm -f core conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9837 # Check whether user wants libedit support
9840 # Check whether --with-libedit was given.
9841 if test "${with_libedit+set}" = set; then :
9842 withval=$with_libedit; if test "x$withval" != "xno" ; then
9843 if test "x$withval" = "xyes" ; then
9844 if test -n "$ac_tool_prefix"; then
9845 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9846 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if ${ac_cv_path_PKGCONFIG+:} false; then :
9850 $as_echo_n "(cached) " >&6
9854 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861 test -z "$as_dir" && as_dir=.
9862 for ac_exec_ext in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 PKGCONFIG=$ac_cv_path_PKGCONFIG
9876 if test -n "$PKGCONFIG"; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
9878 $as_echo "$PKGCONFIG" >&6; }
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; }
9886 if test -z "$ac_cv_path_PKGCONFIG"; then
9887 ac_pt_PKGCONFIG=$PKGCONFIG
9888 # Extract the first word of "pkg-config", so it can be a program name with args.
9889 set dummy pkg-config; ac_word=$2
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9891 $as_echo_n "checking for $ac_word... " >&6; }
9892 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
9893 $as_echo_n "(cached) " >&6
9895 case $ac_pt_PKGCONFIG in
9897 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9918 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
9919 if test -n "$ac_pt_PKGCONFIG"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
9921 $as_echo "$ac_pt_PKGCONFIG" >&6; }
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 $as_echo "no" >&6; }
9927 if test "x$ac_pt_PKGCONFIG" = x; then
9930 case $cross_compiling:$ac_tool_warned in
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9934 ac_tool_warned=yes ;;
9936 PKGCONFIG=$ac_pt_PKGCONFIG
9939 PKGCONFIG="$ac_cv_path_PKGCONFIG"
9942 if test "x$PKGCONFIG" != "xno"; then
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
9944 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
9945 if "$PKGCONFIG" libedit; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9947 $as_echo "yes" >&6; }
9948 use_pkgconfig_for_libedit=yes
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9955 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9956 if test -n "${need_dash_r}"; then
9957 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9959 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9962 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
9963 LIBEDIT=`$PKGCONFIG --libs libedit`
9964 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
9966 LIBEDIT="-ledit -lcurses"
9968 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
9970 $as_echo_n "checking for el_init in -ledit... " >&6; }
9971 if ${ac_cv_lib_edit_el_init+:} false; then :
9972 $as_echo_n "(cached) " >&6
9974 ac_check_lib_save_LIBS=$LIBS
9975 LIBS="-ledit $OTHERLIBS
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9980 /* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9995 if ac_fn_c_try_link "$LINENO"; then :
9996 ac_cv_lib_edit_el_init=yes
9998 ac_cv_lib_edit_el_init=no
10000 rm -f core conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002 LIBS=$ac_check_lib_save_LIBS
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
10005 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
10006 if test "x$ac_cv_lib_edit_el_init" = xyes; then :
10008 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
10014 as_fn_error $? "libedit not found" "$LINENO" 5
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
10018 $as_echo_n "checking if libedit version is compatible... " >&6; }
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10021 #include <histedit.h>
10027 el_init("", NULL, NULL, NULL);
10034 if ac_fn_c_try_compile "$LINENO"; then :
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10036 $as_echo "yes" >&6; }
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10040 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
10043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10051 # Check whether --with-audit was given.
10052 if test "${with_audit+set}" = set; then :
10053 withval=$with_audit;
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
10055 $as_echo_n "checking for supported audit module... " >&6; }
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
10059 $as_echo "bsm" >&6; }
10061 for ac_header in bsm/audit.h
10063 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
10070 if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
10071 cat >>confdefs.h <<_ACEOF
10072 #define HAVE_BSM_AUDIT_H 1
10076 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
10082 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
10083 if ${ac_cv_lib_bsm_getaudit+:} false; then :
10084 $as_echo_n "(cached) " >&6
10086 ac_check_lib_save_LIBS=$LIBS
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10101 return getaudit ();
10106 if ac_fn_c_try_link "$LINENO"; then :
10107 ac_cv_lib_bsm_getaudit=yes
10109 ac_cv_lib_bsm_getaudit=no
10111 rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113 LIBS=$ac_check_lib_save_LIBS
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
10116 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
10117 if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
10118 cat >>confdefs.h <<_ACEOF
10119 #define HAVE_LIBBSM 1
10125 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
10128 for ac_func in getaudit
10130 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
10131 if test "x$ac_cv_func_getaudit" = xyes; then :
10132 cat >>confdefs.h <<_ACEOF
10133 #define HAVE_GETAUDIT 1
10137 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
10141 # These are optional
10142 for ac_func in getaudit_addr aug_get_machine
10144 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10145 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10146 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10147 cat >>confdefs.h <<_ACEOF
10148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10155 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
10157 if test "$sol2ver" -ge 11; then
10158 SSHDLIBS="$SSHDLIBS -lscf"
10160 $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
10166 $as_echo "linux" >&6; }
10168 for ac_header in libaudit.h
10170 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10171 if test "x$ac_cv_header_libaudit_h" = xyes; then :
10172 cat >>confdefs.h <<_ACEOF
10173 #define HAVE_LIBAUDIT_H 1
10180 SSHDLIBS="$SSHDLIBS -laudit"
10182 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
10188 $as_echo "debug" >&6; }
10190 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10195 $as_echo "no" >&6; }
10198 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
10206 # Check whether --with-pie was given.
10207 if test "${with_pie+set}" = set; then :
10209 if test "x$withval" = "xno"; then
10212 if test "x$withval" = "xyes"; then
10219 if test "x$use_pie" = "x"; then
10222 if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
10223 # Turn off automatic PIE when toolchain hardening is off.
10226 if test "x$use_pie" = "xauto"; then
10227 # Automatic PIE requires gcc >= 4.x
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5
10229 $as_echo_n "checking for gcc >= 4.x... " >&6; }
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10233 #if !defined(__GNUC__) || __GNUC__ < 4
10234 #error gcc is too old
10238 if ac_fn_c_try_compile "$LINENO"; then :
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10240 $as_echo "yes" >&6; }
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10249 if test "x$use_pie" != "xno"; then
10250 SAVED_CFLAGS="$CFLAGS"
10251 SAVED_LDFLAGS="$LDFLAGS"
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5
10254 $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; }
10255 saved_CFLAGS="$CFLAGS"
10256 CFLAGS="$CFLAGS $WERROR -fPIE"
10258 test "x$_define_flag" = "x" && _define_flag="-fPIE"
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10262 #include <stdlib.h>
10264 int main(int argc, char **argv) {
10265 /* Some math to catch -ftrapv problems in the toolchain */
10266 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10268 double m = l / 0.5;
10269 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10270 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10275 if ac_fn_c_try_compile "$LINENO"; then :
10277 if `grep -i "unrecognized option" conftest.err >/dev/null`
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 CFLAGS="$saved_CFLAGS"
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10284 $as_echo "yes" >&6; }
10285 CFLAGS="$saved_CFLAGS $_define_flag"
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; }
10290 CFLAGS="$saved_CFLAGS"
10293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5
10297 $as_echo_n "checking if $LD supports link flag -pie... " >&6; }
10298 saved_LDFLAGS="$LDFLAGS"
10299 LDFLAGS="$LDFLAGS $WERROR -pie"
10301 test "x$_define_flag" = "x" && _define_flag="-pie"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10305 #include <stdlib.h>
10307 int main(int argc, char **argv) {
10308 /* Some math to catch -ftrapv problems in the toolchain */
10309 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10311 double m = l / 0.5;
10312 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10313 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10318 if ac_fn_c_try_link "$LINENO"; then :
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10320 $as_echo "yes" >&6; }
10321 LDFLAGS="$saved_LDFLAGS $_define_flag"
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10325 LDFLAGS="$saved_LDFLAGS"
10328 rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10331 # We use both -fPIE and -pie or neither.
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5
10333 $as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; }
10334 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
10335 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10337 $as_echo "yes" >&6; }
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10341 CFLAGS="$SAVED_CFLAGS"
10342 LDFLAGS="$SAVED_LDFLAGS"
10347 Blowfish_initstate \
10348 Blowfish_expandstate \
10349 Blowfish_expand0state \
10350 Blowfish_stream2word \
10354 arc4random_uniform \
10460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10461 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10462 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10463 cat >>confdefs.h <<_ACEOF
10464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10477 return (isblank('a'));
10482 if ac_fn_c_try_link "$LINENO"; then :
10484 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
10488 rm -f core conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext conftest.$ac_ext
10491 # PKCS#11 support requires dlopen() and co
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10493 $as_echo_n "checking for library containing dlopen... " >&6; }
10494 if ${ac_cv_search_dlopen+:} false; then :
10495 $as_echo_n "(cached) " >&6
10497 ac_func_search_save_LIBS=$LIBS
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10501 /* Override any GCC internal prototype to avoid an error.
10502 Use char because int might match the return type of a GCC
10503 builtin and then its argument prototype would still apply. */
10516 for ac_lib in '' dl; do
10517 if test -z "$ac_lib"; then
10518 ac_res="none required"
10521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10523 if ac_fn_c_try_link "$LINENO"; then :
10524 ac_cv_search_dlopen=$ac_res
10526 rm -f core conftest.err conftest.$ac_objext \
10528 if ${ac_cv_search_dlopen+:} false; then :
10532 if ${ac_cv_search_dlopen+:} false; then :
10535 ac_cv_search_dlopen=no
10537 rm conftest.$ac_ext
10538 LIBS=$ac_func_search_save_LIBS
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10541 $as_echo "$ac_cv_search_dlopen" >&6; }
10542 ac_res=$ac_cv_search_dlopen
10543 if test "$ac_res" != no; then :
10544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10546 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
10552 # IRIX has a const char return value for gai_strerror()
10553 for ac_func in gai_strerror
10555 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
10556 if test "x$ac_cv_func_gai_strerror" = xyes; then :
10557 cat >>confdefs.h <<_ACEOF
10558 #define HAVE_GAI_STRERROR 1
10561 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10566 #include <sys/types.h>
10567 #include <sys/socket.h>
10570 const char *gai_strerror(int);
10577 str = gai_strerror(0);
10583 if ac_fn_c_try_compile "$LINENO"; then :
10586 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
10595 $as_echo_n "checking for library containing nanosleep... " >&6; }
10596 if ${ac_cv_search_nanosleep+:} false; then :
10597 $as_echo_n "(cached) " >&6
10599 ac_func_search_save_LIBS=$LIBS
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10603 /* Override any GCC internal prototype to avoid an error.
10604 Use char because int might match the return type of a GCC
10605 builtin and then its argument prototype would still apply. */
10613 return nanosleep ();
10618 for ac_lib in '' rt posix4; do
10619 if test -z "$ac_lib"; then
10620 ac_res="none required"
10623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10625 if ac_fn_c_try_link "$LINENO"; then :
10626 ac_cv_search_nanosleep=$ac_res
10628 rm -f core conftest.err conftest.$ac_objext \
10630 if ${ac_cv_search_nanosleep+:} false; then :
10634 if ${ac_cv_search_nanosleep+:} false; then :
10637 ac_cv_search_nanosleep=no
10639 rm conftest.$ac_ext
10640 LIBS=$ac_func_search_save_LIBS
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
10643 $as_echo "$ac_cv_search_nanosleep" >&6; }
10644 ac_res=$ac_cv_search_nanosleep
10645 if test "$ac_res" != no; then :
10646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10648 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10654 $as_echo_n "checking for library containing clock_gettime... " >&6; }
10655 if ${ac_cv_search_clock_gettime+:} false; then :
10656 $as_echo_n "(cached) " >&6
10658 ac_func_search_save_LIBS=$LIBS
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10668 char clock_gettime ();
10672 return clock_gettime ();
10677 for ac_lib in '' rt; do
10678 if test -z "$ac_lib"; then
10679 ac_res="none required"
10682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 ac_cv_search_clock_gettime=$ac_res
10687 rm -f core conftest.err conftest.$ac_objext \
10689 if ${ac_cv_search_clock_gettime+:} false; then :
10693 if ${ac_cv_search_clock_gettime+:} false; then :
10696 ac_cv_search_clock_gettime=no
10698 rm conftest.$ac_ext
10699 LIBS=$ac_func_search_save_LIBS
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10702 $as_echo "$ac_cv_search_clock_gettime" >&6; }
10703 ac_res=$ac_cv_search_clock_gettime
10704 if test "$ac_res" != no; then :
10705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10707 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10712 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
10713 if test "x$ac_cv_have_decl_getrusage" = xyes; then :
10714 for ac_func in getrusage
10716 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
10717 if test "x$ac_cv_func_getrusage" = xyes; then :
10718 cat >>confdefs.h <<_ACEOF
10719 #define HAVE_GETRUSAGE 1
10727 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
10728 #ifdef HAVE_STRING_H
10729 # include <string.h>
10733 if test "x$ac_cv_have_decl_strsep" = xyes; then :
10734 for ac_func in strsep
10736 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
10737 if test "x$ac_cv_func_strsep" = xyes; then :
10738 cat >>confdefs.h <<_ACEOF
10739 #define HAVE_STRSEP 1
10748 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
10751 if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
10752 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
10755 for ac_func in tcsendbreak
10757 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
10758 if test "x$ac_cv_func_tcsendbreak" = xyes; then :
10759 cat >>confdefs.h <<_ACEOF
10760 #define HAVE_TCSENDBREAK 1
10769 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
10771 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
10777 cat >>confdefs.h <<_ACEOF
10778 #define HAVE_DECL_H_ERRNO $ac_have_decl
10782 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
10783 #include <sys/types.h>
10784 #include <sys/socket.h>
10787 if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
10793 cat >>confdefs.h <<_ACEOF
10794 #define HAVE_DECL_SHUT_RD $ac_have_decl
10798 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
10799 #include <sys/types.h>
10800 #ifdef HAVE_SYS_STAT_H
10801 # include <sys/stat.h>
10803 #ifdef HAVE_FCNTL_H
10804 # include <fcntl.h>
10808 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
10814 cat >>confdefs.h <<_ACEOF
10815 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
10819 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
10820 #include <sys/types.h>
10821 #include <sys/uio.h>
10822 #include <unistd.h>
10825 if test "x$ac_cv_have_decl_writev" = xyes; then :
10831 cat >>confdefs.h <<_ACEOF
10832 #define HAVE_DECL_WRITEV $ac_have_decl
10836 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
10837 #include <sys/param.h>
10840 if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
10846 cat >>confdefs.h <<_ACEOF
10847 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
10851 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
10852 #include <stddef.h>
10855 if test "x$ac_cv_have_decl_offsetof" = xyes; then :
10861 cat >>confdefs.h <<_ACEOF
10862 #define HAVE_DECL_OFFSETOF $ac_have_decl
10866 # extra bits for select(2)
10867 ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
10868 #include <sys/param.h>
10869 #include <sys/types.h>
10870 #ifdef HAVE_SYS_SYSMACROS_H
10871 #include <sys/sysmacros.h>
10873 #ifdef HAVE_SYS_SELECT_H
10874 #include <sys/select.h>
10876 #ifdef HAVE_SYS_TIME_H
10877 #include <sys/time.h>
10879 #ifdef HAVE_UNISTD_H
10880 #include <unistd.h>
10884 if test "x$ac_cv_have_decl_howmany" = xyes; then :
10890 cat >>confdefs.h <<_ACEOF
10891 #define HAVE_DECL_HOWMANY $ac_have_decl
10893 ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
10894 #include <sys/param.h>
10895 #include <sys/types.h>
10896 #ifdef HAVE_SYS_SYSMACROS_H
10897 #include <sys/sysmacros.h>
10899 #ifdef HAVE_SYS_SELECT_H
10900 #include <sys/select.h>
10902 #ifdef HAVE_SYS_TIME_H
10903 #include <sys/time.h>
10905 #ifdef HAVE_UNISTD_H
10906 #include <unistd.h>
10910 if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
10916 cat >>confdefs.h <<_ACEOF
10917 #define HAVE_DECL_NFDBITS $ac_have_decl
10920 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
10921 #include <sys/param.h>
10922 #include <sys/types.h>
10923 #ifdef HAVE_SYS_SELECT_H
10924 #include <sys/select.h>
10926 #ifdef HAVE_SYS_TIME_H
10927 #include <sys/time.h>
10929 #ifdef HAVE_UNISTD_H
10930 #include <unistd.h>
10934 if test "x$ac_cv_type_fd_mask" = xyes; then :
10936 cat >>confdefs.h <<_ACEOF
10937 #define HAVE_FD_MASK 1
10944 for ac_func in setresuid
10946 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
10947 if test "x$ac_cv_func_setresuid" = xyes; then :
10948 cat >>confdefs.h <<_ACEOF
10949 #define HAVE_SETRESUID 1
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
10953 $as_echo_n "checking if setresuid seems to work... " >&6; }
10954 if test "$cross_compiling" = yes; then :
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
10956 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10962 #include <stdlib.h>
10980 if ac_fn_c_try_run "$LINENO"; then :
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10982 $as_echo "yes" >&6; }
10985 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
10988 $as_echo "not implemented" >&6; }
10990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10991 conftest.$ac_objext conftest.beam conftest.$ac_ext
10999 for ac_func in setresgid
11001 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
11002 if test "x$ac_cv_func_setresgid" = xyes; then :
11003 cat >>confdefs.h <<_ACEOF
11004 #define HAVE_SETRESGID 1
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
11008 $as_echo_n "checking if setresgid seems to work... " >&6; }
11009 if test "$cross_compiling" = yes; then :
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11011 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11017 #include <stdlib.h>
11035 if ac_fn_c_try_run "$LINENO"; then :
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11037 $as_echo "yes" >&6; }
11040 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11043 $as_echo "not implemented" >&6; }
11045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11046 conftest.$ac_objext conftest.beam conftest.$ac_ext
11054 for ac_func in gettimeofday time
11056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11058 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11059 cat >>confdefs.h <<_ACEOF
11060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11066 for ac_func in endutent getutent getutid getutline pututline setutent
11068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11070 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11071 cat >>confdefs.h <<_ACEOF
11072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11078 for ac_func in utmpname
11080 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
11081 if test "x$ac_cv_func_utmpname" = xyes; then :
11082 cat >>confdefs.h <<_ACEOF
11083 #define HAVE_UTMPNAME 1
11089 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
11091 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11093 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11094 cat >>confdefs.h <<_ACEOF
11095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11101 for ac_func in setutxdb setutxent utmpxname
11103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11104 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11105 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11106 cat >>confdefs.h <<_ACEOF
11107 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11113 for ac_func in getlastlogxbyname
11115 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
11116 if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
11117 cat >>confdefs.h <<_ACEOF
11118 #define HAVE_GETLASTLOGXBYNAME 1
11125 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
11126 if test "x$ac_cv_func_daemon" = xyes; then :
11128 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
11132 $as_echo_n "checking for daemon in -lbsd... " >&6; }
11133 if ${ac_cv_lib_bsd_daemon+:} false; then :
11134 $as_echo_n "(cached) " >&6
11136 ac_check_lib_save_LIBS=$LIBS
11138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139 /* end confdefs.h. */
11141 /* Override any GCC internal prototype to avoid an error.
11142 Use char because int might match the return type of a GCC
11143 builtin and then its argument prototype would still apply. */
11156 if ac_fn_c_try_link "$LINENO"; then :
11157 ac_cv_lib_bsd_daemon=yes
11159 ac_cv_lib_bsd_daemon=no
11161 rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163 LIBS=$ac_check_lib_save_LIBS
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
11166 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
11167 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
11168 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11176 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11177 if test "x$ac_cv_func_getpagesize" = xyes; then :
11179 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
11183 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
11184 if ${ac_cv_lib_ucb_getpagesize+:} false; then :
11185 $as_echo_n "(cached) " >&6
11187 ac_check_lib_save_LIBS=$LIBS
11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11192 /* Override any GCC internal prototype to avoid an error.
11193 Use char because int might match the return type of a GCC
11194 builtin and then its argument prototype would still apply. */
11198 char getpagesize ();
11202 return getpagesize ();
11207 if ac_fn_c_try_link "$LINENO"; then :
11208 ac_cv_lib_ucb_getpagesize=yes
11210 ac_cv_lib_ucb_getpagesize=no
11212 rm -f core conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11214 LIBS=$ac_check_lib_save_LIBS
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
11217 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
11218 if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
11219 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11227 # Check for broken snprintf
11228 if test "x$ac_cv_func_snprintf" = "xyes" ; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
11230 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
11231 if test "$cross_compiling" = yes; then :
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
11233 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11244 snprintf(b,5,"123456789");
11251 if ac_fn_c_try_run "$LINENO"; then :
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11253 $as_echo "yes" >&6; }
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11259 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
11262 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
11265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11266 conftest.$ac_objext conftest.beam conftest.$ac_ext
11271 # If we don't have a working asprintf, then we strongly depend on vsnprintf
11272 # returning the right thing on overflow: the number of characters it tried to
11273 # create (as per SUSv3)
11274 if test "x$ac_cv_func_asprintf" != "xyes" && \
11275 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
11277 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
11278 if test "$cross_compiling" = yes; then :
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
11280 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11286 #include <sys/types.h>
11288 #include <stdarg.h>
11290 int x_snprintf(char *str,size_t count,const char *fmt,...)
11292 size_t ret; va_list ap;
11293 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
11302 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
11308 if ac_fn_c_try_run "$LINENO"; then :
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11310 $as_echo "yes" >&6; }
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11316 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
11319 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
11322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11323 conftest.$ac_objext conftest.beam conftest.$ac_ext
11328 # On systems where [v]snprintf is broken, but is declared in stdio,
11329 # check that the fmt argument is const char * or just char *.
11330 # This is only useful for when BROKEN_SNPRINTF
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
11332 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11337 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
11349 if ac_fn_c_try_compile "$LINENO"; then :
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351 $as_echo "yes" >&6; }
11353 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 # Check for missing getpeereid (or equiv) support
11365 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
11367 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11371 #include <sys/types.h>
11372 #include <sys/socket.h>
11376 int i = SO_PEERCRED;
11381 if ac_fn_c_try_compile "$LINENO"; then :
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11383 $as_echo "yes" >&6; }
11385 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
11399 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
11400 if test "$cross_compiling" = yes; then :
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11403 $as_echo "yes" >&6; }
11404 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11412 #include <stdlib.h>
11418 char template[]="conftest.mkstemp-test";
11419 if (mkstemp(template) == -1)
11428 if ac_fn_c_try_run "$LINENO"; then :
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11436 $as_echo "yes" >&6; }
11438 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
11442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11443 conftest.$ac_objext conftest.beam conftest.$ac_ext
11448 if test ! -z "$check_for_openpty_ctty_bug"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
11450 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
11451 if test "$cross_compiling" = yes; then :
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
11454 $as_echo "cross-compiling, assuming yes" >&6; }
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11462 #include <sys/fcntl.h>
11463 #include <sys/types.h>
11464 #include <sys/wait.h>
11471 int fd, ptyfd, ttyfd, status;
11474 if (pid < 0) { /* failed */
11476 } else if (pid > 0) { /* parent */
11477 waitpid(pid, &status, 0);
11478 if (WIFEXITED(status))
11479 exit(WEXITSTATUS(status));
11482 } else { /* child */
11483 close(0); close(1); close(2);
11485 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
11486 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
11488 exit(3); /* Acquired ctty: broken */
11490 exit(0); /* Did not acquire ctty: OK */
11497 if ac_fn_c_try_run "$LINENO"; then :
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11500 $as_echo "yes" >&6; }
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; }
11506 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
11510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11511 conftest.$ac_objext conftest.beam conftest.$ac_ext
11516 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11517 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
11519 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
11520 if test "$cross_compiling" = yes; then :
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
11523 $as_echo "cross-compiling, assuming yes" >&6; }
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11531 #include <sys/socket.h>
11534 #include <netinet/in.h>
11536 #define TEST_PORT "2222"
11543 struct addrinfo *gai_ai, *ai, hints;
11544 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11546 memset(&hints, 0, sizeof(hints));
11547 hints.ai_family = PF_UNSPEC;
11548 hints.ai_socktype = SOCK_STREAM;
11549 hints.ai_flags = AI_PASSIVE;
11551 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11553 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11557 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11558 if (ai->ai_family != AF_INET6)
11561 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11562 sizeof(ntop), strport, sizeof(strport),
11563 NI_NUMERICHOST|NI_NUMERICSERV);
11566 if (err == EAI_SYSTEM)
11567 perror("getnameinfo EAI_SYSTEM");
11569 fprintf(stderr, "getnameinfo failed: %s\n",
11570 gai_strerror(err));
11574 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
11577 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
11578 if (errno == EBADF)
11588 if ac_fn_c_try_run "$LINENO"; then :
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11591 $as_echo "yes" >&6; }
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11597 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11602 conftest.$ac_objext conftest.beam conftest.$ac_ext
11607 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11608 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
11610 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
11611 if test "$cross_compiling" = yes; then :
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
11614 $as_echo "cross-compiling, assuming no" >&6; }
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11622 #include <sys/socket.h>
11625 #include <netinet/in.h>
11627 #define TEST_PORT "2222"
11634 struct addrinfo *gai_ai, *ai, hints;
11635 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11637 memset(&hints, 0, sizeof(hints));
11638 hints.ai_family = PF_UNSPEC;
11639 hints.ai_socktype = SOCK_STREAM;
11640 hints.ai_flags = AI_PASSIVE;
11642 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11644 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11648 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11649 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
11652 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11653 sizeof(ntop), strport, sizeof(strport),
11654 NI_NUMERICHOST|NI_NUMERICSERV);
11656 if (ai->ai_family == AF_INET && err != 0) {
11657 perror("getnameinfo");
11667 if ac_fn_c_try_run "$LINENO"; then :
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11670 $as_echo "yes" >&6; }
11672 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11679 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11684 conftest.$ac_objext conftest.beam conftest.$ac_ext
11689 if test "x$check_for_conflicting_getspnam" = "x1"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
11691 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11694 #include <shadow.h>
11703 if ac_fn_c_try_compile "$LINENO"; then :
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11713 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
11718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11722 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11723 if ${ac_cv_func_getpgrp_void+:} false; then :
11724 $as_echo_n "(cached) " >&6
11726 # Use it with a single arg.
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729 $ac_includes_default
11738 if ac_fn_c_try_compile "$LINENO"; then :
11739 ac_cv_func_getpgrp_void=no
11741 ac_cv_func_getpgrp_void=yes
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11747 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11748 if test $ac_cv_func_getpgrp_void = yes; then
11750 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11755 # Search for OpenSSL
11756 saved_CPPFLAGS="$CPPFLAGS"
11757 saved_LDFLAGS="$LDFLAGS"
11759 # Check whether --with-ssl-dir was given.
11760 if test "${with_ssl_dir+set}" = set; then :
11761 withval=$with_ssl_dir;
11762 if test "x$withval" != "xno" ; then
11765 ./*|../*) withval="`pwd`/$withval"
11767 if test -d "$withval/lib"; then
11768 if test -n "${need_dash_r}"; then
11769 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11771 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11773 elif test -d "$withval/lib64"; then
11774 if test -n "${need_dash_r}"; then
11775 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
11777 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
11780 if test -n "${need_dash_r}"; then
11781 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11783 LDFLAGS="-L${withval} ${LDFLAGS}"
11786 if test -d "$withval/include"; then
11787 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11789 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11796 LIBS="-lcrypto $LIBS"
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11800 /* Override any GCC internal prototype to avoid an error.
11801 Use char because int might match the return type of a GCC
11802 builtin and then its argument prototype would still apply. */
11810 return RAND_add ();
11815 if ac_fn_c_try_link "$LINENO"; then :
11817 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11821 if test -n "${need_dash_r}"; then
11822 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
11824 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
11826 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
11827 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
11828 if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
11831 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11838 /* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11848 return RAND_add ();
11853 if ac_fn_c_try_link "$LINENO"; then :
11854 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11858 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
11862 rm -f core conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11870 # Determine OpenSSL header version
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
11872 $as_echo_n "checking OpenSSL header version... " >&6; }
11873 if test "$cross_compiling" = yes; then :
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11876 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11884 #include <string.h>
11885 #include <openssl/opensslv.h>
11886 #define DATA "conftest.sslincver"
11895 fd = fopen(DATA,"w");
11899 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
11908 if ac_fn_c_try_run "$LINENO"; then :
11910 ssl_header_ver=`cat conftest.sslincver`
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
11912 $as_echo "$ssl_header_ver" >&6; }
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11917 $as_echo "not found" >&6; }
11918 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
11921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11922 conftest.$ac_objext conftest.beam conftest.$ac_ext
11926 # Determine OpenSSL library version
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
11928 $as_echo_n "checking OpenSSL library version... " >&6; }
11929 if test "$cross_compiling" = yes; then :
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11932 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11940 #include <string.h>
11941 #include <openssl/opensslv.h>
11942 #include <openssl/crypto.h>
11943 #define DATA "conftest.ssllibver"
11952 fd = fopen(DATA,"w");
11956 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
11965 if ac_fn_c_try_run "$LINENO"; then :
11967 ssl_library_ver=`cat conftest.ssllibver`
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
11969 $as_echo "$ssl_library_ver" >&6; }
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11974 $as_echo "not found" >&6; }
11975 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
11978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11979 conftest.$ac_objext conftest.beam conftest.$ac_ext
11984 # Check whether --with-openssl-header-check was given.
11985 if test "${with_openssl_header_check+set}" = set; then :
11986 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
11987 openssl_check_nonfatal=1
11994 # Sanity check OpenSSL headers
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
11996 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
11997 if test "$cross_compiling" = yes; then :
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12000 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12007 #include <string.h>
12008 #include <openssl/opensslv.h>
12014 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
12020 if ac_fn_c_try_run "$LINENO"; then :
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12023 $as_echo "yes" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12029 if test "x$openssl_check_nonfatal" = "x"; then
12030 as_fn_error $? "Your OpenSSL headers do not match your
12031 library. Check config.log for details.
12032 If you are sure your installation is consistent, you can disable the check
12033 by running \"./configure --without-openssl-header-check\".
12034 Also see contrib/findssl.sh for help identifying header/library mismatches.
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
12038 library. Check config.log for details.
12039 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
12040 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
12041 library. Check config.log for details.
12042 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
12046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12047 conftest.$ac_objext conftest.beam conftest.$ac_ext
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
12052 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12055 #include <openssl/evp.h>
12059 SSLeay_add_all_algorithms();
12064 if ac_fn_c_try_link "$LINENO"; then :
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12067 $as_echo "yes" >&6; }
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
12076 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 #include <openssl/evp.h>
12083 SSLeay_add_all_algorithms();
12088 if ac_fn_c_try_link "$LINENO"; then :
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12091 $as_echo "yes" >&6; }
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12101 rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12106 rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12111 DSA_generate_parameters_ex \
12112 EVP_DigestInit_ex \
12113 EVP_DigestFinal_ex \
12115 EVP_MD_CTX_cleanup \
12117 RSA_generate_key_ex \
12118 RSA_get_default_method \
12121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12123 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12124 cat >>confdefs.h <<_ACEOF
12125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12133 # Check whether --with-ssl-engine was given.
12134 if test "${with_ssl_engine+set}" = set; then :
12135 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
12137 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12141 #include <openssl/engine.h>
12147 ENGINE_load_builtin_engines();
12148 ENGINE_register_all_complete();
12154 if ac_fn_c_try_compile "$LINENO"; then :
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12156 $as_echo "yes" >&6; }
12158 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
12162 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12171 # Check for OpenSSL without EVP_aes_{192,256}_cbc
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
12173 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 #include <string.h>
12178 #include <openssl/evp.h>
12184 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
12190 if ac_fn_c_try_link "$LINENO"; then :
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12198 $as_echo "yes" >&6; }
12200 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
12205 rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12208 # Check for OpenSSL with EVP_aes_*ctr
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
12210 $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12214 #include <string.h>
12215 #include <openssl/evp.h>
12221 exit(EVP_aes_128_ctr() == NULL ||
12222 EVP_aes_192_cbc() == NULL ||
12223 EVP_aes_256_cbc() == NULL);
12229 if ac_fn_c_try_link "$LINENO"; then :
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12232 $as_echo "yes" >&6; }
12234 $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12244 rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12247 # Check for OpenSSL with EVP_aes_*gcm
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
12249 $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12253 #include <string.h>
12254 #include <openssl/evp.h>
12260 exit(EVP_aes_128_gcm() == NULL ||
12261 EVP_aes_256_gcm() == NULL ||
12262 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
12263 EVP_CTRL_GCM_IV_GEN == 0 ||
12264 EVP_CTRL_GCM_SET_TAG == 0 ||
12265 EVP_CTRL_GCM_GET_TAG == 0 ||
12266 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
12272 if ac_fn_c_try_link "$LINENO"; then :
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12275 $as_echo "yes" >&6; }
12277 $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12284 unsupported_algorithms="$unsupported_cipers \
12285 aes128-gcm@openssh.com aes256-gcm@openssh.com"
12289 rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
12293 $as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
12294 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12295 $as_echo_n "(cached) " >&6
12297 ac_func_search_save_LIBS=$LIBS
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12307 char EVP_CIPHER_CTX_ctrl ();
12311 return EVP_CIPHER_CTX_ctrl ();
12316 for ac_lib in '' crypto; do
12317 if test -z "$ac_lib"; then
12318 ac_res="none required"
12321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12323 if ac_fn_c_try_link "$LINENO"; then :
12324 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
12326 rm -f core conftest.err conftest.$ac_objext \
12328 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12332 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12335 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
12337 rm conftest.$ac_ext
12338 LIBS=$ac_func_search_save_LIBS
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
12341 $as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
12342 ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
12343 if test "$ac_res" != no; then :
12344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12346 $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
12352 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12356 #include <string.h>
12357 #include <openssl/evp.h>
12363 if(EVP_DigestUpdate(NULL, NULL,0))
12370 if ac_fn_c_try_link "$LINENO"; then :
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12373 $as_echo "yes" >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12380 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
12385 rm -f core conftest.err conftest.$ac_objext \
12386 conftest$ac_exeext conftest.$ac_ext
12388 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
12389 # because the system crypt() is more featureful.
12390 if test "x$check_for_libcrypt_before" = "x1"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12392 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12393 if ${ac_cv_lib_crypt_crypt+:} false; then :
12394 $as_echo_n "(cached) " >&6
12396 ac_check_lib_save_LIBS=$LIBS
12397 LIBS="-lcrypt $LIBS"
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12416 if ac_fn_c_try_link "$LINENO"; then :
12417 ac_cv_lib_crypt_crypt=yes
12419 ac_cv_lib_crypt_crypt=no
12421 rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423 LIBS=$ac_check_lib_save_LIBS
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12426 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12427 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12428 cat >>confdefs.h <<_ACEOF
12429 #define HAVE_LIBCRYPT 1
12432 LIBS="-lcrypt $LIBS"
12438 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
12439 # version in OpenSSL.
12440 if test "x$check_for_libcrypt_later" = "x1"; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12442 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12443 if ${ac_cv_lib_crypt_crypt+:} false; then :
12444 $as_echo_n "(cached) " >&6
12446 ac_check_lib_save_LIBS=$LIBS
12447 LIBS="-lcrypt $LIBS"
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12451 /* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_lib_crypt_crypt=yes
12469 ac_cv_lib_crypt_crypt=no
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12473 LIBS=$ac_check_lib_save_LIBS
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12476 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12477 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12478 LIBS="$LIBS -lcrypt"
12482 for ac_func in crypt DES_crypt
12484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12487 cat >>confdefs.h <<_ACEOF
12488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12495 # Search for SHA256 support in libc and/or OpenSSL
12496 for ac_func in SHA256_Update EVP_sha256
12498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12499 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12500 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12501 cat >>confdefs.h <<_ACEOF
12502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12506 unsupported_algorithms="$unsupported_algorithms \
12507 hmac-sha2-256 hmac-sha2-512 \
12508 diffie-hellman-group-exchange-sha256 \
12509 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
12516 # Check complete ECC support in OpenSSL
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
12518 $as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; }
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12522 #include <openssl/ec.h>
12523 #include <openssl/ecdh.h>
12524 #include <openssl/ecdsa.h>
12525 #include <openssl/evp.h>
12526 #include <openssl/objects.h>
12527 #include <openssl/opensslv.h>
12528 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12529 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12536 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
12537 const EVP_MD *m = EVP_sha256(); /* We need this too */
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12545 $as_echo "yes" >&6; }
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12552 rm -f core conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5
12556 $as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; }
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12560 #include <openssl/ec.h>
12561 #include <openssl/ecdh.h>
12562 #include <openssl/ecdsa.h>
12563 #include <openssl/evp.h>
12564 #include <openssl/objects.h>
12565 #include <openssl/opensslv.h>
12566 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12567 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12574 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
12575 const EVP_MD *m = EVP_sha384(); /* We need this too */
12581 if ac_fn_c_try_link "$LINENO"; then :
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12583 $as_echo "yes" >&6; }
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12590 rm -f core conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5
12594 $as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; }
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12598 #include <openssl/ec.h>
12599 #include <openssl/ecdh.h>
12600 #include <openssl/ecdsa.h>
12601 #include <openssl/evp.h>
12602 #include <openssl/objects.h>
12603 #include <openssl/opensslv.h>
12604 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12605 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12612 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
12613 const EVP_MD *m = EVP_sha512(); /* We need this too */
12619 if ac_fn_c_try_link "$LINENO"; then :
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12621 $as_echo "yes" >&6; }
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5
12623 $as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; }
12624 if test "$cross_compiling" = yes; then :
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5
12626 $as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12633 #include <openssl/ec.h>
12634 #include <openssl/ecdh.h>
12635 #include <openssl/ecdsa.h>
12636 #include <openssl/evp.h>
12637 #include <openssl/objects.h>
12638 #include <openssl/opensslv.h>
12644 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
12645 const EVP_MD *m = EVP_sha512(); /* We need this too */
12646 exit(e == NULL || m == NULL);
12652 if ac_fn_c_try_run "$LINENO"; then :
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12654 $as_echo "yes" >&6; }
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12661 conftest.$ac_objext conftest.beam conftest.$ac_ext
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666 $as_echo "no" >&6; }
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12672 COMMENT_OUT_ECC="#no ecc#"
12675 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
12676 test x$enable_nistp521 = x1; then
12678 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
12681 if test x$enable_nistp256 = x1; then
12683 $as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h
12688 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
12689 ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com"
12691 if test x$enable_nistp384 = x1; then
12693 $as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h
12698 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
12699 ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com"
12701 if test x$enable_nistp521 = x1; then
12703 $as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h
12708 unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
12709 ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com"
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
12717 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
12718 if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
12719 $as_echo_n "(cached) " >&6
12721 ac_check_lib_save_LIBS=$LIBS
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12732 char ia_openinfo ();
12736 return ia_openinfo ();
12741 if ac_fn_c_try_link "$LINENO"; then :
12742 ac_cv_lib_iaf_ia_openinfo=yes
12744 ac_cv_lib_iaf_ia_openinfo=no
12746 rm -f core conftest.err conftest.$ac_objext \
12747 conftest$ac_exeext conftest.$ac_ext
12748 LIBS=$ac_check_lib_save_LIBS
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
12751 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
12752 if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
12755 for ac_func in set_id
12757 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
12758 if test "x$ac_cv_func_set_id" = xyes; then :
12759 cat >>confdefs.h <<_ACEOF
12760 #define HAVE_SET_ID 1
12762 SSHDLIBS="$SSHDLIBS -liaf"
12764 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
12775 ### Configure cryptographic random number support
12777 # Check wheter OpenSSL seeds itself
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
12779 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
12780 if test "$cross_compiling" = yes; then :
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12783 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12784 # This is safe, since we will fatal() at runtime if
12785 # OpenSSL is not seeded correctly.
12786 OPENSSL_SEEDS_ITSELF=yes
12790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12793 #include <string.h>
12794 #include <openssl/rand.h>
12800 exit(RAND_status() == 1 ? 0 : 1);
12806 if ac_fn_c_try_run "$LINENO"; then :
12808 OPENSSL_SEEDS_ITSELF=yes
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12810 $as_echo "yes" >&6; }
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12819 conftest.$ac_objext conftest.beam conftest.$ac_ext
12825 # Check whether --with-prngd-port was given.
12826 if test "${with_prngd_port+set}" = set; then :
12827 withval=$with_prngd_port;
12835 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
12838 if test ! -z "$withval" ; then
12839 PRNGD_PORT="$withval"
12841 cat >>confdefs.h <<_ACEOF
12842 #define PRNGD_PORT $PRNGD_PORT
12851 # PRNGD Unix domain socket
12853 # Check whether --with-prngd-socket was given.
12854 if test "${with_prngd_socket+set}" = set; then :
12855 withval=$with_prngd_socket;
12858 withval="/var/run/egd-pool"
12866 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
12870 if test ! -z "$withval" ; then
12871 if test ! -z "$PRNGD_PORT" ; then
12872 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
12874 if test ! -r "$withval" ; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
12876 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
12878 PRNGD_SOCKET="$withval"
12880 cat >>confdefs.h <<_ACEOF
12881 #define PRNGD_SOCKET "$PRNGD_SOCKET"
12888 # Check for existing socket only if we don't have a random device already
12889 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
12891 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
12892 # Insert other locations here
12893 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
12894 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
12895 PRNGD_SOCKET="$sock"
12896 cat >>confdefs.h <<_ACEOF
12897 #define PRNGD_SOCKET "$PRNGD_SOCKET"
12903 if test ! -z "$PRNGD_SOCKET" ; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
12905 $as_echo "$PRNGD_SOCKET" >&6; }
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12908 $as_echo "not found" >&6; }
12916 # Which randomness source do we use?
12917 if test ! -z "$PRNGD_PORT" ; then
12918 RAND_MSG="PRNGd port $PRNGD_PORT"
12919 elif test ! -z "$PRNGD_SOCKET" ; then
12920 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
12921 elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
12923 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
12925 RAND_MSG="OpenSSL internal ONLY"
12927 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
12930 # Check for PAM libs
12933 # Check whether --with-pam was given.
12934 if test "${with_pam+set}" = set; then :
12936 if test "x$withval" != "xno" ; then
12937 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
12938 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
12939 as_fn_error $? "PAM headers not found" "$LINENO" 5
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12944 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12945 if ${ac_cv_lib_dl_dlopen+:} false; then :
12946 $as_echo_n "(cached) " >&6
12948 ac_check_lib_save_LIBS=$LIBS
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12953 /* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12968 if ac_fn_c_try_link "$LINENO"; then :
12969 ac_cv_lib_dl_dlopen=yes
12971 ac_cv_lib_dl_dlopen=no
12973 rm -f core conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext conftest.$ac_ext
12975 LIBS=$ac_check_lib_save_LIBS
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12978 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12979 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12980 cat >>confdefs.h <<_ACEOF
12981 #define HAVE_LIBDL 1
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
12989 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
12990 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
12991 $as_echo_n "(cached) " >&6
12993 ac_check_lib_save_LIBS=$LIBS
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13004 char pam_set_item ();
13008 return pam_set_item ();
13013 if ac_fn_c_try_link "$LINENO"; then :
13014 ac_cv_lib_pam_pam_set_item=yes
13016 ac_cv_lib_pam_pam_set_item=no
13018 rm -f core conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
13020 LIBS=$ac_check_lib_save_LIBS
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
13023 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
13024 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
13025 cat >>confdefs.h <<_ACEOF
13026 #define HAVE_LIBPAM 1
13032 as_fn_error $? "*** libpam missing" "$LINENO" 5
13035 for ac_func in pam_getenvlist
13037 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
13038 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
13039 cat >>confdefs.h <<_ACEOF
13040 #define HAVE_PAM_GETENVLIST 1
13046 for ac_func in pam_putenv
13048 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
13049 if test "x$ac_cv_func_pam_putenv" = xyes; then :
13050 cat >>confdefs.h <<_ACEOF
13051 #define HAVE_PAM_PUTENV 1
13061 SSHDLIBS="$SSHDLIBS -lpam"
13063 $as_echo "#define USE_PAM 1" >>confdefs.h
13066 if test $ac_cv_lib_dl_dlopen = yes; then
13069 # libdl already in LIBS
13072 SSHDLIBS="$SSHDLIBS -ldl"
13082 # Check for older PAM
13083 if test "x$PAM_MSG" = "xyes" ; then
13084 # Check PAM strerror arguments (old PAM)
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
13086 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13090 #include <stdlib.h>
13091 #if defined(HAVE_SECURITY_PAM_APPL_H)
13092 #include <security/pam_appl.h>
13093 #elif defined (HAVE_PAM_PAM_APPL_H)
13094 #include <pam/pam_appl.h>
13101 (void)pam_strerror((pam_handle_t *)NULL, -1);
13107 if ac_fn_c_try_compile "$LINENO"; then :
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }
13113 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13116 $as_echo "yes" >&6; }
13117 PAM_MSG="yes (old library)"
13121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13124 SSH_PRIVSEP_USER=sshd
13126 # Check whether --with-privsep-user was given.
13127 if test "${with_privsep_user+set}" = set; then :
13128 withval=$with_privsep_user;
13129 if test -n "$withval" && test "x$withval" != "xno" && \
13130 test "x${withval}" != "xyes"; then
13131 SSH_PRIVSEP_USER=$withval
13138 cat >>confdefs.h <<_ACEOF
13139 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
13144 if test "x$have_linux_no_new_privs" = "x1" ; then
13145 ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
13146 #include <sys/types.h>
13147 #include <linux/seccomp.h>
13150 if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
13151 have_seccomp_filter=1
13155 if test "x$have_seccomp_filter" = "x1" ; then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
13157 $as_echo_n "checking kernel for seccomp_filter support... " >&6; }
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13163 #include <linux/audit.h>
13164 #include <linux/seccomp.h>
13165 #include <stdlib.h>
13166 #include <sys/prctl.h>
13171 int i = $seccomp_audit_arch;
13173 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
13174 exit(errno == EFAULT ? 0 : 1);
13179 if ac_fn_c_try_link "$LINENO"; then :
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13181 $as_echo "yes" >&6; }
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13186 # Disable seccomp filter as a target
13187 have_seccomp_filter=0
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13195 # Decide which sandbox style to use
13198 # Check whether --with-sandbox was given.
13199 if test "${with_sandbox+set}" = set; then :
13200 withval=$with_sandbox;
13201 if test "x$withval" = "xyes" ; then
13204 sandbox_arg="$withval"
13211 # Some platforms (seems to be the ones that have a kernel poll(2)-type
13212 # function with which they implement select(2)) use an extra file descriptor
13213 # when calling select(2), which means we can't use the rlimit sandbox.
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
13215 $as_echo_n "checking if select works with descriptor rlimit... " >&6; }
13216 if test "$cross_compiling" = yes; then :
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13218 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13224 #include <sys/types.h>
13225 #ifdef HAVE_SYS_TIME_H
13226 # include <sys/time.h>
13228 #include <sys/resource.h>
13229 #ifdef HAVE_SYS_SELECT_H
13230 # include <sys/select.h>
13234 #include <stdlib.h>
13240 struct rlimit rl_zero;
13245 fd = open("/dev/null", O_RDONLY);
13248 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13249 setrlimit(RLIMIT_FSIZE, &rl_zero);
13250 setrlimit(RLIMIT_NOFILE, &rl_zero);
13253 r = select(fd+1, &fds, NULL, NULL, &tv);
13254 exit (r == -1 ? 1 : 0);
13260 if ac_fn_c_try_run "$LINENO"; then :
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13262 $as_echo "yes" >&6; }
13263 select_works_with_rlimit=yes
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 select_works_with_rlimit=no
13269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13270 conftest.$ac_objext conftest.beam conftest.$ac_ext
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
13275 $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
13276 if test "$cross_compiling" = yes; then :
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13278 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h. */
13284 #include <sys/types.h>
13285 #ifdef HAVE_SYS_TIME_H
13286 # include <sys/time.h>
13288 #include <sys/resource.h>
13290 #include <stdlib.h>
13296 struct rlimit rl_zero;
13300 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13301 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
13302 exit (r == -1 ? 1 : 0);
13308 if ac_fn_c_try_run "$LINENO"; then :
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310 $as_echo "yes" >&6; }
13311 rlimit_nofile_zero_works=yes
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13315 rlimit_nofile_zero_works=no
13317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13318 conftest.$ac_objext conftest.beam conftest.$ac_ext
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
13323 $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
13324 if test "$cross_compiling" = yes; then :
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13326 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13332 #include <sys/types.h>
13333 #include <sys/resource.h>
13334 #include <stdlib.h>
13340 struct rlimit rl_zero;
13342 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13343 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
13349 if ac_fn_c_try_run "$LINENO"; then :
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13351 $as_echo "yes" >&6; }
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13356 $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
13359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13360 conftest.$ac_objext conftest.beam conftest.$ac_ext
13364 if test "x$sandbox_arg" = "xsystrace" || \
13365 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
13366 test "x$have_systr_policy_kill" != "x1" && \
13367 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
13368 SANDBOX_STYLE="systrace"
13370 $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
13372 elif test "x$sandbox_arg" = "xdarwin" || \
13373 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
13374 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
13375 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
13376 "x$ac_cv_header_sandbox_h" != "xyes" && \
13377 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
13378 SANDBOX_STYLE="darwin"
13380 $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
13382 elif test "x$sandbox_arg" = "xseccomp_filter" || \
13383 ( test -z "$sandbox_arg" && \
13384 test "x$have_seccomp_filter" = "x1" && \
13385 test "x$ac_cv_header_elf_h" = "xyes" && \
13386 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
13387 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
13388 test "x$seccomp_audit_arch" != "x" && \
13389 test "x$have_linux_no_new_privs" = "x1" && \
13390 test "x$ac_cv_func_prctl" = "xyes" ) ; then
13391 test "x$seccomp_audit_arch" = "x" && \
13392 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
13393 test "x$have_linux_no_new_privs" != "x1" && \
13394 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
13395 test "x$have_seccomp_filter" != "x1" && \
13396 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
13397 test "x$ac_cv_func_prctl" != "xyes" && \
13398 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
13399 SANDBOX_STYLE="seccomp_filter"
13401 $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
13403 elif test "x$sandbox_arg" = "xcapsicum" || \
13404 ( test -z "$sandbox_arg" && \
13405 test "x$ac_cv_header_sys_capability_h" = "xyes" && \
13406 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
13407 test "x$ac_cv_header_sys_capability_h" != "xyes" && \
13408 as_fn_error $? "capsicum sandbox requires sys/capability.h header" "$LINENO" 5
13409 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
13410 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5
13411 SANDBOX_STYLE="capsicum"
13413 $as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h
13415 elif test "x$sandbox_arg" = "xrlimit" || \
13416 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
13417 test "x$select_works_with_rlimit" = "xyes" && \
13418 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
13419 test "x$ac_cv_func_setrlimit" != "xyes" && \
13420 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
13421 test "x$select_works_with_rlimit" != "xyes" && \
13422 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
13423 SANDBOX_STYLE="rlimit"
13425 $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
13427 elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
13428 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
13429 SANDBOX_STYLE="none"
13431 $as_echo "#define SANDBOX_NULL 1" >>confdefs.h
13434 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
13437 # Cheap hack to ensure NEWS-OS libraries are arranged right.
13438 if test ! -z "$SONY" ; then
13439 LIBS="$LIBS -liberty";
13442 # Check for long long datatypes
13443 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13444 if test "x$ac_cv_type_long_long" = xyes; then :
13446 cat >>confdefs.h <<_ACEOF
13447 #define HAVE_LONG_LONG 1
13452 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
13453 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
13455 cat >>confdefs.h <<_ACEOF
13456 #define HAVE_UNSIGNED_LONG_LONG 1
13461 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
13462 if test "x$ac_cv_type_long_double" = xyes; then :
13464 cat >>confdefs.h <<_ACEOF
13465 #define HAVE_LONG_DOUBLE 1
13472 # Check datatype sizes
13473 # The cast to long int works around a bug in the HP C Compiler
13474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13476 # This bug is HP SR number 8606223364.
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
13478 $as_echo_n "checking size of short int... " >&6; }
13479 if ${ac_cv_sizeof_short_int+:} false; then :
13480 $as_echo_n "(cached) " >&6
13482 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
13485 if test "$ac_cv_type_short_int" = yes; then
13486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13488 as_fn_error 77 "cannot compute sizeof (short int)
13489 See \`config.log' for more details" "$LINENO" 5; }
13491 ac_cv_sizeof_short_int=0
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
13497 $as_echo "$ac_cv_sizeof_short_int" >&6; }
13501 cat >>confdefs.h <<_ACEOF
13502 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13506 # The cast to long int works around a bug in the HP C Compiler
13507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13509 # This bug is HP SR number 8606223364.
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13511 $as_echo_n "checking size of int... " >&6; }
13512 if ${ac_cv_sizeof_int+:} false; then :
13513 $as_echo_n "(cached) " >&6
13515 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13518 if test "$ac_cv_type_int" = yes; then
13519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13521 as_fn_error 77 "cannot compute sizeof (int)
13522 See \`config.log' for more details" "$LINENO" 5; }
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13530 $as_echo "$ac_cv_sizeof_int" >&6; }
13534 cat >>confdefs.h <<_ACEOF
13535 #define SIZEOF_INT $ac_cv_sizeof_int
13539 # The cast to long int works around a bug in the HP C Compiler
13540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13542 # This bug is HP SR number 8606223364.
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
13544 $as_echo_n "checking size of long int... " >&6; }
13545 if ${ac_cv_sizeof_long_int+:} false; then :
13546 $as_echo_n "(cached) " >&6
13548 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
13551 if test "$ac_cv_type_long_int" = yes; then
13552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13554 as_fn_error 77 "cannot compute sizeof (long int)
13555 See \`config.log' for more details" "$LINENO" 5; }
13557 ac_cv_sizeof_long_int=0
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
13563 $as_echo "$ac_cv_sizeof_long_int" >&6; }
13567 cat >>confdefs.h <<_ACEOF
13568 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13572 # The cast to long int works around a bug in the HP C Compiler
13573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13575 # This bug is HP SR number 8606223364.
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
13577 $as_echo_n "checking size of long long int... " >&6; }
13578 if ${ac_cv_sizeof_long_long_int+:} false; then :
13579 $as_echo_n "(cached) " >&6
13581 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
13584 if test "$ac_cv_type_long_long_int" = yes; then
13585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13587 as_fn_error 77 "cannot compute sizeof (long long int)
13588 See \`config.log' for more details" "$LINENO" 5; }
13590 ac_cv_sizeof_long_long_int=0
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
13596 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
13600 cat >>confdefs.h <<_ACEOF
13601 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13606 # Sanity check long long for some platforms (AIX)
13607 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
13608 ac_cv_sizeof_long_long_int=0
13611 # compute LLONG_MIN and LLONG_MAX if we don't know them.
13612 if test -z "$have_llong_max"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
13614 $as_echo_n "checking for max value of long long... " >&6; }
13615 if test "$cross_compiling" = yes; then :
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
13618 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13626 /* Why is this so damn hard? */
13630 #define __USE_ISOC99
13631 #include <limits.h>
13632 #define DATA "conftest.llminmax"
13633 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
13636 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
13637 * we do this the hard way.
13640 fprint_ll(FILE *f, long long n)
13643 int l[sizeof(long long) * 8];
13646 if (fprintf(f, "-") < 0)
13648 for (i = 0; n != 0; i++) {
13649 l[i] = my_abs(n % 10);
13653 if (fprintf(f, "%d", l[--i]) < 0)
13656 if (fprintf(f, " ") < 0)
13666 long long i, llmin, llmax = 0;
13668 if((f = fopen(DATA,"w")) == NULL)
13671 #if defined(LLONG_MIN) && defined(LLONG_MAX)
13672 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
13676 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
13677 /* This will work on one's complement and two's complement */
13678 for (i = 1; i > llmax; i <<= 1, i++)
13680 llmin = llmax + 1LL; /* wrap */
13684 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
13685 || llmax - 1 > llmax || llmin == llmax || llmin == 0
13686 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
13687 fprintf(f, "unknown unknown\n");
13691 if (fprint_ll(f, llmin) < 0)
13693 if (fprint_ll(f, llmax) < 0)
13703 if ac_fn_c_try_run "$LINENO"; then :
13705 llong_min=`$AWK '{print $1}' conftest.llminmax`
13706 llong_max=`$AWK '{print $2}' conftest.llminmax`
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
13709 $as_echo "$llong_max" >&6; }
13711 cat >>confdefs.h <<_ACEOF
13712 #define LLONG_MAX ${llong_max}LL
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
13716 $as_echo_n "checking for min value of long long... " >&6; }
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
13718 $as_echo "$llong_min" >&6; }
13720 cat >>confdefs.h <<_ACEOF
13721 #define LLONG_MIN ${llong_min}LL
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13728 $as_echo "not found" >&6; }
13731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13732 conftest.$ac_objext conftest.beam conftest.$ac_ext
13738 # More checks for data types
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
13740 $as_echo_n "checking for u_int type... " >&6; }
13741 if ${ac_cv_have_u_int+:} false; then :
13742 $as_echo_n "(cached) " >&6
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 #include <sys/types.h>
13756 if ac_fn_c_try_compile "$LINENO"; then :
13757 ac_cv_have_u_int="yes"
13759 ac_cv_have_u_int="no"
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
13766 $as_echo "$ac_cv_have_u_int" >&6; }
13767 if test "x$ac_cv_have_u_int" = "xyes" ; then
13769 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
13775 $as_echo_n "checking for intXX_t types... " >&6; }
13776 if ${ac_cv_have_intxx_t+:} false; then :
13777 $as_echo_n "(cached) " >&6
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13782 #include <sys/types.h>
13786 int8_t a; int16_t b; int32_t c; a = b = c = 1;
13791 if ac_fn_c_try_compile "$LINENO"; then :
13792 ac_cv_have_intxx_t="yes"
13794 ac_cv_have_intxx_t="no"
13797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
13801 $as_echo "$ac_cv_have_intxx_t" >&6; }
13802 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
13804 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13809 if (test -z "$have_intxx_t" && \
13810 test "x$ac_cv_header_stdint_h" = "xyes")
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
13813 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 #include <stdint.h>
13820 int8_t a; int16_t b; int32_t c; a = b = c = 1;
13825 if ac_fn_c_try_compile "$LINENO"; then :
13827 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13830 $as_echo "yes" >&6; }
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834 $as_echo "no" >&6; }
13837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
13841 $as_echo_n "checking for int64_t type... " >&6; }
13842 if ${ac_cv_have_int64_t+:} false; then :
13843 $as_echo_n "(cached) " >&6
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13849 #include <sys/types.h>
13850 #ifdef HAVE_STDINT_H
13851 # include <stdint.h>
13853 #include <sys/socket.h>
13854 #ifdef HAVE_SYS_BITYPES_H
13855 # include <sys/bitypes.h>
13868 if ac_fn_c_try_compile "$LINENO"; then :
13869 ac_cv_have_int64_t="yes"
13871 ac_cv_have_int64_t="no"
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
13878 $as_echo "$ac_cv_have_int64_t" >&6; }
13879 if test "x$ac_cv_have_int64_t" = "xyes" ; then
13881 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
13886 $as_echo_n "checking for u_intXX_t types... " >&6; }
13887 if ${ac_cv_have_u_intxx_t+:} false; then :
13888 $as_echo_n "(cached) " >&6
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13893 #include <sys/types.h>
13897 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903 ac_cv_have_u_intxx_t="yes"
13905 ac_cv_have_u_intxx_t="no"
13908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
13912 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
13913 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
13915 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
13920 if test -z "$have_u_intxx_t" ; then
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
13922 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13925 #include <sys/socket.h>
13929 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
13934 if ac_fn_c_try_compile "$LINENO"; then :
13936 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13939 $as_echo "yes" >&6; }
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 $as_echo "no" >&6; }
13946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
13950 $as_echo_n "checking for u_int64_t types... " >&6; }
13951 if ${ac_cv_have_u_int64_t+:} false; then :
13952 $as_echo_n "(cached) " >&6
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957 #include <sys/types.h>
13961 u_int64_t a; a = 1;
13966 if ac_fn_c_try_compile "$LINENO"; then :
13967 ac_cv_have_u_int64_t="yes"
13969 ac_cv_have_u_int64_t="no"
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
13976 $as_echo "$ac_cv_have_u_int64_t" >&6; }
13977 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
13979 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
13984 if (test -z "$have_u_int64_t" && \
13985 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
13988 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 #include <sys/bitypes.h>
14000 if ac_fn_c_try_compile "$LINENO"; then :
14002 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14005 $as_echo "yes" >&6; }
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14015 if test -z "$have_u_intxx_t" ; then
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
14017 $as_echo_n "checking for uintXX_t types... " >&6; }
14018 if ${ac_cv_have_uintxx_t+:} false; then :
14019 $as_echo_n "(cached) " >&6
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14025 #include <sys/types.h>
14040 if ac_fn_c_try_compile "$LINENO"; then :
14041 ac_cv_have_uintxx_t="yes"
14043 ac_cv_have_uintxx_t="no"
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
14050 $as_echo "$ac_cv_have_uintxx_t" >&6; }
14051 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14053 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14058 if (test -z "$have_uintxx_t" && \
14059 test "x$ac_cv_header_stdint_h" = "xyes")
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
14062 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065 #include <stdint.h>
14069 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14074 if ac_fn_c_try_compile "$LINENO"; then :
14076 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14079 $as_echo "yes" >&6; }
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 $as_echo "no" >&6; }
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 if (test -z "$have_uintxx_t" && \
14090 test "x$ac_cv_header_inttypes_h" = "xyes")
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5
14093 $as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; }
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14096 #include <inttypes.h>
14100 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14105 if ac_fn_c_try_compile "$LINENO"; then :
14107 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14110 $as_echo "yes" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14121 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14124 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14128 #include <sys/bitypes.h>
14134 int8_t a; int16_t b; int32_t c;
14135 u_int8_t e; u_int16_t f; u_int32_t g;
14136 a = b = c = e = f = g = 1;
14142 if ac_fn_c_try_compile "$LINENO"; then :
14144 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14146 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14149 $as_echo "yes" >&6; }
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14153 $as_echo "no" >&6; }
14156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
14161 $as_echo_n "checking for u_char... " >&6; }
14162 if ${ac_cv_have_u_char+:} false; then :
14163 $as_echo_n "(cached) " >&6
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14168 #include <sys/types.h>
14172 u_char foo; foo = 125;
14177 if ac_fn_c_try_compile "$LINENO"; then :
14178 ac_cv_have_u_char="yes"
14180 ac_cv_have_u_char="no"
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
14187 $as_echo "$ac_cv_have_u_char" >&6; }
14188 if test "x$ac_cv_have_u_char" = "xyes" ; then
14190 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
14194 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "
14195 #include <sys/types.h>
14196 #include <stdint.h>
14199 if test "x$ac_cv_type_intmax_t" = xyes; then :
14201 cat >>confdefs.h <<_ACEOF
14202 #define HAVE_INTMAX_T 1
14207 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
14208 #include <sys/types.h>
14209 #include <stdint.h>
14212 if test "x$ac_cv_type_uintmax_t" = xyes; then :
14214 cat >>confdefs.h <<_ACEOF
14215 #define HAVE_UINTMAX_T 1
14223 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
14224 #include <sys/socket.h>
14226 if test "x$ac_cv_type_socklen_t" = xyes; then :
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14231 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14232 if ${curl_cv_socklen_t_equiv+:} false; then :
14233 $as_echo_n "(cached) " >&6
14236 # Systems have either "struct sockaddr *" or
14237 # "void *" as the second argument to getpeername
14238 curl_cv_socklen_t_equiv=
14239 for arg2 in "struct sockaddr" void; do
14240 for t in int size_t unsigned long "unsigned long"; do
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14244 #include <sys/types.h>
14245 #include <sys/socket.h>
14247 int getpeername (int, $arg2 *, $t *);
14254 getpeername(0,0,&len);
14260 if ac_fn_c_try_compile "$LINENO"; then :
14262 curl_cv_socklen_t_equiv="$t"
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 if test "x$curl_cv_socklen_t_equiv" = x; then
14271 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
14277 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
14279 cat >>confdefs.h <<_ACEOF
14280 #define socklen_t $curl_cv_socklen_t_equiv
14287 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
14289 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
14291 cat >>confdefs.h <<_ACEOF
14292 #define HAVE_SIG_ATOMIC_T 1
14298 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
14299 #include <sys/types.h>
14300 #ifdef HAVE_SYS_BITYPES_H
14301 #include <sys/bitypes.h>
14303 #ifdef HAVE_SYS_STATFS_H
14304 #include <sys/statfs.h>
14306 #ifdef HAVE_SYS_STATVFS_H
14307 #include <sys/statvfs.h>
14311 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14313 cat >>confdefs.h <<_ACEOF
14314 #define HAVE_FSBLKCNT_T 1
14319 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
14320 #include <sys/types.h>
14321 #ifdef HAVE_SYS_BITYPES_H
14322 #include <sys/bitypes.h>
14324 #ifdef HAVE_SYS_STATFS_H
14325 #include <sys/statfs.h>
14327 #ifdef HAVE_SYS_STATVFS_H
14328 #include <sys/statvfs.h>
14332 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14334 cat >>confdefs.h <<_ACEOF
14335 #define HAVE_FSFILCNT_T 1
14342 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
14343 #include <netinet/in.h>
14345 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14347 cat >>confdefs.h <<_ACEOF
14348 #define HAVE_IN_ADDR_T 1
14353 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
14354 #include <netinet/in.h>
14356 if test "x$ac_cv_type_in_port_t" = xyes; then :
14358 cat >>confdefs.h <<_ACEOF
14359 #define HAVE_IN_PORT_T 1
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14367 $as_echo_n "checking for size_t... " >&6; }
14368 if ${ac_cv_have_size_t+:} false; then :
14369 $as_echo_n "(cached) " >&6
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14374 #include <sys/types.h>
14378 size_t foo; foo = 1235;
14383 if ac_fn_c_try_compile "$LINENO"; then :
14384 ac_cv_have_size_t="yes"
14386 ac_cv_have_size_t="no"
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
14393 $as_echo "$ac_cv_have_size_t" >&6; }
14394 if test "x$ac_cv_have_size_t" = "xyes" ; then
14396 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14401 $as_echo_n "checking for ssize_t... " >&6; }
14402 if ${ac_cv_have_ssize_t+:} false; then :
14403 $as_echo_n "(cached) " >&6
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14408 #include <sys/types.h>
14412 ssize_t foo; foo = 1235;
14417 if ac_fn_c_try_compile "$LINENO"; then :
14418 ac_cv_have_ssize_t="yes"
14420 ac_cv_have_ssize_t="no"
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
14427 $as_echo "$ac_cv_have_ssize_t" >&6; }
14428 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
14430 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
14435 $as_echo_n "checking for clock_t... " >&6; }
14436 if ${ac_cv_have_clock_t+:} false; then :
14437 $as_echo_n "(cached) " >&6
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14446 clock_t foo; foo = 1235;
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452 ac_cv_have_clock_t="yes"
14454 ac_cv_have_clock_t="no"
14457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
14461 $as_echo "$ac_cv_have_clock_t" >&6; }
14462 if test "x$ac_cv_have_clock_t" = "xyes" ; then
14464 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
14469 $as_echo_n "checking for sa_family_t... " >&6; }
14470 if ${ac_cv_have_sa_family_t+:} false; then :
14471 $as_echo_n "(cached) " >&6
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14477 #include <sys/types.h>
14478 #include <sys/socket.h>
14483 sa_family_t foo; foo = 1235;
14488 if ac_fn_c_try_compile "$LINENO"; then :
14489 ac_cv_have_sa_family_t="yes"
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14494 #include <sys/types.h>
14495 #include <sys/socket.h>
14496 #include <netinet/in.h>
14501 sa_family_t foo; foo = 1235;
14506 if ac_fn_c_try_compile "$LINENO"; then :
14507 ac_cv_have_sa_family_t="yes"
14509 ac_cv_have_sa_family_t="no"
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
14519 $as_echo "$ac_cv_have_sa_family_t" >&6; }
14520 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
14522 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
14527 $as_echo_n "checking for pid_t... " >&6; }
14528 if ${ac_cv_have_pid_t+:} false; then :
14529 $as_echo_n "(cached) " >&6
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14534 #include <sys/types.h>
14538 pid_t foo; foo = 1235;
14543 if ac_fn_c_try_compile "$LINENO"; then :
14544 ac_cv_have_pid_t="yes"
14546 ac_cv_have_pid_t="no"
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
14553 $as_echo "$ac_cv_have_pid_t" >&6; }
14554 if test "x$ac_cv_have_pid_t" = "xyes" ; then
14556 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
14561 $as_echo_n "checking for mode_t... " >&6; }
14562 if ${ac_cv_have_mode_t+:} false; then :
14563 $as_echo_n "(cached) " >&6
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 #include <sys/types.h>
14572 mode_t foo; foo = 1235;
14577 if ac_fn_c_try_compile "$LINENO"; then :
14578 ac_cv_have_mode_t="yes"
14580 ac_cv_have_mode_t="no"
14583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
14587 $as_echo "$ac_cv_have_mode_t" >&6; }
14588 if test "x$ac_cv_have_mode_t" = "xyes" ; then
14590 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
14596 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
14597 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
14598 $as_echo_n "(cached) " >&6
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14604 #include <sys/types.h>
14605 #include <sys/socket.h>
14610 struct sockaddr_storage s;
14615 if ac_fn_c_try_compile "$LINENO"; then :
14616 ac_cv_have_struct_sockaddr_storage="yes"
14618 ac_cv_have_struct_sockaddr_storage="no"
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
14625 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
14626 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
14628 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
14633 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
14634 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
14635 $as_echo_n "(cached) " >&6
14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14641 #include <sys/types.h>
14642 #include <netinet/in.h>
14647 struct sockaddr_in6 s; s.sin6_family = 0;
14652 if ac_fn_c_try_compile "$LINENO"; then :
14653 ac_cv_have_struct_sockaddr_in6="yes"
14655 ac_cv_have_struct_sockaddr_in6="no"
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
14662 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
14663 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
14665 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
14670 $as_echo_n "checking for struct in6_addr... " >&6; }
14671 if ${ac_cv_have_struct_in6_addr+:} false; then :
14672 $as_echo_n "(cached) " >&6
14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14678 #include <sys/types.h>
14679 #include <netinet/in.h>
14684 struct in6_addr s; s.s6_addr[0] = 0;
14689 if ac_fn_c_try_compile "$LINENO"; then :
14690 ac_cv_have_struct_in6_addr="yes"
14692 ac_cv_have_struct_in6_addr="no"
14695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
14699 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
14700 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
14702 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
14705 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
14706 #ifdef HAVE_SYS_TYPES_H
14707 #include <sys/types.h>
14709 #include <netinet/in.h>
14712 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14714 cat >>confdefs.h <<_ACEOF
14715 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
14724 $as_echo_n "checking for struct addrinfo... " >&6; }
14725 if ${ac_cv_have_struct_addrinfo+:} false; then :
14726 $as_echo_n "(cached) " >&6
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14732 #include <sys/types.h>
14733 #include <sys/socket.h>
14739 struct addrinfo s; s.ai_flags = AI_PASSIVE;
14744 if ac_fn_c_try_compile "$LINENO"; then :
14745 ac_cv_have_struct_addrinfo="yes"
14747 ac_cv_have_struct_addrinfo="no"
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
14754 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
14755 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
14757 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
14762 $as_echo_n "checking for struct timeval... " >&6; }
14763 if ${ac_cv_have_struct_timeval+:} false; then :
14764 $as_echo_n "(cached) " >&6
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14769 #include <sys/time.h>
14773 struct timeval tv; tv.tv_sec = 1;
14778 if ac_fn_c_try_compile "$LINENO"; then :
14779 ac_cv_have_struct_timeval="yes"
14781 ac_cv_have_struct_timeval="no"
14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
14788 $as_echo "$ac_cv_have_struct_timeval" >&6; }
14789 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
14791 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
14793 have_struct_timeval=1
14796 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
14797 if test "x$ac_cv_type_struct_timespec" = xyes; then :
14799 cat >>confdefs.h <<_ACEOF
14800 #define HAVE_STRUCT_TIMESPEC 1
14807 # We need int64_t or else certian parts of the compile will fail.
14808 if test "x$ac_cv_have_int64_t" = "xno" && \
14809 test "x$ac_cv_sizeof_long_int" != "x8" && \
14810 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
14811 echo "OpenSSH requires int64_t support. Contact your vendor or install"
14812 echo "an alternative compiler (I.E., GCC) before continuing."
14816 if test "$cross_compiling" = yes; then :
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
14818 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14825 #include <string.h>
14826 #ifdef HAVE_SNPRINTF
14830 char expected_out[50];
14832 #if (SIZEOF_LONG_INT == 8)
14833 long int num = 0x7fffffffffffffff;
14835 long long num = 0x7fffffffffffffffll;
14837 strcpy(expected_out, "9223372036854775807");
14838 snprintf(buf, mazsize, "%lld", num);
14839 if(strcmp(buf, expected_out) != 0)
14844 main() { exit(0); }
14848 if ac_fn_c_try_run "$LINENO"; then :
14851 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
14854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14855 conftest.$ac_objext conftest.beam conftest.$ac_ext
14861 # look for field 'ut_host' in header 'utmp.h'
14862 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14863 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
14865 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
14866 if eval \${$ossh_varname+:} false; then :
14867 $as_echo_n "(cached) " >&6
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14876 $EGREP "ut_host" >/dev/null 2>&1; then :
14877 eval "$ossh_varname=yes"
14879 eval "$ossh_varname=no"
14885 ossh_result=`eval 'echo $'"$ossh_varname"`
14886 if test -n "`echo $ossh_varname`"; then
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14888 $as_echo "$ossh_result" >&6; }
14889 if test "x$ossh_result" = "xyes"; then
14891 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 $as_echo "no" >&6; }
14900 # look for field 'ut_host' in header 'utmpx.h'
14901 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14902 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
14904 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
14905 if eval \${$ossh_varname+:} false; then :
14906 $as_echo_n "(cached) " >&6
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14915 $EGREP "ut_host" >/dev/null 2>&1; then :
14916 eval "$ossh_varname=yes"
14918 eval "$ossh_varname=no"
14924 ossh_result=`eval 'echo $'"$ossh_varname"`
14925 if test -n "`echo $ossh_varname`"; then
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14927 $as_echo "$ossh_result" >&6; }
14928 if test "x$ossh_result" = "xyes"; then
14930 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14935 $as_echo "no" >&6; }
14939 # look for field 'syslen' in header 'utmpx.h'
14940 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14941 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
14943 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
14944 if eval \${$ossh_varname+:} false; then :
14945 $as_echo_n "(cached) " >&6
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14954 $EGREP "syslen" >/dev/null 2>&1; then :
14955 eval "$ossh_varname=yes"
14957 eval "$ossh_varname=no"
14963 ossh_result=`eval 'echo $'"$ossh_varname"`
14964 if test -n "`echo $ossh_varname`"; then
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14966 $as_echo "$ossh_result" >&6; }
14967 if test "x$ossh_result" = "xyes"; then
14969 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14974 $as_echo "no" >&6; }
14978 # look for field 'ut_pid' in header 'utmp.h'
14979 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14980 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
14982 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
14983 if eval \${$ossh_varname+:} false; then :
14984 $as_echo_n "(cached) " >&6
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14993 $EGREP "ut_pid" >/dev/null 2>&1; then :
14994 eval "$ossh_varname=yes"
14996 eval "$ossh_varname=no"
15002 ossh_result=`eval 'echo $'"$ossh_varname"`
15003 if test -n "`echo $ossh_varname`"; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15005 $as_echo "$ossh_result" >&6; }
15006 if test "x$ossh_result" = "xyes"; then
15008 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013 $as_echo "no" >&6; }
15017 # look for field 'ut_type' in header 'utmp.h'
15018 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15019 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
15021 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
15022 if eval \${$ossh_varname+:} false; then :
15023 $as_echo_n "(cached) " >&6
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15032 $EGREP "ut_type" >/dev/null 2>&1; then :
15033 eval "$ossh_varname=yes"
15035 eval "$ossh_varname=no"
15041 ossh_result=`eval 'echo $'"$ossh_varname"`
15042 if test -n "`echo $ossh_varname`"; then
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15044 $as_echo "$ossh_result" >&6; }
15045 if test "x$ossh_result" = "xyes"; then
15047 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15052 $as_echo "no" >&6; }
15056 # look for field 'ut_type' in header 'utmpx.h'
15057 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15058 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
15060 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
15061 if eval \${$ossh_varname+:} false; then :
15062 $as_echo_n "(cached) " >&6
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15071 $EGREP "ut_type" >/dev/null 2>&1; then :
15072 eval "$ossh_varname=yes"
15074 eval "$ossh_varname=no"
15080 ossh_result=`eval 'echo $'"$ossh_varname"`
15081 if test -n "`echo $ossh_varname`"; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15083 $as_echo "$ossh_result" >&6; }
15084 if test "x$ossh_result" = "xyes"; then
15086 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15091 $as_echo "no" >&6; }
15095 # look for field 'ut_tv' in header 'utmp.h'
15096 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15097 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
15099 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
15100 if eval \${$ossh_varname+:} false; then :
15101 $as_echo_n "(cached) " >&6
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15110 $EGREP "ut_tv" >/dev/null 2>&1; then :
15111 eval "$ossh_varname=yes"
15113 eval "$ossh_varname=no"
15119 ossh_result=`eval 'echo $'"$ossh_varname"`
15120 if test -n "`echo $ossh_varname`"; then
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15122 $as_echo "$ossh_result" >&6; }
15123 if test "x$ossh_result" = "xyes"; then
15125 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15130 $as_echo "no" >&6; }
15134 # look for field 'ut_id' in header 'utmp.h'
15135 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15136 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
15138 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
15139 if eval \${$ossh_varname+:} false; then :
15140 $as_echo_n "(cached) " >&6
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15149 $EGREP "ut_id" >/dev/null 2>&1; then :
15150 eval "$ossh_varname=yes"
15152 eval "$ossh_varname=no"
15158 ossh_result=`eval 'echo $'"$ossh_varname"`
15159 if test -n "`echo $ossh_varname`"; then
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15161 $as_echo "$ossh_result" >&6; }
15162 if test "x$ossh_result" = "xyes"; then
15164 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15169 $as_echo "no" >&6; }
15173 # look for field 'ut_id' in header 'utmpx.h'
15174 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15175 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
15177 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
15178 if eval \${$ossh_varname+:} false; then :
15179 $as_echo_n "(cached) " >&6
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15188 $EGREP "ut_id" >/dev/null 2>&1; then :
15189 eval "$ossh_varname=yes"
15191 eval "$ossh_varname=no"
15197 ossh_result=`eval 'echo $'"$ossh_varname"`
15198 if test -n "`echo $ossh_varname`"; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15200 $as_echo "$ossh_result" >&6; }
15201 if test "x$ossh_result" = "xyes"; then
15203 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208 $as_echo "no" >&6; }
15212 # look for field 'ut_addr' in header 'utmp.h'
15213 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15214 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
15216 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
15217 if eval \${$ossh_varname+:} false; then :
15218 $as_echo_n "(cached) " >&6
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15227 $EGREP "ut_addr" >/dev/null 2>&1; then :
15228 eval "$ossh_varname=yes"
15230 eval "$ossh_varname=no"
15236 ossh_result=`eval 'echo $'"$ossh_varname"`
15237 if test -n "`echo $ossh_varname`"; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15239 $as_echo "$ossh_result" >&6; }
15240 if test "x$ossh_result" = "xyes"; then
15242 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247 $as_echo "no" >&6; }
15251 # look for field 'ut_addr' in header 'utmpx.h'
15252 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15253 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
15255 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
15256 if eval \${$ossh_varname+:} false; then :
15257 $as_echo_n "(cached) " >&6
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15266 $EGREP "ut_addr" >/dev/null 2>&1; then :
15267 eval "$ossh_varname=yes"
15269 eval "$ossh_varname=no"
15275 ossh_result=`eval 'echo $'"$ossh_varname"`
15276 if test -n "`echo $ossh_varname`"; then
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15278 $as_echo "$ossh_result" >&6; }
15279 if test "x$ossh_result" = "xyes"; then
15281 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15286 $as_echo "no" >&6; }
15290 # look for field 'ut_addr_v6' in header 'utmp.h'
15291 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15292 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
15294 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
15295 if eval \${$ossh_varname+:} false; then :
15296 $as_echo_n "(cached) " >&6
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15305 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
15306 eval "$ossh_varname=yes"
15308 eval "$ossh_varname=no"
15314 ossh_result=`eval 'echo $'"$ossh_varname"`
15315 if test -n "`echo $ossh_varname`"; then
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15317 $as_echo "$ossh_result" >&6; }
15318 if test "x$ossh_result" = "xyes"; then
15320 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 $as_echo "no" >&6; }
15329 # look for field 'ut_addr_v6' in header 'utmpx.h'
15330 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15331 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
15333 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
15334 if eval \${$ossh_varname+:} false; then :
15335 $as_echo_n "(cached) " >&6
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15344 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
15345 eval "$ossh_varname=yes"
15347 eval "$ossh_varname=no"
15353 ossh_result=`eval 'echo $'"$ossh_varname"`
15354 if test -n "`echo $ossh_varname`"; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15356 $as_echo "$ossh_result" >&6; }
15357 if test "x$ossh_result" = "xyes"; then
15359 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15364 $as_echo "no" >&6; }
15368 # look for field 'ut_exit' in header 'utmp.h'
15369 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15370 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
15372 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
15373 if eval \${$ossh_varname+:} false; then :
15374 $as_echo_n "(cached) " >&6
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15383 $EGREP "ut_exit" >/dev/null 2>&1; then :
15384 eval "$ossh_varname=yes"
15386 eval "$ossh_varname=no"
15392 ossh_result=`eval 'echo $'"$ossh_varname"`
15393 if test -n "`echo $ossh_varname`"; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15395 $as_echo "$ossh_result" >&6; }
15396 if test "x$ossh_result" = "xyes"; then
15398 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15407 # look for field 'ut_time' in header 'utmp.h'
15408 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15409 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
15411 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
15412 if eval \${$ossh_varname+:} false; then :
15413 $as_echo_n "(cached) " >&6
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15422 $EGREP "ut_time" >/dev/null 2>&1; then :
15423 eval "$ossh_varname=yes"
15425 eval "$ossh_varname=no"
15431 ossh_result=`eval 'echo $'"$ossh_varname"`
15432 if test -n "`echo $ossh_varname`"; then
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15434 $as_echo "$ossh_result" >&6; }
15435 if test "x$ossh_result" = "xyes"; then
15437 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15442 $as_echo "no" >&6; }
15446 # look for field 'ut_time' in header 'utmpx.h'
15447 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15448 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
15450 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
15451 if eval \${$ossh_varname+:} false; then :
15452 $as_echo_n "(cached) " >&6
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15461 $EGREP "ut_time" >/dev/null 2>&1; then :
15462 eval "$ossh_varname=yes"
15464 eval "$ossh_varname=no"
15470 ossh_result=`eval 'echo $'"$ossh_varname"`
15471 if test -n "`echo $ossh_varname`"; then
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15473 $as_echo "$ossh_result" >&6; }
15474 if test "x$ossh_result" = "xyes"; then
15476 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15481 $as_echo "no" >&6; }
15485 # look for field 'ut_tv' in header 'utmpx.h'
15486 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15487 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
15489 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
15490 if eval \${$ossh_varname+:} false; then :
15491 $as_echo_n "(cached) " >&6
15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h. */
15499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15500 $EGREP "ut_tv" >/dev/null 2>&1; then :
15501 eval "$ossh_varname=yes"
15503 eval "$ossh_varname=no"
15509 ossh_result=`eval 'echo $'"$ossh_varname"`
15510 if test -n "`echo $ossh_varname`"; then
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15512 $as_echo "$ossh_result" >&6; }
15513 if test "x$ossh_result" = "xyes"; then
15515 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520 $as_echo "no" >&6; }
15524 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
15525 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
15527 cat >>confdefs.h <<_ACEOF
15528 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15534 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
15535 #include <sys/types.h>
15539 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
15541 cat >>confdefs.h <<_ACEOF
15542 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
15547 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
15548 #include <sys/types.h>
15552 if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
15554 cat >>confdefs.h <<_ACEOF
15555 #define HAVE_STRUCT_PASSWD_PW_CLASS 1
15560 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
15561 #include <sys/types.h>
15565 if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
15567 cat >>confdefs.h <<_ACEOF
15568 #define HAVE_STRUCT_PASSWD_PW_CHANGE 1
15573 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
15574 #include <sys/types.h>
15578 if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
15580 cat >>confdefs.h <<_ACEOF
15581 #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
15588 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
15590 #if HAVE_SYS_TYPES_H
15591 # include <sys/types.h>
15593 #include <netinet/in.h>
15594 #include <arpa/nameser.h>
15595 #include <resolv.h>
15598 if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
15602 $as_echo "#define __res_state state" >>confdefs.h
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
15608 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
15609 if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
15610 $as_echo_n "(cached) " >&6
15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614 /* end confdefs.h. */
15616 #include <sys/types.h>
15617 #include <sys/socket.h>
15622 struct sockaddr_storage s; s.ss_family = 1;
15627 if ac_fn_c_try_compile "$LINENO"; then :
15628 ac_cv_have_ss_family_in_struct_ss="yes"
15630 ac_cv_have_ss_family_in_struct_ss="no"
15632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
15636 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
15637 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
15639 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
15644 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
15645 if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
15646 $as_echo_n "(cached) " >&6
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15652 #include <sys/types.h>
15653 #include <sys/socket.h>
15658 struct sockaddr_storage s; s.__ss_family = 1;
15663 if ac_fn_c_try_compile "$LINENO"; then :
15664 ac_cv_have___ss_family_in_struct_ss="yes"
15666 ac_cv_have___ss_family_in_struct_ss="no"
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
15673 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
15674 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
15676 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
15681 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
15682 if ${ac_cv_have_accrights_in_msghdr+:} false; then :
15683 $as_echo_n "(cached) " >&6
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15689 #include <sys/types.h>
15690 #include <sys/socket.h>
15691 #include <sys/uio.h>
15697 #ifdef msg_accrights
15698 #error "msg_accrights is a macro"
15702 m.msg_accrights = 0;
15709 if ac_fn_c_try_compile "$LINENO"; then :
15710 ac_cv_have_accrights_in_msghdr="yes"
15712 ac_cv_have_accrights_in_msghdr="no"
15715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
15719 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
15720 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
15722 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
15727 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15731 #include <sys/param.h>
15732 #include <sys/stat.h>
15733 #ifdef HAVE_SYS_TIME_H
15734 # include <sys/time.h>
15736 #ifdef HAVE_SYS_MOUNT_H
15737 #include <sys/mount.h>
15739 #ifdef HAVE_SYS_STATVFS_H
15740 #include <sys/statvfs.h>
15746 struct statvfs s; s.f_fsid = 0;
15751 if ac_fn_c_try_compile "$LINENO"; then :
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15753 $as_echo "yes" >&6; }
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15756 $as_echo "no" >&6; }
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
15759 $as_echo_n "checking if fsid_t has member val... " >&6; }
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15763 #include <sys/types.h>
15764 #include <sys/statvfs.h>
15769 fsid_t t; t.val[0] = 0;
15774 if ac_fn_c_try_compile "$LINENO"; then :
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15776 $as_echo "yes" >&6; }
15778 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15782 $as_echo "no" >&6; }
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
15787 $as_echo_n "checking if f_fsid has member __val... " >&6; }
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15791 #include <sys/types.h>
15792 #include <sys/statvfs.h>
15797 fsid_t t; t.__val[0] = 0;
15802 if ac_fn_c_try_compile "$LINENO"; then :
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15804 $as_echo "yes" >&6; }
15806 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15810 $as_echo "no" >&6; }
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
15818 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
15819 if ${ac_cv_have_control_in_msghdr+:} false; then :
15820 $as_echo_n "(cached) " >&6
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15826 #include <sys/types.h>
15827 #include <sys/socket.h>
15828 #include <sys/uio.h>
15835 #error "msg_control is a macro"
15846 if ac_fn_c_try_compile "$LINENO"; then :
15847 ac_cv_have_control_in_msghdr="yes"
15849 ac_cv_have_control_in_msghdr="no"
15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
15856 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
15857 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
15859 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
15864 $as_echo_n "checking if libc defines __progname... " >&6; }
15865 if ${ac_cv_libc_defines___progname+:} false; then :
15866 $as_echo_n "(cached) " >&6
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15875 extern char *__progname; printf("%s", __progname);
15880 if ac_fn_c_try_link "$LINENO"; then :
15881 ac_cv_libc_defines___progname="yes"
15883 ac_cv_libc_defines___progname="no"
15886 rm -f core conftest.err conftest.$ac_objext \
15887 conftest$ac_exeext conftest.$ac_ext
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
15891 $as_echo "$ac_cv_libc_defines___progname" >&6; }
15892 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
15894 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
15899 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
15900 if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
15901 $as_echo_n "(cached) " >&6
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15910 printf("%s", __FUNCTION__);
15915 if ac_fn_c_try_link "$LINENO"; then :
15916 ac_cv_cc_implements___FUNCTION__="yes"
15918 ac_cv_cc_implements___FUNCTION__="no"
15921 rm -f core conftest.err conftest.$ac_objext \
15922 conftest$ac_exeext conftest.$ac_ext
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
15926 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
15927 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
15929 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
15934 $as_echo_n "checking whether $CC implements __func__... " >&6; }
15935 if ${ac_cv_cc_implements___func__+:} false; then :
15936 $as_echo_n "(cached) " >&6
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15945 printf("%s", __func__);
15950 if ac_fn_c_try_link "$LINENO"; then :
15951 ac_cv_cc_implements___func__="yes"
15953 ac_cv_cc_implements___func__="no"
15956 rm -f core conftest.err conftest.$ac_objext \
15957 conftest$ac_exeext conftest.$ac_ext
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
15961 $as_echo "$ac_cv_cc_implements___func__" >&6; }
15962 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
15964 $as_echo "#define HAVE___func__ 1" >>confdefs.h
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
15969 $as_echo_n "checking whether va_copy exists... " >&6; }
15970 if ${ac_cv_have_va_copy+:} false; then :
15971 $as_echo_n "(cached) " >&6
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15977 #include <stdarg.h>
15988 if ac_fn_c_try_link "$LINENO"; then :
15989 ac_cv_have_va_copy="yes"
15991 ac_cv_have_va_copy="no"
15994 rm -f core conftest.err conftest.$ac_objext \
15995 conftest$ac_exeext conftest.$ac_ext
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
15999 $as_echo "$ac_cv_have_va_copy" >&6; }
16000 if test "x$ac_cv_have_va_copy" = "xyes" ; then
16002 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
16007 $as_echo_n "checking whether __va_copy exists... " >&6; }
16008 if ${ac_cv_have___va_copy+:} false; then :
16009 $as_echo_n "(cached) " >&6
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16015 #include <stdarg.h>
16026 if ac_fn_c_try_link "$LINENO"; then :
16027 ac_cv_have___va_copy="yes"
16029 ac_cv_have___va_copy="no"
16032 rm -f core conftest.err conftest.$ac_objext \
16033 conftest$ac_exeext conftest.$ac_ext
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
16037 $as_echo "$ac_cv_have___va_copy" >&6; }
16038 if test "x$ac_cv_have___va_copy" = "xyes" ; then
16040 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
16045 $as_echo_n "checking whether getopt has optreset support... " >&6; }
16046 if ${ac_cv_have_getopt_optreset+:} false; then :
16047 $as_echo_n "(cached) " >&6
16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h. */
16052 #include <getopt.h>
16056 extern int optreset; optreset = 0;
16061 if ac_fn_c_try_link "$LINENO"; then :
16062 ac_cv_have_getopt_optreset="yes"
16064 ac_cv_have_getopt_optreset="no"
16067 rm -f core conftest.err conftest.$ac_objext \
16068 conftest$ac_exeext conftest.$ac_ext
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
16072 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
16073 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
16075 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
16080 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
16081 if ${ac_cv_libc_defines_sys_errlist+:} false; then :
16082 $as_echo_n "(cached) " >&6
16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086 /* end confdefs.h. */
16091 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
16096 if ac_fn_c_try_link "$LINENO"; then :
16097 ac_cv_libc_defines_sys_errlist="yes"
16099 ac_cv_libc_defines_sys_errlist="no"
16102 rm -f core conftest.err conftest.$ac_objext \
16103 conftest$ac_exeext conftest.$ac_ext
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
16107 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
16108 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
16110 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
16116 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
16117 if ${ac_cv_libc_defines_sys_nerr+:} false; then :
16118 $as_echo_n "(cached) " >&6
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16127 extern int sys_nerr; printf("%i", sys_nerr);
16132 if ac_fn_c_try_link "$LINENO"; then :
16133 ac_cv_libc_defines_sys_nerr="yes"
16135 ac_cv_libc_defines_sys_nerr="no"
16138 rm -f core conftest.err conftest.$ac_objext \
16139 conftest$ac_exeext conftest.$ac_ext
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
16143 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
16144 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
16146 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
16150 # Check libraries needed by DNS fingerprint support
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
16152 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
16153 if ${ac_cv_search_getrrsetbyname+:} false; then :
16154 $as_echo_n "(cached) " >&6
16156 ac_func_search_save_LIBS=$LIBS
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16160 /* Override any GCC internal prototype to avoid an error.
16161 Use char because int might match the return type of a GCC
16162 builtin and then its argument prototype would still apply. */
16166 char getrrsetbyname ();
16170 return getrrsetbyname ();
16175 for ac_lib in '' resolv; do
16176 if test -z "$ac_lib"; then
16177 ac_res="none required"
16180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16182 if ac_fn_c_try_link "$LINENO"; then :
16183 ac_cv_search_getrrsetbyname=$ac_res
16185 rm -f core conftest.err conftest.$ac_objext \
16187 if ${ac_cv_search_getrrsetbyname+:} false; then :
16191 if ${ac_cv_search_getrrsetbyname+:} false; then :
16194 ac_cv_search_getrrsetbyname=no
16196 rm conftest.$ac_ext
16197 LIBS=$ac_func_search_save_LIBS
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
16200 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
16201 ac_res=$ac_cv_search_getrrsetbyname
16202 if test "$ac_res" != no; then :
16203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16205 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
16209 # Needed by our getrrsetbyname()
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
16211 $as_echo_n "checking for library containing res_query... " >&6; }
16212 if ${ac_cv_search_res_query+:} false; then :
16213 $as_echo_n "(cached) " >&6
16215 ac_func_search_save_LIBS=$LIBS
16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16219 /* Override any GCC internal prototype to avoid an error.
16220 Use char because int might match the return type of a GCC
16221 builtin and then its argument prototype would still apply. */
16229 return res_query ();
16234 for ac_lib in '' resolv; do
16235 if test -z "$ac_lib"; then
16236 ac_res="none required"
16239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16241 if ac_fn_c_try_link "$LINENO"; then :
16242 ac_cv_search_res_query=$ac_res
16244 rm -f core conftest.err conftest.$ac_objext \
16246 if ${ac_cv_search_res_query+:} false; then :
16250 if ${ac_cv_search_res_query+:} false; then :
16253 ac_cv_search_res_query=no
16255 rm conftest.$ac_ext
16256 LIBS=$ac_func_search_save_LIBS
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
16259 $as_echo "$ac_cv_search_res_query" >&6; }
16260 ac_res=$ac_cv_search_res_query
16261 if test "$ac_res" != no; then :
16262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
16267 $as_echo_n "checking for library containing dn_expand... " >&6; }
16268 if ${ac_cv_search_dn_expand+:} false; then :
16269 $as_echo_n "(cached) " >&6
16271 ac_func_search_save_LIBS=$LIBS
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16275 /* Override any GCC internal prototype to avoid an error.
16276 Use char because int might match the return type of a GCC
16277 builtin and then its argument prototype would still apply. */
16285 return dn_expand ();
16290 for ac_lib in '' resolv; do
16291 if test -z "$ac_lib"; then
16292 ac_res="none required"
16295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16297 if ac_fn_c_try_link "$LINENO"; then :
16298 ac_cv_search_dn_expand=$ac_res
16300 rm -f core conftest.err conftest.$ac_objext \
16302 if ${ac_cv_search_dn_expand+:} false; then :
16306 if ${ac_cv_search_dn_expand+:} false; then :
16309 ac_cv_search_dn_expand=no
16311 rm conftest.$ac_ext
16312 LIBS=$ac_func_search_save_LIBS
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
16315 $as_echo "$ac_cv_search_dn_expand" >&6; }
16316 ac_res=$ac_cv_search_dn_expand
16317 if test "$ac_res" != no; then :
16318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
16323 $as_echo_n "checking if res_query will link... " >&6; }
16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16327 #include <sys/types.h>
16328 #include <netinet/in.h>
16329 #include <arpa/nameser.h>
16331 #include <resolv.h>
16337 res_query (0, 0, 0, 0, 0);
16343 if ac_fn_c_try_link "$LINENO"; then :
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16345 $as_echo "yes" >&6; }
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16350 LIBS="$LIBS -lresolv"
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
16352 $as_echo_n "checking for res_query in -lresolv... " >&6; }
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16356 #include <sys/types.h>
16357 #include <netinet/in.h>
16358 #include <arpa/nameser.h>
16360 #include <resolv.h>
16366 res_query (0, 0, 0, 0, 0);
16372 if ac_fn_c_try_link "$LINENO"; then :
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16374 $as_echo "yes" >&6; }
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16378 $as_echo "no" >&6; }
16380 rm -f core conftest.err conftest.$ac_objext \
16381 conftest$ac_exeext conftest.$ac_ext
16384 rm -f core conftest.err conftest.$ac_objext \
16385 conftest$ac_exeext conftest.$ac_ext
16386 for ac_func in _getshort _getlong
16388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16389 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16390 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16391 cat >>confdefs.h <<_ACEOF
16392 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16398 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
16399 #include <arpa/nameser.h>
16401 if test "x$ac_cv_have_decl__getshort" = xyes; then :
16407 cat >>confdefs.h <<_ACEOF
16408 #define HAVE_DECL__GETSHORT $ac_have_decl
16410 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
16411 #include <arpa/nameser.h>
16413 if test "x$ac_cv_have_decl__getlong" = xyes; then :
16419 cat >>confdefs.h <<_ACEOF
16420 #define HAVE_DECL__GETLONG $ac_have_decl
16423 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
16425 if test "x$ac_cv_member_HEADER_ad" = xyes; then :
16427 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
16436 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16441 #if HAVE_SYS_TYPES_H
16442 # include <sys/types.h>
16444 #include <netinet/in.h>
16445 #include <arpa/nameser.h>
16446 #include <resolv.h>
16447 extern struct __res_state _res;
16457 if ac_fn_c_try_link "$LINENO"; then :
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16459 $as_echo "yes" >&6; }
16461 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16466 $as_echo "no" >&6; }
16469 rm -f core conftest.err conftest.$ac_objext \
16470 conftest$ac_exeext conftest.$ac_ext
16472 # Check whether user wants SELinux support
16476 # Check whether --with-selinux was given.
16477 if test "${with_selinux+set}" = set; then :
16478 withval=$with_selinux; if test "x$withval" != "xno" ; then
16481 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
16484 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
16485 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
16488 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
16493 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
16494 if ${ac_cv_lib_selinux_setexeccon+:} false; then :
16495 $as_echo_n "(cached) " >&6
16497 ac_check_lib_save_LIBS=$LIBS
16498 LIBS="-lselinux $LIBS"
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16502 /* Override any GCC internal prototype to avoid an error.
16503 Use char because int might match the return type of a GCC
16504 builtin and then its argument prototype would still apply. */
16508 char setexeccon ();
16512 return setexeccon ();
16517 if ac_fn_c_try_link "$LINENO"; then :
16518 ac_cv_lib_selinux_setexeccon=yes
16520 ac_cv_lib_selinux_setexeccon=no
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
16527 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
16528 if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
16529 LIBSELINUX="-lselinux"
16530 LIBS="$LIBS -lselinux"
16533 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
16536 SSHLIBS="$SSHLIBS $LIBSELINUX"
16537 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
16538 for ac_func in getseuserbyname get_default_context_with_level
16540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16541 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16542 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16543 cat >>confdefs.h <<_ACEOF
16544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16558 # Check whether user wants Kerberos 5 support
16561 # Check whether --with-kerberos5 was given.
16562 if test "${with_kerberos5+set}" = set; then :
16563 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
16564 if test "x$withval" = "xyes" ; then
16565 KRB5ROOT="/usr/local"
16567 KRB5ROOT=${withval}
16571 $as_echo "#define KRB5 1" >>confdefs.h
16575 # Extract the first word of "krb5-config", so it can be a program name with args.
16576 set dummy krb5-config; ac_word=$2
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16578 $as_echo_n "checking for $ac_word... " >&6; }
16579 if ${ac_cv_path_KRB5CONF+:} false; then :
16580 $as_echo_n "(cached) " >&6
16584 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
16587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16588 as_dummy="$KRB5ROOT/bin:$PATH"
16589 for as_dir in $as_dummy
16592 test -z "$as_dir" && as_dir=.
16593 for ac_exec_ext in '' $ac_executable_extensions; do
16594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16595 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
16596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16603 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
16607 KRB5CONF=$ac_cv_path_KRB5CONF
16608 if test -n "$KRB5CONF"; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
16610 $as_echo "$KRB5CONF" >&6; }
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16613 $as_echo "no" >&6; }
16617 if test -x $KRB5CONF ; then
16618 K5CFLAGS="`$KRB5CONF --cflags`"
16619 K5LIBS="`$KRB5CONF --libs`"
16620 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
16623 $as_echo_n "checking for gssapi support... " >&6; }
16624 if $KRB5CONF | grep gssapi >/dev/null ; then
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16626 $as_echo "yes" >&6; }
16628 $as_echo "#define GSSAPI 1" >>confdefs.h
16630 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
16631 GSSLIBS="`$KRB5CONF --libs gssapi`"
16632 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16635 $as_echo "no" >&6; }
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16638 $as_echo_n "checking whether we are using Heimdal... " >&6; }
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16646 char *tmp = heimdal_version;
16651 if ac_fn_c_try_compile "$LINENO"; then :
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16653 $as_echo "yes" >&6; }
16655 $as_echo "#define HEIMDAL 1" >>confdefs.h
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16659 $as_echo "no" >&6; }
16662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
16665 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16667 $as_echo_n "checking whether we are using Heimdal... " >&6; }
16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16675 char *tmp = heimdal_version;
16680 if ac_fn_c_try_compile "$LINENO"; then :
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16682 $as_echo "yes" >&6; }
16683 $as_echo "#define HEIMDAL 1" >>confdefs.h
16686 K5LIBS="$K5LIBS -lcom_err -lasn1"
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
16688 $as_echo_n "checking for net_write in -lroken... " >&6; }
16689 if ${ac_cv_lib_roken_net_write+:} false; then :
16690 $as_echo_n "(cached) " >&6
16692 ac_check_lib_save_LIBS=$LIBS
16693 LIBS="-lroken $LIBS"
16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16697 /* Override any GCC internal prototype to avoid an error.
16698 Use char because int might match the return type of a GCC
16699 builtin and then its argument prototype would still apply. */
16707 return net_write ();
16712 if ac_fn_c_try_link "$LINENO"; then :
16713 ac_cv_lib_roken_net_write=yes
16715 ac_cv_lib_roken_net_write=no
16717 rm -f core conftest.err conftest.$ac_objext \
16718 conftest$ac_exeext conftest.$ac_ext
16719 LIBS=$ac_check_lib_save_LIBS
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
16722 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
16723 if test "x$ac_cv_lib_roken_net_write" = xyes; then :
16724 K5LIBS="$K5LIBS -lroken"
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16728 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16729 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
16730 $as_echo_n "(cached) " >&6
16732 ac_check_lib_save_LIBS=$LIBS
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16737 /* Override any GCC internal prototype to avoid an error.
16738 Use char because int might match the return type of a GCC
16739 builtin and then its argument prototype would still apply. */
16743 char des_cbc_encrypt ();
16747 return des_cbc_encrypt ();
16752 if ac_fn_c_try_link "$LINENO"; then :
16753 ac_cv_lib_des_des_cbc_encrypt=yes
16755 ac_cv_lib_des_des_cbc_encrypt=no
16757 rm -f core conftest.err conftest.$ac_objext \
16758 conftest$ac_exeext conftest.$ac_ext
16759 LIBS=$ac_check_lib_save_LIBS
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16762 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16763 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
16764 K5LIBS="$K5LIBS -ldes"
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16770 $as_echo "no" >&6; }
16771 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
16777 $as_echo_n "checking for library containing dn_expand... " >&6; }
16778 if ${ac_cv_search_dn_expand+:} false; then :
16779 $as_echo_n "(cached) " >&6
16781 ac_func_search_save_LIBS=$LIBS
16782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783 /* end confdefs.h. */
16785 /* Override any GCC internal prototype to avoid an error.
16786 Use char because int might match the return type of a GCC
16787 builtin and then its argument prototype would still apply. */
16795 return dn_expand ();
16800 for ac_lib in '' resolv; do
16801 if test -z "$ac_lib"; then
16802 ac_res="none required"
16805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16807 if ac_fn_c_try_link "$LINENO"; then :
16808 ac_cv_search_dn_expand=$ac_res
16810 rm -f core conftest.err conftest.$ac_objext \
16812 if ${ac_cv_search_dn_expand+:} false; then :
16816 if ${ac_cv_search_dn_expand+:} false; then :
16819 ac_cv_search_dn_expand=no
16821 rm conftest.$ac_ext
16822 LIBS=$ac_func_search_save_LIBS
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
16825 $as_echo "$ac_cv_search_dn_expand" >&6; }
16826 ac_res=$ac_cv_search_dn_expand
16827 if test "$ac_res" != no; then :
16828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
16834 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
16835 if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
16836 $as_echo_n "(cached) " >&6
16838 ac_check_lib_save_LIBS=$LIBS
16839 LIBS="-lgssapi_krb5 $LIBS"
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16843 /* Override any GCC internal prototype to avoid an error.
16844 Use char because int might match the return type of a GCC
16845 builtin and then its argument prototype would still apply. */
16849 char gss_init_sec_context ();
16853 return gss_init_sec_context ();
16858 if ac_fn_c_try_link "$LINENO"; then :
16859 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
16861 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
16863 rm -f core conftest.err conftest.$ac_objext \
16864 conftest$ac_exeext conftest.$ac_ext
16865 LIBS=$ac_check_lib_save_LIBS
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
16868 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
16869 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
16870 $as_echo "#define GSSAPI 1" >>confdefs.h
16872 GSSLIBS="-lgssapi_krb5"
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
16875 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
16876 if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
16877 $as_echo_n "(cached) " >&6
16879 ac_check_lib_save_LIBS=$LIBS
16880 LIBS="-lgssapi $LIBS"
16881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882 /* end confdefs.h. */
16884 /* Override any GCC internal prototype to avoid an error.
16885 Use char because int might match the return type of a GCC
16886 builtin and then its argument prototype would still apply. */
16890 char gss_init_sec_context ();
16894 return gss_init_sec_context ();
16899 if ac_fn_c_try_link "$LINENO"; then :
16900 ac_cv_lib_gssapi_gss_init_sec_context=yes
16902 ac_cv_lib_gssapi_gss_init_sec_context=no
16904 rm -f core conftest.err conftest.$ac_objext \
16905 conftest$ac_exeext conftest.$ac_ext
16906 LIBS=$ac_check_lib_save_LIBS
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
16909 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
16910 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
16911 $as_echo "#define GSSAPI 1" >>confdefs.h
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
16916 $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
16917 if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
16918 $as_echo_n "(cached) " >&6
16920 ac_check_lib_save_LIBS=$LIBS
16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h. */
16925 /* Override any GCC internal prototype to avoid an error.
16926 Use char because int might match the return type of a GCC
16927 builtin and then its argument prototype would still apply. */
16931 char gss_init_sec_context ();
16935 return gss_init_sec_context ();
16940 if ac_fn_c_try_link "$LINENO"; then :
16941 ac_cv_lib_gss_gss_init_sec_context=yes
16943 ac_cv_lib_gss_gss_init_sec_context=no
16945 rm -f core conftest.err conftest.$ac_objext \
16946 conftest$ac_exeext conftest.$ac_ext
16947 LIBS=$ac_check_lib_save_LIBS
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
16950 $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
16951 if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
16952 $as_echo "#define GSSAPI 1" >>confdefs.h
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
16957 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
16967 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
16968 if test "x$ac_cv_header_gssapi_h" = xyes; then :
16971 unset ac_cv_header_gssapi_h
16972 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
16973 for ac_header in gssapi.h
16975 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
16976 if test "x$ac_cv_header_gssapi_h" = xyes; then :
16977 cat >>confdefs.h <<_ACEOF
16978 #define HAVE_GSSAPI_H 1
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
16983 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
16996 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
16997 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
16998 if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
17007 if test ! -z "$need_dash_r" ; then
17008 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
17010 if test ! -z "$blibpath" ; then
17011 blibpath="$blibpath:${KRB5ROOT}/lib"
17014 for ac_header in gssapi.h gssapi/gssapi.h
17016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17017 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17019 cat >>confdefs.h <<_ACEOF
17020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17027 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
17029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17030 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17031 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17032 cat >>confdefs.h <<_ACEOF
17033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17040 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
17042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17043 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17045 cat >>confdefs.h <<_ACEOF
17046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
17055 $as_echo_n "checking for library containing k_hasafs... " >&6; }
17056 if ${ac_cv_search_k_hasafs+:} false; then :
17057 $as_echo_n "(cached) " >&6
17059 ac_func_search_save_LIBS=$LIBS
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17063 /* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17073 return k_hasafs ();
17078 for ac_lib in '' kafs; do
17079 if test -z "$ac_lib"; then
17080 ac_res="none required"
17083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17085 if ac_fn_c_try_link "$LINENO"; then :
17086 ac_cv_search_k_hasafs=$ac_res
17088 rm -f core conftest.err conftest.$ac_objext \
17090 if ${ac_cv_search_k_hasafs+:} false; then :
17094 if ${ac_cv_search_k_hasafs+:} false; then :
17097 ac_cv_search_k_hasafs=no
17099 rm conftest.$ac_ext
17100 LIBS=$ac_func_search_save_LIBS
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
17103 $as_echo "$ac_cv_search_k_hasafs" >&6; }
17104 ac_res=$ac_cv_search_k_hasafs
17105 if test "$ac_res" != no; then :
17106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17108 $as_echo "#define USE_AFS 1" >>confdefs.h
17113 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
17114 #ifdef HAVE_GSSAPI_H
17115 # include <gssapi.h>
17116 #elif defined(HAVE_GSSAPI_GSSAPI_H)
17117 # include <gssapi/gssapi.h>
17120 #ifdef HAVE_GSSAPI_GENERIC_H
17121 # include <gssapi_generic.h>
17122 #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
17123 # include <gssapi/gssapi_generic.h>
17127 if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
17133 cat >>confdefs.h <<_ACEOF
17134 #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
17138 LIBS="$LIBS $K5LIBS"
17139 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
17141 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17142 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17143 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17144 cat >>confdefs.h <<_ACEOF
17145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17161 # Looking for programs, paths and files
17163 PRIVSEP_PATH=/var/empty
17165 # Check whether --with-privsep-path was given.
17166 if test "${with_privsep_path+set}" = set; then :
17167 withval=$with_privsep_path;
17168 if test -n "$withval" && test "x$withval" != "xno" && \
17169 test "x${withval}" != "xyes"; then
17170 PRIVSEP_PATH=$withval
17179 # Check whether --with-xauth was given.
17180 if test "${with_xauth+set}" = set; then :
17181 withval=$with_xauth;
17182 if test -n "$withval" && test "x$withval" != "xno" && \
17183 test "x${withval}" != "xyes"; then
17184 xauth_path=$withval
17190 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
17191 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
17192 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
17193 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
17194 # Extract the first word of "xauth", so it can be a program name with args.
17195 set dummy xauth; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17197 $as_echo_n "checking for $ac_word... " >&6; }
17198 if ${ac_cv_path_xauth_path+:} false; then :
17199 $as_echo_n "(cached) " >&6
17201 case $xauth_path in
17203 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
17206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17207 for as_dir in $TestPath
17210 test -z "$as_dir" && as_dir=.
17211 for ac_exec_ext in '' $ac_executable_extensions; do
17212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17213 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
17214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17224 xauth_path=$ac_cv_path_xauth_path
17225 if test -n "$xauth_path"; then
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
17227 $as_echo "$xauth_path" >&6; }
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17230 $as_echo "no" >&6; }
17234 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
17235 xauth_path="/usr/openwin/bin/xauth"
17243 # Check whether --enable-strip was given.
17244 if test "${enable_strip+set}" = set; then :
17245 enableval=$enable_strip;
17246 if test "x$enableval" = "xno" ; then
17255 if test -z "$xauth_path" ; then
17256 XAUTH_PATH="undefined"
17260 cat >>confdefs.h <<_ACEOF
17261 #define XAUTH_PATH "$xauth_path"
17264 XAUTH_PATH=$xauth_path
17268 # Check for mail directory
17270 # Check whether --with-maildir was given.
17271 if test "${with_maildir+set}" = set; then :
17272 withval=$with_maildir;
17273 if test "X$withval" != X && test "x$withval" != xno && \
17274 test "x${withval}" != xyes; then
17276 cat >>confdefs.h <<_ACEOF
17277 #define MAIL_DIRECTORY "$withval"
17284 if test "X$maildir" != "X"; then
17285 cat >>confdefs.h <<_ACEOF
17286 #define MAIL_DIRECTORY "$maildir"
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
17291 $as_echo_n "checking Discovering system mail directory... " >&6; }
17292 if test "$cross_compiling" = yes; then :
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
17295 $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17303 #include <string.h>
17304 #ifdef HAVE_PATHS_H
17307 #ifdef HAVE_MAILLOCK_H
17308 #include <maillock.h>
17310 #define DATA "conftest.maildir"
17319 fd = fopen(DATA,"w");
17323 #if defined (_PATH_MAILDIR)
17324 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
17326 #elif defined (MAILDIR)
17327 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
17329 #elif defined (_PATH_MAIL)
17330 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
17342 if ac_fn_c_try_run "$LINENO"; then :
17344 maildir_what=`awk -F: '{print $1}' conftest.maildir`
17345 maildir=`awk -F: '{print $2}' conftest.maildir \
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
17348 $as_echo "Using: $maildir from $maildir_what" >&6; }
17349 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
17350 cat >>confdefs.h <<_ACEOF
17351 #define MAIL_DIRECTORY "$maildir"
17358 if test "X$ac_status" = "X2";then
17359 # our test program didn't find it. Default to /var/spool/mail
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
17361 $as_echo "Using: default value of /var/spool/mail" >&6; }
17362 cat >>confdefs.h <<_ACEOF
17363 #define MAIL_DIRECTORY "/var/spool/mail"
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
17368 $as_echo "*** not found ***" >&6; }
17372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17373 conftest.$ac_objext conftest.beam conftest.$ac_ext
17382 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
17384 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
17385 disable_ptmx_check=yes
17387 if test -z "$no_dev_ptmx" ; then
17388 if test "x$disable_ptmx_check" != "xyes" ; then
17389 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
17391 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
17392 if eval \${$as_ac_File+:} false; then :
17393 $as_echo_n "(cached) " >&6
17395 test "$cross_compiling" = yes &&
17396 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17397 if test -r ""/dev/ptmx""; then
17398 eval "$as_ac_File=yes"
17400 eval "$as_ac_File=no"
17403 eval ac_res=\$$as_ac_File
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17405 $as_echo "$ac_res" >&6; }
17406 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17409 cat >>confdefs.h <<_ACEOF
17410 #define HAVE_DEV_PTMX 1
17421 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
17422 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
17424 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
17425 if eval \${$as_ac_File+:} false; then :
17426 $as_echo_n "(cached) " >&6
17428 test "$cross_compiling" = yes &&
17429 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17430 if test -r ""/dev/ptc""; then
17431 eval "$as_ac_File=yes"
17433 eval "$as_ac_File=no"
17436 eval ac_res=\$$as_ac_File
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17438 $as_echo "$ac_res" >&6; }
17439 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17442 cat >>confdefs.h <<_ACEOF
17443 #define HAVE_DEV_PTS_AND_PTC 1
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
17453 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
17456 # Options from here on. Some of these are preset by platform above
17458 # Check whether --with-mantype was given.
17459 if test "${with_mantype+set}" = set; then :
17460 withval=$with_mantype;
17466 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
17473 if test -z "$MANTYPE"; then
17474 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
17475 for ac_prog in nroff awf
17477 # Extract the first word of "$ac_prog", so it can be a program name with args.
17478 set dummy $ac_prog; ac_word=$2
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17480 $as_echo_n "checking for $ac_word... " >&6; }
17481 if ${ac_cv_path_NROFF+:} false; then :
17482 $as_echo_n "(cached) " >&6
17486 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
17489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17490 for as_dir in $TestPath
17493 test -z "$as_dir" && as_dir=.
17494 for ac_exec_ext in '' $ac_executable_extensions; do
17495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17496 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
17497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17507 NROFF=$ac_cv_path_NROFF
17508 if test -n "$NROFF"; then
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
17510 $as_echo "$NROFF" >&6; }
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17513 $as_echo "no" >&6; }
17517 test -n "$NROFF" && break
17519 test -n "$NROFF" || NROFF="/bin/false"
17521 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
17523 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
17530 if test "$MANTYPE" = "doc"; then
17533 mansubdir=$MANTYPE;
17537 # Check whether to enable MD5 passwords
17540 # Check whether --with-md5-passwords was given.
17541 if test "${with_md5_passwords+set}" = set; then :
17542 withval=$with_md5_passwords;
17543 if test "x$withval" != "xno" ; then
17545 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
17554 # Whether to disable shadow password support
17556 # Check whether --with-shadow was given.
17557 if test "${with_shadow+set}" = set; then :
17558 withval=$with_shadow;
17559 if test "x$withval" = "xno" ; then
17560 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
17569 if test -z "$disable_shadow" ; then
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
17571 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17575 #include <sys/types.h>
17576 #include <shadow.h>
17582 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
17587 if ac_fn_c_try_compile "$LINENO"; then :
17588 sp_expire_available=yes
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 if test "x$sp_expire_available" = "xyes" ; then
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17594 $as_echo "yes" >&6; }
17596 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17600 $as_echo "no" >&6; }
17604 # Use ip address instead of hostname in $DISPLAY
17605 if test ! -z "$IPADDR_IN_DISPLAY" ; then
17606 DISPLAY_HACK_MSG="yes"
17608 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
17611 DISPLAY_HACK_MSG="no"
17613 # Check whether --with-ipaddr-display was given.
17614 if test "${with_ipaddr_display+set}" = set; then :
17615 withval=$with_ipaddr_display;
17616 if test "x$withval" != "xno" ; then
17617 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
17619 DISPLAY_HACK_MSG="yes"
17627 # check for /etc/default/login and use it if present.
17628 # Check whether --enable-etc-default-login was given.
17629 if test "${enable_etc_default_login+set}" = set; then :
17630 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
17632 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
17633 etc_default_login=no
17635 etc_default_login=yes
17638 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
17641 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
17642 etc_default_login=no
17644 etc_default_login=yes
17650 if test "x$etc_default_login" != "xno"; then
17651 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
17653 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
17654 if eval \${$as_ac_File+:} false; then :
17655 $as_echo_n "(cached) " >&6
17657 test "$cross_compiling" = yes &&
17658 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17659 if test -r ""/etc/default/login""; then
17660 eval "$as_ac_File=yes"
17662 eval "$as_ac_File=no"
17665 eval ac_res=\$$as_ac_File
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17667 $as_echo "$ac_res" >&6; }
17668 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17669 external_path_file=/etc/default/login
17672 if test "x$external_path_file" = "x/etc/default/login"; then
17674 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
17679 if test $ac_cv_func_login_getcapbool = "yes" && \
17680 test $ac_cv_header_login_cap_h = "yes" ; then
17681 external_path_file=/etc/login.conf
17684 # Whether to mess with the default path
17685 SERVER_PATH_MSG="(default)"
17687 # Check whether --with-default-path was given.
17688 if test "${with_default_path+set}" = set; then :
17689 withval=$with_default_path;
17690 if test "x$external_path_file" = "x/etc/login.conf" ; then
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17692 --with-default-path=PATH has no effect on this system.
17693 Edit /etc/login.conf instead." >&5
17694 $as_echo "$as_me: WARNING:
17695 --with-default-path=PATH has no effect on this system.
17696 Edit /etc/login.conf instead." >&2;}
17697 elif test "x$withval" != "xno" ; then
17698 if test ! -z "$external_path_file" ; then
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17700 --with-default-path=PATH will only be used if PATH is not defined in
17701 $external_path_file ." >&5
17702 $as_echo "$as_me: WARNING:
17703 --with-default-path=PATH will only be used if PATH is not defined in
17704 $external_path_file ." >&2;}
17706 user_path="$withval"
17707 SERVER_PATH_MSG="$withval"
17711 if test "x$external_path_file" = "x/etc/login.conf" ; then
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
17713 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
17715 if test ! -z "$external_path_file" ; then
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17717 If PATH is defined in $external_path_file, ensure the path to scp is included,
17718 otherwise scp will not work." >&5
17719 $as_echo "$as_me: WARNING:
17720 If PATH is defined in $external_path_file, ensure the path to scp is included,
17721 otherwise scp will not work." >&2;}
17723 if test "$cross_compiling" = yes; then :
17724 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h. */
17730 /* find out what STDPATH is */
17732 #ifdef HAVE_PATHS_H
17733 # include <paths.h>
17735 #ifndef _PATH_STDPATH
17736 # ifdef _PATH_USERPATH /* Irix */
17737 # define _PATH_STDPATH _PATH_USERPATH
17739 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
17742 #include <sys/types.h>
17743 #include <sys/stat.h>
17745 #define DATA "conftest.stdpath"
17754 fd = fopen(DATA,"w");
17758 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
17767 if ac_fn_c_try_run "$LINENO"; then :
17768 user_path=`cat conftest.stdpath`
17770 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17773 conftest.$ac_objext conftest.beam conftest.$ac_ext
17776 # make sure $bindir is in USER_PATH so scp will work
17777 t_bindir="${bindir}"
17778 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
17779 t_bindir=`eval echo ${t_bindir}`
17781 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
17784 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
17787 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
17788 if test $? -ne 0 ; then
17789 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
17790 if test $? -ne 0 ; then
17791 user_path=$user_path:$t_bindir
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
17793 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
17800 if test "x$external_path_file" != "x/etc/login.conf" ; then
17802 cat >>confdefs.h <<_ACEOF
17803 #define USER_PATH "$user_path"
17809 # Set superuser path separately to user path
17811 # Check whether --with-superuser-path was given.
17812 if test "${with_superuser_path+set}" = set; then :
17813 withval=$with_superuser_path;
17814 if test -n "$withval" && test "x$withval" != "xno" && \
17815 test "x${withval}" != "xyes"; then
17817 cat >>confdefs.h <<_ACEOF
17818 #define SUPERUSER_PATH "$withval"
17821 superuser_path=$withval
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
17830 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
17831 IPV4_IN6_HACK_MSG="no"
17833 # Check whether --with-4in6 was given.
17834 if test "${with_4in6+set}" = set; then :
17835 withval=$with_4in6;
17836 if test "x$withval" != "xno" ; then
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17838 $as_echo "yes" >&6; }
17840 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
17842 IPV4_IN6_HACK_MSG="yes"
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17845 $as_echo "no" >&6; }
17850 if test "x$inet6_default_4in6" = "xyes"; then
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
17852 $as_echo "yes (default)" >&6; }
17853 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
17855 IPV4_IN6_HACK_MSG="yes"
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
17858 $as_echo "no (default)" >&6; }
17865 # Whether to enable BSD auth support
17868 # Check whether --with-bsd-auth was given.
17869 if test "${with_bsd_auth+set}" = set; then :
17870 withval=$with_bsd_auth;
17871 if test "x$withval" != "xno" ; then
17873 $as_echo "#define BSD_AUTH 1" >>confdefs.h
17882 # Where to place sshd.pid
17884 # make sure the directory exists
17885 if test ! -d $piddir ; then
17886 piddir=`eval echo ${sysconfdir}`
17888 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
17893 # Check whether --with-pid-dir was given.
17894 if test "${with_pid_dir+set}" = set; then :
17895 withval=$with_pid_dir;
17896 if test -n "$withval" && test "x$withval" != "xno" && \
17897 test "x${withval}" != "xyes"; then
17899 if test ! -d $piddir ; then
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
17901 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
17910 cat >>confdefs.h <<_ACEOF
17911 #define _PATH_SSH_PIDDIR "$piddir"
17916 # Check whether --enable-lastlog was given.
17917 if test "${enable_lastlog+set}" = set; then :
17918 enableval=$enable_lastlog;
17919 if test "x$enableval" = "xno" ; then
17920 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
17927 # Check whether --enable-utmp was given.
17928 if test "${enable_utmp+set}" = set; then :
17929 enableval=$enable_utmp;
17930 if test "x$enableval" = "xno" ; then
17931 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
17938 # Check whether --enable-utmpx was given.
17939 if test "${enable_utmpx+set}" = set; then :
17940 enableval=$enable_utmpx;
17941 if test "x$enableval" = "xno" ; then
17943 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
17950 # Check whether --enable-wtmp was given.
17951 if test "${enable_wtmp+set}" = set; then :
17952 enableval=$enable_wtmp;
17953 if test "x$enableval" = "xno" ; then
17954 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
17961 # Check whether --enable-wtmpx was given.
17962 if test "${enable_wtmpx+set}" = set; then :
17963 enableval=$enable_wtmpx;
17964 if test "x$enableval" = "xno" ; then
17966 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
17973 # Check whether --enable-libutil was given.
17974 if test "${enable_libutil+set}" = set; then :
17975 enableval=$enable_libutil;
17976 if test "x$enableval" = "xno" ; then
17977 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
17984 # Check whether --enable-pututline was given.
17985 if test "${enable_pututline+set}" = set; then :
17986 enableval=$enable_pututline;
17987 if test "x$enableval" = "xno" ; then
17989 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
17996 # Check whether --enable-pututxline was given.
17997 if test "${enable_pututxline+set}" = set; then :
17998 enableval=$enable_pututxline;
17999 if test "x$enableval" = "xno" ; then
18001 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
18009 # Check whether --with-lastlog was given.
18010 if test "${with_lastlog+set}" = set; then :
18011 withval=$with_lastlog;
18012 if test "x$withval" = "xno" ; then
18013 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18015 elif test -n "$withval" && test "x${withval}" != "xyes"; then
18016 conf_lastlog_location=$withval
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
18025 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
18026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18027 /* end confdefs.h. */
18029 #include <sys/types.h>
18031 #ifdef HAVE_LASTLOG_H
18032 # include <lastlog.h>
18034 #ifdef HAVE_PATHS_H
18035 # include <paths.h>
18037 #ifdef HAVE_LOGIN_H
18038 # include <login.h>
18044 char *lastlog = LASTLOG_FILE;
18049 if ac_fn_c_try_compile "$LINENO"; then :
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18051 $as_echo "yes" >&6; }
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18055 $as_echo "no" >&6; }
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
18057 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
18058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059 /* end confdefs.h. */
18061 #include <sys/types.h>
18063 #ifdef HAVE_LASTLOG_H
18064 # include <lastlog.h>
18066 #ifdef HAVE_PATHS_H
18067 # include <paths.h>
18073 char *lastlog = _PATH_LASTLOG;
18078 if ac_fn_c_try_compile "$LINENO"; then :
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18080 $as_echo "yes" >&6; }
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084 $as_echo "no" >&6; }
18085 system_lastlog_path=no
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18093 if test -z "$conf_lastlog_location"; then
18094 if test x"$system_lastlog_path" = x"no" ; then
18095 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
18096 if (test -d "$f" || test -f "$f") ; then
18097 conf_lastlog_location=$f
18100 if test -z "$conf_lastlog_location"; then
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
18102 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
18107 if test -n "$conf_lastlog_location"; then
18109 cat >>confdefs.h <<_ACEOF
18110 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
18116 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
18117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118 /* end confdefs.h. */
18120 #include <sys/types.h>
18122 #ifdef HAVE_PATHS_H
18123 # include <paths.h>
18129 char *utmp = UTMP_FILE;
18134 if ac_fn_c_try_compile "$LINENO"; then :
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18136 $as_echo "yes" >&6; }
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139 $as_echo "no" >&6; }
18140 system_utmp_path=no
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 if test -z "$conf_utmp_location"; then
18145 if test x"$system_utmp_path" = x"no" ; then
18146 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
18147 if test -f $f ; then
18148 conf_utmp_location=$f
18151 if test -z "$conf_utmp_location"; then
18152 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18157 if test -n "$conf_utmp_location"; then
18159 cat >>confdefs.h <<_ACEOF
18160 #define CONF_UTMP_FILE "$conf_utmp_location"
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
18166 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18170 #include <sys/types.h>
18172 #ifdef HAVE_PATHS_H
18173 # include <paths.h>
18179 char *wtmp = WTMP_FILE;
18184 if ac_fn_c_try_compile "$LINENO"; then :
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18186 $as_echo "yes" >&6; }
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189 $as_echo "no" >&6; }
18190 system_wtmp_path=no
18193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18194 if test -z "$conf_wtmp_location"; then
18195 if test x"$system_wtmp_path" = x"no" ; then
18196 for f in /usr/adm/wtmp /var/log/wtmp; do
18197 if test -f $f ; then
18198 conf_wtmp_location=$f
18201 if test -z "$conf_wtmp_location"; then
18202 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18207 if test -n "$conf_wtmp_location"; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define CONF_WTMP_FILE "$conf_wtmp_location"
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
18216 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
18217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18218 /* end confdefs.h. */
18220 #include <sys/types.h>
18222 #ifdef HAVE_UTMPX_H
18225 #ifdef HAVE_PATHS_H
18226 # include <paths.h>
18232 char *wtmpx = WTMPX_FILE;
18237 if ac_fn_c_try_compile "$LINENO"; then :
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18239 $as_echo "yes" >&6; }
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18242 $as_echo "no" >&6; }
18243 system_wtmpx_path=no
18246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18247 if test -z "$conf_wtmpx_location"; then
18248 if test x"$system_wtmpx_path" = x"no" ; then
18249 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
18254 cat >>confdefs.h <<_ACEOF
18255 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
18261 if test ! -z "$blibpath" ; then
18262 LDFLAGS="$LDFLAGS $blibflags$blibpath"
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
18264 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
18267 ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
18268 #ifdef HAVE_SYS_TYPES_H
18269 #include <sys/types.h>
18274 #ifdef HAVE_UTMPX_H
18277 #ifdef HAVE_LASTLOG_H
18278 #include <lastlog.h>
18282 if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
18286 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
18287 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18294 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
18295 #ifdef HAVE_SYS_TYPES_H
18296 #include <sys/types.h>
18301 #ifdef HAVE_UTMPX_H
18304 #ifdef HAVE_LASTLOG_H
18305 #include <lastlog.h>
18309 if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
18313 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18315 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18321 CFLAGS="$CFLAGS $werror_flags"
18323 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
18328 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
18329 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
18333 TEST_SSH_IPV6=$TEST_SSH_IPV6
18335 TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
18337 UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
18341 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
18343 cat >confcache <<\_ACEOF
18344 # This file is a shell script that caches the results of configure
18345 # tests run on this system so they can be shared between configure
18346 # scripts and configure runs, see configure's option --config-cache.
18347 # It is not useful on other systems. If it contains results you don't
18348 # want to keep, you may remove or edit it.
18350 # config.status only pays attention to the cache file if you give it
18351 # the --recheck option to rerun configure.
18353 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18354 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18355 # following values.
18359 # The following way of writing the cache mishandles newlines in values,
18360 # but we know of no workaround that is simple, portable, and efficient.
18361 # So, we kill variables containing newlines.
18362 # Ultrix sh set writes to stderr and can't be redirected directly,
18363 # and sets the high bit in the cache file unless we assign to the vars.
18365 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18366 eval ac_val=\$$ac_var
18370 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18371 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18374 _ | IFS | as_nl) ;; #(
18375 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18376 *) { eval $ac_var=; unset $ac_var;} ;;
18382 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18383 *${as_nl}ac_space=\ *)
18384 # `set' does not quote correctly, so add quotes: double-quote
18385 # substitution turns \\\\ into \\, and sed turns \\ into \.
18388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18391 # `set' quotes correctly as required by POSIX, so do not add quotes.
18392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18401 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18403 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18405 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18406 if test -w "$cache_file"; then
18407 if test "x$cache_file" != "x/dev/null"; then
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18409 $as_echo "$as_me: updating cache $cache_file" >&6;}
18410 if test ! -f "$cache_file" || test -h "$cache_file"; then
18411 cat confcache >"$cache_file"
18413 case $cache_file in #(
18415 mv -f confcache "$cache_file"$$ &&
18416 mv -f "$cache_file"$$ "$cache_file" ;; #(
18418 mv -f confcache "$cache_file" ;;
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18424 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18430 # Let make expand exec_prefix.
18431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18433 DEFS=-DHAVE_CONFIG_H
18438 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18439 # 1. Remove the extension, and $U if already installed.
18440 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18441 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18442 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18443 # will be set to the directory where LIBOBJS objects are built.
18444 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18445 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18447 LIBOBJS=$ac_libobjs
18449 LTLIBOBJS=$ac_ltlibobjs
18454 : "${CONFIG_STATUS=./config.status}"
18456 ac_clean_files_save=$ac_clean_files
18457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18459 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18461 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18463 # Generated by $as_me.
18464 # Run this file to recreate the current configuration.
18465 # Compiler output produced by configure, useful for debugging
18466 # configure, is in config.log if it exists.
18469 ac_cs_recheck=false
18472 SHELL=\${CONFIG_SHELL-$SHELL}
18475 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18476 ## -------------------- ##
18477 ## M4sh Initialization. ##
18478 ## -------------------- ##
18480 # Be more Bourne compatible
18481 DUALCASE=1; export DUALCASE # for MKS sh
18482 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18485 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18486 # is contrary to our usage. Disable this feature.
18487 alias -g '${1+"$@"}'='"$@"'
18488 setopt NO_GLOB_SUBST
18490 case `(set -o) 2>/dev/null` in #(
18502 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18503 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18504 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18505 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18506 # Prefer a ksh shell builtin over an external printf program on Solaris,
18507 # but without wasting forks for bash or zsh.
18508 if test -z "$BASH_VERSION$ZSH_VERSION" \
18509 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18510 as_echo='print -r --'
18511 as_echo_n='print -rn --'
18512 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18513 as_echo='printf %s\n'
18514 as_echo_n='printf %s'
18516 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18517 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18518 as_echo_n='/usr/ucb/echo -n'
18520 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18521 as_echo_n_body='eval
18525 expr "X$arg" : "X\\(.*\\)$as_nl";
18526 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18528 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18530 export as_echo_n_body
18531 as_echo_n='sh -c $as_echo_n_body as_echo'
18533 export as_echo_body
18534 as_echo='sh -c $as_echo_body as_echo'
18537 # The user is always right.
18538 if test "${PATH_SEPARATOR+set}" != set; then
18540 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18541 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18548 # We need space, tab and new line, in precisely that order. Quoting is
18549 # there to prevent editors from complaining about space-tab.
18550 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18551 # splitting by setting IFS to empty value.)
18554 # Find who we are. Look in the path if we contain no directory separator.
18557 *[\\/]* ) as_myself=$0 ;;
18558 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18559 for as_dir in $PATH
18562 test -z "$as_dir" && as_dir=.
18563 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18569 # We did not find ourselves, most probably we were run as `sh COMMAND'
18570 # in which case we are not to be found in the path.
18571 if test "x$as_myself" = x; then
18574 if test ! -f "$as_myself"; then
18575 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18579 # Unset variables that we do not need and which cause bugs (e.g. in
18580 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18581 # suppresses any "Segmentation fault" message there. '((' could
18582 # trigger a bug in pdksh 5.2.14.
18583 for as_var in BASH_ENV ENV MAIL MAILPATH
18584 do eval test x\${$as_var+set} = xset \
18585 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18601 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18602 # ----------------------------------------
18603 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18604 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18605 # script with STATUS, using 1 if that was 0.
18608 as_status=$1; test $as_status -eq 0 && as_status=1
18610 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18611 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18613 $as_echo "$as_me: error: $2" >&2
18614 as_fn_exit $as_status
18618 # as_fn_set_status STATUS
18619 # -----------------------
18620 # Set $? to STATUS, without forking.
18621 as_fn_set_status ()
18624 } # as_fn_set_status
18626 # as_fn_exit STATUS
18627 # -----------------
18628 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18632 as_fn_set_status $1
18638 # Portably unset VAR.
18641 { eval $1=; unset $1;}
18643 as_unset=as_fn_unset
18644 # as_fn_append VAR VALUE
18645 # ----------------------
18646 # Append the text in VALUE to the end of the definition contained in VAR. Take
18647 # advantage of any shell optimizations that allow amortized linear growth over
18648 # repeated appends, instead of the typical quadratic growth present in naive
18650 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18651 eval 'as_fn_append ()
18662 # as_fn_arith ARG...
18663 # ------------------
18664 # Perform arithmetic evaluation on the ARGs, and store the result in the
18665 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18666 # must be portable across $(()) and expr.
18667 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18668 eval 'as_fn_arith ()
18675 as_val=`expr "$@" || test $? -eq 1`
18680 if expr a : '\(a\)' >/dev/null 2>&1 &&
18681 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18687 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18688 as_basename=basename
18693 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18699 as_me=`$as_basename -- "$0" ||
18700 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18701 X"$0" : 'X\(//\)$' \| \
18702 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18704 sed '/^.*\/\([^/][^/]*\)\/*$/{
18718 # Avoid depending upon Character Ranges.
18719 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18720 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18721 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18722 as_cr_digits='0123456789'
18723 as_cr_alnum=$as_cr_Letters$as_cr_digits
18725 ECHO_C= ECHO_N= ECHO_T=
18726 case `echo -n x` in #(((((
18728 case `echo 'xy\c'` in
18729 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18731 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18738 rm -f conf$$ conf$$.exe conf$$.file
18739 if test -d conf$$.dir; then
18740 rm -f conf$$.dir/conf$$.file
18743 mkdir conf$$.dir 2>/dev/null
18745 if (echo >conf$$.file) 2>/dev/null; then
18746 if ln -s conf$$.file conf$$ 2>/dev/null; then
18748 # ... but there are two gotchas:
18749 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18750 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18751 # In both cases, we have to default to `cp -p'.
18752 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18754 elif ln conf$$.file conf$$ 2>/dev/null; then
18762 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18763 rmdir conf$$.dir 2>/dev/null
18768 # Create "$as_dir" as a directory, including parents if necessary.
18773 -*) as_dir=./$as_dir;;
18775 test -d "$as_dir" || eval $as_mkdir_p || {
18779 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18780 *) as_qdir=$as_dir;;
18782 as_dirs="'$as_qdir' $as_dirs"
18783 as_dir=`$as_dirname -- "$as_dir" ||
18784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18785 X"$as_dir" : 'X\(//\)[^/]' \| \
18786 X"$as_dir" : 'X\(//\)$' \| \
18787 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18788 $as_echo X"$as_dir" |
18789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18793 /^X\(\/\/\)[^/].*/{
18806 test -d "$as_dir" && break
18808 test -z "$as_dirs" || eval "mkdir $as_dirs"
18809 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18813 if mkdir -p . 2>/dev/null; then
18814 as_mkdir_p='mkdir -p "$as_dir"'
18816 test -d ./-p && rmdir ./-p
18820 if test -x / >/dev/null 2>&1; then
18821 as_test_x='test -x'
18823 if ls -dL / >/dev/null 2>&1; then
18830 if test -d "$1"; then
18836 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18837 ???[sx]*):;;*)false;;esac;fi
18841 as_executable_p=$as_test_x
18843 # Sed expression to map a string onto a valid CPP name.
18844 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18846 # Sed expression to map a string onto a valid variable name.
18847 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18851 ## ----------------------------------- ##
18852 ## Main body of $CONFIG_STATUS script. ##
18853 ## ----------------------------------- ##
18855 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18858 # Save the log message, to keep $0 and so on meaningful, and to
18859 # report actual input values of CONFIG_FILES etc. instead of their
18860 # values after options handling.
18862 This file was extended by OpenSSH $as_me Portable, which was
18863 generated by GNU Autoconf 2.68. Invocation command line was
18865 CONFIG_FILES = $CONFIG_FILES
18866 CONFIG_HEADERS = $CONFIG_HEADERS
18867 CONFIG_LINKS = $CONFIG_LINKS
18868 CONFIG_COMMANDS = $CONFIG_COMMANDS
18871 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18876 case $ac_config_files in *"
18877 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18880 case $ac_config_headers in *"
18881 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18886 # Files that config.status was made for.
18887 config_files="$ac_config_files"
18888 config_headers="$ac_config_headers"
18892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18894 \`$as_me' instantiates files and other configuration actions
18895 from templates according to the current configuration. Unless the files
18896 and actions are specified as TAGs, all are instantiated by default.
18898 Usage: $0 [OPTION]... [TAG]...
18900 -h, --help print this help, then exit
18901 -V, --version print version number and configuration settings, then exit
18902 --config print configuration, then exit
18903 -q, --quiet, --silent
18904 do not print progress messages
18905 -d, --debug don't remove temporary files
18906 --recheck update $as_me by reconfiguring in the same conditions
18907 --file=FILE[:TEMPLATE]
18908 instantiate the configuration file FILE
18909 --header=FILE[:TEMPLATE]
18910 instantiate the configuration header FILE
18912 Configuration files:
18915 Configuration headers:
18918 Report bugs to <openssh-unix-dev@mindrot.org>."
18921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18922 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18924 OpenSSH config.status Portable
18925 configured by $0, generated by GNU Autoconf 2.68,
18926 with options \\"\$ac_cs_config\\"
18928 Copyright (C) 2010 Free Software Foundation, Inc.
18929 This config.status script is free software; the Free Software Foundation
18930 gives unlimited permission to copy, distribute and modify it."
18936 test -n "\$AWK" || AWK=awk
18939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18940 # The default lists apply if the user does not specify any file.
18946 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18947 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18963 # Handling of the options.
18964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18967 $as_echo "$ac_cs_version"; exit ;;
18968 --config | --confi | --conf | --con | --co | --c )
18969 $as_echo "$ac_cs_config"; exit ;;
18970 --debug | --debu | --deb | --de | --d | -d )
18972 --file | --fil | --fi | --f )
18975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18976 '') as_fn_error $? "missing file argument" ;;
18978 as_fn_append CONFIG_FILES " '$ac_optarg'"
18979 ac_need_defaults=false;;
18980 --header | --heade | --head | --hea )
18983 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18985 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18986 ac_need_defaults=false;;
18988 # Conflict between --help and --header
18989 as_fn_error $? "ambiguous option: \`$1'
18990 Try \`$0 --help' for more information.";;
18991 --help | --hel | -h )
18992 $as_echo "$ac_cs_usage"; exit ;;
18993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18994 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18997 # This is an error.
18998 -*) as_fn_error $? "unrecognized option: \`$1'
18999 Try \`$0 --help' for more information." ;;
19001 *) as_fn_append ac_config_targets " $1"
19002 ac_need_defaults=false ;;
19008 ac_configure_extra_args=
19010 if $ac_cs_silent; then
19012 ac_configure_extra_args="$ac_configure_extra_args --silent"
19016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19017 if \$ac_cs_recheck; then
19018 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19020 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19021 CONFIG_SHELL='$SHELL'
19022 export CONFIG_SHELL
19027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19031 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19032 ## Running $as_me. ##
19038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19043 # Handling of arguments.
19044 for ac_config_target in $ac_config_targets
19046 case $ac_config_target in
19047 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19048 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19049 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
19050 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
19051 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
19052 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
19053 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
19054 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
19056 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19061 # If the user did not use the arguments to specify the items to instantiate,
19062 # then the envvar interface is used. Set only those that are not.
19063 # We use the long form for the default assignment because of an extremely
19064 # bizarre bug on SunOS 4.1.3.
19065 if $ac_need_defaults; then
19066 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19067 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19070 # Have a temporary directory for convenience. Make it in the build tree
19071 # simply because there is no reason against having it here, and in addition,
19072 # creating and moving files from /tmp can sometimes cause problems.
19073 # Hook for its removal unless debugging.
19074 # Note that there is a small window in which the directory will not be cleaned:
19075 # after its creation but before its name has been assigned to `$tmp'.
19079 trap 'exit_status=$?
19080 : "${ac_tmp:=$tmp}"
19081 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19083 trap 'as_fn_exit 1' 1 2 13 15
19085 # Create a (secure) tmp directory for tmp files.
19088 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19092 tmp=./conf$$-$RANDOM
19093 (umask 077 && mkdir "$tmp")
19094 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19097 # Set up the scripts for CONFIG_FILES section.
19098 # No need to generate them if there are no CONFIG_FILES.
19099 # This happens for instance with `./config.status config.h'.
19100 if test -n "$CONFIG_FILES"; then
19103 ac_cr=`echo X | tr X '\015'`
19104 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19105 # But we know of no other shell where ac_cr would be empty at this
19106 # point, so we can use a bashism as a fallback.
19107 if test "x$ac_cr" = x; then
19108 eval ac_cr=\$\'\\r\'
19110 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19111 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19114 ac_cs_awk_cr=$ac_cr
19117 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19122 echo "cat >conf$$subs.awk <<_ACEOF" &&
19123 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19125 } >conf$$subs.sh ||
19126 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19127 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19129 for ac_last_try in false false false false false :; do
19130 . ./conf$$subs.sh ||
19131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19133 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19134 if test $ac_delim_n = $ac_delim_num; then
19136 elif $ac_last_try; then
19137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19139 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19142 rm -f conf$$subs.sh
19144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19145 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19149 s/^/S["/; s/!.*/"]=/
19159 s/\(.\{148\}\)..*/\1/
19161 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19173 s/\(.\{148\}\)..*/\1/
19175 s/["\\]/\\&/g; s/^/"/; s/$/"/
19179 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19184 ' <conf$$subs.awk | sed '
19189 ' >>$CONFIG_STATUS || ac_write_fail=1
19190 rm -f conf$$subs.awk
19191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19193 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19194 for (key in S) S_is_set[key] = 1
19200 nfields = split(line, field, "@")
19202 len = length(field[1])
19203 for (i = 2; i < nfields; i++) {
19205 keylen = length(key)
19206 if (S_is_set[key]) {
19208 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19209 len += length(value) + length(field[++i])
19220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19221 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19222 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19225 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19226 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19229 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19230 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19231 # trailing colons and then remove the whole line if VPATH becomes empty
19232 # (actually we leave an empty line to preserve line numbers).
19233 if test "x$srcdir" = x.; then
19234 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19253 fi # test -n "$CONFIG_FILES"
19255 # Set up the scripts for CONFIG_HEADERS section.
19256 # No need to generate them if there are no CONFIG_HEADERS.
19257 # This happens for instance with `./config.status Makefile'.
19258 if test -n "$CONFIG_HEADERS"; then
19259 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19263 # Transform confdefs.h into an awk script `defines.awk', embedded as
19264 # here-document in config.status, that substitutes the proper values into
19265 # config.h.in to produce config.h.
19267 # Create a delimiter string that does not exist in confdefs.h, to ease
19268 # handling of long lines.
19270 for ac_last_try in false false :; do
19271 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19272 if test -z "$ac_tt"; then
19274 elif $ac_last_try; then
19275 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19277 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19281 # For the awk script, D is an array of macro values keyed by name,
19282 # likewise P contains macro parameters if any. Preserve backslash
19283 # newline sequences.
19285 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19287 s/.\{148\}/&'"$ac_delim"'/g
19290 s/^[ ]*#[ ]*define[ ][ ]*/ /
19297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19299 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19303 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19304 D["\1"]=" \3\\\\\\n"\\/p
19306 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19311 s/.\{148\}/&'"$ac_delim"'/g
19316 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19319 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19321 ' <confdefs.h | sed '
19322 s/'"$ac_delim"'/"\\\
19323 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19326 for (key in D) D_is_set[key] = 1
19329 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19331 split(line, arg, " ")
19332 if (arg[1] == "#") {
19336 defundef = substr(arg[1], 2)
19339 split(mac1, mac2, "(") #)
19341 prefix = substr(line, 1, index(line, defundef) - 1)
19342 if (D_is_set[macro]) {
19343 # Preserve the white space surrounding the "#".
19344 print prefix "define", macro P[macro] D[macro]
19347 # Replace #undef with comments. This is necessary, for example,
19348 # in the case of _POSIX_SOURCE, which is predefined and required
19349 # on some systems where configure will not decide to define it.
19350 if (defundef == "undef") {
19351 print "/*", prefix defundef, macro, "*/"
19359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19360 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19361 fi # test -n "$CONFIG_HEADERS"
19364 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19369 :[FHLC]) ac_mode=$ac_tag; continue;;
19371 case $ac_mode$ac_tag in
19373 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19374 :[FH]-) ac_tag=-:-;;
19375 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19392 -) ac_f="$ac_tmp/stdin";;
19393 *) # Look for the file first in the build tree, then in the source tree
19394 # (if the path is not absolute). The absolute path cannot be DOS-style,
19395 # because $ac_f cannot contain `:'.
19399 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19401 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19403 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19404 as_fn_append ac_file_inputs " '$ac_f'"
19407 # Let's still pretend it is `configure' which instantiates (i.e., don't
19408 # use $as_me), people would be surprised to read:
19409 # /* config.h. Generated by config.status. */
19410 configure_input='Generated from '`
19411 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19413 if test x"$ac_file" != x-; then
19414 configure_input="$ac_file. $configure_input"
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19416 $as_echo "$as_me: creating $ac_file" >&6;}
19418 # Neutralize special characters interpreted by sed in replacement strings.
19419 case $configure_input in #(
19420 *\&* | *\|* | *\\* )
19421 ac_sed_conf_input=`$as_echo "$configure_input" |
19422 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19423 *) ac_sed_conf_input=$configure_input;;
19427 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19433 ac_dir=`$as_dirname -- "$ac_file" ||
19434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19435 X"$ac_file" : 'X\(//\)[^/]' \| \
19436 X"$ac_file" : 'X\(//\)$' \| \
19437 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19438 $as_echo X"$ac_file" |
19439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19443 /^X\(\/\/\)[^/].*/{
19456 as_dir="$ac_dir"; as_fn_mkdir_p
19460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19463 # A ".." for each directory in $ac_dir_suffix.
19464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19465 case $ac_top_builddir_sub in
19466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19470 ac_abs_top_builddir=$ac_pwd
19471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19472 # for backward compatibility:
19473 ac_top_builddir=$ac_top_build_prefix
19476 .) # We are building in place.
19478 ac_top_srcdir=$ac_top_builddir_sub
19479 ac_abs_top_srcdir=$ac_pwd ;;
19480 [\\/]* | ?:[\\/]* ) # Absolute name.
19481 ac_srcdir=$srcdir$ac_dir_suffix;
19482 ac_top_srcdir=$srcdir
19483 ac_abs_top_srcdir=$srcdir ;;
19484 *) # Relative name.
19485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19486 ac_top_srcdir=$ac_top_build_prefix$srcdir
19487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19499 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19500 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19505 # If the template does not know about datarootdir, expand it.
19506 # FIXME: This hack should be removed a few years after 2.60.
19507 ac_datarootdir_hack=; ac_datarootdir_seen=
19518 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19519 *datarootdir*) ac_datarootdir_seen=yes;;
19520 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19522 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19525 ac_datarootdir_hack='
19526 s&@datadir@&$datadir&g
19527 s&@docdir@&$docdir&g
19528 s&@infodir@&$infodir&g
19529 s&@localedir@&$localedir&g
19530 s&@mandir@&$mandir&g
19531 s&\\\${datarootdir}&$datarootdir&g' ;;
19535 # Neutralize VPATH when `$srcdir' = `.'.
19536 # Shell code in configure.ac might set extrasub.
19537 # FIXME: do we really want to maintain this feature?
19538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19539 ac_sed_extra="$ac_vpsub
19542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19545 s|@configure_input@|$ac_sed_conf_input|;t t
19546 s&@top_builddir@&$ac_top_builddir_sub&;t t
19547 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19548 s&@srcdir@&$ac_srcdir&;t t
19549 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19550 s&@top_srcdir@&$ac_top_srcdir&;t t
19551 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19552 s&@builddir@&$ac_builddir&;t t
19553 s&@abs_builddir@&$ac_abs_builddir&;t t
19554 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19555 s&@INSTALL@&$ac_INSTALL&;t t
19556 $ac_datarootdir_hack
19558 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19559 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19562 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19563 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19564 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19566 which seems to be undefined. Please make sure it is defined" >&5
19567 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19568 which seems to be undefined. Please make sure it is defined" >&2;}
19570 rm -f "$ac_tmp/stdin"
19572 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19573 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19581 if test x"$ac_file" != x-; then
19583 $as_echo "/* $configure_input */" \
19584 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19585 } >"$ac_tmp/config.h" \
19586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19587 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19589 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19592 mv "$ac_tmp/config.h" "$ac_file" \
19593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19596 $as_echo "/* $configure_input */" \
19597 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19598 || as_fn_error $? "could not create -" "$LINENO" 5
19610 ac_clean_files=$ac_clean_files_save
19612 test $ac_write_fail = 0 ||
19613 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19616 # configure is writing to config.log, and then calls config.status.
19617 # config.status does its own redirection, appending to config.log.
19618 # Unfortunately, on DOS this fails, as config.log is still kept open
19619 # by configure, so config.status won't be able to write to it; its
19620 # output is simply discarded. So we exec the FD to /dev/null,
19621 # effectively closing config.log, so it can be properly (re)opened and
19622 # appended to by config.status. When coming back to configure, we
19623 # need to make the FD available again.
19624 if test "$no_create" != yes; then
19626 ac_config_status_args=
19627 test "$silent" = yes &&
19628 ac_config_status_args="$ac_config_status_args --quiet"
19630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19633 # would make configure fail if this is the last instruction.
19634 $ac_cs_success || as_fn_exit 1
19636 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19638 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19642 # Print summary of options
19644 # Someone please show me a better way :)
19645 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
19646 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
19647 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
19648 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
19649 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
19650 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
19651 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
19652 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
19653 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
19654 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
19657 echo "OpenSSH has been configured with the following options:"
19658 echo " User binaries: $B"
19659 echo " System binaries: $C"
19660 echo " Configuration files: $D"
19661 echo " Askpass program: $E"
19662 echo " Manual pages: $F"
19663 echo " PID file: $G"
19664 echo " Privilege separation chroot path: $H"
19665 if test "x$external_path_file" = "x/etc/login.conf" ; then
19666 echo " At runtime, sshd will use the path defined in $external_path_file"
19667 echo " Make sure the path to scp is present, otherwise scp will not work"
19669 echo " sshd default user PATH: $I"
19670 if test ! -z "$external_path_file"; then
19671 echo " (If PATH is set in $external_path_file it will be used instead. If"
19672 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
19675 if test ! -z "$superuser_path" ; then
19676 echo " sshd superuser user PATH: $J"
19678 echo " Manpage format: $MANTYPE"
19679 echo " PAM support: $PAM_MSG"
19680 echo " OSF SIA support: $SIA_MSG"
19681 echo " KerberosV support: $KRB5_MSG"
19682 echo " SELinux support: $SELINUX_MSG"
19683 echo " Smartcard support: $SCARD_MSG"
19684 echo " S/KEY support: $SKEY_MSG"
19685 echo " TCP Wrappers support: $TCPW_MSG"
19686 echo " MD5 password support: $MD5_MSG"
19687 echo " libedit support: $LIBEDIT_MSG"
19688 echo " Solaris process contract support: $SPC_MSG"
19689 echo " Solaris project support: $SP_MSG"
19690 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
19691 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
19692 echo " BSD Auth support: $BSD_AUTH_MSG"
19693 echo " Random number source: $RAND_MSG"
19694 echo " Privsep sandbox style: $SANDBOX_STYLE"
19698 echo " Host: ${host}"
19699 echo " Compiler: ${CC}"
19700 echo " Compiler flags: ${CFLAGS}"
19701 echo "Preprocessor flags: ${CPPFLAGS}"
19702 echo " Linker flags: ${LDFLAGS}"
19703 echo " Libraries: ${LIBS}"
19704 if test ! -z "${SSHDLIBS}"; then
19705 echo " +for sshd: ${SSHDLIBS}"
19707 if test ! -z "${SSHLIBS}"; then
19708 echo " +for ssh: ${SSHLIBS}"
19713 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
19714 echo "SVR4 style packages are supported with \"make package\""
19718 if test "x$PAM_MSG" = "xyes" ; then
19719 echo "PAM is enabled. You may need to install a PAM control file "
19720 echo "for sshd, otherwise password authentication may fail. "
19721 echo "Example PAM control files can be found in the contrib/ "
19722 echo "subdirectory"
19726 if test ! -z "$NO_PEERCHECK" ; then
19727 echo "WARNING: the operating system that you are using does not"
19728 echo "appear to support getpeereid(), getpeerucred() or the"
19729 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
19730 echo "enforce security checks to prevent unauthorised connections to"
19731 echo "ssh-agent. Their absence increases the risk that a malicious"
19732 echo "user can connect to your agent."
19736 if test "$AUDIT_MODULE" = "bsm" ; then
19737 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
19738 echo "See the Solaris section in README.platform for details."