2 # From configure.ac Revision: 1.536 .
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
721 with_solaris_contracts
722 with_solaris_projects
725 with_zlib_version_check
732 with_openssl_header_check
749 enable_etc_default_login
765 ac_precious_vars='build_alias
776 # Initialize some variables set by options.
778 ac_init_version=false
779 ac_unrecognized_opts=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
790 program_transform_name=s,x,x,
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 # Accept the important Cygnus configure options, so we can diagnose typos.
843 case $ac_dashdash$ac_option in
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
865 cache_file=config.cache ;;
867 -datadir | --datadir | --datadi | --datad)
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
879 -disable-* | --disable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
893 eval enable_$ac_useropt=no ;;
895 -docdir | --docdir | --docdi | --doc | --do)
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
919 eval enable_$ac_useropt=\$ac_optarg ;;
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
934 -help | --help | --hel | --he | -h)
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 htmldir=$ac_optarg ;;
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
964 -libdir | --libdir | --libdi | --libd)
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
976 -localedir | --localedir | --localedi | --localed | --locale)
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 # Obsolete; use --without-fp.
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1055 -psdir | --psdir | --psdi | --psd | --ps)
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 sbindir=$ac_optarg ;;
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 sharedstatedir=$ac_optarg ;;
1081 -site | --site | --sit)
1083 -site=* | --site=* | --sit=*)
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089 srcdir=$ac_optarg ;;
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096 sysconfdir=$ac_optarg ;;
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
1099 ac_prev=target_alias ;;
1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101 target_alias=$ac_optarg ;;
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval with_$ac_useropt=\$ac_optarg ;;
1125 -without-* | --without-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval with_$ac_useropt=no ;;
1142 # Obsolete; use --with-x.
1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146 | --x-incl | --x-inc | --x-in | --x-i)
1147 ac_prev=x_includes ;;
1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150 x_includes=$ac_optarg ;;
1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154 ac_prev=x_libraries ;;
1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157 x_libraries=$ac_optarg ;;
1159 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information"
1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
1166 case $ac_envvar in #(
1167 '' | [0-9]* | *[!_$as_cr_alnum]* )
1168 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 eval $ac_envvar=\$ac_optarg
1171 export $ac_envvar ;;
1174 # FIXME: should be removed in autoconf 3.0.
1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184 if test -n "$ac_prev"; then
1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186 as_fn_error $? "missing argument to $ac_option"
1189 if test -n "$ac_unrecognized_opts"; then
1190 case $enable_option_checking in
1192 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 # Check all directory arguments for consistency.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1203 eval ac_val=\$$ac_var
1204 # Remove trailing slashes.
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1210 # Be sure to have absolute directory names.
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used" >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --disable-largefile omit support for large files
1390 --disable-strip Disable calling strip(1) on install
1391 --disable-etc-default-login Disable using PATH from /etc/default/login no
1392 --disable-lastlog disable use of lastlog even if detected no
1393 --disable-utmp disable use of utmp even if detected no
1394 --disable-utmpx disable use of utmpx even if detected no
1395 --disable-wtmp disable use of wtmp even if detected no
1396 --disable-wtmpx disable use of wtmpx even if detected no
1397 --disable-libutil disable use of libutil (login() etc.) no
1398 --disable-pututline disable use of pututline() etc. (uwtmp) no
1399 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --without-stackprotect Don't use compiler's stack protection
1405 --without-rpath Disable auto-added -R linker paths
1406 --with-cflags Specify additional flags to pass to compiler
1407 --with-cppflags Specify additional flags to pass to preprocessor
1408 --with-ldflags Specify additional flags to pass to linker
1409 --with-libs Specify additional libraries to link with
1410 --with-Werror Build main code with -Werror
1411 --with-solaris-contracts Enable Solaris process contracts (experimental)
1412 --with-solaris-projects Enable Solaris projects (experimental)
1413 --with-osfsia Enable Digital Unix SIA
1414 --with-zlib=PATH Use zlib in PATH
1415 --without-zlib-version-check Disable zlib version check
1416 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1417 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1418 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1419 --with-libedit[=PATH] Enable libedit support for sftp
1420 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1421 --with-ssl-dir=PATH Specify path to OpenSSL installation
1422 --without-openssl-header-check Disable OpenSSL version consistency check
1423 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1424 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1425 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1426 --with-pam Enable PAM support
1427 --with-privsep-user=user Specify non-privileged user for privilege separation
1428 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter)
1429 --with-selinux Enable SELinux support
1430 --with-kerberos5=PATH Enable Kerberos 5 support
1431 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1432 --with-xauth=PATH Specify path to xauth program
1433 --with-maildir=/path/to/mail Specify your system mail directory
1434 --with-mantype=man|cat|doc Set man page type
1435 --with-md5-passwords Enable use of MD5 passwords
1436 --without-shadow Disable shadow password support
1437 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1438 --with-default-path= Specify default \$PATH environment for server
1439 --with-superuser-path= Specify different path for super-user
1440 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1441 --with-bsd-auth Enable BSD auth support
1442 --with-pid-dir=PATH Specify location of ssh.pid file
1443 --with-lastlog=FILE|DIR specify lastlog location common locations
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1458 Report bugs to <openssh-unix-dev@mindrot.org>.
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1488 .) # We are building in place.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1521 OpenSSH configure Portable
1522 generated by GNU Autoconf 2.68
1524 Copyright (C) 2010 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
1571 } # ac_fn_c_try_compile
1573 # ac_fn_c_try_run LINENO
1574 # ----------------------
1575 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1576 # that executables *can* be run.
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { { ac_try="$ac_link"
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_link") 2>&5
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1591 { { case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_try") 2>&5
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; }; }; then :
1603 $as_echo "$as_me: program exited with status $ac_status" >&5
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1607 ac_retval=$ac_status
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1669 if ac_fn_c_try_compile "$LINENO"; then :
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 } # ac_fn_c_check_header_compile
1683 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1684 # ---------------------------------------------
1685 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1687 ac_fn_c_check_decl ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 as_decl_name=`echo $2|sed 's/ *(.*//'`
1691 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1693 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1703 #ifndef $as_decl_name
1705 (void) $as_decl_use;
1707 (void) $as_decl_name;
1715 if ac_fn_c_try_compile "$LINENO"; then :
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 } # ac_fn_c_check_decl
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 $as_test_x conftest$ac_exeext
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1773 } # ac_fn_c_try_link
1775 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1778 # the include files in INCLUDES and setting the cache variable VAR
1780 ac_fn_c_check_header_mongrel ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if eval \${$3+:} false; then :
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1793 # Is the header compilable?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1795 $as_echo_n "checking $2 usability... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 ac_header_compiler=yes
1804 ac_header_compiler=no
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1808 $as_echo "$ac_header_compiler" >&6; }
1810 # Is the header present?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1812 $as_echo_n "checking $2 presence... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1817 if ac_fn_c_try_cpp "$LINENO"; then :
1818 ac_header_preproc=yes
1820 ac_header_preproc=no
1822 rm -f conftest.err conftest.i conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1824 $as_echo "$ac_header_preproc" >&6; }
1826 # So? What about this header?
1827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1830 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1836 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1838 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1840 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1842 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ( $as_echo "## ------------------------------------------- ##
1846 ## Report this to openssh-unix-dev@mindrot.org ##
1847 ## ------------------------------------------- ##"
1848 ) | sed "s/^/$as_me: WARNING: /" >&2
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1856 eval "$3=\$ac_header_compiler"
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 } # ac_fn_c_check_header_mongrel
1866 # ac_fn_c_check_func LINENO FUNC VAR
1867 # ----------------------------------
1868 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1869 ac_fn_c_check_func ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1881 #define $2 innocuous_$2
1883 /* System header to define __stub macros and hopefully few prototypes,
1884 which can conflict with char $2 (); below.
1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886 <limits.h> exists even on freestanding compilers. */
1889 # include <limits.h>
1891 # include <assert.h>
1896 /* Override any GCC internal prototype to avoid an error.
1897 Use char because int might match the return type of a GCC
1898 builtin and then its argument prototype would still apply. */
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined __stub_$2 || defined __stub___$2
1918 if ac_fn_c_try_link "$LINENO"; then :
1923 rm -f core conftest.err conftest.$ac_objext \
1924 conftest$ac_exeext conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_func
1933 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934 # -------------------------------------------
1935 # Tests whether TYPE exists after having included INCLUDES, setting cache
1936 # variable VAR accordingly.
1937 ac_fn_c_check_type ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1971 if ac_fn_c_try_compile "$LINENO"; then :
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 } # ac_fn_c_check_type
1987 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1988 # --------------------------------------------
1989 # Tries to find the compile-time value of EXPR in a program that includes
1990 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1992 ac_fn_c_compute_int ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if test "$cross_compiling" = yes; then
1996 # Depending upon the size, compute the lo and hi bounds.
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2003 static int test_array [1 - 2 * !(($2) >= 0)];
2010 if ac_fn_c_try_compile "$LINENO"; then :
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_hi=$ac_mid; break
2029 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2030 if test $ac_lo -le $ac_mid; then
2034 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2045 static int test_array [1 - 2 * !(($2) < 0)];
2052 if ac_fn_c_try_compile "$LINENO"; then :
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_lo=$ac_mid; break
2071 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072 if test $ac_mid -le $ac_hi; then
2076 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 # Binary search between lo and hi bounds.
2087 while test "x$ac_lo" != "x$ac_hi"; do
2088 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102 if ac_fn_c_try_compile "$LINENO"; then :
2105 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2117 static long int longval () { return $2; }
2118 static unsigned long int ulongval () { return $2; }
2125 FILE *f = fopen ("conftest.val", "w");
2130 long int i = longval ();
2133 fprintf (f, "%ld", i);
2137 unsigned long int i = ulongval ();
2140 fprintf (f, "%lu", i);
2142 /* Do not output a trailing newline, as this causes \r\n confusion
2143 on some platforms. */
2144 return ferror (f) || fclose (f) != 0;
2150 if ac_fn_c_try_run "$LINENO"; then :
2151 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2156 conftest.$ac_objext conftest.beam conftest.$ac_ext
2160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 as_fn_set_status $ac_retval
2163 } # ac_fn_c_compute_int
2165 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2166 # ----------------------------------------------------
2167 # Tries to find if the field MEMBER exists in type AGGR, after including
2168 # INCLUDES, setting cache variable VAR accordingly.
2169 ac_fn_c_check_member ()
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2173 $as_echo_n "checking for $2.$3... " >&6; }
2174 if eval \${$4+:} false; then :
2175 $as_echo_n "(cached) " >&6
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2190 if ac_fn_c_try_compile "$LINENO"; then :
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2200 if (sizeof ac_aggr.$3)
2206 if ac_fn_c_try_compile "$LINENO"; then :
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 } # ac_fn_c_check_member
2221 cat >config.log <<_ACEOF
2222 This file contains any messages produced by compilers while
2223 running configure, to aid debugging if configure makes a mistake.
2225 It was created by OpenSSH $as_me Portable, which was
2226 generated by GNU Autoconf 2.68. Invocation command line was
2238 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2239 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2240 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2241 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2242 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2244 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2245 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2247 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2248 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2249 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2250 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2251 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2252 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2253 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 $as_echo "PATH: $as_dir"
2278 # Keep a trace of the command line.
2279 # Strip out --no-create and --no-recursion so they do not pile up.
2280 # Strip out --silent because we don't want to record it for future runs.
2281 # Also quote any args containing shell meta-characters.
2282 # Make two passes to allow for proper duplicate-argument suppression.
2286 ac_must_keep_next=false
2292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2294 | -silent | --silent | --silen | --sile | --sil)
2297 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2302 as_fn_append ac_configure_args1 " '$ac_arg'"
2303 if test $ac_must_keep_next = true; then
2304 ac_must_keep_next=false # Got value, back to normal.
2307 *=* | --config-cache | -C | -disable-* | --disable-* \
2308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2310 | -with-* | --with-* | -without-* | --without-* | --x)
2311 case "$ac_configure_args0 " in
2312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2315 -* ) ac_must_keep_next=true ;;
2318 as_fn_append ac_configure_args " '$ac_arg'"
2323 { ac_configure_args0=; unset ac_configure_args0;}
2324 { ac_configure_args1=; unset ac_configure_args1;}
2326 # When interrupted or exit'd, cleanup temporary files, and complete
2327 # config.log. We remove comments because anyway the quotes in there
2328 # would cause problems or look ugly.
2329 # WARNING: Use '\'' to represent an apostrophe within the trap.
2330 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2331 trap 'exit_status=$?
2332 # Save into config.log some information that might help in debugging.
2336 $as_echo "## ---------------- ##
2337 ## Cache variables. ##
2338 ## ---------------- ##"
2340 # The following way of writing the cache mishandles newlines in values,
2342 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2343 eval ac_val=\$$ac_var
2347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2351 _ | IFS | as_nl) ;; #(
2352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2353 *) { eval $ac_var=; unset $ac_var;} ;;
2358 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2359 *${as_nl}ac_space=\ *)
2361 "s/'\''/'\''\\\\'\'''\''/g;
2362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2372 $as_echo "## ----------------- ##
2373 ## Output variables. ##
2374 ## ----------------- ##"
2376 for ac_var in $ac_subst_vars
2378 eval ac_val=\$$ac_var
2380 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2382 $as_echo "$ac_var='\''$ac_val'\''"
2386 if test -n "$ac_subst_files"; then
2387 $as_echo "## ------------------- ##
2388 ## File substitutions. ##
2389 ## ------------------- ##"
2391 for ac_var in $ac_subst_files
2393 eval ac_val=\$$ac_var
2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 $as_echo "$ac_var='\''$ac_val'\''"
2402 if test -s confdefs.h; then
2403 $as_echo "## ----------- ##
2410 test "$ac_signal" != 0 &&
2411 $as_echo "$as_me: caught signal $ac_signal"
2412 $as_echo "$as_me: exit $exit_status"
2414 rm -f core *.core core.conftest.* &&
2415 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418 for ac_signal in 1 2 13 15; do
2419 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2423 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2424 rm -f -r conftest* confdefs.h
2426 $as_echo "/* confdefs.h */" > confdefs.h
2428 # Predefined preprocessor variables.
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_NAME "$PACKAGE_NAME"
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_STRING "$PACKAGE_STRING"
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_URL "$PACKAGE_URL"
2455 # Let the site file select an alternate cache file if it wants to.
2456 # Prefer an explicitly selected file to automatically selected ones.
2459 if test -n "$CONFIG_SITE"; then
2460 # We do not want a PATH search for config.site.
2461 case $CONFIG_SITE in #((
2462 -*) ac_site_file1=./$CONFIG_SITE;;
2463 */*) ac_site_file1=$CONFIG_SITE;;
2464 *) ac_site_file1=./$CONFIG_SITE;;
2466 elif test "x$prefix" != xNONE; then
2467 ac_site_file1=$prefix/share/config.site
2468 ac_site_file2=$prefix/etc/config.site
2470 ac_site_file1=$ac_default_prefix/share/config.site
2471 ac_site_file2=$ac_default_prefix/etc/config.site
2473 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2475 test "x$ac_site_file" = xNONE && continue
2476 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2478 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2479 sed 's/^/| /' "$ac_site_file" >&5
2481 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483 as_fn_error $? "failed to load site script $ac_site_file
2484 See \`config.log' for more details" "$LINENO" 5; }
2488 if test -r "$cache_file"; then
2489 # Some versions of bash will fail to source /dev/null (special files
2490 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2491 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2493 $as_echo "$as_me: loading cache $cache_file" >&6;}
2495 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2496 *) . "./$cache_file";;
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2501 $as_echo "$as_me: creating cache $cache_file" >&6;}
2505 # Check that the precious variables saved in the cache have kept the same
2507 ac_cache_corrupted=false
2508 for ac_var in $ac_precious_vars; do
2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510 eval ac_new_set=\$ac_env_${ac_var}_set
2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512 eval ac_new_val=\$ac_env_${ac_var}_value
2513 case $ac_old_set,$ac_new_set in
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2524 if test "x$ac_old_val" != "x$ac_new_val"; then
2525 # differences in whitespace do not lead to failure.
2526 ac_old_val_w=`echo x $ac_old_val`
2527 ac_new_val_w=`echo x $ac_new_val`
2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531 ac_cache_corrupted=:
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535 eval $ac_var=\$ac_old_val
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2543 # Pass precious variables to config.status.
2544 if test "$ac_new_set" = set; then
2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 *) ac_arg=$ac_var=$ac_new_val ;;
2549 case " $ac_configure_args " in
2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2555 if $ac_cache_corrupted; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2562 ## -------------------- ##
2563 ## Main body of script. ##
2564 ## -------------------- ##
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 ac_config_headers="$ac_config_headers config.h"
2585 ac_cpp='$CPP $CPPFLAGS'
2586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589 if test -n "$ac_tool_prefix"; then
2590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2591 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if ${ac_cv_prog_CC+:} false; then :
2595 $as_echo_n "(cached) " >&6
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 if test -n "$CC"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2620 $as_echo "$CC" >&6; }
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2628 if test -z "$ac_cv_prog_CC"; then
2630 # Extract the first word of "gcc", so it can be a program name with args.
2631 set dummy gcc; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 if test -n "$ac_ct_CC"; then
2638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_ac_ct_CC="gcc"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2658 if test -n "$ac_ct_CC"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2660 $as_echo "$ac_ct_CC" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2666 if test "x$ac_ct_CC" = x; then
2669 case $cross_compiling:$ac_tool_warned in
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2673 ac_tool_warned=yes ;;
2681 if test -z "$CC"; then
2682 if test -n "$ac_tool_prefix"; then
2683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2684 set dummy ${ac_tool_prefix}cc; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_CC+:} false; then :
2688 $as_echo_n "(cached) " >&6
2690 if test -n "$CC"; then
2691 ac_cv_prog_CC="$CC" # Let the user override the test.
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_CC="${ac_tool_prefix}cc"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 if test -n "$CC"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2713 $as_echo "$CC" >&6; }
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2722 if test -z "$CC"; then
2723 # Extract the first word of "cc", so it can be a program name with args.
2724 set dummy cc; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if ${ac_cv_prog_CC+:} false; then :
2728 $as_echo_n "(cached) " >&6
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2742 ac_prog_rejected=yes
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 if test $ac_prog_rejected = yes; then
2754 # We found a bogon in the path, so make sure we never use it.
2755 set dummy $ac_cv_prog_CC
2757 if test $# != 0; then
2758 # We chose a different compiler from the bogus one.
2759 # However, it has the same basename, so the bogon will be chosen
2760 # first if we set CC to just the basename; use the full file name.
2762 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2768 if test -n "$CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2770 $as_echo "$CC" >&6; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 for ac_prog in cl.exe
2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if ${ac_cv_prog_CC+:} false; then :
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2819 test -n "$CC" && break
2822 if test -z "$CC"; then
2824 for ac_prog in cl.exe
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827 set dummy $ac_prog; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2831 $as_echo_n "(cached) " >&6
2833 if test -n "$ac_ct_CC"; then
2834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_ac_ct_CC="$ac_prog"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2854 if test -n "$ac_ct_CC"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2856 $as_echo "$ac_ct_CC" >&6; }
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2863 test -n "$ac_ct_CC" && break
2866 if test "x$ac_ct_CC" = x; then
2869 case $cross_compiling:$ac_tool_warned in
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873 ac_tool_warned=yes ;;
2882 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2884 as_fn_error $? "no acceptable C compiler found in \$PATH
2885 See \`config.log' for more details" "$LINENO" 5; }
2887 # Provide some information about the compiler.
2888 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2891 for ac_option in --version -v -V -qversion; do
2892 { { ac_try="$ac_compiler $ac_option >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2898 $as_echo "$ac_try_echo"; } >&5
2899 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2901 if test -s conftest.err; then
2903 ... rest of stderr output deleted ...
2904 10q' conftest.err >conftest.er1
2905 cat conftest.er1 >&5
2907 rm -f conftest.er1 conftest.err
2908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2909 test $ac_status = 0; }
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h. */
2923 ac_clean_files_save=$ac_clean_files
2924 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2925 # Try to create an executable without -o first, disregard a.out.
2926 # It will help us diagnose broken compilers, and finding out an intuition
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2929 $as_echo_n "checking whether the C compiler works... " >&6; }
2930 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2932 # The possible output files:
2933 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2936 for ac_file in $ac_files
2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2940 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2945 if { { ac_try="$ac_link_default"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_link_default") 2>&5
2954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955 test $ac_status = 0; }; then :
2956 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2957 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2958 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2959 # so that the user can short-circuit this test for compilers unknown to
2961 for ac_file in $ac_files ''
2963 test -f "$ac_file" || continue
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2968 # We found the default executable, but exeext='' is most
2972 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2976 # We set ac_cv_exeext here because the later test for it is not
2977 # safe: cross compilers may not add the suffix if given an `-o'
2978 # argument, so we may need to know it at that point already.
2979 # Even if this section looks crufty: it has the advantage of
2986 test "$ac_cv_exeext" = no && ac_cv_exeext=
2991 if test -z "$ac_file"; then :
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 $as_echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error 77 "C compiler cannot create executables
3000 See \`config.log' for more details" "$LINENO" 5; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003 $as_echo "yes" >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3006 $as_echo_n "checking for C compiler default output file name... " >&6; }
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3008 $as_echo "$ac_file" >&6; }
3009 ac_exeext=$ac_cv_exeext
3011 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3012 ac_clean_files=$ac_clean_files_save
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3014 $as_echo_n "checking for suffix of executables... " >&6; }
3015 if { { ac_try="$ac_link"
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021 $as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_link") 2>&5
3024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025 test $ac_status = 0; }; then :
3026 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3027 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3028 # work properly (i.e., refer to `conftest.exe'), while it won't with
3030 for ac_file in conftest.exe conftest conftest.*; do
3031 test -f "$ac_file" || continue
3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3034 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3043 See \`config.log' for more details" "$LINENO" 5; }
3045 rm -f conftest conftest$ac_cv_exeext
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3047 $as_echo "$ac_cv_exeext" >&6; }
3049 rm -f conftest.$ac_ext
3050 EXEEXT=$ac_cv_exeext
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3058 FILE *f = fopen ("conftest.out", "w");
3059 return ferror (f) || fclose (f) != 0;
3065 ac_clean_files="$ac_clean_files conftest.out"
3066 # Check that the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3069 $as_echo_n "checking whether we are cross compiling... " >&6; }
3070 if test "$cross_compiling" != yes; then
3071 { { ac_try="$ac_link"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_link") 2>&5
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }
3082 if { ac_try='./conftest$ac_cv_exeext'
3083 { { case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_try") 2>&5
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }; }; then
3095 if test "$cross_compiling" = maybe; then
3098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100 as_fn_error $? "cannot run C compiled programs.
3101 If you meant to cross compile, use \`--host'.
3102 See \`config.log' for more details" "$LINENO" 5; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3107 $as_echo "$cross_compiling" >&6; }
3109 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3110 ac_clean_files=$ac_clean_files_save
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3112 $as_echo_n "checking for suffix of object files... " >&6; }
3113 if ${ac_cv_objext+:} false; then :
3114 $as_echo_n "(cached) " >&6
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3127 rm -f conftest.o conftest.obj
3128 if { { ac_try="$ac_compile"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134 $as_echo "$ac_try_echo"; } >&5
3135 (eval "$ac_compile") 2>&5
3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138 test $ac_status = 0; }; then :
3139 for ac_file in conftest.o conftest.obj conftest.*; do
3140 test -f "$ac_file" || continue;
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error $? "cannot compute suffix of object files: cannot compile
3154 See \`config.log' for more details" "$LINENO" 5; }
3156 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3159 $as_echo "$ac_cv_objext" >&6; }
3160 OBJEXT=$ac_cv_objext
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3163 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3164 if ${ac_cv_c_compiler_gnu+:} false; then :
3165 $as_echo_n "(cached) " >&6
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3181 if ac_fn_c_try_compile "$LINENO"; then :
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3191 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3192 if test $ac_compiler_gnu = yes; then
3197 ac_test_CFLAGS=${CFLAGS+set}
3198 ac_save_CFLAGS=$CFLAGS
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3200 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3201 if ${ac_cv_prog_cc_g+:} false; then :
3202 $as_echo_n "(cached) " >&6
3204 ac_save_c_werror_flag=$ac_c_werror_flag
3205 ac_c_werror_flag=yes
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3219 if ac_fn_c_try_compile "$LINENO"; then :
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3234 if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_c_werror_flag=$ac_save_c_werror_flag
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3250 if ac_fn_c_try_compile "$LINENO"; then :
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 ac_c_werror_flag=$ac_save_c_werror_flag
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3261 $as_echo "$ac_cv_prog_cc_g" >&6; }
3262 if test "$ac_test_CFLAGS" = set; then
3263 CFLAGS=$ac_save_CFLAGS
3264 elif test $ac_cv_prog_cc_g = yes; then
3265 if test "$GCC" = yes; then
3271 if test "$GCC" = yes; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3278 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3279 if ${ac_cv_prog_cc_c89+:} false; then :
3280 $as_echo_n "(cached) " >&6
3282 ac_cv_prog_cc_c89=no
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3288 #include <sys/types.h>
3289 #include <sys/stat.h>
3290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3291 struct buf { int x; };
3292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293 static char *e (p, i)
3299 static char *f (char * (*g) (char **, int), char **p, ...)
3304 s = g (p, va_arg (v,int));
3309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3310 function prototypes and stuff, but not '\xHH' hex character constants.
3311 These don't provoke an error unfortunately, instead are silently treated
3312 as 'x'. The following induces an error, until -std is added to get
3313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3314 array size at least. It's necessary to write '\x00'==0 to get something
3315 that's true only with -std. */
3316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3318 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3319 inside strings and character constants. */
3321 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3323 int test (int i, double x);
3324 struct s1 {int (*f) (int a);};
3325 struct s2 {int (*f) (double a);};
3326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3332 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3337 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3338 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 CC="$ac_save_CC $ac_arg"
3341 if ac_fn_c_try_compile "$LINENO"; then :
3342 ac_cv_prog_cc_c89=$ac_arg
3344 rm -f core conftest.err conftest.$ac_objext
3345 test "x$ac_cv_prog_cc_c89" != "xno" && break
3347 rm -f conftest.$ac_ext
3352 case "x$ac_cv_prog_cc_c89" in
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3355 $as_echo "none needed" >&6; } ;;
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3358 $as_echo "unsupported" >&6; } ;;
3360 CC="$CC $ac_cv_prog_cc_c89"
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3362 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3364 if test "x$ac_cv_prog_cc_c89" != xno; then :
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3376 if test -f "$ac_dir/install-sh"; then
3378 ac_install_sh="$ac_aux_dir/install-sh -c"
3380 elif test -f "$ac_dir/install.sh"; then
3382 ac_install_sh="$ac_aux_dir/install.sh -c"
3384 elif test -f "$ac_dir/shtool"; then
3386 ac_install_sh="$ac_aux_dir/shtool install -c"
3390 if test -z "$ac_aux_dir"; then
3391 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3394 # These three variables are undocumented and unsupported,
3395 # and are intended to be withdrawn in a future Autoconf release.
3396 # They can cause serious problems if a builder's source tree is in a directory
3397 # whose full name contains unusual characters.
3398 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3399 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3400 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3403 # Make sure we can run config.sub.
3404 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3405 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3408 $as_echo_n "checking build system type... " >&6; }
3409 if ${ac_cv_build+:} false; then :
3410 $as_echo_n "(cached) " >&6
3412 ac_build_alias=$build_alias
3413 test "x$ac_build_alias" = x &&
3414 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3415 test "x$ac_build_alias" = x &&
3416 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3417 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3422 $as_echo "$ac_cv_build" >&6; }
3423 case $ac_cv_build in
3425 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3428 ac_save_IFS=$IFS; IFS='-'
3434 # Remember, the first character of IFS is used to create $*,
3435 # except with old shells:
3438 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3442 $as_echo_n "checking host system type... " >&6; }
3443 if ${ac_cv_host+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 if test "x$host_alias" = x; then
3447 ac_cv_host=$ac_cv_build
3449 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3450 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3455 $as_echo "$ac_cv_host" >&6; }
3458 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3461 ac_save_IFS=$IFS; IFS='-'
3467 # Remember, the first character of IFS is used to create $*,
3468 # except with old shells:
3471 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3481 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3482 # On Suns, sometimes $CPP names a directory.
3483 if test -n "$CPP" && test -d "$CPP"; then
3486 if test -z "$CPP"; then
3487 if ${ac_cv_prog_CPP+:} false; then :
3488 $as_echo_n "(cached) " >&6
3490 # Double quotes because CPP needs to be expanded
3491 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3494 for ac_c_preproc_warn_flag in '' yes
3496 # Use a header file that comes with gcc, so configuring glibc
3497 # with a fresh cross-compiler works.
3498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3499 # <limits.h> exists even on freestanding compilers.
3500 # On the NeXT, cc -E runs the code through the compiler's parser,
3501 # not just through cpp. "Syntax error" is here to catch this case.
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3505 # include <limits.h>
3507 # include <assert.h>
3511 if ac_fn_c_try_cpp "$LINENO"; then :
3514 # Broken: fails on valid input.
3517 rm -f conftest.err conftest.i conftest.$ac_ext
3519 # OK, works on sane cases. Now check whether nonexistent headers
3520 # can be detected and how.
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3523 #include <ac_nonexistent.h>
3525 if ac_fn_c_try_cpp "$LINENO"; then :
3526 # Broken: success on invalid input.
3529 # Passes both tests.
3533 rm -f conftest.err conftest.i conftest.$ac_ext
3536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537 rm -f conftest.i conftest.err conftest.$ac_ext
3538 if $ac_preproc_ok; then :
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3551 $as_echo "$CPP" >&6; }
3553 for ac_c_preproc_warn_flag in '' yes
3555 # Use a header file that comes with gcc, so configuring glibc
3556 # with a fresh cross-compiler works.
3557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3558 # <limits.h> exists even on freestanding compilers.
3559 # On the NeXT, cc -E runs the code through the compiler's parser,
3560 # not just through cpp. "Syntax error" is here to catch this case.
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3564 # include <limits.h>
3566 # include <assert.h>
3570 if ac_fn_c_try_cpp "$LINENO"; then :
3573 # Broken: fails on valid input.
3576 rm -f conftest.err conftest.i conftest.$ac_ext
3578 # OK, works on sane cases. Now check whether nonexistent headers
3579 # can be detected and how.
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582 #include <ac_nonexistent.h>
3584 if ac_fn_c_try_cpp "$LINENO"; then :
3585 # Broken: success on invalid input.
3588 # Passes both tests.
3592 rm -f conftest.err conftest.i conftest.$ac_ext
3595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3596 rm -f conftest.i conftest.err conftest.$ac_ext
3597 if $ac_preproc_ok; then :
3600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details" "$LINENO" 5; }
3607 ac_cpp='$CPP $CPPFLAGS'
3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3614 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3615 if ${ac_cv_path_GREP+:} false; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -z "$GREP"; then
3619 ac_path_GREP_found=false
3620 # Loop through the user's path and test for each of PROGNAME-LIST
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3625 test -z "$as_dir" && as_dir=.
3626 for ac_prog in grep ggrep; do
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3629 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3630 # Check for GNU ac_path_GREP and select it if it is found.
3631 # Check for GNU $ac_path_GREP
3632 case `"$ac_path_GREP" --version 2>&1` in
3634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3637 $as_echo_n 0123456789 >"conftest.in"
3640 cat "conftest.in" "conftest.in" >"conftest.tmp"
3641 mv "conftest.tmp" "conftest.in"
3642 cp "conftest.in" "conftest.nl"
3643 $as_echo 'GREP' >> "conftest.nl"
3644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3646 as_fn_arith $ac_count + 1 && ac_count=$as_val
3647 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3648 # Best one so far, save it but keep looking for a better one
3649 ac_cv_path_GREP="$ac_path_GREP"
3650 ac_path_GREP_max=$ac_count
3652 # 10*(2^10) chars as input seems more than enough
3653 test $ac_count -gt 10 && break
3655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3658 $ac_path_GREP_found && break 3
3663 if test -z "$ac_cv_path_GREP"; then
3664 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3667 ac_cv_path_GREP=$GREP
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3672 $as_echo "$ac_cv_path_GREP" >&6; }
3673 GREP="$ac_cv_path_GREP"
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3677 $as_echo_n "checking for egrep... " >&6; }
3678 if ${ac_cv_path_EGREP+:} false; then :
3679 $as_echo_n "(cached) " >&6
3681 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3682 then ac_cv_path_EGREP="$GREP -E"
3684 if test -z "$EGREP"; then
3685 ac_path_EGREP_found=false
3686 # Loop through the user's path and test for each of PROGNAME-LIST
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3691 test -z "$as_dir" && as_dir=.
3692 for ac_prog in egrep; do
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3695 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3696 # Check for GNU ac_path_EGREP and select it if it is found.
3697 # Check for GNU $ac_path_EGREP
3698 case `"$ac_path_EGREP" --version 2>&1` in
3700 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3703 $as_echo_n 0123456789 >"conftest.in"
3706 cat "conftest.in" "conftest.in" >"conftest.tmp"
3707 mv "conftest.tmp" "conftest.in"
3708 cp "conftest.in" "conftest.nl"
3709 $as_echo 'EGREP' >> "conftest.nl"
3710 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3712 as_fn_arith $ac_count + 1 && ac_count=$as_val
3713 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3714 # Best one so far, save it but keep looking for a better one
3715 ac_cv_path_EGREP="$ac_path_EGREP"
3716 ac_path_EGREP_max=$ac_count
3718 # 10*(2^10) chars as input seems more than enough
3719 test $ac_count -gt 10 && break
3721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3724 $ac_path_EGREP_found && break 3
3729 if test -z "$ac_cv_path_EGREP"; then
3730 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3733 ac_cv_path_EGREP=$EGREP
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3739 $as_echo "$ac_cv_path_EGREP" >&6; }
3740 EGREP="$ac_cv_path_EGREP"
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3744 $as_echo_n "checking for ANSI C header files... " >&6; }
3745 if ${ac_cv_header_stdc+:} false; then :
3746 $as_echo_n "(cached) " >&6
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_cv_header_stdc=yes
3766 ac_cv_header_stdc=no
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 if test $ac_cv_header_stdc = yes; then
3771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3778 $EGREP "memchr" >/dev/null 2>&1; then :
3781 ac_cv_header_stdc=no
3787 if test $ac_cv_header_stdc = yes; then
3788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795 $EGREP "free" >/dev/null 2>&1; then :
3798 ac_cv_header_stdc=no
3804 if test $ac_cv_header_stdc = yes; then
3805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3806 if test "$cross_compiling" = yes; then :
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3813 #if ((' ' & 0x0FF) == 0x020)
3814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3817 # define ISLOWER(c) \
3818 (('a' <= (c) && (c) <= 'i') \
3819 || ('j' <= (c) && (c) <= 'r') \
3820 || ('s' <= (c) && (c) <= 'z'))
3821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3829 for (i = 0; i < 256; i++)
3830 if (XOR (islower (i), ISLOWER (i))
3831 || toupper (i) != TOUPPER (i))
3836 if ac_fn_c_try_run "$LINENO"; then :
3839 ac_cv_header_stdc=no
3841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3842 conftest.$ac_objext conftest.beam conftest.$ac_ext
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3848 $as_echo "$ac_cv_header_stdc" >&6; }
3849 if test $ac_cv_header_stdc = yes; then
3851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3856 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3857 inttypes.h stdint.h unistd.h
3859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3860 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3863 cat >>confdefs.h <<_ACEOF
3864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3873 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3874 if ${ac_cv_c_bigendian+:} false; then :
3875 $as_echo_n "(cached) " >&6
3877 ac_cv_c_bigendian=unknown
3878 # See if we're dealing with a universal compiler.
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881 #ifndef __APPLE_CC__
3882 not a universal capable compiler
3887 if ac_fn_c_try_compile "$LINENO"; then :
3889 # Check for potential -arch flags. It is not universal unless
3890 # there are at least two -arch flags with different values.
3893 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3894 if test -n "$ac_prev"; then
3896 i?86 | x86_64 | ppc | ppc64)
3897 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3900 ac_cv_c_bigendian=universal
3906 elif test "x$ac_word" = "x-arch"; then
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 if test $ac_cv_c_bigendian = unknown; then
3913 # See if sys/param.h defines the BYTE_ORDER macro.
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916 #include <sys/types.h>
3917 #include <sys/param.h>
3922 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3923 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933 # It does; now see whether it defined to BIG_ENDIAN or not.
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936 #include <sys/types.h>
3937 #include <sys/param.h>
3942 #if BYTE_ORDER != BIG_ENDIAN
3950 if ac_fn_c_try_compile "$LINENO"; then :
3951 ac_cv_c_bigendian=yes
3953 ac_cv_c_bigendian=no
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 if test $ac_cv_c_bigendian = unknown; then
3960 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3968 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 # It does; now see whether it defined to _BIG_ENDIAN or not.
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994 ac_cv_c_bigendian=yes
3996 ac_cv_c_bigendian=no
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 if test $ac_cv_c_bigendian = unknown; then
4003 # Compile a test program.
4004 if test "$cross_compiling" = yes; then :
4005 # Try to guess by grepping values from an object file.
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008 short int ascii_mm[] =
4009 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4010 short int ascii_ii[] =
4011 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4012 int use_ascii (int i) {
4013 return ascii_mm[i] + ascii_ii[i];
4015 short int ebcdic_ii[] =
4016 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4017 short int ebcdic_mm[] =
4018 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4019 int use_ebcdic (int i) {
4020 return ebcdic_mm[i] + ebcdic_ii[i];
4027 return use_ascii (foo) == use_ebcdic (foo);
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4034 ac_cv_c_bigendian=yes
4036 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4037 if test "$ac_cv_c_bigendian" = unknown; then
4038 ac_cv_c_bigendian=no
4040 # finding both strings is unlikely to happen, but who knows?
4041 ac_cv_c_bigendian=unknown
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 $ac_includes_default
4054 /* Are we little or big endian? From Harbison&Steele. */
4058 char c[sizeof (long int)];
4061 return u.c[sizeof (long int) - 1] == 1;
4067 if ac_fn_c_try_run "$LINENO"; then :
4068 ac_cv_c_bigendian=no
4070 ac_cv_c_bigendian=yes
4072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4073 conftest.$ac_objext conftest.beam conftest.$ac_ext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4079 $as_echo "$ac_cv_c_bigendian" >&6; }
4080 case $ac_cv_c_bigendian in #(
4082 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4088 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4092 as_fn_error $? "unknown endianness
4093 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4097 # Checks for programs.
4098 for ac_prog in gawk mawk nawk awk
4100 # Extract the first word of "$ac_prog", so it can be a program name with args.
4101 set dummy $ac_prog; ac_word=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if ${ac_cv_prog_AWK+:} false; then :
4105 $as_echo_n "(cached) " >&6
4107 if test -n "$AWK"; then
4108 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4117 ac_cv_prog_AWK="$ac_prog"
4118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 if test -n "$AWK"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4130 $as_echo "$AWK" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4137 test -n "$AWK" && break
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4146 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4147 # On Suns, sometimes $CPP names a directory.
4148 if test -n "$CPP" && test -d "$CPP"; then
4151 if test -z "$CPP"; then
4152 if ${ac_cv_prog_CPP+:} false; then :
4153 $as_echo_n "(cached) " >&6
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4170 # include <limits.h>
4172 # include <assert.h>
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4179 # Broken: fails on valid input.
4182 rm -f conftest.err conftest.i conftest.$ac_ext
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4194 # Passes both tests.
4198 rm -f conftest.err conftest.i conftest.$ac_ext
4201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202 rm -f conftest.i conftest.err conftest.$ac_ext
4203 if $ac_preproc_ok; then :
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4216 $as_echo "$CPP" >&6; }
4218 for ac_c_preproc_warn_flag in '' yes
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4229 # include <limits.h>
4231 # include <assert.h>
4235 if ac_fn_c_try_cpp "$LINENO"; then :
4238 # Broken: fails on valid input.
4241 rm -f conftest.err conftest.i conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4253 # Passes both tests.
4257 rm -f conftest.err conftest.i conftest.$ac_ext
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.i conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then :
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details" "$LINENO" 5; }
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if ${ac_cv_prog_RANLIB+:} false; then :
4283 $as_echo_n "(cached) " >&6
4285 if test -n "$RANLIB"; then
4286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 RANLIB=$ac_cv_prog_RANLIB
4306 if test -n "$RANLIB"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4308 $as_echo "$RANLIB" >&6; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4316 if test -z "$ac_cv_prog_RANLIB"; then
4317 ac_ct_RANLIB=$RANLIB
4318 # Extract the first word of "ranlib", so it can be a program name with args.
4319 set dummy ranlib; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -n "$ac_ct_RANLIB"; then
4326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_ac_ct_RANLIB="ranlib"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4346 if test -n "$ac_ct_RANLIB"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4348 $as_echo "$ac_ct_RANLIB" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4354 if test "x$ac_ct_RANLIB" = x; then
4357 case $cross_compiling:$ac_tool_warned in
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4363 RANLIB=$ac_ct_RANLIB
4366 RANLIB="$ac_cv_prog_RANLIB"
4369 # Find a good install program. We prefer a C program (faster),
4370 # so one script is as good as another. But avoid the broken or
4371 # incompatible versions:
4372 # SysV /etc/install, /usr/sbin/install
4373 # SunOS /usr/etc/install
4374 # IRIX /sbin/install
4376 # AmigaOS /C/install, which installs bootblocks on floppy discs
4377 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4378 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4379 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4380 # OS/2's system install, which has a completely different semantic
4381 # ./install, which can be erroneously created by make from ./install.sh.
4382 # Reject install programs that cannot install multiple files.
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4384 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4385 if test -z "$INSTALL"; then
4386 if ${ac_cv_path_install+:} false; then :
4387 $as_echo_n "(cached) " >&6
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 # Account for people who put trailing slashes in PATH elements.
4395 case $as_dir/ in #((
4396 ./ | .// | /[cC]/* | \
4397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4398 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4401 # OSF1 and SCO ODT 3.0 have their own names for install.
4402 # Don't use installbsd from OSF since it installs stuff as root
4404 for ac_prog in ginstall scoinst install; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4407 if test $ac_prog = install &&
4408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4409 # AIX install. It has an incompatible calling convention.
4411 elif test $ac_prog = install &&
4412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4413 # program-specific install script used by HP pwplus--don't use.
4416 rm -rf conftest.one conftest.two conftest.dir
4417 echo one > conftest.one
4418 echo two > conftest.two
4420 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4421 test -s conftest.one && test -s conftest.two &&
4422 test -s conftest.dir/conftest.one &&
4423 test -s conftest.dir/conftest.two
4425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4438 rm -rf conftest.one conftest.two conftest.dir
4441 if test "${ac_cv_path_install+set}" = set; then
4442 INSTALL=$ac_cv_path_install
4444 # As a last resort, use the slow shell script. Don't cache a
4445 # value for INSTALL within a source directory, because that will
4446 # break other packages using the cache if that directory is
4447 # removed, or if the value is a relative name.
4448 INSTALL=$ac_install_sh
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4452 $as_echo "$INSTALL" >&6; }
4454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4455 # It thinks the first close brace ends the variable substitution.
4456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4458 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4460 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4463 $as_echo_n "checking for egrep... " >&6; }
4464 if ${ac_cv_path_EGREP+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4468 then ac_cv_path_EGREP="$GREP -E"
4470 if test -z "$EGREP"; then
4471 ac_path_EGREP_found=false
4472 # Loop through the user's path and test for each of PROGNAME-LIST
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4477 test -z "$as_dir" && as_dir=.
4478 for ac_prog in egrep; do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4481 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4482 # Check for GNU ac_path_EGREP and select it if it is found.
4483 # Check for GNU $ac_path_EGREP
4484 case `"$ac_path_EGREP" --version 2>&1` in
4486 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4489 $as_echo_n 0123456789 >"conftest.in"
4492 cat "conftest.in" "conftest.in" >"conftest.tmp"
4493 mv "conftest.tmp" "conftest.in"
4494 cp "conftest.in" "conftest.nl"
4495 $as_echo 'EGREP' >> "conftest.nl"
4496 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4498 as_fn_arith $ac_count + 1 && ac_count=$as_val
4499 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4500 # Best one so far, save it but keep looking for a better one
4501 ac_cv_path_EGREP="$ac_path_EGREP"
4502 ac_path_EGREP_max=$ac_count
4504 # 10*(2^10) chars as input seems more than enough
4505 test $ac_count -gt 10 && break
4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4510 $ac_path_EGREP_found && break 3
4515 if test -z "$ac_cv_path_EGREP"; then
4516 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4519 ac_cv_path_EGREP=$EGREP
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4525 $as_echo "$ac_cv_path_EGREP" >&6; }
4526 EGREP="$ac_cv_path_EGREP"
4529 # Extract the first word of "ar", so it can be a program name with args.
4530 set dummy ar; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if ${ac_cv_path_AR+:} false; then :
4534 $as_echo_n "(cached) " >&6
4538 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 if test -n "$AR"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4562 $as_echo "$AR" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4569 # Extract the first word of "cat", so it can be a program name with args.
4570 set dummy cat; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if ${ac_cv_path_CAT+:} false; then :
4574 $as_echo_n "(cached) " >&6
4578 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 if test -n "$CAT"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4602 $as_echo "$CAT" >&6; }
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4609 # Extract the first word of "kill", so it can be a program name with args.
4610 set dummy kill; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_path_KILL+:} false; then :
4614 $as_echo_n "(cached) " >&6
4618 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 KILL=$ac_cv_path_KILL
4640 if test -n "$KILL"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4642 $as_echo "$KILL" >&6; }
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4649 for ac_prog in perl5 perl
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_path_PERL+:} false; then :
4656 $as_echo_n "(cached) " >&6
4660 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 PERL=$ac_cv_path_PERL
4682 if test -n "$PERL"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4684 $as_echo "$PERL" >&6; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4691 test -n "$PERL" && break
4694 # Extract the first word of "sed", so it can be a program name with args.
4695 set dummy sed; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if ${ac_cv_path_SED+:} false; then :
4699 $as_echo_n "(cached) " >&6
4703 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 if test -n "$SED"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4727 $as_echo "$SED" >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4735 # Extract the first word of "ent", so it can be a program name with args.
4736 set dummy ent; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_path_ENT+:} false; then :
4740 $as_echo_n "(cached) " >&6
4744 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 if test -n "$ENT"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4768 $as_echo "$ENT" >&6; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4776 # Extract the first word of "bash", so it can be a program name with args.
4777 set dummy bash; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4781 $as_echo_n "(cached) " >&6
4783 case $TEST_MINUS_S_SH in
4785 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4807 if test -n "$TEST_MINUS_S_SH"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4809 $as_echo "$TEST_MINUS_S_SH" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4816 # Extract the first word of "ksh", so it can be a program name with args.
4817 set dummy ksh; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4821 $as_echo_n "(cached) " >&6
4823 case $TEST_MINUS_S_SH in
4825 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4847 if test -n "$TEST_MINUS_S_SH"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4849 $as_echo "$TEST_MINUS_S_SH" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4856 # Extract the first word of "sh", so it can be a program name with args.
4857 set dummy sh; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4861 $as_echo_n "(cached) " >&6
4863 case $TEST_MINUS_S_SH in
4865 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4887 if test -n "$TEST_MINUS_S_SH"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4889 $as_echo "$TEST_MINUS_S_SH" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4896 # Extract the first word of "sh", so it can be a program name with args.
4897 set dummy sh; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_path_SH+:} false; then :
4901 $as_echo_n "(cached) " >&6
4905 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 if test -n "$SH"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4929 $as_echo "$SH" >&6; }
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4936 # Extract the first word of "groff", so it can be a program name with args.
4937 set dummy groff; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_path_GROFF+:} false; then :
4941 $as_echo_n "(cached) " >&6
4945 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 GROFF=$ac_cv_path_GROFF
4967 if test -n "$GROFF"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4969 $as_echo "$GROFF" >&6; }
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4976 # Extract the first word of "nroff", so it can be a program name with args.
4977 set dummy nroff; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_path_NROFF+:} false; then :
4981 $as_echo_n "(cached) " >&6
4985 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 NROFF=$ac_cv_path_NROFF
5007 if test -n "$NROFF"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5009 $as_echo "$NROFF" >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5016 # Extract the first word of "mandoc", so it can be a program name with args.
5017 set dummy mandoc; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if ${ac_cv_path_MANDOC+:} false; then :
5021 $as_echo_n "(cached) " >&6
5025 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 MANDOC=$ac_cv_path_MANDOC
5047 if test -n "$MANDOC"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5049 $as_echo "$MANDOC" >&6; }
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5059 if test "x$MANDOC" != "x" ; then
5061 elif test "x$NROFF" != "x" ; then
5062 MANFMT="$NROFF -mandoc"
5063 elif test "x$GROFF" != "x" ; then
5064 MANFMT="$GROFF -mandoc -Tascii"
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5067 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5072 # Extract the first word of "groupadd", so it can be a program name with args.
5073 set dummy groupadd; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5077 $as_echo_n "(cached) " >&6
5079 case $PATH_GROUPADD_PROG in
5081 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5103 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5104 if test -n "$PATH_GROUPADD_PROG"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5106 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5113 # Extract the first word of "useradd", so it can be a program name with args.
5114 set dummy useradd; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 case $PATH_USERADD_PROG in
5122 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5144 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5145 if test -n "$PATH_USERADD_PROG"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5147 $as_echo "$PATH_USERADD_PROG" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5154 # Extract the first word of "pkgmk", so it can be a program name with args.
5155 set dummy pkgmk; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5159 $as_echo_n "(cached) " >&6
5161 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5162 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5182 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5183 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5185 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5192 if test -x /sbin/sh; then
5193 STARTUP_SCRIPT_SHELL=/sbin/sh
5196 STARTUP_SCRIPT_SHELL=/bin/sh
5201 # Check whether --enable-largefile was given.
5202 if test "${enable_largefile+set}" = set; then :
5203 enableval=$enable_largefile;
5206 if test "$enable_largefile" != no; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5209 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5210 if ${ac_cv_sys_largefile_CC+:} false; then :
5211 $as_echo_n "(cached) " >&6
5213 ac_cv_sys_largefile_CC=no
5214 if test "$GCC" != yes; then
5217 # IRIX 6.2 and later do not support large files by default,
5218 # so use the C compiler's -n32 option if that helps.
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 #include <sys/types.h>
5222 /* Check that off_t can represent 2**63 - 1 correctly.
5223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5224 since some C++ compilers masquerading as C compilers
5225 incorrectly reject 9223372036854775807. */
5226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5228 && LARGE_OFF_T % 2147483647 == 1)
5238 if ac_fn_c_try_compile "$LINENO"; then :
5241 rm -f core conftest.err conftest.$ac_objext
5243 if ac_fn_c_try_compile "$LINENO"; then :
5244 ac_cv_sys_largefile_CC=' -n32'; break
5246 rm -f core conftest.err conftest.$ac_objext
5250 rm -f conftest.$ac_ext
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5254 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5255 if test "$ac_cv_sys_largefile_CC" != no; then
5256 CC=$CC$ac_cv_sys_largefile_CC
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5260 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5261 if ${ac_cv_sys_file_offset_bits+:} false; then :
5262 $as_echo_n "(cached) " >&6
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267 #include <sys/types.h>
5268 /* Check that off_t can represent 2**63 - 1 correctly.
5269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5270 since some C++ compilers masquerading as C compilers
5271 incorrectly reject 9223372036854775807. */
5272 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5274 && LARGE_OFF_T % 2147483647 == 1)
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285 ac_cv_sys_file_offset_bits=no; break
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #define _FILE_OFFSET_BITS 64
5291 #include <sys/types.h>
5292 /* Check that off_t can represent 2**63 - 1 correctly.
5293 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5294 since some C++ compilers masquerading as C compilers
5295 incorrectly reject 9223372036854775807. */
5296 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5297 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5298 && LARGE_OFF_T % 2147483647 == 1)
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309 ac_cv_sys_file_offset_bits=64; break
5311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 ac_cv_sys_file_offset_bits=unknown
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5317 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5318 case $ac_cv_sys_file_offset_bits in #(
5321 cat >>confdefs.h <<_ACEOF
5322 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5327 if test $ac_cv_sys_file_offset_bits = unknown; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5329 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5330 if ${ac_cv_sys_large_files+:} false; then :
5331 $as_echo_n "(cached) " >&6
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #include <sys/types.h>
5337 /* Check that off_t can represent 2**63 - 1 correctly.
5338 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5339 since some C++ compilers masquerading as C compilers
5340 incorrectly reject 9223372036854775807. */
5341 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5342 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5343 && LARGE_OFF_T % 2147483647 == 1)
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354 ac_cv_sys_large_files=no; break
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5359 #define _LARGE_FILES 1
5360 #include <sys/types.h>
5361 /* Check that off_t can represent 2**63 - 1 correctly.
5362 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5363 since some C++ compilers masquerading as C compilers
5364 incorrectly reject 9223372036854775807. */
5365 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5366 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5367 && LARGE_OFF_T % 2147483647 == 1)
5377 if ac_fn_c_try_compile "$LINENO"; then :
5378 ac_cv_sys_large_files=1; break
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 ac_cv_sys_large_files=unknown
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5386 $as_echo "$ac_cv_sys_large_files" >&6; }
5387 case $ac_cv_sys_large_files in #(
5390 cat >>confdefs.h <<_ACEOF
5391 #define _LARGE_FILES $ac_cv_sys_large_files
5400 if test -z "$AR" ; then
5401 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5404 # Use LOGIN_PROGRAM from environment if possible
5405 if test ! -z "$LOGIN_PROGRAM" ; then
5407 cat >>confdefs.h <<_ACEOF
5408 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5413 # Extract the first word of "login", so it can be a program name with args.
5414 set dummy login; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5418 $as_echo_n "(cached) " >&6
5420 case $LOGIN_PROGRAM_FALLBACK in
5422 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5432 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5444 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5446 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5453 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5454 cat >>confdefs.h <<_ACEOF
5455 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5461 # Extract the first word of "passwd", so it can be a program name with args.
5462 set dummy passwd; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5466 $as_echo_n "(cached) " >&6
5468 case $PATH_PASSWD_PROG in
5470 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5492 if test -n "$PATH_PASSWD_PROG"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5494 $as_echo "$PATH_PASSWD_PROG" >&6; }
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5501 if test ! -z "$PATH_PASSWD_PROG" ; then
5503 cat >>confdefs.h <<_ACEOF
5504 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5509 if test -z "$LD" ; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5515 $as_echo_n "checking for inline... " >&6; }
5516 if ${ac_cv_c_inline+:} false; then :
5517 $as_echo_n "(cached) " >&6
5520 for ac_kw in inline __inline__ __inline; do
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5525 static $ac_kw foo_t static_foo () {return 0; }
5526 $ac_kw foo_t foo () {return 0; }
5530 if ac_fn_c_try_compile "$LINENO"; then :
5531 ac_cv_c_inline=$ac_kw
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 test "$ac_cv_c_inline" != no && break
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5539 $as_echo "$ac_cv_c_inline" >&6; }
5541 case $ac_cv_c_inline in
5544 case $ac_cv_c_inline in
5546 *) ac_val=$ac_cv_c_inline;;
5548 cat >>confdefs.h <<_ACEOF
5550 #define inline $ac_val
5557 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5559 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5563 ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5564 #include <sys/types.h>
5565 #include <sys/param.h>
5566 #include <dev/systrace.h>
5569 if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5570 have_systr_policy_kill=1
5573 ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5574 #include <sys/types.h>
5575 #include <sys/resource.h>
5578 if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5580 $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5584 ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5585 #include <sys/types.h>
5586 #include <linux/prctl.h>
5589 if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5590 have_linux_no_new_privs=1
5593 use_stack_protector=1
5595 # Check whether --with-stackprotect was given.
5596 if test "${with_stackprotect+set}" = set; then :
5597 withval=$with_stackprotect;
5598 if test "x$withval" = "xno"; then
5599 use_stack_protector=0
5605 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Qunused-arguments -Werror" >&5
5608 $as_echo_n "checking if $CC supports -Qunused-arguments -Werror... " >&6; }
5609 saved_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS -Qunused-arguments -Werror"
5611 _define_flag="-Qunused-arguments"
5612 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments -Werror"
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 int main(void) { return 0; }
5617 if ac_fn_c_try_compile "$LINENO"; then :
5619 if `grep -i "unrecognized option" conftest.err >/dev/null`
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 CFLAGS="$saved_CFLAGS"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5626 $as_echo "yes" >&6; }
5627 CFLAGS="$saved_CFLAGS $_define_flag"
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 CFLAGS="$saved_CFLAGS"
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunknown-warning-option -Werror" >&5
5639 $as_echo_n "checking if $CC supports -Wunknown-warning-option -Werror... " >&6; }
5640 saved_CFLAGS="$CFLAGS"
5641 CFLAGS="$CFLAGS -Wunknown-warning-option -Werror"
5642 _define_flag="-Wno-unknown-warning-option"
5643 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option -Werror"
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 int main(void) { return 0; }
5648 if ac_fn_c_try_compile "$LINENO"; then :
5650 if `grep -i "unrecognized option" conftest.err >/dev/null`
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 CFLAGS="$saved_CFLAGS"
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657 $as_echo "yes" >&6; }
5658 CFLAGS="$saved_CFLAGS $_define_flag"
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 CFLAGS="$saved_CFLAGS"
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5670 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5671 saved_CFLAGS="$CFLAGS"
5672 CFLAGS="$CFLAGS -Wall"
5674 test "x$_define_flag" = "x" && _define_flag="-Wall"
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 int main(void) { return 0; }
5679 if ac_fn_c_try_compile "$LINENO"; then :
5681 if `grep -i "unrecognized option" conftest.err >/dev/null`
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 CFLAGS="$saved_CFLAGS"
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5688 $as_echo "yes" >&6; }
5689 CFLAGS="$saved_CFLAGS $_define_flag"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5694 CFLAGS="$saved_CFLAGS"
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5701 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5702 saved_CFLAGS="$CFLAGS"
5703 CFLAGS="$CFLAGS -Wpointer-arith"
5705 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 int main(void) { return 0; }
5710 if ac_fn_c_try_compile "$LINENO"; then :
5712 if `grep -i "unrecognized option" conftest.err >/dev/null`
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5716 CFLAGS="$saved_CFLAGS"
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5719 $as_echo "yes" >&6; }
5720 CFLAGS="$saved_CFLAGS $_define_flag"
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5725 CFLAGS="$saved_CFLAGS"
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5732 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5733 saved_CFLAGS="$CFLAGS"
5734 CFLAGS="$CFLAGS -Wuninitialized"
5736 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5739 int main(void) { return 0; }
5741 if ac_fn_c_try_compile "$LINENO"; then :
5743 if `grep -i "unrecognized option" conftest.err >/dev/null`
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747 CFLAGS="$saved_CFLAGS"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5750 $as_echo "yes" >&6; }
5751 CFLAGS="$saved_CFLAGS $_define_flag"
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5756 CFLAGS="$saved_CFLAGS"
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5
5763 $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5764 saved_CFLAGS="$CFLAGS"
5765 CFLAGS="$CFLAGS -Wsign-compare"
5767 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 int main(void) { return 0; }
5772 if ac_fn_c_try_compile "$LINENO"; then :
5774 if `grep -i "unrecognized option" conftest.err >/dev/null`
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 $as_echo "no" >&6; }
5778 CFLAGS="$saved_CFLAGS"
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781 $as_echo "yes" >&6; }
5782 CFLAGS="$saved_CFLAGS $_define_flag"
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 CFLAGS="$saved_CFLAGS"
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5
5794 $as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5795 saved_CFLAGS="$CFLAGS"
5796 CFLAGS="$CFLAGS -Wformat-security"
5798 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 int main(void) { return 0; }
5803 if ac_fn_c_try_compile "$LINENO"; then :
5805 if `grep -i "unrecognized option" conftest.err >/dev/null`
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5809 CFLAGS="$saved_CFLAGS"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5812 $as_echo "yes" >&6; }
5813 CFLAGS="$saved_CFLAGS $_define_flag"
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5818 CFLAGS="$saved_CFLAGS"
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsizeof-pointer-memaccess" >&5
5825 $as_echo_n "checking if $CC supports -Wsizeof-pointer-memaccess... " >&6; }
5826 saved_CFLAGS="$CFLAGS"
5827 CFLAGS="$CFLAGS -Wsizeof-pointer-memaccess"
5829 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 int main(void) { return 0; }
5834 if ac_fn_c_try_compile "$LINENO"; then :
5836 if `grep -i "unrecognized option" conftest.err >/dev/null`
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5840 CFLAGS="$saved_CFLAGS"
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5843 $as_echo "yes" >&6; }
5844 CFLAGS="$saved_CFLAGS $_define_flag"
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5849 CFLAGS="$saved_CFLAGS"
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5
5856 $as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; }
5857 saved_CFLAGS="$CFLAGS"
5858 CFLAGS="$CFLAGS -Wpointer-sign"
5859 _define_flag="-Wno-pointer-sign"
5860 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 int main(void) { return 0; }
5865 if ac_fn_c_try_compile "$LINENO"; then :
5867 if `grep -i "unrecognized option" conftest.err >/dev/null`
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 CFLAGS="$saved_CFLAGS"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5874 $as_echo "yes" >&6; }
5875 CFLAGS="$saved_CFLAGS $_define_flag"
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 CFLAGS="$saved_CFLAGS"
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5
5887 $as_echo_n "checking if $CC supports -Wunused-result... " >&6; }
5888 saved_CFLAGS="$CFLAGS"
5889 CFLAGS="$CFLAGS -Wunused-result"
5890 _define_flag="-Wno-unused-result"
5891 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 int main(void) { return 0; }
5896 if ac_fn_c_try_compile "$LINENO"; then :
5898 if `grep -i "unrecognized option" conftest.err >/dev/null`
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 CFLAGS="$saved_CFLAGS"
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5905 $as_echo "yes" >&6; }
5906 CFLAGS="$saved_CFLAGS $_define_flag"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 CFLAGS="$saved_CFLAGS"
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
5918 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5919 saved_CFLAGS="$CFLAGS"
5920 CFLAGS="$CFLAGS -fno-strict-aliasing"
5922 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 int main(void) { return 0; }
5927 if ac_fn_c_try_compile "$LINENO"; then :
5929 if `grep -i "unrecognized option" conftest.err >/dev/null`
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 CFLAGS="$saved_CFLAGS"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5936 $as_echo "yes" >&6; }
5937 CFLAGS="$saved_CFLAGS $_define_flag"
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 CFLAGS="$saved_CFLAGS"
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -D_FORTIFY_SOURCE=2" >&5
5949 $as_echo_n "checking if $CC supports -D_FORTIFY_SOURCE=2... " >&6; }
5950 saved_CFLAGS="$CFLAGS"
5951 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
5953 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 int main(void) { return 0; }
5958 if ac_fn_c_try_compile "$LINENO"; then :
5960 if `grep -i "unrecognized option" conftest.err >/dev/null`
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5964 CFLAGS="$saved_CFLAGS"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5967 $as_echo "yes" >&6; }
5968 CFLAGS="$saved_CFLAGS $_define_flag"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5973 CFLAGS="$saved_CFLAGS"
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
5979 $as_echo_n "checking gcc version... " >&6; }
5980 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5982 1.*) no_attrib_nonnull=1 ;;
5986 2.*) no_attrib_nonnull=1 ;;
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
5990 $as_echo "$GCC_VER" >&6; }
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5993 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5994 saved_CFLAGS="$CFLAGS"
5995 CFLAGS="$CFLAGS -fno-builtin-memset"
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
6002 char b[10]; memset(b, 0, sizeof(b));
6007 if ac_fn_c_try_link "$LINENO"; then :
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6009 $as_echo "yes" >&6; }
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6013 CFLAGS="$saved_CFLAGS"
6016 rm -f core conftest.err conftest.$ac_objext \
6017 conftest$ac_exeext conftest.$ac_ext
6019 # -fstack-protector-all doesn't always work for some GCC versions
6020 # and/or platforms, so we test if we can. If it's not supported
6021 # on a given platform gcc will emit a warning so we use -Werror.
6022 if test "x$use_stack_protector" = "x1"; then
6023 for t in -fstack-protector-all -fstack-protector; do
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
6025 $as_echo_n "checking if $CC supports $t... " >&6; }
6026 saved_CFLAGS="$CFLAGS"
6027 saved_LDFLAGS="$LDFLAGS"
6028 CFLAGS="$CFLAGS $t -Werror"
6029 LDFLAGS="$LDFLAGS $t -Werror"
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6038 snprintf(x, sizeof(x), "XXX");
6044 if ac_fn_c_try_link "$LINENO"; then :
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6046 $as_echo "yes" >&6; }
6047 CFLAGS="$saved_CFLAGS $t"
6048 LDFLAGS="$saved_LDFLAGS $t"
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
6050 $as_echo_n "checking if $t works... " >&6; }
6051 if test "$cross_compiling" = yes; then :
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
6053 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6065 snprintf(x, sizeof(x), "XXX");
6071 if ac_fn_c_try_run "$LINENO"; then :
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6073 $as_echo "yes" >&6; }
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6080 conftest.$ac_objext conftest.beam conftest.$ac_ext
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6089 rm -f core conftest.err conftest.$ac_objext \
6090 conftest$ac_exeext conftest.$ac_ext
6091 CFLAGS="$saved_CFLAGS"
6092 LDFLAGS="$saved_LDFLAGS"
6096 if test -z "$have_llong_max"; then
6097 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6098 unset ac_cv_have_decl_LLONG_MAX
6099 saved_CFLAGS="$CFLAGS"
6100 CFLAGS="$CFLAGS -std=gnu99"
6101 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
6104 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
6107 CFLAGS="$saved_CFLAGS"
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
6114 $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6119 __attribute__((__unused__)) static void foo(void){return;}
6128 if ac_fn_c_try_compile "$LINENO"; then :
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6130 $as_echo "yes" >&6; }
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6135 $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 if test "x$no_attrib_nonnull" != "x1" ; then
6143 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6148 # Check whether --with-rpath was given.
6149 if test "${with_rpath+set}" = set; then :
6150 withval=$with_rpath;
6151 if test "x$withval" = "xno" ; then
6154 if test "x$withval" = "xyes" ; then
6162 # Allow user to specify flags
6164 # Check whether --with-cflags was given.
6165 if test "${with_cflags+set}" = set; then :
6166 withval=$with_cflags;
6167 if test -n "$withval" && test "x$withval" != "xno" && \
6168 test "x${withval}" != "xyes"; then
6169 CFLAGS="$CFLAGS $withval"
6176 # Check whether --with-cppflags was given.
6177 if test "${with_cppflags+set}" = set; then :
6178 withval=$with_cppflags;
6179 if test -n "$withval" && test "x$withval" != "xno" && \
6180 test "x${withval}" != "xyes"; then
6181 CPPFLAGS="$CPPFLAGS $withval"
6188 # Check whether --with-ldflags was given.
6189 if test "${with_ldflags+set}" = set; then :
6190 withval=$with_ldflags;
6191 if test -n "$withval" && test "x$withval" != "xno" && \
6192 test "x${withval}" != "xyes"; then
6193 LDFLAGS="$LDFLAGS $withval"
6200 # Check whether --with-libs was given.
6201 if test "${with_libs+set}" = set; then :
6203 if test -n "$withval" && test "x$withval" != "xno" && \
6204 test "x${withval}" != "xyes"; then
6205 LIBS="$LIBS $withval"
6212 # Check whether --with-Werror was given.
6213 if test "${with_Werror+set}" = set; then :
6214 withval=$with_Werror;
6215 if test -n "$withval" && test "x$withval" != "xno"; then
6216 werror_flags="-Werror"
6217 if test "x${withval}" != "xyes"; then
6218 werror_flags="$withval"
6254 security/pam_appl.h \
6293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6294 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6296 cat >>confdefs.h <<_ACEOF
6297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6305 # lastlog.h requires sys/time.h to be included first on Solaris
6306 for ac_header in lastlog.h
6308 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6309 #ifdef HAVE_SYS_TIME_H
6310 # include <sys/time.h>
6314 if test "x$ac_cv_header_lastlog_h" = xyes; then :
6315 cat >>confdefs.h <<_ACEOF
6316 #define HAVE_LASTLOG_H 1
6324 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6325 for ac_header in sys/ptms.h
6327 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6328 #ifdef HAVE_SYS_STREAM_H
6329 # include <sys/stream.h>
6333 if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6334 cat >>confdefs.h <<_ACEOF
6335 #define HAVE_SYS_PTMS_H 1
6343 # login_cap.h requires sys/types.h on NetBSD
6344 for ac_header in login_cap.h
6346 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6347 #include <sys/types.h>
6350 if test "x$ac_cv_header_login_cap_h" = xyes; then :
6351 cat >>confdefs.h <<_ACEOF
6352 #define HAVE_LOGIN_CAP_H 1
6360 # older BSDs need sys/param.h before sys/mount.h
6361 for ac_header in sys/mount.h
6363 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6364 #include <sys/param.h>
6367 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6368 cat >>confdefs.h <<_ACEOF
6369 #define HAVE_SYS_MOUNT_H 1
6377 # Android requires sys/socket.h to be included before sys/un.h
6378 for ac_header in sys/un.h
6380 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
6381 #include <sys/types.h>
6382 #include <sys/socket.h>
6385 if test "x$ac_cv_header_sys_un_h" = xyes; then :
6386 cat >>confdefs.h <<_ACEOF
6387 #define HAVE_SYS_UN_H 1
6395 # Messages for features tested for in target-specific section
6400 # Check for some target-specific stuff
6403 # Some versions of VAC won't allow macro redefinitions at
6404 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6405 # particularly with older versions of vac or xlc.
6406 # It also throws errors about null macro argments, but these are
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6409 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6413 #define testmacro foo
6414 #define testmacro bar
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6425 $as_echo "yes" >&6; }
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6429 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6430 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6431 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6432 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6439 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6440 if (test -z "$blibpath"); then
6441 blibpath="/usr/lib:/lib"
6443 saved_LDFLAGS="$LDFLAGS"
6444 if test "$GCC" = "yes"; then
6445 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6447 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6449 for tryflags in $flags ;do
6450 if (test -z "$blibflags"); then
6451 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6463 if ac_fn_c_try_link "$LINENO"; then :
6466 rm -f core conftest.err conftest.$ac_objext \
6467 conftest$ac_exeext conftest.$ac_ext
6470 if (test -z "$blibflags"); then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6472 $as_echo "not found" >&6; }
6473 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6476 $as_echo "$blibflags" >&6; }
6478 LDFLAGS="$saved_LDFLAGS"
6479 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6480 if test "x$ac_cv_func_authenticate" = xyes; then :
6482 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6486 $as_echo_n "checking for authenticate in -ls... " >&6; }
6487 if ${ac_cv_lib_s_authenticate+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 ac_check_lib_save_LIBS=$LIBS
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6495 /* Override any GCC internal prototype to avoid an error.
6496 Use char because int might match the return type of a GCC
6497 builtin and then its argument prototype would still apply. */
6501 char authenticate ();
6505 return authenticate ();
6510 if ac_fn_c_try_link "$LINENO"; then :
6511 ac_cv_lib_s_authenticate=yes
6513 ac_cv_lib_s_authenticate=no
6515 rm -f core conftest.err conftest.$ac_objext \
6516 conftest$ac_exeext conftest.$ac_ext
6517 LIBS=$ac_check_lib_save_LIBS
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6520 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
6521 if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6522 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6531 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6533 if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6539 cat >>confdefs.h <<_ACEOF
6540 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
6542 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6544 if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6550 cat >>confdefs.h <<_ACEOF
6551 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6553 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6555 if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6561 cat >>confdefs.h <<_ACEOF
6562 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6564 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6566 if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6572 cat >>confdefs.h <<_ACEOF
6573 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6575 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6577 if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6583 cat >>confdefs.h <<_ACEOF
6584 #define HAVE_DECL_SETAUTHDB $ac_have_decl
6587 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6590 if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6596 cat >>confdefs.h <<_ACEOF
6597 #define HAVE_DECL_LOGINFAILED $ac_have_decl
6599 if test $ac_have_decl = 1; then :
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6601 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #include <usersec.h>
6608 (void)loginfailed("user","host","tty",0);
6613 if ac_fn_c_try_compile "$LINENO"; then :
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6615 $as_echo "yes" >&6; }
6617 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 for ac_func in getgrset setauthdb
6629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6631 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6632 cat >>confdefs.h <<_ACEOF
6633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6639 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6643 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6645 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6649 check_for_aix_broken_getaddrinfo=1
6651 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6654 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6657 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6660 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6663 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6666 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6669 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6672 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6675 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6678 $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
6683 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6686 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6690 check_for_libcrypt_later=1
6691 LIBS="$LIBS /usr/lib/textreadmode.o"
6693 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6696 $as_echo "#define USE_PIPES 1" >>confdefs.h
6699 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6702 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6705 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6708 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6711 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
6714 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
6719 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6721 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6723 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6725 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6730 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
6731 if test "$cross_compiling" = yes; then :
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6733 $as_echo "assume it is working" >&6; }
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 #include <mach-o/dyld.h>
6738 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6745 if ac_fn_c_try_run "$LINENO"; then :
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6747 $as_echo "working" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6750 $as_echo "buggy" >&6; }
6752 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6757 conftest.$ac_objext conftest.beam conftest.$ac_ext
6760 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6762 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6764 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6767 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6770 cat >>confdefs.h <<_ACEOF
6771 #define BIND_8_COMPAT 1
6775 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6778 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6781 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6784 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6785 if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
6789 $as_echo "#define AU_IPv4 0" >>confdefs.h
6791 #include <bsm/audit.h>
6793 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6799 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6801 for ac_func in sandbox_init
6803 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
6804 if test "x$ac_cv_func_sandbox_init" = xyes; then :
6805 cat >>confdefs.h <<_ACEOF
6806 #define HAVE_SANDBOX_INIT 1
6812 for ac_header in sandbox.h
6814 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6815 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6816 cat >>confdefs.h <<_ACEOF
6817 #define HAVE_SANDBOX_H 1
6826 SSHDLIBS="$SSHDLIBS -lcrypt"
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
6831 $as_echo_n "checking for socket in -lnetwork... " >&6; }
6832 if ${ac_cv_lib_network_socket+:} false; then :
6833 $as_echo_n "(cached) " >&6
6835 ac_check_lib_save_LIBS=$LIBS
6836 LIBS="-lnetwork $LIBS"
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6840 /* Override any GCC internal prototype to avoid an error.
6841 Use char because int might match the return type of a GCC
6842 builtin and then its argument prototype would still apply. */
6855 if ac_fn_c_try_link "$LINENO"; then :
6856 ac_cv_lib_network_socket=yes
6858 ac_cv_lib_network_socket=no
6860 rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
6862 LIBS=$ac_check_lib_save_LIBS
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
6865 $as_echo "$ac_cv_lib_network_socket" >&6; }
6866 if test "x$ac_cv_lib_network_socket" = xyes; then :
6867 cat >>confdefs.h <<_ACEOF
6868 #define HAVE_LIBNETWORK 1
6871 LIBS="-lnetwork $LIBS"
6875 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
6880 # first we define all of the options common to all HP-UX releases
6881 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6882 IPADDR_IN_DISPLAY=yes
6883 $as_echo "#define USE_PIPES 1" >>confdefs.h
6886 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6888 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6891 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6893 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6896 $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6901 $as_echo_n "checking for t_error in -lxnet... " >&6; }
6902 if ${ac_cv_lib_xnet_t_error+:} false; then :
6903 $as_echo_n "(cached) " >&6
6905 ac_check_lib_save_LIBS=$LIBS
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6910 /* Override any GCC internal prototype to avoid an error.
6911 Use char because int might match the return type of a GCC
6912 builtin and then its argument prototype would still apply. */
6925 if ac_fn_c_try_link "$LINENO"; then :
6926 ac_cv_lib_xnet_t_error=yes
6928 ac_cv_lib_xnet_t_error=no
6930 rm -f core conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
6932 LIBS=$ac_check_lib_save_LIBS
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6935 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6936 if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
6937 cat >>confdefs.h <<_ACEOF
6938 #define HAVE_LIBXNET 1
6944 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6948 # next, we define all of the options specific to major releases
6951 if test -z "$GCC"; then
6952 CFLAGS="$CFLAGS -Ae"
6957 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6960 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6963 $as_echo "#define USE_BTMP 1" >>confdefs.h
6965 check_for_hpux_broken_getaddrinfo=1
6966 check_for_conflicting_getspnam=1
6970 # lastly, we define options specific to minor releases
6974 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6976 disable_ptmx_check=yes
6977 LIBS="$LIBS -lsecpw"
6982 PATH="$PATH:/usr/etc"
6984 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6986 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6988 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6990 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6993 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6995 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6999 PATH="$PATH:/usr/etc"
7001 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
7004 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
7007 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
7009 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
7010 if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7012 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
7016 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7018 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7020 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7022 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7025 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7027 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7029 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7032 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7033 check_for_libcrypt_later=1
7034 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7036 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7038 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7041 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7044 $as_echo "#define USE_BTMP 1" >>confdefs.h
7049 check_for_libcrypt_later=1
7050 check_for_openpty_ctty_bug=1
7052 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7055 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7057 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7060 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
7063 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7065 $as_echo "#define USE_BTMP 1" >>confdefs.h
7068 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
7070 inet6_default_4in6=yes
7074 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
7078 # tun(4) forwarding compat code
7079 for ac_header in linux/if_tun.h
7081 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
7082 if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
7083 cat >>confdefs.h <<_ACEOF
7084 #define HAVE_LINUX_IF_TUN_H 1
7091 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7093 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
7096 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7099 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7102 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7105 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
7107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7108 cat >>confdefs.h <<_ACEOF
7109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7116 for ac_func in prctl
7118 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
7119 if test "x$ac_cv_func_prctl" = xyes; then :
7120 cat >>confdefs.h <<_ACEOF
7121 #define HAVE_PRCTL 1
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
7128 $as_echo_n "checking for seccomp architecture... " >&6; }
7132 seccomp_audit_arch=AUDIT_ARCH_X86_64
7135 seccomp_audit_arch=AUDIT_ARCH_I386
7138 seccomp_audit_arch=AUDIT_ARCH_ARM
7141 if test "x$seccomp_audit_arch" != "x" ; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
7143 $as_echo "\"$seccomp_audit_arch\"" >&6; }
7145 cat >>confdefs.h <<_ACEOF
7146 #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
7151 $as_echo "architecture not supported" >&6; }
7154 mips-sony-bsd|mips-sony-newsos4)
7156 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7161 check_for_libcrypt_before=1
7162 if test "x$withval" != "xno" ; then
7166 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7168 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7169 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7173 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7179 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7183 check_for_libcrypt_later=1
7185 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
7188 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7190 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7191 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7195 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7201 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7204 $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7208 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7210 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7212 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7216 conf_lastlog_location="/usr/adm/lastlog"
7217 conf_utmp_location=/etc/utmp
7218 conf_wtmp_location=/usr/adm/wtmp
7219 maildir=/usr/spool/mail
7221 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
7223 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7225 $as_echo "#define USE_PIPES 1" >>confdefs.h
7228 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
7233 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
7236 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
7239 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
7242 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
7246 if test "x$withval" != "xno" ; then
7249 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7251 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7254 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
7256 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7259 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7261 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7263 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7265 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7268 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7271 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7273 external_path_file=/etc/default/login
7274 # hardwire lastlog location (can't detect it on some versions)
7275 conf_lastlog_location="/var/adm/lastlog"
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7277 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7278 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7279 if test "$sol2ver" -ge 8; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7281 $as_echo "yes" >&6; }
7282 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7285 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7292 # Check whether --with-solaris-contracts was given.
7293 if test "${with_solaris_contracts+set}" = set; then :
7294 withval=$with_solaris_contracts;
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7296 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7297 if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
7298 $as_echo_n "(cached) " >&6
7300 ac_check_lib_save_LIBS=$LIBS
7301 LIBS="-lcontract $LIBS"
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7305 /* Override any GCC internal prototype to avoid an error.
7306 Use char because int might match the return type of a GCC
7307 builtin and then its argument prototype would still apply. */
7311 char ct_tmpl_activate ();
7315 return ct_tmpl_activate ();
7320 if ac_fn_c_try_link "$LINENO"; then :
7321 ac_cv_lib_contract_ct_tmpl_activate=yes
7323 ac_cv_lib_contract_ct_tmpl_activate=no
7325 rm -f core conftest.err conftest.$ac_objext \
7326 conftest$ac_exeext conftest.$ac_ext
7327 LIBS=$ac_check_lib_save_LIBS
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7330 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7331 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7333 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7335 SSHDLIBS="$SSHDLIBS -lcontract"
7343 # Check whether --with-solaris-projects was given.
7344 if test "${with_solaris_projects+set}" = set; then :
7345 withval=$with_solaris_projects;
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7347 $as_echo_n "checking for setproject in -lproject... " >&6; }
7348 if ${ac_cv_lib_project_setproject+:} false; then :
7349 $as_echo_n "(cached) " >&6
7351 ac_check_lib_save_LIBS=$LIBS
7352 LIBS="-lproject $LIBS"
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7356 /* Override any GCC internal prototype to avoid an error.
7357 Use char because int might match the return type of a GCC
7358 builtin and then its argument prototype would still apply. */
7366 return setproject ();
7371 if ac_fn_c_try_link "$LINENO"; then :
7372 ac_cv_lib_project_setproject=yes
7374 ac_cv_lib_project_setproject=no
7376 rm -f core conftest.err conftest.$ac_objext \
7377 conftest$ac_exeext conftest.$ac_ext
7378 LIBS=$ac_check_lib_save_LIBS
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7381 $as_echo "$ac_cv_lib_project_setproject" >&6; }
7382 if test "x$ac_cv_lib_project_setproject" = xyes; then :
7384 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7386 SSHDLIBS="$SSHDLIBS -lproject"
7393 TEST_SHELL=$SHELL # let configure find us a capable shell
7396 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7397 for ac_func in getpwanam
7399 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7400 if test "x$ac_cv_func_getpwanam" = xyes; then :
7401 cat >>confdefs.h <<_ACEOF
7402 #define HAVE_GETPWANAM 1
7408 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7410 conf_utmp_location=/etc/utmp
7411 conf_wtmp_location=/var/adm/wtmp
7412 conf_lastlog_location=/var/adm/lastlog
7413 $as_echo "#define USE_PIPES 1" >>confdefs.h
7418 $as_echo "#define USE_PIPES 1" >>confdefs.h
7420 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7422 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7424 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7426 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7430 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7432 $as_echo_n "checking for dlsym in -ldl... " >&6; }
7433 if ${ac_cv_lib_dl_dlsym+:} false; then :
7434 $as_echo_n "(cached) " >&6
7436 ac_check_lib_save_LIBS=$LIBS
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7441 /* Override any GCC internal prototype to avoid an error.
7442 Use char because int might match the return type of a GCC
7443 builtin and then its argument prototype would still apply. */
7456 if ac_fn_c_try_link "$LINENO"; then :
7457 ac_cv_lib_dl_dlsym=yes
7459 ac_cv_lib_dl_dlsym=no
7461 rm -f core conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
7463 LIBS=$ac_check_lib_save_LIBS
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7466 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7467 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7468 cat >>confdefs.h <<_ACEOF
7469 #define HAVE_LIBDL 1
7476 # -lresolv needs to be at the end of LIBS or DNS lookups break
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7478 $as_echo_n "checking for res_query in -lresolv... " >&6; }
7479 if ${ac_cv_lib_resolv_res_query+:} false; then :
7480 $as_echo_n "(cached) " >&6
7482 ac_check_lib_save_LIBS=$LIBS
7483 LIBS="-lresolv $LIBS"
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7487 /* Override any GCC internal prototype to avoid an error.
7488 Use char because int might match the return type of a GCC
7489 builtin and then its argument prototype would still apply. */
7497 return res_query ();
7502 if ac_fn_c_try_link "$LINENO"; then :
7503 ac_cv_lib_resolv_res_query=yes
7505 ac_cv_lib_resolv_res_query=no
7507 rm -f core conftest.err conftest.$ac_objext \
7508 conftest$ac_exeext conftest.$ac_ext
7509 LIBS=$ac_check_lib_save_LIBS
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7512 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7513 if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7514 LIBS="$LIBS -lresolv"
7517 IPADDR_IN_DISPLAY=yes
7518 $as_echo "#define USE_PIPES 1" >>confdefs.h
7520 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7522 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7524 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7526 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7528 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7530 external_path_file=/etc/default/login
7531 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7532 # Attention: always take care to bind libsocket and libnsl before libc,
7533 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7535 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7537 $as_echo "#define USE_PIPES 1" >>confdefs.h
7539 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7541 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7543 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7546 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7548 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7550 TEST_SHELL=$SHELL # let configure find us a capable shell
7552 # UnixWare 7.x, OpenUNIX 8
7554 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7556 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7558 $as_echo "#define USE_PIPES 1" >>confdefs.h
7560 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7562 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7564 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7566 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7568 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7570 TEST_SHELL=$SHELL # let configure find us a capable shell
7572 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7573 maildir=/var/spool/mail
7575 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7577 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7580 $as_echo_n "checking for getluid in -lprot... " >&6; }
7581 if ${ac_cv_lib_prot_getluid+:} false; then :
7582 $as_echo_n "(cached) " >&6
7584 ac_check_lib_save_LIBS=$LIBS
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7589 /* Override any GCC internal prototype to avoid an error.
7590 Use char because int might match the return type of a GCC
7591 builtin and then its argument prototype would still apply. */
7604 if ac_fn_c_try_link "$LINENO"; then :
7605 ac_cv_lib_prot_getluid=yes
7607 ac_cv_lib_prot_getluid=no
7609 rm -f core conftest.err conftest.$ac_objext \
7610 conftest$ac_exeext conftest.$ac_ext
7611 LIBS=$ac_check_lib_save_LIBS
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
7614 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
7615 if test "x$ac_cv_lib_prot_getluid" = xyes; then :
7617 for ac_func in getluid setluid
7619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7621 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7622 cat >>confdefs.h <<_ACEOF
7623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7629 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7631 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7637 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7639 check_for_libcrypt_later=1
7645 # SCO UNIX and OEM versions of SCO UNIX
7647 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
7649 # SCO OpenServer 5.x
7651 if test -z "$GCC"; then
7652 CFLAGS="$CFLAGS -belf"
7654 LIBS="$LIBS -lprot -lx -ltinfo -lm"
7656 $as_echo "#define USE_PIPES 1" >>confdefs.h
7658 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7660 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7662 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7664 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7666 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7668 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7670 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7672 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7674 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7676 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7678 for ac_func in getluid setluid
7680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7682 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7683 cat >>confdefs.h <<_ACEOF
7684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7691 TEST_SHELL=$SHELL # let configure find us a capable shell
7692 SKIP_DISABLE_LASTLOG_DEFINE=yes
7696 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7698 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7700 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7702 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7704 $as_echo "#define USE_PIPES 1" >>confdefs.h
7706 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7709 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7713 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7715 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7717 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7719 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7721 $as_echo "#define USE_PIPES 1" >>confdefs.h
7723 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7726 LIBS="$LIBS -lgen -lacid -ldb"
7730 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7732 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7734 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7736 $as_echo "#define USE_PIPES 1" >>confdefs.h
7738 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7740 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7742 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7743 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
7748 $as_echo_n "checking for Digital Unix SIA... " >&6; }
7751 # Check whether --with-osfsia was given.
7752 if test "${with_osfsia+set}" = set; then :
7753 withval=$with_osfsia;
7754 if test "x$withval" = "xno" ; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7756 $as_echo "disabled" >&6; }
7762 if test -z "$no_osfsia" ; then
7763 if test -f /etc/sia/matrix.conf; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7765 $as_echo "yes" >&6; }
7767 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7770 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7772 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7774 LIBS="$LIBS -lsecurity -ldb -lm -laud"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7780 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7784 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7786 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7788 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7790 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7793 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7798 $as_echo "#define USE_PIPES 1" >>confdefs.h
7800 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7802 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7804 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7807 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7809 enable_etc_default_login=no # has incompatible /etc/default/login
7812 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7820 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7823 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7825 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7828 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7833 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7835 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7841 $as_echo_n "checking compiler and flags for sanity... " >&6; }
7842 if test "$cross_compiling" = yes; then :
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7844 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7858 if ac_fn_c_try_run "$LINENO"; then :
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7860 $as_echo "yes" >&6; }
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7869 conftest.$ac_objext conftest.beam conftest.$ac_ext
7873 # Checks for libraries.
7874 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7875 if test "x$ac_cv_func_yp_match" = xyes; then :
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7879 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
7880 if ${ac_cv_lib_nsl_yp_match+:} false; then :
7881 $as_echo_n "(cached) " >&6
7883 ac_check_lib_save_LIBS=$LIBS
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7888 /* Override any GCC internal prototype to avoid an error.
7889 Use char because int might match the return type of a GCC
7890 builtin and then its argument prototype would still apply. */
7903 if ac_fn_c_try_link "$LINENO"; then :
7904 ac_cv_lib_nsl_yp_match=yes
7906 ac_cv_lib_nsl_yp_match=no
7908 rm -f core conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
7910 LIBS=$ac_check_lib_save_LIBS
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7913 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7914 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
7915 cat >>confdefs.h <<_ACEOF
7916 #define HAVE_LIBNSL 1
7925 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7926 if test "x$ac_cv_func_setsockopt" = xyes; then :
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7930 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7931 if ${ac_cv_lib_socket_setsockopt+:} false; then :
7932 $as_echo_n "(cached) " >&6
7934 ac_check_lib_save_LIBS=$LIBS
7935 LIBS="-lsocket $LIBS"
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7939 /* Override any GCC internal prototype to avoid an error.
7940 Use char because int might match the return type of a GCC
7941 builtin and then its argument prototype would still apply. */
7949 return setsockopt ();
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 ac_cv_lib_socket_setsockopt=yes
7957 ac_cv_lib_socket_setsockopt=no
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 LIBS=$ac_check_lib_save_LIBS
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7964 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7965 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
7966 cat >>confdefs.h <<_ACEOF
7967 #define HAVE_LIBSOCKET 1
7970 LIBS="-lsocket $LIBS"
7977 for ac_func in dirname
7979 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7980 if test "x$ac_cv_func_dirname" = xyes; then :
7981 cat >>confdefs.h <<_ACEOF
7982 #define HAVE_DIRNAME 1
7984 for ac_header in libgen.h
7986 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7987 if test "x$ac_cv_header_libgen_h" = xyes; then :
7988 cat >>confdefs.h <<_ACEOF
7989 #define HAVE_LIBGEN_H 1
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7999 $as_echo_n "checking for dirname in -lgen... " >&6; }
8000 if ${ac_cv_lib_gen_dirname+:} false; then :
8001 $as_echo_n "(cached) " >&6
8003 ac_check_lib_save_LIBS=$LIBS
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8008 /* Override any GCC internal prototype to avoid an error.
8009 Use char because int might match the return type of a GCC
8010 builtin and then its argument prototype would still apply. */
8023 if ac_fn_c_try_link "$LINENO"; then :
8024 ac_cv_lib_gen_dirname=yes
8026 ac_cv_lib_gen_dirname=no
8028 rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030 LIBS=$ac_check_lib_save_LIBS
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
8033 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
8034 if test "x$ac_cv_lib_gen_dirname" = xyes; then :
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
8037 $as_echo_n "checking for broken dirname... " >&6; }
8038 if ${ac_cv_have_broken_dirname+:} false; then :
8039 $as_echo_n "(cached) " >&6
8044 if test "$cross_compiling" = yes; then :
8045 ac_cv_have_broken_dirname="no"
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8053 int main(int argc, char **argv) {
8056 strncpy(buf,"/etc", 32);
8058 if (!s || strncmp(s, "/", 32) != 0) {
8066 if ac_fn_c_try_run "$LINENO"; then :
8067 ac_cv_have_broken_dirname="no"
8069 ac_cv_have_broken_dirname="yes"
8071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8072 conftest.$ac_objext conftest.beam conftest.$ac_ext
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
8079 $as_echo "$ac_cv_have_broken_dirname" >&6; }
8080 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
8082 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
8084 for ac_header in libgen.h
8086 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8087 if test "x$ac_cv_header_libgen_h" = xyes; then :
8088 cat >>confdefs.h <<_ACEOF
8089 #define HAVE_LIBGEN_H 1
8105 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
8106 if test "x$ac_cv_func_getspnam" = xyes; then :
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
8110 $as_echo_n "checking for getspnam in -lgen... " >&6; }
8111 if ${ac_cv_lib_gen_getspnam+:} false; then :
8112 $as_echo_n "(cached) " >&6
8114 ac_check_lib_save_LIBS=$LIBS
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8119 /* Override any GCC internal prototype to avoid an error.
8120 Use char because int might match the return type of a GCC
8121 builtin and then its argument prototype would still apply. */
8134 if ac_fn_c_try_link "$LINENO"; then :
8135 ac_cv_lib_gen_getspnam=yes
8137 ac_cv_lib_gen_getspnam=no
8139 rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 LIBS=$ac_check_lib_save_LIBS
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
8144 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
8145 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
8152 $as_echo_n "checking for library containing basename... " >&6; }
8153 if ${ac_cv_search_basename+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 ac_func_search_save_LIBS=$LIBS
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8160 /* Override any GCC internal prototype to avoid an error.
8161 Use char because int might match the return type of a GCC
8162 builtin and then its argument prototype would still apply. */
8175 for ac_lib in '' gen; do
8176 if test -z "$ac_lib"; then
8177 ac_res="none required"
8180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8182 if ac_fn_c_try_link "$LINENO"; then :
8183 ac_cv_search_basename=$ac_res
8185 rm -f core conftest.err conftest.$ac_objext \
8187 if ${ac_cv_search_basename+:} false; then :
8191 if ${ac_cv_search_basename+:} false; then :
8194 ac_cv_search_basename=no
8197 LIBS=$ac_func_search_save_LIBS
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8200 $as_echo "$ac_cv_search_basename" >&6; }
8201 ac_res=$ac_cv_search_basename
8202 if test "$ac_res" != no; then :
8203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8205 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8211 # Check whether --with-zlib was given.
8212 if test "${with_zlib+set}" = set; then :
8213 withval=$with_zlib; if test "x$withval" = "xno" ; then
8214 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
8215 elif test "x$withval" != "xyes"; then
8216 if test -d "$withval/lib"; then
8217 if test -n "${need_dash_r}"; then
8218 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8220 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8223 if test -n "${need_dash_r}"; then
8224 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8226 LDFLAGS="-L${withval} ${LDFLAGS}"
8229 if test -d "$withval/include"; then
8230 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8232 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8239 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8240 if test "x$ac_cv_header_zlib_h" = xyes; then :
8243 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
8248 $as_echo_n "checking for deflate in -lz... " >&6; }
8249 if ${ac_cv_lib_z_deflate+:} false; then :
8250 $as_echo_n "(cached) " >&6
8252 ac_check_lib_save_LIBS=$LIBS
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8257 /* Override any GCC internal prototype to avoid an error.
8258 Use char because int might match the return type of a GCC
8259 builtin and then its argument prototype would still apply. */
8272 if ac_fn_c_try_link "$LINENO"; then :
8273 ac_cv_lib_z_deflate=yes
8275 ac_cv_lib_z_deflate=no
8277 rm -f core conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
8279 LIBS=$ac_check_lib_save_LIBS
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8282 $as_echo "$ac_cv_lib_z_deflate" >&6; }
8283 if test "x$ac_cv_lib_z_deflate" = xyes; then :
8284 cat >>confdefs.h <<_ACEOF
8292 saved_CPPFLAGS="$CPPFLAGS"
8293 saved_LDFLAGS="$LDFLAGS"
8295 if test -n "${need_dash_r}"; then
8296 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8298 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8300 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8305 /* Override any GCC internal prototype to avoid an error.
8306 Use char because int might match the return type of a GCC
8307 builtin and then its argument prototype would still apply. */
8320 if ac_fn_c_try_link "$LINENO"; then :
8321 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8325 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8329 rm -f core conftest.err conftest.$ac_objext \
8330 conftest$ac_exeext conftest.$ac_ext
8337 # Check whether --with-zlib-version-check was given.
8338 if test "${with_zlib_version_check+set}" = set; then :
8339 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8340 zlib_check_nonfatal=1
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8348 $as_echo_n "checking for possibly buggy zlib... " >&6; }
8349 if test "$cross_compiling" = yes; then :
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8351 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8365 int a=0, b=0, c=0, d=0, n, v;
8366 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8367 if (n != 3 && n != 4)
8369 v = a*1000000 + b*10000 + c*100 + d;
8370 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8373 if (a == 1 && b == 1 && c >= 4)
8376 /* 1.2.3 and up are OK */
8386 if ac_fn_c_try_run "$LINENO"; then :
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8391 $as_echo "yes" >&6; }
8392 if test -z "$zlib_check_nonfatal" ; then
8393 as_fn_error $? "*** zlib too old - check config.log ***
8394 Your reported zlib version has known security problems. It's possible your
8395 vendor has fixed these problems without changing the version number. If you
8396 are sure this is the case, you can disable the check by running
8397 \"./configure --without-zlib-version-check\".
8398 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8399 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8402 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8407 conftest.$ac_objext conftest.beam conftest.$ac_ext
8411 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8412 if test "x$ac_cv_func_strcasecmp" = xyes; then :
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8416 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8417 if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8418 $as_echo_n "(cached) " >&6
8420 ac_check_lib_save_LIBS=$LIBS
8421 LIBS="-lresolv $LIBS"
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8425 /* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
8435 return strcasecmp ();
8440 if ac_fn_c_try_link "$LINENO"; then :
8441 ac_cv_lib_resolv_strcasecmp=yes
8443 ac_cv_lib_resolv_strcasecmp=no
8445 rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 LIBS=$ac_check_lib_save_LIBS
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8450 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8451 if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8452 LIBS="$LIBS -lresolv"
8458 for ac_func in utimes
8460 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8461 if test "x$ac_cv_func_utimes" = xyes; then :
8462 cat >>confdefs.h <<_ACEOF
8463 #define HAVE_UTIMES 1
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8468 $as_echo_n "checking for utimes in -lc89... " >&6; }
8469 if ${ac_cv_lib_c89_utimes+:} false; then :
8470 $as_echo_n "(cached) " >&6
8472 ac_check_lib_save_LIBS=$LIBS
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8477 /* Override any GCC internal prototype to avoid an error.
8478 Use char because int might match the return type of a GCC
8479 builtin and then its argument prototype would still apply. */
8492 if ac_fn_c_try_link "$LINENO"; then :
8493 ac_cv_lib_c89_utimes=yes
8495 ac_cv_lib_c89_utimes=no
8497 rm -f core conftest.err conftest.$ac_objext \
8498 conftest$ac_exeext conftest.$ac_ext
8499 LIBS=$ac_check_lib_save_LIBS
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8502 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
8503 if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8504 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8514 for ac_header in bsd/libutil.h libutil.h
8516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8517 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8518 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8519 cat >>confdefs.h <<_ACEOF
8520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
8528 $as_echo_n "checking for library containing fmt_scaled... " >&6; }
8529 if ${ac_cv_search_fmt_scaled+:} false; then :
8530 $as_echo_n "(cached) " >&6
8532 ac_func_search_save_LIBS=$LIBS
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8536 /* Override any GCC internal prototype to avoid an error.
8537 Use char because int might match the return type of a GCC
8538 builtin and then its argument prototype would still apply. */
8546 return fmt_scaled ();
8551 for ac_lib in '' util bsd; do
8552 if test -z "$ac_lib"; then
8553 ac_res="none required"
8556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8558 if ac_fn_c_try_link "$LINENO"; then :
8559 ac_cv_search_fmt_scaled=$ac_res
8561 rm -f core conftest.err conftest.$ac_objext \
8563 if ${ac_cv_search_fmt_scaled+:} false; then :
8567 if ${ac_cv_search_fmt_scaled+:} false; then :
8570 ac_cv_search_fmt_scaled=no
8573 LIBS=$ac_func_search_save_LIBS
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
8576 $as_echo "$ac_cv_search_fmt_scaled" >&6; }
8577 ac_res=$ac_cv_search_fmt_scaled
8578 if test "$ac_res" != no; then :
8579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
8584 $as_echo_n "checking for library containing scan_scaled... " >&6; }
8585 if ${ac_cv_search_scan_scaled+:} false; then :
8586 $as_echo_n "(cached) " >&6
8588 ac_func_search_save_LIBS=$LIBS
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8592 /* Override any GCC internal prototype to avoid an error.
8593 Use char because int might match the return type of a GCC
8594 builtin and then its argument prototype would still apply. */
8598 char scan_scaled ();
8602 return scan_scaled ();
8607 for ac_lib in '' util bsd; do
8608 if test -z "$ac_lib"; then
8609 ac_res="none required"
8612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8614 if ac_fn_c_try_link "$LINENO"; then :
8615 ac_cv_search_scan_scaled=$ac_res
8617 rm -f core conftest.err conftest.$ac_objext \
8619 if ${ac_cv_search_scan_scaled+:} false; then :
8623 if ${ac_cv_search_scan_scaled+:} false; then :
8626 ac_cv_search_scan_scaled=no
8629 LIBS=$ac_func_search_save_LIBS
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
8632 $as_echo "$ac_cv_search_scan_scaled" >&6; }
8633 ac_res=$ac_cv_search_scan_scaled
8634 if test "$ac_res" != no; then :
8635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8640 $as_echo_n "checking for library containing login... " >&6; }
8641 if ${ac_cv_search_login+:} false; then :
8642 $as_echo_n "(cached) " >&6
8644 ac_func_search_save_LIBS=$LIBS
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8648 /* Override any GCC internal prototype to avoid an error.
8649 Use char because int might match the return type of a GCC
8650 builtin and then its argument prototype would still apply. */
8663 for ac_lib in '' util bsd; do
8664 if test -z "$ac_lib"; then
8665 ac_res="none required"
8668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8670 if ac_fn_c_try_link "$LINENO"; then :
8671 ac_cv_search_login=$ac_res
8673 rm -f core conftest.err conftest.$ac_objext \
8675 if ${ac_cv_search_login+:} false; then :
8679 if ${ac_cv_search_login+:} false; then :
8682 ac_cv_search_login=no
8685 LIBS=$ac_func_search_save_LIBS
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
8688 $as_echo "$ac_cv_search_login" >&6; }
8689 ac_res=$ac_cv_search_login
8690 if test "$ac_res" != no; then :
8691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
8696 $as_echo_n "checking for library containing logout... " >&6; }
8697 if ${ac_cv_search_logout+:} false; then :
8698 $as_echo_n "(cached) " >&6
8700 ac_func_search_save_LIBS=$LIBS
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8704 /* Override any GCC internal prototype to avoid an error.
8705 Use char because int might match the return type of a GCC
8706 builtin and then its argument prototype would still apply. */
8719 for ac_lib in '' util bsd; do
8720 if test -z "$ac_lib"; then
8721 ac_res="none required"
8724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8726 if ac_fn_c_try_link "$LINENO"; then :
8727 ac_cv_search_logout=$ac_res
8729 rm -f core conftest.err conftest.$ac_objext \
8731 if ${ac_cv_search_logout+:} false; then :
8735 if ${ac_cv_search_logout+:} false; then :
8738 ac_cv_search_logout=no
8741 LIBS=$ac_func_search_save_LIBS
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
8744 $as_echo "$ac_cv_search_logout" >&6; }
8745 ac_res=$ac_cv_search_logout
8746 if test "$ac_res" != no; then :
8747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
8752 $as_echo_n "checking for library containing logwtmp... " >&6; }
8753 if ${ac_cv_search_logwtmp+:} false; then :
8754 $as_echo_n "(cached) " >&6
8756 ac_func_search_save_LIBS=$LIBS
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8760 /* Override any GCC internal prototype to avoid an error.
8761 Use char because int might match the return type of a GCC
8762 builtin and then its argument prototype would still apply. */
8775 for ac_lib in '' util bsd; do
8776 if test -z "$ac_lib"; then
8777 ac_res="none required"
8780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8782 if ac_fn_c_try_link "$LINENO"; then :
8783 ac_cv_search_logwtmp=$ac_res
8785 rm -f core conftest.err conftest.$ac_objext \
8787 if ${ac_cv_search_logwtmp+:} false; then :
8791 if ${ac_cv_search_logwtmp+:} false; then :
8794 ac_cv_search_logwtmp=no
8797 LIBS=$ac_func_search_save_LIBS
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
8800 $as_echo "$ac_cv_search_logwtmp" >&6; }
8801 ac_res=$ac_cv_search_logwtmp
8802 if test "$ac_res" != no; then :
8803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
8808 $as_echo_n "checking for library containing openpty... " >&6; }
8809 if ${ac_cv_search_openpty+:} false; then :
8810 $as_echo_n "(cached) " >&6
8812 ac_func_search_save_LIBS=$LIBS
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8816 /* Override any GCC internal prototype to avoid an error.
8817 Use char because int might match the return type of a GCC
8818 builtin and then its argument prototype would still apply. */
8831 for ac_lib in '' util bsd; do
8832 if test -z "$ac_lib"; then
8833 ac_res="none required"
8836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8838 if ac_fn_c_try_link "$LINENO"; then :
8839 ac_cv_search_openpty=$ac_res
8841 rm -f core conftest.err conftest.$ac_objext \
8843 if ${ac_cv_search_openpty+:} false; then :
8847 if ${ac_cv_search_openpty+:} false; then :
8850 ac_cv_search_openpty=no
8853 LIBS=$ac_func_search_save_LIBS
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
8856 $as_echo "$ac_cv_search_openpty" >&6; }
8857 ac_res=$ac_cv_search_openpty
8858 if test "$ac_res" != no; then :
8859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
8864 $as_echo_n "checking for library containing updwtmp... " >&6; }
8865 if ${ac_cv_search_updwtmp+:} false; then :
8866 $as_echo_n "(cached) " >&6
8868 ac_func_search_save_LIBS=$LIBS
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8872 /* Override any GCC internal prototype to avoid an error.
8873 Use char because int might match the return type of a GCC
8874 builtin and then its argument prototype would still apply. */
8887 for ac_lib in '' util bsd; do
8888 if test -z "$ac_lib"; then
8889 ac_res="none required"
8892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8894 if ac_fn_c_try_link "$LINENO"; then :
8895 ac_cv_search_updwtmp=$ac_res
8897 rm -f core conftest.err conftest.$ac_objext \
8899 if ${ac_cv_search_updwtmp+:} false; then :
8903 if ${ac_cv_search_updwtmp+:} false; then :
8906 ac_cv_search_updwtmp=no
8909 LIBS=$ac_func_search_save_LIBS
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
8912 $as_echo "$ac_cv_search_updwtmp" >&6; }
8913 ac_res=$ac_cv_search_updwtmp
8914 if test "$ac_res" != no; then :
8915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8919 for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
8921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8923 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8924 cat >>confdefs.h <<_ACEOF
8925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8932 for ac_func in strftime
8934 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8935 if test "x$ac_cv_func_strftime" = xyes; then :
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_STRFTIME 1
8941 # strftime is in -lintl on SCO UNIX.
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8943 $as_echo_n "checking for strftime in -lintl... " >&6; }
8944 if ${ac_cv_lib_intl_strftime+:} false; then :
8945 $as_echo_n "(cached) " >&6
8947 ac_check_lib_save_LIBS=$LIBS
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8952 /* Override any GCC internal prototype to avoid an error.
8953 Use char because int might match the return type of a GCC
8954 builtin and then its argument prototype would still apply. */
8967 if ac_fn_c_try_link "$LINENO"; then :
8968 ac_cv_lib_intl_strftime=yes
8970 ac_cv_lib_intl_strftime=no
8972 rm -f core conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext conftest.$ac_ext
8974 LIBS=$ac_check_lib_save_LIBS
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8977 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8978 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
8979 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8988 # Check for ALTDIRFUNC glob() extension
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
8990 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8995 #ifdef GLOB_ALTDIRFUNC
9000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9001 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
9004 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9007 $as_echo "yes" >&6; }
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9019 # Check for g.gl_matchc glob() extension
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
9021 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9028 glob_t g; g.gl_matchc = 1;
9033 if ac_fn_c_try_compile "$LINENO"; then :
9036 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9039 $as_echo "yes" >&6; }
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 # Check for g.gl_statv glob() extension
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
9051 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9059 #ifndef GLOB_KEEPSTAT
9060 #error "glob does not support GLOB_KEEPSTAT extension"
9069 if ac_fn_c_try_compile "$LINENO"; then :
9072 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9075 $as_echo "yes" >&6; }
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
9088 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
9094 cat >>confdefs.h <<_ACEOF
9095 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
9100 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
9101 if test "$cross_compiling" = yes; then :
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
9104 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
9105 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9113 #include <sys/types.h>
9120 exit(sizeof(d.d_name)<=sizeof(char));
9126 if ac_fn_c_try_run "$LINENO"; then :
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9128 $as_echo "yes" >&6; }
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9134 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9139 conftest.$ac_objext conftest.beam conftest.$ac_ext
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
9144 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
9145 if test -d "/proc/$$/fd" ; then
9147 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9150 $as_echo "yes" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9156 # Check whether user wants S/Key support
9159 # Check whether --with-skey was given.
9160 if test "${with_skey+set}" = set; then :
9162 if test "x$withval" != "xno" ; then
9164 if test "x$withval" != "xyes" ; then
9165 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9166 LDFLAGS="$LDFLAGS -L${withval}/lib"
9170 $as_echo "#define SKEY 1" >>confdefs.h
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
9176 $as_echo_n "checking for s/key support... " >&6; }
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9187 char *ff = skey_keyinfo(""); ff="";
9194 if ac_fn_c_try_link "$LINENO"; then :
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9196 $as_echo "yes" >&6; }
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
9207 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9218 (void)skeychallenge(NULL,"name","",0);
9224 if ac_fn_c_try_compile "$LINENO"; then :
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9227 $as_echo "yes" >&6; }
9229 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; }
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244 # Check whether user wants TCP wrappers support
9247 # Check whether --with-tcp-wrappers was given.
9248 if test "${with_tcp_wrappers+set}" = set; then :
9249 withval=$with_tcp_wrappers;
9250 if test "x$withval" != "xno" ; then
9252 saved_LDFLAGS="$LDFLAGS"
9253 saved_CPPFLAGS="$CPPFLAGS"
9254 if test -n "${withval}" && \
9255 test "x${withval}" != "xyes"; then
9256 if test -d "${withval}/lib"; then
9257 if test -n "${need_dash_r}"; then
9258 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9260 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9263 if test -n "${need_dash_r}"; then
9264 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9266 LDFLAGS="-L${withval} ${LDFLAGS}"
9269 if test -d "${withval}/include"; then
9270 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9272 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
9277 $as_echo_n "checking for libwrap... " >&6; }
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9281 #include <sys/types.h>
9282 #include <sys/socket.h>
9283 #include <netinet/in.h>
9285 int deny_severity = 0, allow_severity = 0;
9297 if ac_fn_c_try_link "$LINENO"; then :
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9300 $as_echo "yes" >&6; }
9302 $as_echo "#define LIBWRAP 1" >>confdefs.h
9304 SSHDLIBS="$SSHDLIBS -lwrap"
9309 as_fn_error $? "*** libwrap missing" "$LINENO" 5
9313 rm -f core conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9322 # Check whether user wants to use ldns
9325 # Check whether --with-ldns was given.
9326 if test "${with_ldns+set}" = set; then :
9328 if test "x$withval" != "xno" ; then
9330 if test "x$withval" != "xyes" ; then
9331 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9332 LDFLAGS="$LDFLAGS -L${withval}/lib"
9336 $as_echo "#define HAVE_LDNS 1" >>confdefs.h
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
9342 $as_echo_n "checking for ldns support... " >&6; }
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9349 #include <ldns/ldns.h>
9350 int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
9354 if ac_fn_c_try_link "$LINENO"; then :
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9356 $as_echo "yes" >&6; }
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9361 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
9364 rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9372 # Check whether user wants libedit support
9375 # Check whether --with-libedit was given.
9376 if test "${with_libedit+set}" = set; then :
9377 withval=$with_libedit; if test "x$withval" != "xno" ; then
9378 if test "x$withval" = "xyes" ; then
9379 if test -n "$ac_tool_prefix"; then
9380 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9381 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383 $as_echo_n "checking for $ac_word... " >&6; }
9384 if ${ac_cv_path_PKGCONFIG+:} false; then :
9385 $as_echo_n "(cached) " >&6
9389 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9399 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 PKGCONFIG=$ac_cv_path_PKGCONFIG
9411 if test -n "$PKGCONFIG"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
9413 $as_echo "$PKGCONFIG" >&6; }
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9421 if test -z "$ac_cv_path_PKGCONFIG"; then
9422 ac_pt_PKGCONFIG=$PKGCONFIG
9423 # Extract the first word of "pkg-config", so it can be a program name with args.
9424 set dummy pkg-config; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
9428 $as_echo_n "(cached) " >&6
9430 case $ac_pt_PKGCONFIG in
9432 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
9435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 test -z "$as_dir" && as_dir=.
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9442 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9453 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
9454 if test -n "$ac_pt_PKGCONFIG"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
9456 $as_echo "$ac_pt_PKGCONFIG" >&6; }
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9462 if test "x$ac_pt_PKGCONFIG" = x; then
9465 case $cross_compiling:$ac_tool_warned in
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9469 ac_tool_warned=yes ;;
9471 PKGCONFIG=$ac_pt_PKGCONFIG
9474 PKGCONFIG="$ac_cv_path_PKGCONFIG"
9477 if test "x$PKGCONFIG" != "xno"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
9479 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
9480 if "$PKGCONFIG" libedit; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9482 $as_echo "yes" >&6; }
9483 use_pkgconfig_for_libedit=yes
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9490 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9491 if test -n "${need_dash_r}"; then
9492 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9494 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9497 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
9498 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
9499 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
9501 LIBEDIT="-ledit -lcurses"
9503 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
9505 $as_echo_n "checking for el_init in -ledit... " >&6; }
9506 if ${ac_cv_lib_edit_el_init+:} false; then :
9507 $as_echo_n "(cached) " >&6
9509 ac_check_lib_save_LIBS=$LIBS
9510 LIBS="-ledit $OTHERLIBS
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9530 if ac_fn_c_try_link "$LINENO"; then :
9531 ac_cv_lib_edit_el_init=yes
9533 ac_cv_lib_edit_el_init=no
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 LIBS=$ac_check_lib_save_LIBS
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
9540 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
9541 if test "x$ac_cv_lib_edit_el_init" = xyes; then :
9543 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
9549 as_fn_error $? "libedit not found" "$LINENO" 5
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
9553 $as_echo_n "checking if libedit version is compatible... " >&6; }
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 #include <histedit.h>
9562 el_init("", NULL, NULL, NULL);
9569 if ac_fn_c_try_compile "$LINENO"; then :
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9571 $as_echo "yes" >&6; }
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9575 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9586 # Check whether --with-audit was given.
9587 if test "${with_audit+set}" = set; then :
9588 withval=$with_audit;
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
9590 $as_echo_n "checking for supported audit module... " >&6; }
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
9594 $as_echo "bsm" >&6; }
9596 for ac_header in bsm/audit.h
9598 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
9605 if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
9606 cat >>confdefs.h <<_ACEOF
9607 #define HAVE_BSM_AUDIT_H 1
9611 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
9617 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
9618 if ${ac_cv_lib_bsm_getaudit+:} false; then :
9619 $as_echo_n "(cached) " >&6
9621 ac_check_lib_save_LIBS=$LIBS
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h. */
9626 /* Override any GCC internal prototype to avoid an error.
9627 Use char because int might match the return type of a GCC
9628 builtin and then its argument prototype would still apply. */
9641 if ac_fn_c_try_link "$LINENO"; then :
9642 ac_cv_lib_bsm_getaudit=yes
9644 ac_cv_lib_bsm_getaudit=no
9646 rm -f core conftest.err conftest.$ac_objext \
9647 conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_lib_save_LIBS
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
9651 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
9652 if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
9653 cat >>confdefs.h <<_ACEOF
9654 #define HAVE_LIBBSM 1
9660 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
9663 for ac_func in getaudit
9665 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
9666 if test "x$ac_cv_func_getaudit" = xyes; then :
9667 cat >>confdefs.h <<_ACEOF
9668 #define HAVE_GETAUDIT 1
9672 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
9676 # These are optional
9677 for ac_func in getaudit_addr aug_get_machine
9679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9680 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9681 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9682 cat >>confdefs.h <<_ACEOF
9683 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9690 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
9692 if test "$sol2ver" -eq 11; then
9693 SSHDLIBS="$SSHDLIBS -lscf"
9695 $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
9701 $as_echo "linux" >&6; }
9703 for ac_header in libaudit.h
9705 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
9706 if test "x$ac_cv_header_libaudit_h" = xyes; then :
9707 cat >>confdefs.h <<_ACEOF
9708 #define HAVE_LIBAUDIT_H 1
9715 SSHDLIBS="$SSHDLIBS -laudit"
9717 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
9723 $as_echo "debug" >&6; }
9725 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9730 $as_echo "no" >&6; }
9733 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
9743 arc4random_uniform \
9845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9846 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9847 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9848 cat >>confdefs.h <<_ACEOF
9849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9862 return (isblank('a'));
9867 if ac_fn_c_try_link "$LINENO"; then :
9869 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
9873 rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9876 # PKCS#11 support requires dlopen() and co
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9878 $as_echo_n "checking for library containing dlopen... " >&6; }
9879 if ${ac_cv_search_dlopen+:} false; then :
9880 $as_echo_n "(cached) " >&6
9882 ac_func_search_save_LIBS=$LIBS
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9886 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9901 for ac_lib in '' dl; do
9902 if test -z "$ac_lib"; then
9903 ac_res="none required"
9906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9908 if ac_fn_c_try_link "$LINENO"; then :
9909 ac_cv_search_dlopen=$ac_res
9911 rm -f core conftest.err conftest.$ac_objext \
9913 if ${ac_cv_search_dlopen+:} false; then :
9917 if ${ac_cv_search_dlopen+:} false; then :
9920 ac_cv_search_dlopen=no
9923 LIBS=$ac_func_search_save_LIBS
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9926 $as_echo "$ac_cv_search_dlopen" >&6; }
9927 ac_res=$ac_cv_search_dlopen
9928 if test "$ac_res" != no; then :
9929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9931 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
9937 # IRIX has a const char return value for gai_strerror()
9938 for ac_func in gai_strerror
9940 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
9941 if test "x$ac_cv_func_gai_strerror" = xyes; then :
9942 cat >>confdefs.h <<_ACEOF
9943 #define HAVE_GAI_STRERROR 1
9946 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9951 #include <sys/types.h>
9952 #include <sys/socket.h>
9955 const char *gai_strerror(int);
9962 str = gai_strerror(0);
9968 if ac_fn_c_try_compile "$LINENO"; then :
9971 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
9974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9980 $as_echo_n "checking for library containing nanosleep... " >&6; }
9981 if ${ac_cv_search_nanosleep+:} false; then :
9982 $as_echo_n "(cached) " >&6
9984 ac_func_search_save_LIBS=$LIBS
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9988 /* Override any GCC internal prototype to avoid an error.
9989 Use char because int might match the return type of a GCC
9990 builtin and then its argument prototype would still apply. */
9998 return nanosleep ();
10003 for ac_lib in '' rt posix4; do
10004 if test -z "$ac_lib"; then
10005 ac_res="none required"
10008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10010 if ac_fn_c_try_link "$LINENO"; then :
10011 ac_cv_search_nanosleep=$ac_res
10013 rm -f core conftest.err conftest.$ac_objext \
10015 if ${ac_cv_search_nanosleep+:} false; then :
10019 if ${ac_cv_search_nanosleep+:} false; then :
10022 ac_cv_search_nanosleep=no
10024 rm conftest.$ac_ext
10025 LIBS=$ac_func_search_save_LIBS
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
10028 $as_echo "$ac_cv_search_nanosleep" >&6; }
10029 ac_res=$ac_cv_search_nanosleep
10030 if test "$ac_res" != no; then :
10031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10033 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10039 $as_echo_n "checking for library containing clock_gettime... " >&6; }
10040 if ${ac_cv_search_clock_gettime+:} false; then :
10041 $as_echo_n "(cached) " >&6
10043 ac_func_search_save_LIBS=$LIBS
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10053 char clock_gettime ();
10057 return clock_gettime ();
10062 for ac_lib in '' rt; do
10063 if test -z "$ac_lib"; then
10064 ac_res="none required"
10067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10069 if ac_fn_c_try_link "$LINENO"; then :
10070 ac_cv_search_clock_gettime=$ac_res
10072 rm -f core conftest.err conftest.$ac_objext \
10074 if ${ac_cv_search_clock_gettime+:} false; then :
10078 if ${ac_cv_search_clock_gettime+:} false; then :
10081 ac_cv_search_clock_gettime=no
10083 rm conftest.$ac_ext
10084 LIBS=$ac_func_search_save_LIBS
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10087 $as_echo "$ac_cv_search_clock_gettime" >&6; }
10088 ac_res=$ac_cv_search_clock_gettime
10089 if test "$ac_res" != no; then :
10090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10092 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10097 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
10098 if test "x$ac_cv_have_decl_getrusage" = xyes; then :
10099 for ac_func in getrusage
10101 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
10102 if test "x$ac_cv_func_getrusage" = xyes; then :
10103 cat >>confdefs.h <<_ACEOF
10104 #define HAVE_GETRUSAGE 1
10112 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
10113 #ifdef HAVE_STRING_H
10114 # include <string.h>
10118 if test "x$ac_cv_have_decl_strsep" = xyes; then :
10119 for ac_func in strsep
10121 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
10122 if test "x$ac_cv_func_strsep" = xyes; then :
10123 cat >>confdefs.h <<_ACEOF
10124 #define HAVE_STRSEP 1
10133 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
10136 if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
10137 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
10140 for ac_func in tcsendbreak
10142 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
10143 if test "x$ac_cv_func_tcsendbreak" = xyes; then :
10144 cat >>confdefs.h <<_ACEOF
10145 #define HAVE_TCSENDBREAK 1
10154 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
10156 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
10162 cat >>confdefs.h <<_ACEOF
10163 #define HAVE_DECL_H_ERRNO $ac_have_decl
10167 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
10168 #include <sys/types.h>
10169 #include <sys/socket.h>
10172 if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
10178 cat >>confdefs.h <<_ACEOF
10179 #define HAVE_DECL_SHUT_RD $ac_have_decl
10183 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
10184 #include <sys/types.h>
10185 #ifdef HAVE_SYS_STAT_H
10186 # include <sys/stat.h>
10188 #ifdef HAVE_FCNTL_H
10189 # include <fcntl.h>
10193 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
10199 cat >>confdefs.h <<_ACEOF
10200 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
10204 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
10205 #include <sys/types.h>
10206 #include <sys/uio.h>
10207 #include <unistd.h>
10210 if test "x$ac_cv_have_decl_writev" = xyes; then :
10216 cat >>confdefs.h <<_ACEOF
10217 #define HAVE_DECL_WRITEV $ac_have_decl
10221 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
10222 #include <sys/param.h>
10225 if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
10236 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
10237 #include <stddef.h>
10240 if test "x$ac_cv_have_decl_offsetof" = xyes; then :
10246 cat >>confdefs.h <<_ACEOF
10247 #define HAVE_DECL_OFFSETOF $ac_have_decl
10251 # extra bits for select(2)
10252 ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
10253 #include <sys/param.h>
10254 #include <sys/types.h>
10255 #ifdef HAVE_SYS_SYSMACROS_H
10256 #include <sys/sysmacros.h>
10258 #ifdef HAVE_SYS_SELECT_H
10259 #include <sys/select.h>
10261 #ifdef HAVE_SYS_TIME_H
10262 #include <sys/time.h>
10264 #ifdef HAVE_UNISTD_H
10265 #include <unistd.h>
10269 if test "x$ac_cv_have_decl_howmany" = xyes; then :
10275 cat >>confdefs.h <<_ACEOF
10276 #define HAVE_DECL_HOWMANY $ac_have_decl
10278 ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
10279 #include <sys/param.h>
10280 #include <sys/types.h>
10281 #ifdef HAVE_SYS_SYSMACROS_H
10282 #include <sys/sysmacros.h>
10284 #ifdef HAVE_SYS_SELECT_H
10285 #include <sys/select.h>
10287 #ifdef HAVE_SYS_TIME_H
10288 #include <sys/time.h>
10290 #ifdef HAVE_UNISTD_H
10291 #include <unistd.h>
10295 if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
10301 cat >>confdefs.h <<_ACEOF
10302 #define HAVE_DECL_NFDBITS $ac_have_decl
10305 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
10306 #include <sys/param.h>
10307 #include <sys/types.h>
10308 #ifdef HAVE_SYS_SELECT_H
10309 #include <sys/select.h>
10311 #ifdef HAVE_SYS_TIME_H
10312 #include <sys/time.h>
10314 #ifdef HAVE_UNISTD_H
10315 #include <unistd.h>
10319 if test "x$ac_cv_type_fd_mask" = xyes; then :
10321 cat >>confdefs.h <<_ACEOF
10322 #define HAVE_FD_MASK 1
10329 for ac_func in setresuid
10331 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
10332 if test "x$ac_cv_func_setresuid" = xyes; then :
10333 cat >>confdefs.h <<_ACEOF
10334 #define HAVE_SETRESUID 1
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
10338 $as_echo_n "checking if setresuid seems to work... " >&6; }
10339 if test "$cross_compiling" = yes; then :
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
10341 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10347 #include <stdlib.h>
10365 if ac_fn_c_try_run "$LINENO"; then :
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10367 $as_echo "yes" >&6; }
10370 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
10373 $as_echo "not implemented" >&6; }
10375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10376 conftest.$ac_objext conftest.beam conftest.$ac_ext
10384 for ac_func in setresgid
10386 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
10387 if test "x$ac_cv_func_setresgid" = xyes; then :
10388 cat >>confdefs.h <<_ACEOF
10389 #define HAVE_SETRESGID 1
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
10393 $as_echo_n "checking if setresgid seems to work... " >&6; }
10394 if test "$cross_compiling" = yes; then :
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
10396 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10402 #include <stdlib.h>
10420 if ac_fn_c_try_run "$LINENO"; then :
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10422 $as_echo "yes" >&6; }
10425 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
10428 $as_echo "not implemented" >&6; }
10430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10431 conftest.$ac_objext conftest.beam conftest.$ac_ext
10439 for ac_func in gettimeofday time
10441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10444 cat >>confdefs.h <<_ACEOF
10445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10451 for ac_func in endutent getutent getutid getutline pututline setutent
10453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10454 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10455 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10456 cat >>confdefs.h <<_ACEOF
10457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10463 for ac_func in utmpname
10465 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
10466 if test "x$ac_cv_func_utmpname" = xyes; then :
10467 cat >>confdefs.h <<_ACEOF
10468 #define HAVE_UTMPNAME 1
10474 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
10476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10478 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10479 cat >>confdefs.h <<_ACEOF
10480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10486 for ac_func in setutxdb setutxent utmpxname
10488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10490 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10491 cat >>confdefs.h <<_ACEOF
10492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10498 for ac_func in getlastlogxbyname
10500 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
10501 if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
10502 cat >>confdefs.h <<_ACEOF
10503 #define HAVE_GETLASTLOGXBYNAME 1
10510 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
10511 if test "x$ac_cv_func_daemon" = xyes; then :
10513 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
10517 $as_echo_n "checking for daemon in -lbsd... " >&6; }
10518 if ${ac_cv_lib_bsd_daemon+:} false; then :
10519 $as_echo_n "(cached) " >&6
10521 ac_check_lib_save_LIBS=$LIBS
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10526 /* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
10541 if ac_fn_c_try_link "$LINENO"; then :
10542 ac_cv_lib_bsd_daemon=yes
10544 ac_cv_lib_bsd_daemon=no
10546 rm -f core conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
10548 LIBS=$ac_check_lib_save_LIBS
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
10551 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
10552 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
10553 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
10561 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10562 if test "x$ac_cv_func_getpagesize" = xyes; then :
10564 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
10568 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
10569 if ${ac_cv_lib_ucb_getpagesize+:} false; then :
10570 $as_echo_n "(cached) " >&6
10572 ac_check_lib_save_LIBS=$LIBS
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10577 /* Override any GCC internal prototype to avoid an error.
10578 Use char because int might match the return type of a GCC
10579 builtin and then its argument prototype would still apply. */
10583 char getpagesize ();
10587 return getpagesize ();
10592 if ac_fn_c_try_link "$LINENO"; then :
10593 ac_cv_lib_ucb_getpagesize=yes
10595 ac_cv_lib_ucb_getpagesize=no
10597 rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
10602 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
10603 if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
10604 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
10612 # Check for broken snprintf
10613 if test "x$ac_cv_func_snprintf" = "xyes" ; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
10615 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
10616 if test "$cross_compiling" = yes; then :
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
10618 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10629 snprintf(b,5,"123456789");
10636 if ac_fn_c_try_run "$LINENO"; then :
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10638 $as_echo "yes" >&6; }
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10644 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
10647 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
10650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10651 conftest.$ac_objext conftest.beam conftest.$ac_ext
10656 # If we don't have a working asprintf, then we strongly depend on vsnprintf
10657 # returning the right thing on overflow: the number of characters it tried to
10658 # create (as per SUSv3)
10659 if test "x$ac_cv_func_asprintf" != "xyes" && \
10660 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
10662 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
10663 if test "$cross_compiling" = yes; then :
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
10665 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10671 #include <sys/types.h>
10673 #include <stdarg.h>
10675 int x_snprintf(char *str,size_t count,const char *fmt,...)
10677 size_t ret; va_list ap;
10678 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
10687 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
10693 if ac_fn_c_try_run "$LINENO"; then :
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10695 $as_echo "yes" >&6; }
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10701 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
10704 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
10707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10708 conftest.$ac_objext conftest.beam conftest.$ac_ext
10713 # On systems where [v]snprintf is broken, but is declared in stdio,
10714 # check that the fmt argument is const char * or just char *.
10715 # This is only useful for when BROKEN_SNPRINTF
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
10717 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10722 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
10734 if ac_fn_c_try_compile "$LINENO"; then :
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10736 $as_echo "yes" >&6; }
10738 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10743 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748 # Check for missing getpeereid (or equiv) support
10750 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
10752 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10756 #include <sys/types.h>
10757 #include <sys/socket.h>
10761 int i = SO_PEERCRED;
10766 if ac_fn_c_try_compile "$LINENO"; then :
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10768 $as_echo "yes" >&6; }
10770 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775 $as_echo "no" >&6; }
10779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
10784 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
10785 if test "$cross_compiling" = yes; then :
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10788 $as_echo "yes" >&6; }
10789 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 #include <stdlib.h>
10803 char template[]="conftest.mkstemp-test";
10804 if (mkstemp(template) == -1)
10813 if ac_fn_c_try_run "$LINENO"; then :
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816 $as_echo "no" >&6; }
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821 $as_echo "yes" >&6; }
10823 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
10827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10828 conftest.$ac_objext conftest.beam conftest.$ac_ext
10833 if test ! -z "$check_for_openpty_ctty_bug"; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
10835 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
10836 if test "$cross_compiling" = yes; then :
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10839 $as_echo "cross-compiling, assuming yes" >&6; }
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10847 #include <sys/fcntl.h>
10848 #include <sys/types.h>
10849 #include <sys/wait.h>
10856 int fd, ptyfd, ttyfd, status;
10859 if (pid < 0) { /* failed */
10861 } else if (pid > 0) { /* parent */
10862 waitpid(pid, &status, 0);
10863 if (WIFEXITED(status))
10864 exit(WEXITSTATUS(status));
10867 } else { /* child */
10868 close(0); close(1); close(2);
10870 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
10871 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
10873 exit(3); /* Acquired ctty: broken */
10875 exit(0); /* Did not acquire ctty: OK */
10882 if ac_fn_c_try_run "$LINENO"; then :
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10885 $as_echo "yes" >&6; }
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10891 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
10895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10896 conftest.$ac_objext conftest.beam conftest.$ac_ext
10901 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10902 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10904 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10905 if test "$cross_compiling" = yes; then :
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10908 $as_echo "cross-compiling, assuming yes" >&6; }
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10916 #include <sys/socket.h>
10919 #include <netinet/in.h>
10921 #define TEST_PORT "2222"
10928 struct addrinfo *gai_ai, *ai, hints;
10929 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10931 memset(&hints, 0, sizeof(hints));
10932 hints.ai_family = PF_UNSPEC;
10933 hints.ai_socktype = SOCK_STREAM;
10934 hints.ai_flags = AI_PASSIVE;
10936 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10938 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10942 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10943 if (ai->ai_family != AF_INET6)
10946 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10947 sizeof(ntop), strport, sizeof(strport),
10948 NI_NUMERICHOST|NI_NUMERICSERV);
10951 if (err == EAI_SYSTEM)
10952 perror("getnameinfo EAI_SYSTEM");
10954 fprintf(stderr, "getnameinfo failed: %s\n",
10955 gai_strerror(err));
10959 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
10962 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
10963 if (errno == EBADF)
10973 if ac_fn_c_try_run "$LINENO"; then :
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10976 $as_echo "yes" >&6; }
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10982 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10987 conftest.$ac_objext conftest.beam conftest.$ac_ext
10992 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10993 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10995 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10996 if test "$cross_compiling" = yes; then :
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
10999 $as_echo "cross-compiling, assuming no" >&6; }
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11007 #include <sys/socket.h>
11010 #include <netinet/in.h>
11012 #define TEST_PORT "2222"
11019 struct addrinfo *gai_ai, *ai, hints;
11020 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11022 memset(&hints, 0, sizeof(hints));
11023 hints.ai_family = PF_UNSPEC;
11024 hints.ai_socktype = SOCK_STREAM;
11025 hints.ai_flags = AI_PASSIVE;
11027 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11029 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11033 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11034 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
11037 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11038 sizeof(ntop), strport, sizeof(strport),
11039 NI_NUMERICHOST|NI_NUMERICSERV);
11041 if (ai->ai_family == AF_INET && err != 0) {
11042 perror("getnameinfo");
11052 if ac_fn_c_try_run "$LINENO"; then :
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11055 $as_echo "yes" >&6; }
11057 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11064 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11069 conftest.$ac_objext conftest.beam conftest.$ac_ext
11074 if test "x$check_for_conflicting_getspnam" = "x1"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
11076 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079 #include <shadow.h>
11088 if ac_fn_c_try_compile "$LINENO"; then :
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11096 $as_echo "yes" >&6; }
11098 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
11103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11107 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11108 if ${ac_cv_func_getpgrp_void+:} false; then :
11109 $as_echo_n "(cached) " >&6
11111 # Use it with a single arg.
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114 $ac_includes_default
11123 if ac_fn_c_try_compile "$LINENO"; then :
11124 ac_cv_func_getpgrp_void=no
11126 ac_cv_func_getpgrp_void=yes
11128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11132 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11133 if test $ac_cv_func_getpgrp_void = yes; then
11135 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11140 # Search for OpenSSL
11141 saved_CPPFLAGS="$CPPFLAGS"
11142 saved_LDFLAGS="$LDFLAGS"
11144 # Check whether --with-ssl-dir was given.
11145 if test "${with_ssl_dir+set}" = set; then :
11146 withval=$with_ssl_dir;
11147 if test "x$withval" != "xno" ; then
11150 ./*|../*) withval="`pwd`/$withval"
11152 if test -d "$withval/lib"; then
11153 if test -n "${need_dash_r}"; then
11154 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11156 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11158 elif test -d "$withval/lib64"; then
11159 if test -n "${need_dash_r}"; then
11160 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
11162 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
11165 if test -n "${need_dash_r}"; then
11166 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11168 LDFLAGS="-L${withval} ${LDFLAGS}"
11171 if test -d "$withval/include"; then
11172 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11174 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11181 LIBS="-lcrypto $LIBS"
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11195 return RAND_add ();
11200 if ac_fn_c_try_link "$LINENO"; then :
11202 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11206 if test -n "${need_dash_r}"; then
11207 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
11209 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
11211 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
11212 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
11213 if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
11216 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11223 /* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11233 return RAND_add ();
11238 if ac_fn_c_try_link "$LINENO"; then :
11239 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11243 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11255 # Determine OpenSSL header version
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
11257 $as_echo_n "checking OpenSSL header version... " >&6; }
11258 if test "$cross_compiling" = yes; then :
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11261 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11269 #include <string.h>
11270 #include <openssl/opensslv.h>
11271 #define DATA "conftest.sslincver"
11280 fd = fopen(DATA,"w");
11284 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
11293 if ac_fn_c_try_run "$LINENO"; then :
11295 ssl_header_ver=`cat conftest.sslincver`
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
11297 $as_echo "$ssl_header_ver" >&6; }
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11302 $as_echo "not found" >&6; }
11303 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
11306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11307 conftest.$ac_objext conftest.beam conftest.$ac_ext
11311 # Determine OpenSSL library version
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
11313 $as_echo_n "checking OpenSSL library version... " >&6; }
11314 if test "$cross_compiling" = yes; then :
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11317 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11325 #include <string.h>
11326 #include <openssl/opensslv.h>
11327 #include <openssl/crypto.h>
11328 #define DATA "conftest.ssllibver"
11337 fd = fopen(DATA,"w");
11341 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
11350 if ac_fn_c_try_run "$LINENO"; then :
11352 ssl_library_ver=`cat conftest.ssllibver`
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
11354 $as_echo "$ssl_library_ver" >&6; }
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11359 $as_echo "not found" >&6; }
11360 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
11363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11364 conftest.$ac_objext conftest.beam conftest.$ac_ext
11369 # Check whether --with-openssl-header-check was given.
11370 if test "${with_openssl_header_check+set}" = set; then :
11371 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
11372 openssl_check_nonfatal=1
11379 # Sanity check OpenSSL headers
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
11381 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
11382 if test "$cross_compiling" = yes; then :
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11385 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11392 #include <string.h>
11393 #include <openssl/opensslv.h>
11399 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
11405 if ac_fn_c_try_run "$LINENO"; then :
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11408 $as_echo "yes" >&6; }
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11414 if test "x$openssl_check_nonfatal" = "x"; then
11415 as_fn_error $? "Your OpenSSL headers do not match your
11416 library. Check config.log for details.
11417 If you are sure your installation is consistent, you can disable the check
11418 by running \"./configure --without-openssl-header-check\".
11419 Also see contrib/findssl.sh for help identifying header/library mismatches.
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
11423 library. Check config.log for details.
11424 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
11425 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
11426 library. Check config.log for details.
11427 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
11431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11432 conftest.$ac_objext conftest.beam conftest.$ac_ext
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
11437 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11440 #include <openssl/evp.h>
11444 SSLeay_add_all_algorithms();
11449 if ac_fn_c_try_link "$LINENO"; then :
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11452 $as_echo "yes" >&6; }
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
11461 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #include <openssl/evp.h>
11468 SSLeay_add_all_algorithms();
11473 if ac_fn_c_try_link "$LINENO"; then :
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11476 $as_echo "yes" >&6; }
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 $as_echo "no" >&6; }
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11491 rm -f core conftest.err conftest.$ac_objext \
11492 conftest$ac_exeext conftest.$ac_ext
11494 for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method HMAC_CTX_init
11496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11498 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11499 cat >>confdefs.h <<_ACEOF
11500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11508 # Check whether --with-ssl-engine was given.
11509 if test "${with_ssl_engine+set}" = set; then :
11510 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
11512 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11516 #include <openssl/engine.h>
11522 ENGINE_load_builtin_engines();
11523 ENGINE_register_all_complete();
11529 if ac_fn_c_try_compile "$LINENO"; then :
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531 $as_echo "yes" >&6; }
11533 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
11537 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11546 # Check for OpenSSL without EVP_aes_{192,256}_cbc
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
11548 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11552 #include <string.h>
11553 #include <openssl/evp.h>
11559 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
11565 if ac_fn_c_try_link "$LINENO"; then :
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11573 $as_echo "yes" >&6; }
11575 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
11580 rm -f core conftest.err conftest.$ac_objext \
11581 conftest$ac_exeext conftest.$ac_ext
11583 # Check for OpenSSL with EVP_aes_*ctr
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
11585 $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11589 #include <string.h>
11590 #include <openssl/evp.h>
11596 exit(EVP_aes_128_ctr() == NULL ||
11597 EVP_aes_192_cbc() == NULL ||
11598 EVP_aes_256_cbc() == NULL);
11604 if ac_fn_c_try_link "$LINENO"; then :
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607 $as_echo "yes" >&6; }
11609 $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11619 rm -f core conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11622 # Check for OpenSSL with EVP_aes_*gcm
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
11624 $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11628 #include <string.h>
11629 #include <openssl/evp.h>
11635 exit(EVP_aes_128_gcm() == NULL ||
11636 EVP_aes_256_gcm() == NULL ||
11637 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
11638 EVP_CTRL_GCM_IV_GEN == 0 ||
11639 EVP_CTRL_GCM_SET_TAG == 0 ||
11640 EVP_CTRL_GCM_GET_TAG == 0 ||
11641 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
11647 if ac_fn_c_try_link "$LINENO"; then :
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11650 $as_echo "yes" >&6; }
11652 $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11659 unsupported_algorithms="$unsupported_cipers \
11660 aes128-gcm@openssh.com aes256-gcm@openssh.com"
11664 rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
11668 $as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
11669 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
11670 $as_echo_n "(cached) " >&6
11672 ac_func_search_save_LIBS=$LIBS
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11682 char EVP_CIPHER_CTX_ctrl ();
11686 return EVP_CIPHER_CTX_ctrl ();
11691 for ac_lib in '' crypto; do
11692 if test -z "$ac_lib"; then
11693 ac_res="none required"
11696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
11701 rm -f core conftest.err conftest.$ac_objext \
11703 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
11707 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
11710 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
11712 rm conftest.$ac_ext
11713 LIBS=$ac_func_search_save_LIBS
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
11716 $as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
11717 ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
11718 if test "$ac_res" != no; then :
11719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11721 $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
11727 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11731 #include <string.h>
11732 #include <openssl/evp.h>
11738 if(EVP_DigestUpdate(NULL, NULL,0))
11745 if ac_fn_c_try_link "$LINENO"; then :
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11748 $as_echo "yes" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11755 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
11760 rm -f core conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
11763 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
11764 # because the system crypt() is more featureful.
11765 if test "x$check_for_libcrypt_before" = "x1"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11767 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
11768 if ${ac_cv_lib_crypt_crypt+:} false; then :
11769 $as_echo_n "(cached) " >&6
11771 ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-lcrypt $LIBS"
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11776 /* Override any GCC internal prototype to avoid an error.
11777 Use char because int might match the return type of a GCC
11778 builtin and then its argument prototype would still apply. */
11791 if ac_fn_c_try_link "$LINENO"; then :
11792 ac_cv_lib_crypt_crypt=yes
11794 ac_cv_lib_crypt_crypt=no
11796 rm -f core conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
11798 LIBS=$ac_check_lib_save_LIBS
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11801 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11802 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11803 cat >>confdefs.h <<_ACEOF
11804 #define HAVE_LIBCRYPT 1
11807 LIBS="-lcrypt $LIBS"
11813 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
11814 # version in OpenSSL.
11815 if test "x$check_for_libcrypt_later" = "x1"; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11817 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
11818 if ${ac_cv_lib_crypt_crypt+:} false; then :
11819 $as_echo_n "(cached) " >&6
11821 ac_check_lib_save_LIBS=$LIBS
11822 LIBS="-lcrypt $LIBS"
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11841 if ac_fn_c_try_link "$LINENO"; then :
11842 ac_cv_lib_crypt_crypt=yes
11844 ac_cv_lib_crypt_crypt=no
11846 rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_lib_save_LIBS
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11851 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11852 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11853 LIBS="$LIBS -lcrypt"
11857 for ac_func in crypt DES_crypt
11859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11861 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11862 cat >>confdefs.h <<_ACEOF
11863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11870 # Search for SHA256 support in libc and/or OpenSSL
11871 for ac_func in SHA256_Update EVP_sha256
11873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11874 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11875 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11876 cat >>confdefs.h <<_ACEOF
11877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11879 TEST_SSH_SHA256=yes
11882 unsupported_algorithms="$unsupported_algorithms \
11883 hmac-sha2-256 hmac-sha2-512 \
11884 diffie-hellman-group-exchange-sha256 \
11885 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
11893 # Check complete ECC support in OpenSSL
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
11895 $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11899 #include <openssl/ec.h>
11900 #include <openssl/ecdh.h>
11901 #include <openssl/ecdsa.h>
11902 #include <openssl/evp.h>
11903 #include <openssl/objects.h>
11904 #include <openssl/opensslv.h>
11905 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
11906 # error "OpenSSL < 0.9.8g has unreliable ECC code"
11913 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
11914 const EVP_MD *m = EVP_sha512(); /* We need this too */
11920 if ac_fn_c_try_link "$LINENO"; then :
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11923 $as_echo "yes" >&6; }
11925 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11935 COMMENT_OUT_ECC="#no ecc#"
11936 unsupported_algorithms="$unsupported_algorithms \
11937 ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 \
11938 ecdsa-sha2-nistp256-cert-v01@openssh.com \
11939 ecdsa-sha2-nistp384-cert-v01@openssh.com \
11940 ecdsa-sha2-nistp521-cert-v01@openssh.com \
11941 ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521"
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
11952 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
11953 if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
11954 $as_echo_n "(cached) " >&6
11956 ac_check_lib_save_LIBS=$LIBS
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11961 /* Override any GCC internal prototype to avoid an error.
11962 Use char because int might match the return type of a GCC
11963 builtin and then its argument prototype would still apply. */
11967 char ia_openinfo ();
11971 return ia_openinfo ();
11976 if ac_fn_c_try_link "$LINENO"; then :
11977 ac_cv_lib_iaf_ia_openinfo=yes
11979 ac_cv_lib_iaf_ia_openinfo=no
11981 rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983 LIBS=$ac_check_lib_save_LIBS
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
11986 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
11987 if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
11990 for ac_func in set_id
11992 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
11993 if test "x$ac_cv_func_set_id" = xyes; then :
11994 cat >>confdefs.h <<_ACEOF
11995 #define HAVE_SET_ID 1
11997 SSHDLIBS="$SSHDLIBS -liaf"
11999 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
12010 ### Configure cryptographic random number support
12012 # Check wheter OpenSSL seeds itself
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
12014 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
12015 if test "$cross_compiling" = yes; then :
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12018 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12019 # This is safe, since we will fatal() at runtime if
12020 # OpenSSL is not seeded correctly.
12021 OPENSSL_SEEDS_ITSELF=yes
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12028 #include <string.h>
12029 #include <openssl/rand.h>
12035 exit(RAND_status() == 1 ? 0 : 1);
12041 if ac_fn_c_try_run "$LINENO"; then :
12043 OPENSSL_SEEDS_ITSELF=yes
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12045 $as_echo "yes" >&6; }
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12054 conftest.$ac_objext conftest.beam conftest.$ac_ext
12060 # Check whether --with-prngd-port was given.
12061 if test "${with_prngd_port+set}" = set; then :
12062 withval=$with_prngd_port;
12070 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
12073 if test ! -z "$withval" ; then
12074 PRNGD_PORT="$withval"
12076 cat >>confdefs.h <<_ACEOF
12077 #define PRNGD_PORT $PRNGD_PORT
12086 # PRNGD Unix domain socket
12088 # Check whether --with-prngd-socket was given.
12089 if test "${with_prngd_socket+set}" = set; then :
12090 withval=$with_prngd_socket;
12093 withval="/var/run/egd-pool"
12101 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
12105 if test ! -z "$withval" ; then
12106 if test ! -z "$PRNGD_PORT" ; then
12107 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
12109 if test ! -r "$withval" ; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
12111 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
12113 PRNGD_SOCKET="$withval"
12115 cat >>confdefs.h <<_ACEOF
12116 #define PRNGD_SOCKET "$PRNGD_SOCKET"
12123 # Check for existing socket only if we don't have a random device already
12124 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
12126 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
12127 # Insert other locations here
12128 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
12129 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
12130 PRNGD_SOCKET="$sock"
12131 cat >>confdefs.h <<_ACEOF
12132 #define PRNGD_SOCKET "$PRNGD_SOCKET"
12138 if test ! -z "$PRNGD_SOCKET" ; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
12140 $as_echo "$PRNGD_SOCKET" >&6; }
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12143 $as_echo "not found" >&6; }
12151 # Which randomness source do we use?
12152 if test ! -z "$PRNGD_PORT" ; then
12153 RAND_MSG="PRNGd port $PRNGD_PORT"
12154 elif test ! -z "$PRNGD_SOCKET" ; then
12155 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
12156 elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
12158 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
12160 RAND_MSG="OpenSSL internal ONLY"
12162 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
12165 # Check for PAM libs
12168 # Check whether --with-pam was given.
12169 if test "${with_pam+set}" = set; then :
12171 if test "x$withval" != "xno" ; then
12172 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
12173 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
12174 as_fn_error $? "PAM headers not found" "$LINENO" 5
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12179 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12180 if ${ac_cv_lib_dl_dlopen+:} false; then :
12181 $as_echo_n "(cached) " >&6
12183 ac_check_lib_save_LIBS=$LIBS
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12203 if ac_fn_c_try_link "$LINENO"; then :
12204 ac_cv_lib_dl_dlopen=yes
12206 ac_cv_lib_dl_dlopen=no
12208 rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12213 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12214 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12215 cat >>confdefs.h <<_ACEOF
12216 #define HAVE_LIBDL 1
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
12224 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
12225 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
12226 $as_echo_n "(cached) " >&6
12228 ac_check_lib_save_LIBS=$LIBS
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12239 char pam_set_item ();
12243 return pam_set_item ();
12248 if ac_fn_c_try_link "$LINENO"; then :
12249 ac_cv_lib_pam_pam_set_item=yes
12251 ac_cv_lib_pam_pam_set_item=no
12253 rm -f core conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
12258 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
12259 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
12260 cat >>confdefs.h <<_ACEOF
12261 #define HAVE_LIBPAM 1
12267 as_fn_error $? "*** libpam missing" "$LINENO" 5
12270 for ac_func in pam_getenvlist
12272 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
12273 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
12274 cat >>confdefs.h <<_ACEOF
12275 #define HAVE_PAM_GETENVLIST 1
12281 for ac_func in pam_putenv
12283 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
12284 if test "x$ac_cv_func_pam_putenv" = xyes; then :
12285 cat >>confdefs.h <<_ACEOF
12286 #define HAVE_PAM_PUTENV 1
12296 SSHDLIBS="$SSHDLIBS -lpam"
12298 $as_echo "#define USE_PAM 1" >>confdefs.h
12301 if test $ac_cv_lib_dl_dlopen = yes; then
12304 # libdl already in LIBS
12307 SSHDLIBS="$SSHDLIBS -ldl"
12317 # Check for older PAM
12318 if test "x$PAM_MSG" = "xyes" ; then
12319 # Check PAM strerror arguments (old PAM)
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
12321 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12325 #include <stdlib.h>
12326 #if defined(HAVE_SECURITY_PAM_APPL_H)
12327 #include <security/pam_appl.h>
12328 #elif defined (HAVE_PAM_PAM_APPL_H)
12329 #include <pam/pam_appl.h>
12336 (void)pam_strerror((pam_handle_t *)NULL, -1);
12342 if ac_fn_c_try_compile "$LINENO"; then :
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12348 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12351 $as_echo "yes" >&6; }
12352 PAM_MSG="yes (old library)"
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 SSH_PRIVSEP_USER=sshd
12361 # Check whether --with-privsep-user was given.
12362 if test "${with_privsep_user+set}" = set; then :
12363 withval=$with_privsep_user;
12364 if test -n "$withval" && test "x$withval" != "xno" && \
12365 test "x${withval}" != "xyes"; then
12366 SSH_PRIVSEP_USER=$withval
12373 cat >>confdefs.h <<_ACEOF
12374 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
12379 if test "x$have_linux_no_new_privs" = "x1" ; then
12380 ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
12381 #include <sys/types.h>
12382 #include <linux/seccomp.h>
12385 if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
12386 have_seccomp_filter=1
12390 if test "x$have_seccomp_filter" = "x1" ; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
12392 $as_echo_n "checking kernel for seccomp_filter support... " >&6; }
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12398 #include <linux/audit.h>
12399 #include <linux/seccomp.h>
12400 #include <stdlib.h>
12401 #include <sys/prctl.h>
12406 int i = $seccomp_audit_arch;
12408 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
12409 exit(errno == EFAULT ? 0 : 1);
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12416 $as_echo "yes" >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12421 # Disable seccomp filter as a target
12422 have_seccomp_filter=0
12426 rm -f core conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
12430 # Decide which sandbox style to use
12433 # Check whether --with-sandbox was given.
12434 if test "${with_sandbox+set}" = set; then :
12435 withval=$with_sandbox;
12436 if test "x$withval" = "xyes" ; then
12439 sandbox_arg="$withval"
12446 # Some platforms (seems to be the ones that have a kernel poll(2)-type
12447 # function with which they implement select(2)) use an extra file descriptor
12448 # when calling select(2), which means we can't use the rlimit sandbox.
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
12450 $as_echo_n "checking if select works with descriptor rlimit... " >&6; }
12451 if test "$cross_compiling" = yes; then :
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12453 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12459 #include <sys/types.h>
12460 #ifdef HAVE_SYS_TIME_H
12461 # include <sys/time.h>
12463 #include <sys/resource.h>
12464 #ifdef HAVE_SYS_SELECT_H
12465 # include <sys/select.h>
12469 #include <stdlib.h>
12475 struct rlimit rl_zero;
12480 fd = open("/dev/null", O_RDONLY);
12483 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
12484 setrlimit(RLIMIT_FSIZE, &rl_zero);
12485 setrlimit(RLIMIT_NOFILE, &rl_zero);
12488 r = select(fd+1, &fds, NULL, NULL, &tv);
12489 exit (r == -1 ? 1 : 0);
12495 if ac_fn_c_try_run "$LINENO"; then :
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12497 $as_echo "yes" >&6; }
12498 select_works_with_rlimit=yes
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12502 select_works_with_rlimit=no
12504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12505 conftest.$ac_objext conftest.beam conftest.$ac_ext
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
12510 $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
12511 if test "$cross_compiling" = yes; then :
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12513 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12519 #include <sys/types.h>
12520 #ifdef HAVE_SYS_TIME_H
12521 # include <sys/time.h>
12523 #include <sys/resource.h>
12525 #include <stdlib.h>
12531 struct rlimit rl_zero;
12535 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
12536 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
12537 exit (r == -1 ? 1 : 0);
12543 if ac_fn_c_try_run "$LINENO"; then :
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12545 $as_echo "yes" >&6; }
12546 rlimit_nofile_zero_works=yes
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12550 rlimit_nofile_zero_works=no
12552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12553 conftest.$ac_objext conftest.beam conftest.$ac_ext
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
12558 $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
12559 if test "$cross_compiling" = yes; then :
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12561 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12567 #include <sys/types.h>
12568 #include <sys/resource.h>
12569 #include <stdlib.h>
12575 struct rlimit rl_zero;
12577 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
12578 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
12584 if ac_fn_c_try_run "$LINENO"; then :
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12586 $as_echo "yes" >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12591 $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
12594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12595 conftest.$ac_objext conftest.beam conftest.$ac_ext
12599 if test "x$sandbox_arg" = "xsystrace" || \
12600 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
12601 test "x$have_systr_policy_kill" != "x1" && \
12602 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
12603 SANDBOX_STYLE="systrace"
12605 $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
12607 elif test "x$sandbox_arg" = "xdarwin" || \
12608 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
12609 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
12610 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
12611 "x$ac_cv_header_sandbox_h" != "xyes" && \
12612 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
12613 SANDBOX_STYLE="darwin"
12615 $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
12617 elif test "x$sandbox_arg" = "xseccomp_filter" || \
12618 ( test -z "$sandbox_arg" && \
12619 test "x$have_seccomp_filter" = "x1" && \
12620 test "x$ac_cv_header_elf_h" = "xyes" && \
12621 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
12622 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
12623 test "x$seccomp_audit_arch" != "x" && \
12624 test "x$have_linux_no_new_privs" = "x1" && \
12625 test "x$ac_cv_func_prctl" = "xyes" ) ; then
12626 test "x$seccomp_audit_arch" = "x" && \
12627 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
12628 test "x$have_linux_no_new_privs" != "x1" && \
12629 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
12630 test "x$have_seccomp_filter" != "x1" && \
12631 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
12632 test "x$ac_cv_func_prctl" != "xyes" && \
12633 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
12634 SANDBOX_STYLE="seccomp_filter"
12636 $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
12638 elif test "x$sandbox_arg" = "xrlimit" || \
12639 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
12640 test "x$select_works_with_rlimit" = "xyes" && \
12641 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
12642 test "x$ac_cv_func_setrlimit" != "xyes" && \
12643 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
12644 test "x$select_works_with_rlimit" != "xyes" && \
12645 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
12646 SANDBOX_STYLE="rlimit"
12648 $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
12650 elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
12651 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
12652 SANDBOX_STYLE="none"
12654 $as_echo "#define SANDBOX_NULL 1" >>confdefs.h
12657 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
12660 # Cheap hack to ensure NEWS-OS libraries are arranged right.
12661 if test ! -z "$SONY" ; then
12662 LIBS="$LIBS -liberty";
12665 # Check for long long datatypes
12666 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12667 if test "x$ac_cv_type_long_long" = xyes; then :
12669 cat >>confdefs.h <<_ACEOF
12670 #define HAVE_LONG_LONG 1
12675 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
12676 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
12678 cat >>confdefs.h <<_ACEOF
12679 #define HAVE_UNSIGNED_LONG_LONG 1
12684 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
12685 if test "x$ac_cv_type_long_double" = xyes; then :
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_LONG_DOUBLE 1
12695 # Check datatype sizes
12696 # The cast to long int works around a bug in the HP C Compiler
12697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12699 # This bug is HP SR number 8606223364.
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
12701 $as_echo_n "checking size of short int... " >&6; }
12702 if ${ac_cv_sizeof_short_int+:} false; then :
12703 $as_echo_n "(cached) " >&6
12705 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
12708 if test "$ac_cv_type_short_int" = yes; then
12709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12711 as_fn_error 77 "cannot compute sizeof (short int)
12712 See \`config.log' for more details" "$LINENO" 5; }
12714 ac_cv_sizeof_short_int=0
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
12720 $as_echo "$ac_cv_sizeof_short_int" >&6; }
12724 cat >>confdefs.h <<_ACEOF
12725 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12729 # The cast to long int works around a bug in the HP C Compiler
12730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12732 # This bug is HP SR number 8606223364.
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12734 $as_echo_n "checking size of int... " >&6; }
12735 if ${ac_cv_sizeof_int+:} false; then :
12736 $as_echo_n "(cached) " >&6
12738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12741 if test "$ac_cv_type_int" = yes; then
12742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12744 as_fn_error 77 "cannot compute sizeof (int)
12745 See \`config.log' for more details" "$LINENO" 5; }
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12753 $as_echo "$ac_cv_sizeof_int" >&6; }
12757 cat >>confdefs.h <<_ACEOF
12758 #define SIZEOF_INT $ac_cv_sizeof_int
12762 # The cast to long int works around a bug in the HP C Compiler
12763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12765 # This bug is HP SR number 8606223364.
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
12767 $as_echo_n "checking size of long int... " >&6; }
12768 if ${ac_cv_sizeof_long_int+:} false; then :
12769 $as_echo_n "(cached) " >&6
12771 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
12774 if test "$ac_cv_type_long_int" = yes; then
12775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12777 as_fn_error 77 "cannot compute sizeof (long int)
12778 See \`config.log' for more details" "$LINENO" 5; }
12780 ac_cv_sizeof_long_int=0
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
12786 $as_echo "$ac_cv_sizeof_long_int" >&6; }
12790 cat >>confdefs.h <<_ACEOF
12791 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
12795 # The cast to long int works around a bug in the HP C Compiler
12796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12798 # This bug is HP SR number 8606223364.
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
12800 $as_echo_n "checking size of long long int... " >&6; }
12801 if ${ac_cv_sizeof_long_long_int+:} false; then :
12802 $as_echo_n "(cached) " >&6
12804 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
12807 if test "$ac_cv_type_long_long_int" = yes; then
12808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12810 as_fn_error 77 "cannot compute sizeof (long long int)
12811 See \`config.log' for more details" "$LINENO" 5; }
12813 ac_cv_sizeof_long_long_int=0
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
12819 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
12823 cat >>confdefs.h <<_ACEOF
12824 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
12829 # Sanity check long long for some platforms (AIX)
12830 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
12831 ac_cv_sizeof_long_long_int=0
12834 # compute LLONG_MIN and LLONG_MAX if we don't know them.
12835 if test -z "$have_llong_max"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
12837 $as_echo_n "checking for max value of long long... " >&6; }
12838 if test "$cross_compiling" = yes; then :
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12841 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12849 /* Why is this so damn hard? */
12853 #define __USE_ISOC99
12854 #include <limits.h>
12855 #define DATA "conftest.llminmax"
12856 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
12859 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
12860 * we do this the hard way.
12863 fprint_ll(FILE *f, long long n)
12866 int l[sizeof(long long) * 8];
12869 if (fprintf(f, "-") < 0)
12871 for (i = 0; n != 0; i++) {
12872 l[i] = my_abs(n % 10);
12876 if (fprintf(f, "%d", l[--i]) < 0)
12879 if (fprintf(f, " ") < 0)
12889 long long i, llmin, llmax = 0;
12891 if((f = fopen(DATA,"w")) == NULL)
12894 #if defined(LLONG_MIN) && defined(LLONG_MAX)
12895 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
12899 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
12900 /* This will work on one's complement and two's complement */
12901 for (i = 1; i > llmax; i <<= 1, i++)
12903 llmin = llmax + 1LL; /* wrap */
12907 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
12908 || llmax - 1 > llmax || llmin == llmax || llmin == 0
12909 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
12910 fprintf(f, "unknown unknown\n");
12914 if (fprint_ll(f, llmin) < 0)
12916 if (fprint_ll(f, llmax) < 0)
12926 if ac_fn_c_try_run "$LINENO"; then :
12928 llong_min=`$AWK '{print $1}' conftest.llminmax`
12929 llong_max=`$AWK '{print $2}' conftest.llminmax`
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
12932 $as_echo "$llong_max" >&6; }
12934 cat >>confdefs.h <<_ACEOF
12935 #define LLONG_MAX ${llong_max}LL
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
12939 $as_echo_n "checking for min value of long long... " >&6; }
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
12941 $as_echo "$llong_min" >&6; }
12943 cat >>confdefs.h <<_ACEOF
12944 #define LLONG_MIN ${llong_min}LL
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12951 $as_echo "not found" >&6; }
12954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12955 conftest.$ac_objext conftest.beam conftest.$ac_ext
12961 # More checks for data types
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
12963 $as_echo_n "checking for u_int type... " >&6; }
12964 if ${ac_cv_have_u_int+:} false; then :
12965 $as_echo_n "(cached) " >&6
12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h. */
12970 #include <sys/types.h>
12979 if ac_fn_c_try_compile "$LINENO"; then :
12980 ac_cv_have_u_int="yes"
12982 ac_cv_have_u_int="no"
12985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
12989 $as_echo "$ac_cv_have_u_int" >&6; }
12990 if test "x$ac_cv_have_u_int" = "xyes" ; then
12992 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
12998 $as_echo_n "checking for intXX_t types... " >&6; }
12999 if ${ac_cv_have_intxx_t+:} false; then :
13000 $as_echo_n "(cached) " >&6
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005 #include <sys/types.h>
13009 int8_t a; int16_t b; int32_t c; a = b = c = 1;
13014 if ac_fn_c_try_compile "$LINENO"; then :
13015 ac_cv_have_intxx_t="yes"
13017 ac_cv_have_intxx_t="no"
13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
13024 $as_echo "$ac_cv_have_intxx_t" >&6; }
13025 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
13027 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13032 if (test -z "$have_intxx_t" && \
13033 test "x$ac_cv_header_stdint_h" = "xyes")
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
13036 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 #include <stdint.h>
13043 int8_t a; int16_t b; int32_t c; a = b = c = 1;
13048 if ac_fn_c_try_compile "$LINENO"; then :
13050 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13053 $as_echo "yes" >&6; }
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
13064 $as_echo_n "checking for int64_t type... " >&6; }
13065 if ${ac_cv_have_int64_t+:} false; then :
13066 $as_echo_n "(cached) " >&6
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13072 #include <sys/types.h>
13073 #ifdef HAVE_STDINT_H
13074 # include <stdint.h>
13076 #include <sys/socket.h>
13077 #ifdef HAVE_SYS_BITYPES_H
13078 # include <sys/bitypes.h>
13091 if ac_fn_c_try_compile "$LINENO"; then :
13092 ac_cv_have_int64_t="yes"
13094 ac_cv_have_int64_t="no"
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
13101 $as_echo "$ac_cv_have_int64_t" >&6; }
13102 if test "x$ac_cv_have_int64_t" = "xyes" ; then
13104 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
13109 $as_echo_n "checking for u_intXX_t types... " >&6; }
13110 if ${ac_cv_have_u_intxx_t+:} false; then :
13111 $as_echo_n "(cached) " >&6
13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13116 #include <sys/types.h>
13120 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
13125 if ac_fn_c_try_compile "$LINENO"; then :
13126 ac_cv_have_u_intxx_t="yes"
13128 ac_cv_have_u_intxx_t="no"
13131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
13135 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
13136 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
13138 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
13143 if test -z "$have_u_intxx_t" ; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
13145 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13148 #include <sys/socket.h>
13152 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
13157 if ac_fn_c_try_compile "$LINENO"; then :
13159 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13162 $as_echo "yes" >&6; }
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
13173 $as_echo_n "checking for u_int64_t types... " >&6; }
13174 if ${ac_cv_have_u_int64_t+:} false; then :
13175 $as_echo_n "(cached) " >&6
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180 #include <sys/types.h>
13184 u_int64_t a; a = 1;
13189 if ac_fn_c_try_compile "$LINENO"; then :
13190 ac_cv_have_u_int64_t="yes"
13192 ac_cv_have_u_int64_t="no"
13195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
13199 $as_echo "$ac_cv_have_u_int64_t" >&6; }
13200 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
13202 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
13207 if test -z "$have_u_int64_t" ; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
13209 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13212 #include <sys/bitypes.h>
13221 if ac_fn_c_try_compile "$LINENO"; then :
13223 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13226 $as_echo "yes" >&6; }
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 if test -z "$have_u_intxx_t" ; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
13238 $as_echo_n "checking for uintXX_t types... " >&6; }
13239 if ${ac_cv_have_uintxx_t+:} false; then :
13240 $as_echo_n "(cached) " >&6
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13246 #include <sys/types.h>
13261 if ac_fn_c_try_compile "$LINENO"; then :
13262 ac_cv_have_uintxx_t="yes"
13264 ac_cv_have_uintxx_t="no"
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
13271 $as_echo "$ac_cv_have_uintxx_t" >&6; }
13272 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
13274 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
13279 if test -z "$have_uintxx_t" ; then
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
13281 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13284 #include <stdint.h>
13288 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
13293 if ac_fn_c_try_compile "$LINENO"; then :
13295 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13298 $as_echo "yes" >&6; }
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302 $as_echo "no" >&6; }
13305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13308 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
13309 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
13312 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13316 #include <sys/bitypes.h>
13322 int8_t a; int16_t b; int32_t c;
13323 u_int8_t e; u_int16_t f; u_int32_t g;
13324 a = b = c = e = f = g = 1;
13330 if ac_fn_c_try_compile "$LINENO"; then :
13332 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
13334 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13337 $as_echo "yes" >&6; }
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
13349 $as_echo_n "checking for u_char... " >&6; }
13350 if ${ac_cv_have_u_char+:} false; then :
13351 $as_echo_n "(cached) " >&6
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 #include <sys/types.h>
13360 u_char foo; foo = 125;
13365 if ac_fn_c_try_compile "$LINENO"; then :
13366 ac_cv_have_u_char="yes"
13368 ac_cv_have_u_char="no"
13371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
13375 $as_echo "$ac_cv_have_u_char" >&6; }
13376 if test "x$ac_cv_have_u_char" = "xyes" ; then
13378 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
13383 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13384 #include <sys/socket.h>
13386 if test "x$ac_cv_type_socklen_t" = xyes; then :
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13391 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13392 if ${curl_cv_socklen_t_equiv+:} false; then :
13393 $as_echo_n "(cached) " >&6
13396 # Systems have either "struct sockaddr *" or
13397 # "void *" as the second argument to getpeername
13398 curl_cv_socklen_t_equiv=
13399 for arg2 in "struct sockaddr" void; do
13400 for t in int size_t unsigned long "unsigned long"; do
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13404 #include <sys/types.h>
13405 #include <sys/socket.h>
13407 int getpeername (int, $arg2 *, $t *);
13414 getpeername(0,0,&len);
13420 if ac_fn_c_try_compile "$LINENO"; then :
13422 curl_cv_socklen_t_equiv="$t"
13426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 if test "x$curl_cv_socklen_t_equiv" = x; then
13431 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
13437 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
13439 cat >>confdefs.h <<_ACEOF
13440 #define socklen_t $curl_cv_socklen_t_equiv
13447 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
13449 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
13451 cat >>confdefs.h <<_ACEOF
13452 #define HAVE_SIG_ATOMIC_T 1
13458 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
13459 #include <sys/types.h>
13460 #ifdef HAVE_SYS_BITYPES_H
13461 #include <sys/bitypes.h>
13463 #ifdef HAVE_SYS_STATFS_H
13464 #include <sys/statfs.h>
13466 #ifdef HAVE_SYS_STATVFS_H
13467 #include <sys/statvfs.h>
13471 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13473 cat >>confdefs.h <<_ACEOF
13474 #define HAVE_FSBLKCNT_T 1
13479 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
13480 #include <sys/types.h>
13481 #ifdef HAVE_SYS_BITYPES_H
13482 #include <sys/bitypes.h>
13484 #ifdef HAVE_SYS_STATFS_H
13485 #include <sys/statfs.h>
13487 #ifdef HAVE_SYS_STATVFS_H
13488 #include <sys/statvfs.h>
13492 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13494 cat >>confdefs.h <<_ACEOF
13495 #define HAVE_FSFILCNT_T 1
13502 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
13503 #include <netinet/in.h>
13505 if test "x$ac_cv_type_in_addr_t" = xyes; then :
13507 cat >>confdefs.h <<_ACEOF
13508 #define HAVE_IN_ADDR_T 1
13513 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
13514 #include <netinet/in.h>
13516 if test "x$ac_cv_type_in_port_t" = xyes; then :
13518 cat >>confdefs.h <<_ACEOF
13519 #define HAVE_IN_PORT_T 1
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
13527 $as_echo_n "checking for size_t... " >&6; }
13528 if ${ac_cv_have_size_t+:} false; then :
13529 $as_echo_n "(cached) " >&6
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534 #include <sys/types.h>
13538 size_t foo; foo = 1235;
13543 if ac_fn_c_try_compile "$LINENO"; then :
13544 ac_cv_have_size_t="yes"
13546 ac_cv_have_size_t="no"
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
13553 $as_echo "$ac_cv_have_size_t" >&6; }
13554 if test "x$ac_cv_have_size_t" = "xyes" ; then
13556 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13561 $as_echo_n "checking for ssize_t... " >&6; }
13562 if ${ac_cv_have_ssize_t+:} false; then :
13563 $as_echo_n "(cached) " >&6
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 #include <sys/types.h>
13572 ssize_t foo; foo = 1235;
13577 if ac_fn_c_try_compile "$LINENO"; then :
13578 ac_cv_have_ssize_t="yes"
13580 ac_cv_have_ssize_t="no"
13583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
13587 $as_echo "$ac_cv_have_ssize_t" >&6; }
13588 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
13590 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
13595 $as_echo_n "checking for clock_t... " >&6; }
13596 if ${ac_cv_have_clock_t+:} false; then :
13597 $as_echo_n "(cached) " >&6
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13606 clock_t foo; foo = 1235;
13611 if ac_fn_c_try_compile "$LINENO"; then :
13612 ac_cv_have_clock_t="yes"
13614 ac_cv_have_clock_t="no"
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
13621 $as_echo "$ac_cv_have_clock_t" >&6; }
13622 if test "x$ac_cv_have_clock_t" = "xyes" ; then
13624 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
13629 $as_echo_n "checking for sa_family_t... " >&6; }
13630 if ${ac_cv_have_sa_family_t+:} false; then :
13631 $as_echo_n "(cached) " >&6
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13637 #include <sys/types.h>
13638 #include <sys/socket.h>
13643 sa_family_t foo; foo = 1235;
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649 ac_cv_have_sa_family_t="yes"
13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13652 /* end confdefs.h. */
13654 #include <sys/types.h>
13655 #include <sys/socket.h>
13656 #include <netinet/in.h>
13661 sa_family_t foo; foo = 1235;
13666 if ac_fn_c_try_compile "$LINENO"; then :
13667 ac_cv_have_sa_family_t="yes"
13669 ac_cv_have_sa_family_t="no"
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
13679 $as_echo "$ac_cv_have_sa_family_t" >&6; }
13680 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
13682 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
13687 $as_echo_n "checking for pid_t... " >&6; }
13688 if ${ac_cv_have_pid_t+:} false; then :
13689 $as_echo_n "(cached) " >&6
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 #include <sys/types.h>
13698 pid_t foo; foo = 1235;
13703 if ac_fn_c_try_compile "$LINENO"; then :
13704 ac_cv_have_pid_t="yes"
13706 ac_cv_have_pid_t="no"
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
13713 $as_echo "$ac_cv_have_pid_t" >&6; }
13714 if test "x$ac_cv_have_pid_t" = "xyes" ; then
13716 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
13721 $as_echo_n "checking for mode_t... " >&6; }
13722 if ${ac_cv_have_mode_t+:} false; then :
13723 $as_echo_n "(cached) " >&6
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 #include <sys/types.h>
13732 mode_t foo; foo = 1235;
13737 if ac_fn_c_try_compile "$LINENO"; then :
13738 ac_cv_have_mode_t="yes"
13740 ac_cv_have_mode_t="no"
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
13747 $as_echo "$ac_cv_have_mode_t" >&6; }
13748 if test "x$ac_cv_have_mode_t" = "xyes" ; then
13750 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
13756 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
13757 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
13758 $as_echo_n "(cached) " >&6
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13764 #include <sys/types.h>
13765 #include <sys/socket.h>
13770 struct sockaddr_storage s;
13775 if ac_fn_c_try_compile "$LINENO"; then :
13776 ac_cv_have_struct_sockaddr_storage="yes"
13778 ac_cv_have_struct_sockaddr_storage="no"
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
13785 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
13786 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
13788 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
13793 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
13794 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
13795 $as_echo_n "(cached) " >&6
13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13801 #include <sys/types.h>
13802 #include <netinet/in.h>
13807 struct sockaddr_in6 s; s.sin6_family = 0;
13812 if ac_fn_c_try_compile "$LINENO"; then :
13813 ac_cv_have_struct_sockaddr_in6="yes"
13815 ac_cv_have_struct_sockaddr_in6="no"
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
13822 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
13823 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
13825 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
13830 $as_echo_n "checking for struct in6_addr... " >&6; }
13831 if ${ac_cv_have_struct_in6_addr+:} false; then :
13832 $as_echo_n "(cached) " >&6
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13838 #include <sys/types.h>
13839 #include <netinet/in.h>
13844 struct in6_addr s; s.s6_addr[0] = 0;
13849 if ac_fn_c_try_compile "$LINENO"; then :
13850 ac_cv_have_struct_in6_addr="yes"
13852 ac_cv_have_struct_in6_addr="no"
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
13859 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
13860 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13862 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
13865 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
13866 #ifdef HAVE_SYS_TYPES_H
13867 #include <sys/types.h>
13869 #include <netinet/in.h>
13872 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13874 cat >>confdefs.h <<_ACEOF
13875 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
13884 $as_echo_n "checking for struct addrinfo... " >&6; }
13885 if ${ac_cv_have_struct_addrinfo+:} false; then :
13886 $as_echo_n "(cached) " >&6
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13892 #include <sys/types.h>
13893 #include <sys/socket.h>
13899 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13904 if ac_fn_c_try_compile "$LINENO"; then :
13905 ac_cv_have_struct_addrinfo="yes"
13907 ac_cv_have_struct_addrinfo="no"
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
13914 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
13915 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13917 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
13922 $as_echo_n "checking for struct timeval... " >&6; }
13923 if ${ac_cv_have_struct_timeval+:} false; then :
13924 $as_echo_n "(cached) " >&6
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13929 #include <sys/time.h>
13933 struct timeval tv; tv.tv_sec = 1;
13938 if ac_fn_c_try_compile "$LINENO"; then :
13939 ac_cv_have_struct_timeval="yes"
13941 ac_cv_have_struct_timeval="no"
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
13948 $as_echo "$ac_cv_have_struct_timeval" >&6; }
13949 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13951 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
13953 have_struct_timeval=1
13956 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
13957 if test "x$ac_cv_type_struct_timespec" = xyes; then :
13959 cat >>confdefs.h <<_ACEOF
13960 #define HAVE_STRUCT_TIMESPEC 1
13967 # We need int64_t or else certian parts of the compile will fail.
13968 if test "x$ac_cv_have_int64_t" = "xno" && \
13969 test "x$ac_cv_sizeof_long_int" != "x8" && \
13970 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13971 echo "OpenSSH requires int64_t support. Contact your vendor or install"
13972 echo "an alternative compiler (I.E., GCC) before continuing."
13976 if test "$cross_compiling" = yes; then :
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
13978 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13985 #include <string.h>
13986 #ifdef HAVE_SNPRINTF
13990 char expected_out[50];
13992 #if (SIZEOF_LONG_INT == 8)
13993 long int num = 0x7fffffffffffffff;
13995 long long num = 0x7fffffffffffffffll;
13997 strcpy(expected_out, "9223372036854775807");
13998 snprintf(buf, mazsize, "%lld", num);
13999 if(strcmp(buf, expected_out) != 0)
14004 main() { exit(0); }
14008 if ac_fn_c_try_run "$LINENO"; then :
14011 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
14014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14015 conftest.$ac_objext conftest.beam conftest.$ac_ext
14021 # look for field 'ut_host' in header 'utmp.h'
14022 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14023 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
14025 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
14026 if eval \${$ossh_varname+:} false; then :
14027 $as_echo_n "(cached) " >&6
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14036 $EGREP "ut_host" >/dev/null 2>&1; then :
14037 eval "$ossh_varname=yes"
14039 eval "$ossh_varname=no"
14045 ossh_result=`eval 'echo $'"$ossh_varname"`
14046 if test -n "`echo $ossh_varname`"; then
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14048 $as_echo "$ossh_result" >&6; }
14049 if test "x$ossh_result" = "xyes"; then
14051 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056 $as_echo "no" >&6; }
14060 # look for field 'ut_host' in header 'utmpx.h'
14061 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14062 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
14064 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
14065 if eval \${$ossh_varname+:} false; then :
14066 $as_echo_n "(cached) " >&6
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14075 $EGREP "ut_host" >/dev/null 2>&1; then :
14076 eval "$ossh_varname=yes"
14078 eval "$ossh_varname=no"
14084 ossh_result=`eval 'echo $'"$ossh_varname"`
14085 if test -n "`echo $ossh_varname`"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14087 $as_echo "$ossh_result" >&6; }
14088 if test "x$ossh_result" = "xyes"; then
14090 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14099 # look for field 'syslen' in header 'utmpx.h'
14100 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14101 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
14103 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
14104 if eval \${$ossh_varname+:} false; then :
14105 $as_echo_n "(cached) " >&6
14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h. */
14113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14114 $EGREP "syslen" >/dev/null 2>&1; then :
14115 eval "$ossh_varname=yes"
14117 eval "$ossh_varname=no"
14123 ossh_result=`eval 'echo $'"$ossh_varname"`
14124 if test -n "`echo $ossh_varname`"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14126 $as_echo "$ossh_result" >&6; }
14127 if test "x$ossh_result" = "xyes"; then
14129 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14138 # look for field 'ut_pid' in header 'utmp.h'
14139 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14140 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
14142 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
14143 if eval \${$ossh_varname+:} false; then :
14144 $as_echo_n "(cached) " >&6
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14153 $EGREP "ut_pid" >/dev/null 2>&1; then :
14154 eval "$ossh_varname=yes"
14156 eval "$ossh_varname=no"
14162 ossh_result=`eval 'echo $'"$ossh_varname"`
14163 if test -n "`echo $ossh_varname`"; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14165 $as_echo "$ossh_result" >&6; }
14166 if test "x$ossh_result" = "xyes"; then
14168 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14173 $as_echo "no" >&6; }
14177 # look for field 'ut_type' in header 'utmp.h'
14178 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14179 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
14181 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
14182 if eval \${$ossh_varname+:} false; then :
14183 $as_echo_n "(cached) " >&6
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14192 $EGREP "ut_type" >/dev/null 2>&1; then :
14193 eval "$ossh_varname=yes"
14195 eval "$ossh_varname=no"
14201 ossh_result=`eval 'echo $'"$ossh_varname"`
14202 if test -n "`echo $ossh_varname`"; then
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14204 $as_echo "$ossh_result" >&6; }
14205 if test "x$ossh_result" = "xyes"; then
14207 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14212 $as_echo "no" >&6; }
14216 # look for field 'ut_type' in header 'utmpx.h'
14217 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14218 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
14220 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
14221 if eval \${$ossh_varname+:} false; then :
14222 $as_echo_n "(cached) " >&6
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14231 $EGREP "ut_type" >/dev/null 2>&1; then :
14232 eval "$ossh_varname=yes"
14234 eval "$ossh_varname=no"
14240 ossh_result=`eval 'echo $'"$ossh_varname"`
14241 if test -n "`echo $ossh_varname`"; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14243 $as_echo "$ossh_result" >&6; }
14244 if test "x$ossh_result" = "xyes"; then
14246 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14251 $as_echo "no" >&6; }
14255 # look for field 'ut_tv' in header 'utmp.h'
14256 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14257 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
14259 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
14260 if eval \${$ossh_varname+:} false; then :
14261 $as_echo_n "(cached) " >&6
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14270 $EGREP "ut_tv" >/dev/null 2>&1; then :
14271 eval "$ossh_varname=yes"
14273 eval "$ossh_varname=no"
14279 ossh_result=`eval 'echo $'"$ossh_varname"`
14280 if test -n "`echo $ossh_varname`"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14282 $as_echo "$ossh_result" >&6; }
14283 if test "x$ossh_result" = "xyes"; then
14285 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14294 # look for field 'ut_id' in header 'utmp.h'
14295 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14296 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
14298 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
14299 if eval \${$ossh_varname+:} false; then :
14300 $as_echo_n "(cached) " >&6
14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h. */
14308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14309 $EGREP "ut_id" >/dev/null 2>&1; then :
14310 eval "$ossh_varname=yes"
14312 eval "$ossh_varname=no"
14318 ossh_result=`eval 'echo $'"$ossh_varname"`
14319 if test -n "`echo $ossh_varname`"; then
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14321 $as_echo "$ossh_result" >&6; }
14322 if test "x$ossh_result" = "xyes"; then
14324 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 $as_echo "no" >&6; }
14333 # look for field 'ut_id' in header 'utmpx.h'
14334 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14335 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
14337 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
14338 if eval \${$ossh_varname+:} false; then :
14339 $as_echo_n "(cached) " >&6
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14348 $EGREP "ut_id" >/dev/null 2>&1; then :
14349 eval "$ossh_varname=yes"
14351 eval "$ossh_varname=no"
14357 ossh_result=`eval 'echo $'"$ossh_varname"`
14358 if test -n "`echo $ossh_varname`"; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14360 $as_echo "$ossh_result" >&6; }
14361 if test "x$ossh_result" = "xyes"; then
14363 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14372 # look for field 'ut_addr' in header 'utmp.h'
14373 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14374 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
14376 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
14377 if eval \${$ossh_varname+:} false; then :
14378 $as_echo_n "(cached) " >&6
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14387 $EGREP "ut_addr" >/dev/null 2>&1; then :
14388 eval "$ossh_varname=yes"
14390 eval "$ossh_varname=no"
14396 ossh_result=`eval 'echo $'"$ossh_varname"`
14397 if test -n "`echo $ossh_varname`"; then
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14399 $as_echo "$ossh_result" >&6; }
14400 if test "x$ossh_result" = "xyes"; then
14402 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407 $as_echo "no" >&6; }
14411 # look for field 'ut_addr' in header 'utmpx.h'
14412 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14413 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
14415 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
14416 if eval \${$ossh_varname+:} false; then :
14417 $as_echo_n "(cached) " >&6
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14426 $EGREP "ut_addr" >/dev/null 2>&1; then :
14427 eval "$ossh_varname=yes"
14429 eval "$ossh_varname=no"
14435 ossh_result=`eval 'echo $'"$ossh_varname"`
14436 if test -n "`echo $ossh_varname`"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14438 $as_echo "$ossh_result" >&6; }
14439 if test "x$ossh_result" = "xyes"; then
14441 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14450 # look for field 'ut_addr_v6' in header 'utmp.h'
14451 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14452 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
14454 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
14455 if eval \${$ossh_varname+:} false; then :
14456 $as_echo_n "(cached) " >&6
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14465 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
14466 eval "$ossh_varname=yes"
14468 eval "$ossh_varname=no"
14474 ossh_result=`eval 'echo $'"$ossh_varname"`
14475 if test -n "`echo $ossh_varname`"; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14477 $as_echo "$ossh_result" >&6; }
14478 if test "x$ossh_result" = "xyes"; then
14480 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14485 $as_echo "no" >&6; }
14489 # look for field 'ut_addr_v6' in header 'utmpx.h'
14490 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14491 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
14493 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
14494 if eval \${$ossh_varname+:} false; then :
14495 $as_echo_n "(cached) " >&6
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14504 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
14505 eval "$ossh_varname=yes"
14507 eval "$ossh_varname=no"
14513 ossh_result=`eval 'echo $'"$ossh_varname"`
14514 if test -n "`echo $ossh_varname`"; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14516 $as_echo "$ossh_result" >&6; }
14517 if test "x$ossh_result" = "xyes"; then
14519 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524 $as_echo "no" >&6; }
14528 # look for field 'ut_exit' in header 'utmp.h'
14529 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14530 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
14532 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
14533 if eval \${$ossh_varname+:} false; then :
14534 $as_echo_n "(cached) " >&6
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14543 $EGREP "ut_exit" >/dev/null 2>&1; then :
14544 eval "$ossh_varname=yes"
14546 eval "$ossh_varname=no"
14552 ossh_result=`eval 'echo $'"$ossh_varname"`
14553 if test -n "`echo $ossh_varname`"; then
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14555 $as_echo "$ossh_result" >&6; }
14556 if test "x$ossh_result" = "xyes"; then
14558 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14563 $as_echo "no" >&6; }
14567 # look for field 'ut_time' in header 'utmp.h'
14568 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14569 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
14571 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
14572 if eval \${$ossh_varname+:} false; then :
14573 $as_echo_n "(cached) " >&6
14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h. */
14581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14582 $EGREP "ut_time" >/dev/null 2>&1; then :
14583 eval "$ossh_varname=yes"
14585 eval "$ossh_varname=no"
14591 ossh_result=`eval 'echo $'"$ossh_varname"`
14592 if test -n "`echo $ossh_varname`"; then
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14594 $as_echo "$ossh_result" >&6; }
14595 if test "x$ossh_result" = "xyes"; then
14597 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14602 $as_echo "no" >&6; }
14606 # look for field 'ut_time' in header 'utmpx.h'
14607 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14608 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
14610 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
14611 if eval \${$ossh_varname+:} false; then :
14612 $as_echo_n "(cached) " >&6
14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14621 $EGREP "ut_time" >/dev/null 2>&1; then :
14622 eval "$ossh_varname=yes"
14624 eval "$ossh_varname=no"
14630 ossh_result=`eval 'echo $'"$ossh_varname"`
14631 if test -n "`echo $ossh_varname`"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14633 $as_echo "$ossh_result" >&6; }
14634 if test "x$ossh_result" = "xyes"; then
14636 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14641 $as_echo "no" >&6; }
14645 # look for field 'ut_tv' in header 'utmpx.h'
14646 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14647 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
14649 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
14650 if eval \${$ossh_varname+:} false; then :
14651 $as_echo_n "(cached) " >&6
14654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14660 $EGREP "ut_tv" >/dev/null 2>&1; then :
14661 eval "$ossh_varname=yes"
14663 eval "$ossh_varname=no"
14669 ossh_result=`eval 'echo $'"$ossh_varname"`
14670 if test -n "`echo $ossh_varname`"; then
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14672 $as_echo "$ossh_result" >&6; }
14673 if test "x$ossh_result" = "xyes"; then
14675 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14680 $as_echo "no" >&6; }
14684 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
14685 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
14687 cat >>confdefs.h <<_ACEOF
14688 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14694 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
14695 #include <sys/types.h>
14699 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
14701 cat >>confdefs.h <<_ACEOF
14702 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
14707 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
14708 #include <sys/types.h>
14712 if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
14714 cat >>confdefs.h <<_ACEOF
14715 #define HAVE_STRUCT_PASSWD_PW_CLASS 1
14720 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
14721 #include <sys/types.h>
14725 if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
14727 cat >>confdefs.h <<_ACEOF
14728 #define HAVE_STRUCT_PASSWD_PW_CHANGE 1
14733 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
14734 #include <sys/types.h>
14738 if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
14740 cat >>confdefs.h <<_ACEOF
14741 #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
14748 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
14750 #if HAVE_SYS_TYPES_H
14751 # include <sys/types.h>
14753 #include <netinet/in.h>
14754 #include <arpa/nameser.h>
14755 #include <resolv.h>
14758 if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
14762 $as_echo "#define __res_state state" >>confdefs.h
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
14768 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
14769 if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
14770 $as_echo_n "(cached) " >&6
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14776 #include <sys/types.h>
14777 #include <sys/socket.h>
14782 struct sockaddr_storage s; s.ss_family = 1;
14787 if ac_fn_c_try_compile "$LINENO"; then :
14788 ac_cv_have_ss_family_in_struct_ss="yes"
14790 ac_cv_have_ss_family_in_struct_ss="no"
14792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
14796 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
14797 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
14799 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
14804 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
14805 if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
14806 $as_echo_n "(cached) " >&6
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14812 #include <sys/types.h>
14813 #include <sys/socket.h>
14818 struct sockaddr_storage s; s.__ss_family = 1;
14823 if ac_fn_c_try_compile "$LINENO"; then :
14824 ac_cv_have___ss_family_in_struct_ss="yes"
14826 ac_cv_have___ss_family_in_struct_ss="no"
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14833 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
14834 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14836 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
14841 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
14842 if ${ac_cv_have_accrights_in_msghdr+:} false; then :
14843 $as_echo_n "(cached) " >&6
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14849 #include <sys/types.h>
14850 #include <sys/socket.h>
14851 #include <sys/uio.h>
14857 #ifdef msg_accrights
14858 #error "msg_accrights is a macro"
14862 m.msg_accrights = 0;
14869 if ac_fn_c_try_compile "$LINENO"; then :
14870 ac_cv_have_accrights_in_msghdr="yes"
14872 ac_cv_have_accrights_in_msghdr="no"
14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
14879 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
14880 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14882 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
14887 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14891 #include <sys/param.h>
14892 #include <sys/stat.h>
14893 #ifdef HAVE_SYS_TIME_H
14894 # include <sys/time.h>
14896 #ifdef HAVE_SYS_MOUNT_H
14897 #include <sys/mount.h>
14899 #ifdef HAVE_SYS_STATVFS_H
14900 #include <sys/statvfs.h>
14906 struct statvfs s; s.f_fsid = 0;
14911 if ac_fn_c_try_compile "$LINENO"; then :
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14913 $as_echo "yes" >&6; }
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14916 $as_echo "no" >&6; }
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
14919 $as_echo_n "checking if fsid_t has member val... " >&6; }
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14923 #include <sys/types.h>
14924 #include <sys/statvfs.h>
14929 fsid_t t; t.val[0] = 0;
14934 if ac_fn_c_try_compile "$LINENO"; then :
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14936 $as_echo "yes" >&6; }
14938 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14942 $as_echo "no" >&6; }
14944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
14947 $as_echo_n "checking if f_fsid has member __val... " >&6; }
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14951 #include <sys/types.h>
14952 #include <sys/statvfs.h>
14957 fsid_t t; t.__val[0] = 0;
14962 if ac_fn_c_try_compile "$LINENO"; then :
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14964 $as_echo "yes" >&6; }
14966 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14970 $as_echo "no" >&6; }
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
14978 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
14979 if ${ac_cv_have_control_in_msghdr+:} false; then :
14980 $as_echo_n "(cached) " >&6
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14986 #include <sys/types.h>
14987 #include <sys/socket.h>
14988 #include <sys/uio.h>
14995 #error "msg_control is a macro"
15006 if ac_fn_c_try_compile "$LINENO"; then :
15007 ac_cv_have_control_in_msghdr="yes"
15009 ac_cv_have_control_in_msghdr="no"
15012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
15016 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
15017 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
15019 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
15024 $as_echo_n "checking if libc defines __progname... " >&6; }
15025 if ${ac_cv_libc_defines___progname+:} false; then :
15026 $as_echo_n "(cached) " >&6
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15035 extern char *__progname; printf("%s", __progname);
15040 if ac_fn_c_try_link "$LINENO"; then :
15041 ac_cv_libc_defines___progname="yes"
15043 ac_cv_libc_defines___progname="no"
15046 rm -f core conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
15051 $as_echo "$ac_cv_libc_defines___progname" >&6; }
15052 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
15054 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
15059 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
15060 if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
15061 $as_echo_n "(cached) " >&6
15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15070 printf("%s", __FUNCTION__);
15075 if ac_fn_c_try_link "$LINENO"; then :
15076 ac_cv_cc_implements___FUNCTION__="yes"
15078 ac_cv_cc_implements___FUNCTION__="no"
15081 rm -f core conftest.err conftest.$ac_objext \
15082 conftest$ac_exeext conftest.$ac_ext
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
15086 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
15087 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
15089 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
15094 $as_echo_n "checking whether $CC implements __func__... " >&6; }
15095 if ${ac_cv_cc_implements___func__+:} false; then :
15096 $as_echo_n "(cached) " >&6
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h. */
15105 printf("%s", __func__);
15110 if ac_fn_c_try_link "$LINENO"; then :
15111 ac_cv_cc_implements___func__="yes"
15113 ac_cv_cc_implements___func__="no"
15116 rm -f core conftest.err conftest.$ac_objext \
15117 conftest$ac_exeext conftest.$ac_ext
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
15121 $as_echo "$ac_cv_cc_implements___func__" >&6; }
15122 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
15124 $as_echo "#define HAVE___func__ 1" >>confdefs.h
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
15129 $as_echo_n "checking whether va_copy exists... " >&6; }
15130 if ${ac_cv_have_va_copy+:} false; then :
15131 $as_echo_n "(cached) " >&6
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15137 #include <stdarg.h>
15148 if ac_fn_c_try_link "$LINENO"; then :
15149 ac_cv_have_va_copy="yes"
15151 ac_cv_have_va_copy="no"
15154 rm -f core conftest.err conftest.$ac_objext \
15155 conftest$ac_exeext conftest.$ac_ext
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
15159 $as_echo "$ac_cv_have_va_copy" >&6; }
15160 if test "x$ac_cv_have_va_copy" = "xyes" ; then
15162 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
15167 $as_echo_n "checking whether __va_copy exists... " >&6; }
15168 if ${ac_cv_have___va_copy+:} false; then :
15169 $as_echo_n "(cached) " >&6
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15175 #include <stdarg.h>
15186 if ac_fn_c_try_link "$LINENO"; then :
15187 ac_cv_have___va_copy="yes"
15189 ac_cv_have___va_copy="no"
15192 rm -f core conftest.err conftest.$ac_objext \
15193 conftest$ac_exeext conftest.$ac_ext
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
15197 $as_echo "$ac_cv_have___va_copy" >&6; }
15198 if test "x$ac_cv_have___va_copy" = "xyes" ; then
15200 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
15205 $as_echo_n "checking whether getopt has optreset support... " >&6; }
15206 if ${ac_cv_have_getopt_optreset+:} false; then :
15207 $as_echo_n "(cached) " >&6
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15212 #include <getopt.h>
15216 extern int optreset; optreset = 0;
15221 if ac_fn_c_try_link "$LINENO"; then :
15222 ac_cv_have_getopt_optreset="yes"
15224 ac_cv_have_getopt_optreset="no"
15227 rm -f core conftest.err conftest.$ac_objext \
15228 conftest$ac_exeext conftest.$ac_ext
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
15232 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
15233 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
15235 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
15240 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
15241 if ${ac_cv_libc_defines_sys_errlist+:} false; then :
15242 $as_echo_n "(cached) " >&6
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15251 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
15256 if ac_fn_c_try_link "$LINENO"; then :
15257 ac_cv_libc_defines_sys_errlist="yes"
15259 ac_cv_libc_defines_sys_errlist="no"
15262 rm -f core conftest.err conftest.$ac_objext \
15263 conftest$ac_exeext conftest.$ac_ext
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
15267 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
15268 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
15270 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
15276 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
15277 if ${ac_cv_libc_defines_sys_nerr+:} false; then :
15278 $as_echo_n "(cached) " >&6
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15287 extern int sys_nerr; printf("%i", sys_nerr);
15292 if ac_fn_c_try_link "$LINENO"; then :
15293 ac_cv_libc_defines_sys_nerr="yes"
15295 ac_cv_libc_defines_sys_nerr="no"
15298 rm -f core conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
15303 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
15304 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
15306 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
15310 # Check libraries needed by DNS fingerprint support
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
15312 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
15313 if ${ac_cv_search_getrrsetbyname+:} false; then :
15314 $as_echo_n "(cached) " >&6
15316 ac_func_search_save_LIBS=$LIBS
15317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318 /* end confdefs.h. */
15320 /* Override any GCC internal prototype to avoid an error.
15321 Use char because int might match the return type of a GCC
15322 builtin and then its argument prototype would still apply. */
15326 char getrrsetbyname ();
15330 return getrrsetbyname ();
15335 for ac_lib in '' resolv; do
15336 if test -z "$ac_lib"; then
15337 ac_res="none required"
15340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15342 if ac_fn_c_try_link "$LINENO"; then :
15343 ac_cv_search_getrrsetbyname=$ac_res
15345 rm -f core conftest.err conftest.$ac_objext \
15347 if ${ac_cv_search_getrrsetbyname+:} false; then :
15351 if ${ac_cv_search_getrrsetbyname+:} false; then :
15354 ac_cv_search_getrrsetbyname=no
15356 rm conftest.$ac_ext
15357 LIBS=$ac_func_search_save_LIBS
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
15360 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
15361 ac_res=$ac_cv_search_getrrsetbyname
15362 if test "$ac_res" != no; then :
15363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15365 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
15369 # Needed by our getrrsetbyname()
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
15371 $as_echo_n "checking for library containing res_query... " >&6; }
15372 if ${ac_cv_search_res_query+:} false; then :
15373 $as_echo_n "(cached) " >&6
15375 ac_func_search_save_LIBS=$LIBS
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15379 /* Override any GCC internal prototype to avoid an error.
15380 Use char because int might match the return type of a GCC
15381 builtin and then its argument prototype would still apply. */
15389 return res_query ();
15394 for ac_lib in '' resolv; do
15395 if test -z "$ac_lib"; then
15396 ac_res="none required"
15399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15401 if ac_fn_c_try_link "$LINENO"; then :
15402 ac_cv_search_res_query=$ac_res
15404 rm -f core conftest.err conftest.$ac_objext \
15406 if ${ac_cv_search_res_query+:} false; then :
15410 if ${ac_cv_search_res_query+:} false; then :
15413 ac_cv_search_res_query=no
15415 rm conftest.$ac_ext
15416 LIBS=$ac_func_search_save_LIBS
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
15419 $as_echo "$ac_cv_search_res_query" >&6; }
15420 ac_res=$ac_cv_search_res_query
15421 if test "$ac_res" != no; then :
15422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
15427 $as_echo_n "checking for library containing dn_expand... " >&6; }
15428 if ${ac_cv_search_dn_expand+:} false; then :
15429 $as_echo_n "(cached) " >&6
15431 ac_func_search_save_LIBS=$LIBS
15432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h. */
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15445 return dn_expand ();
15450 for ac_lib in '' resolv; do
15451 if test -z "$ac_lib"; then
15452 ac_res="none required"
15455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15457 if ac_fn_c_try_link "$LINENO"; then :
15458 ac_cv_search_dn_expand=$ac_res
15460 rm -f core conftest.err conftest.$ac_objext \
15462 if ${ac_cv_search_dn_expand+:} false; then :
15466 if ${ac_cv_search_dn_expand+:} false; then :
15469 ac_cv_search_dn_expand=no
15471 rm conftest.$ac_ext
15472 LIBS=$ac_func_search_save_LIBS
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
15475 $as_echo "$ac_cv_search_dn_expand" >&6; }
15476 ac_res=$ac_cv_search_dn_expand
15477 if test "$ac_res" != no; then :
15478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
15483 $as_echo_n "checking if res_query will link... " >&6; }
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15487 #include <sys/types.h>
15488 #include <netinet/in.h>
15489 #include <arpa/nameser.h>
15491 #include <resolv.h>
15497 res_query (0, 0, 0, 0, 0);
15503 if ac_fn_c_try_link "$LINENO"; then :
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15505 $as_echo "yes" >&6; }
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508 $as_echo "no" >&6; }
15510 LIBS="$LIBS -lresolv"
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
15512 $as_echo_n "checking for res_query in -lresolv... " >&6; }
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15516 #include <sys/types.h>
15517 #include <netinet/in.h>
15518 #include <arpa/nameser.h>
15520 #include <resolv.h>
15526 res_query (0, 0, 0, 0, 0);
15532 if ac_fn_c_try_link "$LINENO"; then :
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534 $as_echo "yes" >&6; }
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15538 $as_echo "no" >&6; }
15540 rm -f core conftest.err conftest.$ac_objext \
15541 conftest$ac_exeext conftest.$ac_ext
15544 rm -f core conftest.err conftest.$ac_objext \
15545 conftest$ac_exeext conftest.$ac_ext
15546 for ac_func in _getshort _getlong
15548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15550 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15551 cat >>confdefs.h <<_ACEOF
15552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15558 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
15559 #include <arpa/nameser.h>
15561 if test "x$ac_cv_have_decl__getshort" = xyes; then :
15567 cat >>confdefs.h <<_ACEOF
15568 #define HAVE_DECL__GETSHORT $ac_have_decl
15570 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
15571 #include <arpa/nameser.h>
15573 if test "x$ac_cv_have_decl__getlong" = xyes; then :
15579 cat >>confdefs.h <<_ACEOF
15580 #define HAVE_DECL__GETLONG $ac_have_decl
15583 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
15585 if test "x$ac_cv_member_HEADER_ad" = xyes; then :
15587 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
15596 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h. */
15601 #if HAVE_SYS_TYPES_H
15602 # include <sys/types.h>
15604 #include <netinet/in.h>
15605 #include <arpa/nameser.h>
15606 #include <resolv.h>
15607 extern struct __res_state _res;
15617 if ac_fn_c_try_link "$LINENO"; then :
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15619 $as_echo "yes" >&6; }
15621 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15629 rm -f core conftest.err conftest.$ac_objext \
15630 conftest$ac_exeext conftest.$ac_ext
15632 # Check whether user wants SELinux support
15636 # Check whether --with-selinux was given.
15637 if test "${with_selinux+set}" = set; then :
15638 withval=$with_selinux; if test "x$withval" != "xno" ; then
15641 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
15644 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
15645 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
15648 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
15653 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
15654 if ${ac_cv_lib_selinux_setexeccon+:} false; then :
15655 $as_echo_n "(cached) " >&6
15657 ac_check_lib_save_LIBS=$LIBS
15658 LIBS="-lselinux $LIBS"
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15662 /* Override any GCC internal prototype to avoid an error.
15663 Use char because int might match the return type of a GCC
15664 builtin and then its argument prototype would still apply. */
15668 char setexeccon ();
15672 return setexeccon ();
15677 if ac_fn_c_try_link "$LINENO"; then :
15678 ac_cv_lib_selinux_setexeccon=yes
15680 ac_cv_lib_selinux_setexeccon=no
15682 rm -f core conftest.err conftest.$ac_objext \
15683 conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
15687 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
15688 if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
15689 LIBSELINUX="-lselinux"
15690 LIBS="$LIBS -lselinux"
15693 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
15696 SSHLIBS="$SSHLIBS $LIBSELINUX"
15697 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
15698 for ac_func in getseuserbyname get_default_context_with_level
15700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15702 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15703 cat >>confdefs.h <<_ACEOF
15704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15718 # Check whether user wants Kerberos 5 support
15721 # Check whether --with-kerberos5 was given.
15722 if test "${with_kerberos5+set}" = set; then :
15723 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
15724 if test "x$withval" = "xyes" ; then
15725 KRB5ROOT="/usr/local"
15727 KRB5ROOT=${withval}
15731 $as_echo "#define KRB5 1" >>confdefs.h
15735 # Extract the first word of "krb5-config", so it can be a program name with args.
15736 set dummy krb5-config; ac_word=$2
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15738 $as_echo_n "checking for $ac_word... " >&6; }
15739 if ${ac_cv_path_KRB5CONF+:} false; then :
15740 $as_echo_n "(cached) " >&6
15744 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
15747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15748 as_dummy="$KRB5ROOT/bin:$PATH"
15749 for as_dir in $as_dummy
15752 test -z "$as_dir" && as_dir=.
15753 for ac_exec_ext in '' $ac_executable_extensions; do
15754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15755 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
15756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15763 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
15767 KRB5CONF=$ac_cv_path_KRB5CONF
15768 if test -n "$KRB5CONF"; then
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
15770 $as_echo "$KRB5CONF" >&6; }
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15773 $as_echo "no" >&6; }
15777 if test -x $KRB5CONF ; then
15778 K5CFLAGS="`$KRB5CONF --cflags`"
15779 K5LIBS="`$KRB5CONF --libs`"
15780 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
15783 $as_echo_n "checking for gssapi support... " >&6; }
15784 if $KRB5CONF | grep gssapi >/dev/null ; then
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15786 $as_echo "yes" >&6; }
15788 $as_echo "#define GSSAPI 1" >>confdefs.h
15790 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
15791 GSSLIBS="`$KRB5CONF --libs gssapi`"
15792 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795 $as_echo "no" >&6; }
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15798 $as_echo_n "checking whether we are using Heimdal... " >&6; }
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15806 char *tmp = heimdal_version;
15811 if ac_fn_c_try_compile "$LINENO"; then :
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813 $as_echo "yes" >&6; }
15815 $as_echo "#define HEIMDAL 1" >>confdefs.h
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15819 $as_echo "no" >&6; }
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15825 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15827 $as_echo_n "checking whether we are using Heimdal... " >&6; }
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15835 char *tmp = heimdal_version;
15840 if ac_fn_c_try_compile "$LINENO"; then :
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15842 $as_echo "yes" >&6; }
15843 $as_echo "#define HEIMDAL 1" >>confdefs.h
15846 K5LIBS="$K5LIBS -lcom_err -lasn1"
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
15848 $as_echo_n "checking for net_write in -lroken... " >&6; }
15849 if ${ac_cv_lib_roken_net_write+:} false; then :
15850 $as_echo_n "(cached) " >&6
15852 ac_check_lib_save_LIBS=$LIBS
15853 LIBS="-lroken $LIBS"
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15857 /* Override any GCC internal prototype to avoid an error.
15858 Use char because int might match the return type of a GCC
15859 builtin and then its argument prototype would still apply. */
15867 return net_write ();
15872 if ac_fn_c_try_link "$LINENO"; then :
15873 ac_cv_lib_roken_net_write=yes
15875 ac_cv_lib_roken_net_write=no
15877 rm -f core conftest.err conftest.$ac_objext \
15878 conftest$ac_exeext conftest.$ac_ext
15879 LIBS=$ac_check_lib_save_LIBS
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
15882 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
15883 if test "x$ac_cv_lib_roken_net_write" = xyes; then :
15884 K5LIBS="$K5LIBS -lroken"
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15888 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15889 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
15890 $as_echo_n "(cached) " >&6
15892 ac_check_lib_save_LIBS=$LIBS
15894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h. */
15897 /* Override any GCC internal prototype to avoid an error.
15898 Use char because int might match the return type of a GCC
15899 builtin and then its argument prototype would still apply. */
15903 char des_cbc_encrypt ();
15907 return des_cbc_encrypt ();
15912 if ac_fn_c_try_link "$LINENO"; then :
15913 ac_cv_lib_des_des_cbc_encrypt=yes
15915 ac_cv_lib_des_des_cbc_encrypt=no
15917 rm -f core conftest.err conftest.$ac_objext \
15918 conftest$ac_exeext conftest.$ac_ext
15919 LIBS=$ac_check_lib_save_LIBS
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15922 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15923 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
15924 K5LIBS="$K5LIBS -ldes"
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15930 $as_echo "no" >&6; }
15931 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
15937 $as_echo_n "checking for library containing dn_expand... " >&6; }
15938 if ${ac_cv_search_dn_expand+:} false; then :
15939 $as_echo_n "(cached) " >&6
15941 ac_func_search_save_LIBS=$LIBS
15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15945 /* Override any GCC internal prototype to avoid an error.
15946 Use char because int might match the return type of a GCC
15947 builtin and then its argument prototype would still apply. */
15955 return dn_expand ();
15960 for ac_lib in '' resolv; do
15961 if test -z "$ac_lib"; then
15962 ac_res="none required"
15965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15967 if ac_fn_c_try_link "$LINENO"; then :
15968 ac_cv_search_dn_expand=$ac_res
15970 rm -f core conftest.err conftest.$ac_objext \
15972 if ${ac_cv_search_dn_expand+:} false; then :
15976 if ${ac_cv_search_dn_expand+:} false; then :
15979 ac_cv_search_dn_expand=no
15981 rm conftest.$ac_ext
15982 LIBS=$ac_func_search_save_LIBS
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
15985 $as_echo "$ac_cv_search_dn_expand" >&6; }
15986 ac_res=$ac_cv_search_dn_expand
15987 if test "$ac_res" != no; then :
15988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
15994 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
15995 if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
15996 $as_echo_n "(cached) " >&6
15998 ac_check_lib_save_LIBS=$LIBS
15999 LIBS="-lgssapi_krb5 $LIBS"
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16003 /* Override any GCC internal prototype to avoid an error.
16004 Use char because int might match the return type of a GCC
16005 builtin and then its argument prototype would still apply. */
16009 char gss_init_sec_context ();
16013 return gss_init_sec_context ();
16018 if ac_fn_c_try_link "$LINENO"; then :
16019 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
16021 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
16023 rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16025 LIBS=$ac_check_lib_save_LIBS
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
16028 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
16029 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
16030 $as_echo "#define GSSAPI 1" >>confdefs.h
16032 GSSLIBS="-lgssapi_krb5"
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
16035 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
16036 if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
16037 $as_echo_n "(cached) " >&6
16039 ac_check_lib_save_LIBS=$LIBS
16040 LIBS="-lgssapi $LIBS"
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16044 /* Override any GCC internal prototype to avoid an error.
16045 Use char because int might match the return type of a GCC
16046 builtin and then its argument prototype would still apply. */
16050 char gss_init_sec_context ();
16054 return gss_init_sec_context ();
16059 if ac_fn_c_try_link "$LINENO"; then :
16060 ac_cv_lib_gssapi_gss_init_sec_context=yes
16062 ac_cv_lib_gssapi_gss_init_sec_context=no
16064 rm -f core conftest.err conftest.$ac_objext \
16065 conftest$ac_exeext conftest.$ac_ext
16066 LIBS=$ac_check_lib_save_LIBS
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
16069 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
16070 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
16071 $as_echo "#define GSSAPI 1" >>confdefs.h
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
16076 $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
16077 if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
16078 $as_echo_n "(cached) " >&6
16080 ac_check_lib_save_LIBS=$LIBS
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16085 /* Override any GCC internal prototype to avoid an error.
16086 Use char because int might match the return type of a GCC
16087 builtin and then its argument prototype would still apply. */
16091 char gss_init_sec_context ();
16095 return gss_init_sec_context ();
16100 if ac_fn_c_try_link "$LINENO"; then :
16101 ac_cv_lib_gss_gss_init_sec_context=yes
16103 ac_cv_lib_gss_gss_init_sec_context=no
16105 rm -f core conftest.err conftest.$ac_objext \
16106 conftest$ac_exeext conftest.$ac_ext
16107 LIBS=$ac_check_lib_save_LIBS
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
16110 $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
16111 if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
16112 $as_echo "#define GSSAPI 1" >>confdefs.h
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
16117 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
16127 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
16128 if test "x$ac_cv_header_gssapi_h" = xyes; then :
16131 unset ac_cv_header_gssapi_h
16132 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
16133 for ac_header in gssapi.h
16135 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
16136 if test "x$ac_cv_header_gssapi_h" = xyes; then :
16137 cat >>confdefs.h <<_ACEOF
16138 #define HAVE_GSSAPI_H 1
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
16143 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
16156 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
16157 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
16158 if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
16167 if test ! -z "$need_dash_r" ; then
16168 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
16170 if test ! -z "$blibpath" ; then
16171 blibpath="$blibpath:${KRB5ROOT}/lib"
16174 for ac_header in gssapi.h gssapi/gssapi.h
16176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16177 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16178 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16179 cat >>confdefs.h <<_ACEOF
16180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16187 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
16189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16190 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16192 cat >>confdefs.h <<_ACEOF
16193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16200 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
16202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16203 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16204 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16205 cat >>confdefs.h <<_ACEOF
16206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
16215 $as_echo_n "checking for library containing k_hasafs... " >&6; }
16216 if ${ac_cv_search_k_hasafs+:} false; then :
16217 $as_echo_n "(cached) " >&6
16219 ac_func_search_save_LIBS=$LIBS
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16223 /* Override any GCC internal prototype to avoid an error.
16224 Use char because int might match the return type of a GCC
16225 builtin and then its argument prototype would still apply. */
16233 return k_hasafs ();
16238 for ac_lib in '' kafs; do
16239 if test -z "$ac_lib"; then
16240 ac_res="none required"
16243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16245 if ac_fn_c_try_link "$LINENO"; then :
16246 ac_cv_search_k_hasafs=$ac_res
16248 rm -f core conftest.err conftest.$ac_objext \
16250 if ${ac_cv_search_k_hasafs+:} false; then :
16254 if ${ac_cv_search_k_hasafs+:} false; then :
16257 ac_cv_search_k_hasafs=no
16259 rm conftest.$ac_ext
16260 LIBS=$ac_func_search_save_LIBS
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
16263 $as_echo "$ac_cv_search_k_hasafs" >&6; }
16264 ac_res=$ac_cv_search_k_hasafs
16265 if test "$ac_res" != no; then :
16266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16268 $as_echo "#define USE_AFS 1" >>confdefs.h
16273 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
16274 #ifdef HAVE_GSSAPI_H
16275 # include <gssapi.h>
16276 #elif defined(HAVE_GSSAPI_GSSAPI_H)
16277 # include <gssapi/gssapi.h>
16280 #ifdef HAVE_GSSAPI_GENERIC_H
16281 # include <gssapi_generic.h>
16282 #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
16283 # include <gssapi/gssapi_generic.h>
16287 if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
16293 cat >>confdefs.h <<_ACEOF
16294 #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
16298 LIBS="$LIBS $K5LIBS"
16299 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
16301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16302 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16303 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16304 cat >>confdefs.h <<_ACEOF
16305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16321 # Looking for programs, paths and files
16323 PRIVSEP_PATH=/var/empty
16325 # Check whether --with-privsep-path was given.
16326 if test "${with_privsep_path+set}" = set; then :
16327 withval=$with_privsep_path;
16328 if test -n "$withval" && test "x$withval" != "xno" && \
16329 test "x${withval}" != "xyes"; then
16330 PRIVSEP_PATH=$withval
16339 # Check whether --with-xauth was given.
16340 if test "${with_xauth+set}" = set; then :
16341 withval=$with_xauth;
16342 if test -n "$withval" && test "x$withval" != "xno" && \
16343 test "x${withval}" != "xyes"; then
16344 xauth_path=$withval
16350 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
16351 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
16352 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
16353 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
16354 # Extract the first word of "xauth", so it can be a program name with args.
16355 set dummy xauth; ac_word=$2
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16357 $as_echo_n "checking for $ac_word... " >&6; }
16358 if ${ac_cv_path_xauth_path+:} false; then :
16359 $as_echo_n "(cached) " >&6
16361 case $xauth_path in
16363 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
16366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16367 for as_dir in $TestPath
16370 test -z "$as_dir" && as_dir=.
16371 for ac_exec_ext in '' $ac_executable_extensions; do
16372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16373 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
16374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16384 xauth_path=$ac_cv_path_xauth_path
16385 if test -n "$xauth_path"; then
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
16387 $as_echo "$xauth_path" >&6; }
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16394 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
16395 xauth_path="/usr/openwin/bin/xauth"
16403 # Check whether --enable-strip was given.
16404 if test "${enable_strip+set}" = set; then :
16405 enableval=$enable_strip;
16406 if test "x$enableval" = "xno" ; then
16415 if test -z "$xauth_path" ; then
16416 XAUTH_PATH="undefined"
16420 cat >>confdefs.h <<_ACEOF
16421 #define XAUTH_PATH "$xauth_path"
16424 XAUTH_PATH=$xauth_path
16428 # Check for mail directory
16430 # Check whether --with-maildir was given.
16431 if test "${with_maildir+set}" = set; then :
16432 withval=$with_maildir;
16433 if test "X$withval" != X && test "x$withval" != xno && \
16434 test "x${withval}" != xyes; then
16436 cat >>confdefs.h <<_ACEOF
16437 #define MAIL_DIRECTORY "$withval"
16444 if test "X$maildir" != "X"; then
16445 cat >>confdefs.h <<_ACEOF
16446 #define MAIL_DIRECTORY "$maildir"
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
16451 $as_echo_n "checking Discovering system mail directory... " >&6; }
16452 if test "$cross_compiling" = yes; then :
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
16455 $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16463 #include <string.h>
16464 #ifdef HAVE_PATHS_H
16467 #ifdef HAVE_MAILLOCK_H
16468 #include <maillock.h>
16470 #define DATA "conftest.maildir"
16479 fd = fopen(DATA,"w");
16483 #if defined (_PATH_MAILDIR)
16484 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
16486 #elif defined (MAILDIR)
16487 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
16489 #elif defined (_PATH_MAIL)
16490 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
16502 if ac_fn_c_try_run "$LINENO"; then :
16504 maildir_what=`awk -F: '{print $1}' conftest.maildir`
16505 maildir=`awk -F: '{print $2}' conftest.maildir \
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
16508 $as_echo "Using: $maildir from $maildir_what" >&6; }
16509 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define MAIL_DIRECTORY "$maildir"
16518 if test "X$ac_status" = "X2";then
16519 # our test program didn't find it. Default to /var/spool/mail
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
16521 $as_echo "Using: default value of /var/spool/mail" >&6; }
16522 cat >>confdefs.h <<_ACEOF
16523 #define MAIL_DIRECTORY "/var/spool/mail"
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
16528 $as_echo "*** not found ***" >&6; }
16532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16533 conftest.$ac_objext conftest.beam conftest.$ac_ext
16542 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
16544 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
16545 disable_ptmx_check=yes
16547 if test -z "$no_dev_ptmx" ; then
16548 if test "x$disable_ptmx_check" != "xyes" ; then
16549 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
16551 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
16552 if eval \${$as_ac_File+:} false; then :
16553 $as_echo_n "(cached) " >&6
16555 test "$cross_compiling" = yes &&
16556 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16557 if test -r ""/dev/ptmx""; then
16558 eval "$as_ac_File=yes"
16560 eval "$as_ac_File=no"
16563 eval ac_res=\$$as_ac_File
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16565 $as_echo "$ac_res" >&6; }
16566 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
16569 cat >>confdefs.h <<_ACEOF
16570 #define HAVE_DEV_PTMX 1
16581 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
16582 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
16584 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
16585 if eval \${$as_ac_File+:} false; then :
16586 $as_echo_n "(cached) " >&6
16588 test "$cross_compiling" = yes &&
16589 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16590 if test -r ""/dev/ptc""; then
16591 eval "$as_ac_File=yes"
16593 eval "$as_ac_File=no"
16596 eval ac_res=\$$as_ac_File
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16598 $as_echo "$ac_res" >&6; }
16599 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
16602 cat >>confdefs.h <<_ACEOF
16603 #define HAVE_DEV_PTS_AND_PTC 1
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
16613 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
16616 # Options from here on. Some of these are preset by platform above
16618 # Check whether --with-mantype was given.
16619 if test "${with_mantype+set}" = set; then :
16620 withval=$with_mantype;
16626 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
16633 if test -z "$MANTYPE"; then
16634 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
16635 for ac_prog in nroff awf
16637 # Extract the first word of "$ac_prog", so it can be a program name with args.
16638 set dummy $ac_prog; ac_word=$2
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16640 $as_echo_n "checking for $ac_word... " >&6; }
16641 if ${ac_cv_path_NROFF+:} false; then :
16642 $as_echo_n "(cached) " >&6
16646 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
16649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16650 for as_dir in $TestPath
16653 test -z "$as_dir" && as_dir=.
16654 for ac_exec_ext in '' $ac_executable_extensions; do
16655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16656 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
16657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16667 NROFF=$ac_cv_path_NROFF
16668 if test -n "$NROFF"; then
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
16670 $as_echo "$NROFF" >&6; }
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16673 $as_echo "no" >&6; }
16677 test -n "$NROFF" && break
16679 test -n "$NROFF" || NROFF="/bin/false"
16681 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
16683 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
16690 if test "$MANTYPE" = "doc"; then
16693 mansubdir=$MANTYPE;
16697 # Check whether to enable MD5 passwords
16700 # Check whether --with-md5-passwords was given.
16701 if test "${with_md5_passwords+set}" = set; then :
16702 withval=$with_md5_passwords;
16703 if test "x$withval" != "xno" ; then
16705 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
16714 # Whether to disable shadow password support
16716 # Check whether --with-shadow was given.
16717 if test "${with_shadow+set}" = set; then :
16718 withval=$with_shadow;
16719 if test "x$withval" = "xno" ; then
16720 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
16729 if test -z "$disable_shadow" ; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
16731 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16733 /* end confdefs.h. */
16735 #include <sys/types.h>
16736 #include <shadow.h>
16742 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
16747 if ac_fn_c_try_compile "$LINENO"; then :
16748 sp_expire_available=yes
16750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16752 if test "x$sp_expire_available" = "xyes" ; then
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16754 $as_echo "yes" >&6; }
16756 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16760 $as_echo "no" >&6; }
16764 # Use ip address instead of hostname in $DISPLAY
16765 if test ! -z "$IPADDR_IN_DISPLAY" ; then
16766 DISPLAY_HACK_MSG="yes"
16768 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
16771 DISPLAY_HACK_MSG="no"
16773 # Check whether --with-ipaddr-display was given.
16774 if test "${with_ipaddr_display+set}" = set; then :
16775 withval=$with_ipaddr_display;
16776 if test "x$withval" != "xno" ; then
16777 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
16779 DISPLAY_HACK_MSG="yes"
16787 # check for /etc/default/login and use it if present.
16788 # Check whether --enable-etc-default-login was given.
16789 if test "${enable_etc_default_login+set}" = set; then :
16790 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
16792 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
16793 etc_default_login=no
16795 etc_default_login=yes
16798 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
16801 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
16802 etc_default_login=no
16804 etc_default_login=yes
16810 if test "x$etc_default_login" != "xno"; then
16811 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
16813 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
16814 if eval \${$as_ac_File+:} false; then :
16815 $as_echo_n "(cached) " >&6
16817 test "$cross_compiling" = yes &&
16818 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16819 if test -r ""/etc/default/login""; then
16820 eval "$as_ac_File=yes"
16822 eval "$as_ac_File=no"
16825 eval ac_res=\$$as_ac_File
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16827 $as_echo "$ac_res" >&6; }
16828 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
16829 external_path_file=/etc/default/login
16832 if test "x$external_path_file" = "x/etc/default/login"; then
16834 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
16839 if test $ac_cv_func_login_getcapbool = "yes" && \
16840 test $ac_cv_header_login_cap_h = "yes" ; then
16841 external_path_file=/etc/login.conf
16844 # Whether to mess with the default path
16845 SERVER_PATH_MSG="(default)"
16847 # Check whether --with-default-path was given.
16848 if test "${with_default_path+set}" = set; then :
16849 withval=$with_default_path;
16850 if test "x$external_path_file" = "x/etc/login.conf" ; then
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16852 --with-default-path=PATH has no effect on this system.
16853 Edit /etc/login.conf instead." >&5
16854 $as_echo "$as_me: WARNING:
16855 --with-default-path=PATH has no effect on this system.
16856 Edit /etc/login.conf instead." >&2;}
16857 elif test "x$withval" != "xno" ; then
16858 if test ! -z "$external_path_file" ; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16860 --with-default-path=PATH will only be used if PATH is not defined in
16861 $external_path_file ." >&5
16862 $as_echo "$as_me: WARNING:
16863 --with-default-path=PATH will only be used if PATH is not defined in
16864 $external_path_file ." >&2;}
16866 user_path="$withval"
16867 SERVER_PATH_MSG="$withval"
16871 if test "x$external_path_file" = "x/etc/login.conf" ; then
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
16873 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
16875 if test ! -z "$external_path_file" ; then
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16877 If PATH is defined in $external_path_file, ensure the path to scp is included,
16878 otherwise scp will not work." >&5
16879 $as_echo "$as_me: WARNING:
16880 If PATH is defined in $external_path_file, ensure the path to scp is included,
16881 otherwise scp will not work." >&2;}
16883 if test "$cross_compiling" = yes; then :
16884 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16888 /* end confdefs.h. */
16890 /* find out what STDPATH is */
16892 #ifdef HAVE_PATHS_H
16893 # include <paths.h>
16895 #ifndef _PATH_STDPATH
16896 # ifdef _PATH_USERPATH /* Irix */
16897 # define _PATH_STDPATH _PATH_USERPATH
16899 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16902 #include <sys/types.h>
16903 #include <sys/stat.h>
16905 #define DATA "conftest.stdpath"
16914 fd = fopen(DATA,"w");
16918 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16927 if ac_fn_c_try_run "$LINENO"; then :
16928 user_path=`cat conftest.stdpath`
16930 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16933 conftest.$ac_objext conftest.beam conftest.$ac_ext
16936 # make sure $bindir is in USER_PATH so scp will work
16937 t_bindir="${bindir}"
16938 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
16939 t_bindir=`eval echo ${t_bindir}`
16941 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16944 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16947 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
16948 if test $? -ne 0 ; then
16949 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
16950 if test $? -ne 0 ; then
16951 user_path=$user_path:$t_bindir
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16953 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
16960 if test "x$external_path_file" != "x/etc/login.conf" ; then
16962 cat >>confdefs.h <<_ACEOF
16963 #define USER_PATH "$user_path"
16969 # Set superuser path separately to user path
16971 # Check whether --with-superuser-path was given.
16972 if test "${with_superuser_path+set}" = set; then :
16973 withval=$with_superuser_path;
16974 if test -n "$withval" && test "x$withval" != "xno" && \
16975 test "x${withval}" != "xyes"; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define SUPERUSER_PATH "$withval"
16981 superuser_path=$withval
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16990 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
16991 IPV4_IN6_HACK_MSG="no"
16993 # Check whether --with-4in6 was given.
16994 if test "${with_4in6+set}" = set; then :
16995 withval=$with_4in6;
16996 if test "x$withval" != "xno" ; then
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16998 $as_echo "yes" >&6; }
17000 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
17002 IPV4_IN6_HACK_MSG="yes"
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005 $as_echo "no" >&6; }
17010 if test "x$inet6_default_4in6" = "xyes"; then
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
17012 $as_echo "yes (default)" >&6; }
17013 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
17015 IPV4_IN6_HACK_MSG="yes"
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
17018 $as_echo "no (default)" >&6; }
17025 # Whether to enable BSD auth support
17028 # Check whether --with-bsd-auth was given.
17029 if test "${with_bsd_auth+set}" = set; then :
17030 withval=$with_bsd_auth;
17031 if test "x$withval" != "xno" ; then
17033 $as_echo "#define BSD_AUTH 1" >>confdefs.h
17042 # Where to place sshd.pid
17044 # make sure the directory exists
17045 if test ! -d $piddir ; then
17046 piddir=`eval echo ${sysconfdir}`
17048 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
17053 # Check whether --with-pid-dir was given.
17054 if test "${with_pid_dir+set}" = set; then :
17055 withval=$with_pid_dir;
17056 if test -n "$withval" && test "x$withval" != "xno" && \
17057 test "x${withval}" != "xyes"; then
17059 if test ! -d $piddir ; then
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
17061 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
17070 cat >>confdefs.h <<_ACEOF
17071 #define _PATH_SSH_PIDDIR "$piddir"
17076 # Check whether --enable-lastlog was given.
17077 if test "${enable_lastlog+set}" = set; then :
17078 enableval=$enable_lastlog;
17079 if test "x$enableval" = "xno" ; then
17080 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
17087 # Check whether --enable-utmp was given.
17088 if test "${enable_utmp+set}" = set; then :
17089 enableval=$enable_utmp;
17090 if test "x$enableval" = "xno" ; then
17091 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
17098 # Check whether --enable-utmpx was given.
17099 if test "${enable_utmpx+set}" = set; then :
17100 enableval=$enable_utmpx;
17101 if test "x$enableval" = "xno" ; then
17103 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
17110 # Check whether --enable-wtmp was given.
17111 if test "${enable_wtmp+set}" = set; then :
17112 enableval=$enable_wtmp;
17113 if test "x$enableval" = "xno" ; then
17114 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
17121 # Check whether --enable-wtmpx was given.
17122 if test "${enable_wtmpx+set}" = set; then :
17123 enableval=$enable_wtmpx;
17124 if test "x$enableval" = "xno" ; then
17126 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
17133 # Check whether --enable-libutil was given.
17134 if test "${enable_libutil+set}" = set; then :
17135 enableval=$enable_libutil;
17136 if test "x$enableval" = "xno" ; then
17137 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
17144 # Check whether --enable-pututline was given.
17145 if test "${enable_pututline+set}" = set; then :
17146 enableval=$enable_pututline;
17147 if test "x$enableval" = "xno" ; then
17149 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
17156 # Check whether --enable-pututxline was given.
17157 if test "${enable_pututxline+set}" = set; then :
17158 enableval=$enable_pututxline;
17159 if test "x$enableval" = "xno" ; then
17161 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
17169 # Check whether --with-lastlog was given.
17170 if test "${with_lastlog+set}" = set; then :
17171 withval=$with_lastlog;
17172 if test "x$withval" = "xno" ; then
17173 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
17175 elif test -n "$withval" && test "x${withval}" != "xyes"; then
17176 conf_lastlog_location=$withval
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
17185 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17189 #include <sys/types.h>
17191 #ifdef HAVE_LASTLOG_H
17192 # include <lastlog.h>
17194 #ifdef HAVE_PATHS_H
17195 # include <paths.h>
17197 #ifdef HAVE_LOGIN_H
17198 # include <login.h>
17204 char *lastlog = LASTLOG_FILE;
17209 if ac_fn_c_try_compile "$LINENO"; then :
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17211 $as_echo "yes" >&6; }
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17215 $as_echo "no" >&6; }
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
17217 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17221 #include <sys/types.h>
17223 #ifdef HAVE_LASTLOG_H
17224 # include <lastlog.h>
17226 #ifdef HAVE_PATHS_H
17227 # include <paths.h>
17233 char *lastlog = _PATH_LASTLOG;
17238 if ac_fn_c_try_compile "$LINENO"; then :
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17240 $as_echo "yes" >&6; }
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244 $as_echo "no" >&6; }
17245 system_lastlog_path=no
17248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253 if test -z "$conf_lastlog_location"; then
17254 if test x"$system_lastlog_path" = x"no" ; then
17255 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
17256 if (test -d "$f" || test -f "$f") ; then
17257 conf_lastlog_location=$f
17260 if test -z "$conf_lastlog_location"; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
17262 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
17267 if test -n "$conf_lastlog_location"; then
17269 cat >>confdefs.h <<_ACEOF
17270 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
17276 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17280 #include <sys/types.h>
17282 #ifdef HAVE_PATHS_H
17283 # include <paths.h>
17289 char *utmp = UTMP_FILE;
17294 if ac_fn_c_try_compile "$LINENO"; then :
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17296 $as_echo "yes" >&6; }
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17299 $as_echo "no" >&6; }
17300 system_utmp_path=no
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304 if test -z "$conf_utmp_location"; then
17305 if test x"$system_utmp_path" = x"no" ; then
17306 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
17307 if test -f $f ; then
17308 conf_utmp_location=$f
17311 if test -z "$conf_utmp_location"; then
17312 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
17317 if test -n "$conf_utmp_location"; then
17319 cat >>confdefs.h <<_ACEOF
17320 #define CONF_UTMP_FILE "$conf_utmp_location"
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
17326 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17330 #include <sys/types.h>
17332 #ifdef HAVE_PATHS_H
17333 # include <paths.h>
17339 char *wtmp = WTMP_FILE;
17344 if ac_fn_c_try_compile "$LINENO"; then :
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17346 $as_echo "yes" >&6; }
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349 $as_echo "no" >&6; }
17350 system_wtmp_path=no
17353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17354 if test -z "$conf_wtmp_location"; then
17355 if test x"$system_wtmp_path" = x"no" ; then
17356 for f in /usr/adm/wtmp /var/log/wtmp; do
17357 if test -f $f ; then
17358 conf_wtmp_location=$f
17361 if test -z "$conf_wtmp_location"; then
17362 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
17367 if test -n "$conf_wtmp_location"; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define CONF_WTMP_FILE "$conf_wtmp_location"
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
17376 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
17377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h. */
17380 #include <sys/types.h>
17382 #ifdef HAVE_UTMPX_H
17385 #ifdef HAVE_PATHS_H
17386 # include <paths.h>
17392 char *wtmpx = WTMPX_FILE;
17397 if ac_fn_c_try_compile "$LINENO"; then :
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17399 $as_echo "yes" >&6; }
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17402 $as_echo "no" >&6; }
17403 system_wtmpx_path=no
17406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17407 if test -z "$conf_wtmpx_location"; then
17408 if test x"$system_wtmpx_path" = x"no" ; then
17409 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
17414 cat >>confdefs.h <<_ACEOF
17415 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
17421 if test ! -z "$blibpath" ; then
17422 LDFLAGS="$LDFLAGS $blibflags$blibpath"
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
17424 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
17427 ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
17428 #ifdef HAVE_SYS_TYPES_H
17429 #include <sys/types.h>
17434 #ifdef HAVE_UTMPX_H
17437 #ifdef HAVE_LASTLOG_H
17438 #include <lastlog.h>
17442 if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
17446 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
17447 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
17454 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
17455 #ifdef HAVE_SYS_TYPES_H
17456 #include <sys/types.h>
17461 #ifdef HAVE_UTMPX_H
17464 #ifdef HAVE_LASTLOG_H
17465 #include <lastlog.h>
17469 if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
17473 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
17475 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
17481 CFLAGS="$CFLAGS $werror_flags"
17483 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
17488 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
17489 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
17493 TEST_SSH_IPV6=$TEST_SSH_IPV6
17495 UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
17499 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
17501 cat >confcache <<\_ACEOF
17502 # This file is a shell script that caches the results of configure
17503 # tests run on this system so they can be shared between configure
17504 # scripts and configure runs, see configure's option --config-cache.
17505 # It is not useful on other systems. If it contains results you don't
17506 # want to keep, you may remove or edit it.
17508 # config.status only pays attention to the cache file if you give it
17509 # the --recheck option to rerun configure.
17511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17513 # following values.
17517 # The following way of writing the cache mishandles newlines in values,
17518 # but we know of no workaround that is simple, portable, and efficient.
17519 # So, we kill variables containing newlines.
17520 # Ultrix sh set writes to stderr and can't be redirected directly,
17521 # and sets the high bit in the cache file unless we assign to the vars.
17523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17524 eval ac_val=\$$ac_var
17528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17532 _ | IFS | as_nl) ;; #(
17533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17534 *) { eval $ac_var=; unset $ac_var;} ;;
17540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17541 *${as_nl}ac_space=\ *)
17542 # `set' does not quote correctly, so add quotes: double-quote
17543 # substitution turns \\\\ into \\, and sed turns \\ into \.
17546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17549 # `set' quotes correctly as required by POSIX, so do not add quotes.
17550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17564 if test -w "$cache_file"; then
17565 if test "x$cache_file" != "x/dev/null"; then
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17567 $as_echo "$as_me: updating cache $cache_file" >&6;}
17568 if test ! -f "$cache_file" || test -h "$cache_file"; then
17569 cat confcache >"$cache_file"
17571 case $cache_file in #(
17573 mv -f confcache "$cache_file"$$ &&
17574 mv -f "$cache_file"$$ "$cache_file" ;; #(
17576 mv -f confcache "$cache_file" ;;
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17588 # Let make expand exec_prefix.
17589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17591 DEFS=-DHAVE_CONFIG_H
17596 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17597 # 1. Remove the extension, and $U if already installed.
17598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17599 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17601 # will be set to the directory where LIBOBJS objects are built.
17602 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17603 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17605 LIBOBJS=$ac_libobjs
17607 LTLIBOBJS=$ac_ltlibobjs
17612 : "${CONFIG_STATUS=./config.status}"
17614 ac_clean_files_save=$ac_clean_files
17615 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17617 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17619 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17621 # Generated by $as_me.
17622 # Run this file to recreate the current configuration.
17623 # Compiler output produced by configure, useful for debugging
17624 # configure, is in config.log if it exists.
17627 ac_cs_recheck=false
17630 SHELL=\${CONFIG_SHELL-$SHELL}
17633 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17634 ## -------------------- ##
17635 ## M4sh Initialization. ##
17636 ## -------------------- ##
17638 # Be more Bourne compatible
17639 DUALCASE=1; export DUALCASE # for MKS sh
17640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17643 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17644 # is contrary to our usage. Disable this feature.
17645 alias -g '${1+"$@"}'='"$@"'
17646 setopt NO_GLOB_SUBST
17648 case `(set -o) 2>/dev/null` in #(
17660 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17661 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17664 # Prefer a ksh shell builtin over an external printf program on Solaris,
17665 # but without wasting forks for bash or zsh.
17666 if test -z "$BASH_VERSION$ZSH_VERSION" \
17667 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17668 as_echo='print -r --'
17669 as_echo_n='print -rn --'
17670 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17671 as_echo='printf %s\n'
17672 as_echo_n='printf %s'
17674 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17675 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17676 as_echo_n='/usr/ucb/echo -n'
17678 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17679 as_echo_n_body='eval
17683 expr "X$arg" : "X\\(.*\\)$as_nl";
17684 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17686 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17688 export as_echo_n_body
17689 as_echo_n='sh -c $as_echo_n_body as_echo'
17691 export as_echo_body
17692 as_echo='sh -c $as_echo_body as_echo'
17695 # The user is always right.
17696 if test "${PATH_SEPARATOR+set}" != set; then
17698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17706 # We need space, tab and new line, in precisely that order. Quoting is
17707 # there to prevent editors from complaining about space-tab.
17708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17709 # splitting by setting IFS to empty value.)
17712 # Find who we are. Look in the path if we contain no directory separator.
17715 *[\\/]* ) as_myself=$0 ;;
17716 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17717 for as_dir in $PATH
17720 test -z "$as_dir" && as_dir=.
17721 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17727 # We did not find ourselves, most probably we were run as `sh COMMAND'
17728 # in which case we are not to be found in the path.
17729 if test "x$as_myself" = x; then
17732 if test ! -f "$as_myself"; then
17733 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17737 # Unset variables that we do not need and which cause bugs (e.g. in
17738 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17739 # suppresses any "Segmentation fault" message there. '((' could
17740 # trigger a bug in pdksh 5.2.14.
17741 for as_var in BASH_ENV ENV MAIL MAILPATH
17742 do eval test x\${$as_var+set} = xset \
17743 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17759 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17760 # ----------------------------------------
17761 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17762 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17763 # script with STATUS, using 1 if that was 0.
17766 as_status=$1; test $as_status -eq 0 && as_status=1
17768 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17769 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17771 $as_echo "$as_me: error: $2" >&2
17772 as_fn_exit $as_status
17776 # as_fn_set_status STATUS
17777 # -----------------------
17778 # Set $? to STATUS, without forking.
17779 as_fn_set_status ()
17782 } # as_fn_set_status
17784 # as_fn_exit STATUS
17785 # -----------------
17786 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17790 as_fn_set_status $1
17796 # Portably unset VAR.
17799 { eval $1=; unset $1;}
17801 as_unset=as_fn_unset
17802 # as_fn_append VAR VALUE
17803 # ----------------------
17804 # Append the text in VALUE to the end of the definition contained in VAR. Take
17805 # advantage of any shell optimizations that allow amortized linear growth over
17806 # repeated appends, instead of the typical quadratic growth present in naive
17808 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17809 eval 'as_fn_append ()
17820 # as_fn_arith ARG...
17821 # ------------------
17822 # Perform arithmetic evaluation on the ARGs, and store the result in the
17823 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17824 # must be portable across $(()) and expr.
17825 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17826 eval 'as_fn_arith ()
17833 as_val=`expr "$@" || test $? -eq 1`
17838 if expr a : '\(a\)' >/dev/null 2>&1 &&
17839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17845 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17846 as_basename=basename
17851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17857 as_me=`$as_basename -- "$0" ||
17858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17859 X"$0" : 'X\(//\)$' \| \
17860 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17862 sed '/^.*\/\([^/][^/]*\)\/*$/{
17876 # Avoid depending upon Character Ranges.
17877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17880 as_cr_digits='0123456789'
17881 as_cr_alnum=$as_cr_Letters$as_cr_digits
17883 ECHO_C= ECHO_N= ECHO_T=
17884 case `echo -n x` in #(((((
17886 case `echo 'xy\c'` in
17887 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17889 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17896 rm -f conf$$ conf$$.exe conf$$.file
17897 if test -d conf$$.dir; then
17898 rm -f conf$$.dir/conf$$.file
17901 mkdir conf$$.dir 2>/dev/null
17903 if (echo >conf$$.file) 2>/dev/null; then
17904 if ln -s conf$$.file conf$$ 2>/dev/null; then
17906 # ... but there are two gotchas:
17907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17909 # In both cases, we have to default to `cp -p'.
17910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17912 elif ln conf$$.file conf$$ 2>/dev/null; then
17920 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17921 rmdir conf$$.dir 2>/dev/null
17926 # Create "$as_dir" as a directory, including parents if necessary.
17931 -*) as_dir=./$as_dir;;
17933 test -d "$as_dir" || eval $as_mkdir_p || {
17937 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17938 *) as_qdir=$as_dir;;
17940 as_dirs="'$as_qdir' $as_dirs"
17941 as_dir=`$as_dirname -- "$as_dir" ||
17942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17943 X"$as_dir" : 'X\(//\)[^/]' \| \
17944 X"$as_dir" : 'X\(//\)$' \| \
17945 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17946 $as_echo X"$as_dir" |
17947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17951 /^X\(\/\/\)[^/].*/{
17964 test -d "$as_dir" && break
17966 test -z "$as_dirs" || eval "mkdir $as_dirs"
17967 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17971 if mkdir -p . 2>/dev/null; then
17972 as_mkdir_p='mkdir -p "$as_dir"'
17974 test -d ./-p && rmdir ./-p
17978 if test -x / >/dev/null 2>&1; then
17979 as_test_x='test -x'
17981 if ls -dL / >/dev/null 2>&1; then
17988 if test -d "$1"; then
17994 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17995 ???[sx]*):;;*)false;;esac;fi
17999 as_executable_p=$as_test_x
18001 # Sed expression to map a string onto a valid CPP name.
18002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18004 # Sed expression to map a string onto a valid variable name.
18005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18009 ## ----------------------------------- ##
18010 ## Main body of $CONFIG_STATUS script. ##
18011 ## ----------------------------------- ##
18013 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18016 # Save the log message, to keep $0 and so on meaningful, and to
18017 # report actual input values of CONFIG_FILES etc. instead of their
18018 # values after options handling.
18020 This file was extended by OpenSSH $as_me Portable, which was
18021 generated by GNU Autoconf 2.68. Invocation command line was
18023 CONFIG_FILES = $CONFIG_FILES
18024 CONFIG_HEADERS = $CONFIG_HEADERS
18025 CONFIG_LINKS = $CONFIG_LINKS
18026 CONFIG_COMMANDS = $CONFIG_COMMANDS
18029 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18034 case $ac_config_files in *"
18035 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18038 case $ac_config_headers in *"
18039 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18044 # Files that config.status was made for.
18045 config_files="$ac_config_files"
18046 config_headers="$ac_config_headers"
18050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18052 \`$as_me' instantiates files and other configuration actions
18053 from templates according to the current configuration. Unless the files
18054 and actions are specified as TAGs, all are instantiated by default.
18056 Usage: $0 [OPTION]... [TAG]...
18058 -h, --help print this help, then exit
18059 -V, --version print version number and configuration settings, then exit
18060 --config print configuration, then exit
18061 -q, --quiet, --silent
18062 do not print progress messages
18063 -d, --debug don't remove temporary files
18064 --recheck update $as_me by reconfiguring in the same conditions
18065 --file=FILE[:TEMPLATE]
18066 instantiate the configuration file FILE
18067 --header=FILE[:TEMPLATE]
18068 instantiate the configuration header FILE
18070 Configuration files:
18073 Configuration headers:
18076 Report bugs to <openssh-unix-dev@mindrot.org>."
18079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18080 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18082 OpenSSH config.status Portable
18083 configured by $0, generated by GNU Autoconf 2.68,
18084 with options \\"\$ac_cs_config\\"
18086 Copyright (C) 2010 Free Software Foundation, Inc.
18087 This config.status script is free software; the Free Software Foundation
18088 gives unlimited permission to copy, distribute and modify it."
18094 test -n "\$AWK" || AWK=awk
18097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18098 # The default lists apply if the user does not specify any file.
18104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18121 # Handling of the options.
18122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18125 $as_echo "$ac_cs_version"; exit ;;
18126 --config | --confi | --conf | --con | --co | --c )
18127 $as_echo "$ac_cs_config"; exit ;;
18128 --debug | --debu | --deb | --de | --d | -d )
18130 --file | --fil | --fi | --f )
18133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18134 '') as_fn_error $? "missing file argument" ;;
18136 as_fn_append CONFIG_FILES " '$ac_optarg'"
18137 ac_need_defaults=false;;
18138 --header | --heade | --head | --hea )
18141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18143 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18144 ac_need_defaults=false;;
18146 # Conflict between --help and --header
18147 as_fn_error $? "ambiguous option: \`$1'
18148 Try \`$0 --help' for more information.";;
18149 --help | --hel | -h )
18150 $as_echo "$ac_cs_usage"; exit ;;
18151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18152 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18155 # This is an error.
18156 -*) as_fn_error $? "unrecognized option: \`$1'
18157 Try \`$0 --help' for more information." ;;
18159 *) as_fn_append ac_config_targets " $1"
18160 ac_need_defaults=false ;;
18166 ac_configure_extra_args=
18168 if $ac_cs_silent; then
18170 ac_configure_extra_args="$ac_configure_extra_args --silent"
18174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18175 if \$ac_cs_recheck; then
18176 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18179 CONFIG_SHELL='$SHELL'
18180 export CONFIG_SHELL
18185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18190 ## Running $as_me. ##
18196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18201 # Handling of arguments.
18202 for ac_config_target in $ac_config_targets
18204 case $ac_config_target in
18205 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18206 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18207 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
18208 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
18209 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
18210 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
18211 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
18212 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
18214 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18219 # If the user did not use the arguments to specify the items to instantiate,
18220 # then the envvar interface is used. Set only those that are not.
18221 # We use the long form for the default assignment because of an extremely
18222 # bizarre bug on SunOS 4.1.3.
18223 if $ac_need_defaults; then
18224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18228 # Have a temporary directory for convenience. Make it in the build tree
18229 # simply because there is no reason against having it here, and in addition,
18230 # creating and moving files from /tmp can sometimes cause problems.
18231 # Hook for its removal unless debugging.
18232 # Note that there is a small window in which the directory will not be cleaned:
18233 # after its creation but before its name has been assigned to `$tmp'.
18237 trap 'exit_status=$?
18238 : "${ac_tmp:=$tmp}"
18239 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18241 trap 'as_fn_exit 1' 1 2 13 15
18243 # Create a (secure) tmp directory for tmp files.
18246 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18250 tmp=./conf$$-$RANDOM
18251 (umask 077 && mkdir "$tmp")
18252 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18255 # Set up the scripts for CONFIG_FILES section.
18256 # No need to generate them if there are no CONFIG_FILES.
18257 # This happens for instance with `./config.status config.h'.
18258 if test -n "$CONFIG_FILES"; then
18261 ac_cr=`echo X | tr X '\015'`
18262 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18263 # But we know of no other shell where ac_cr would be empty at this
18264 # point, so we can use a bashism as a fallback.
18265 if test "x$ac_cr" = x; then
18266 eval ac_cr=\$\'\\r\'
18268 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18269 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18272 ac_cs_awk_cr=$ac_cr
18275 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18280 echo "cat >conf$$subs.awk <<_ACEOF" &&
18281 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18283 } >conf$$subs.sh ||
18284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18285 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18287 for ac_last_try in false false false false false :; do
18288 . ./conf$$subs.sh ||
18289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18291 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18292 if test $ac_delim_n = $ac_delim_num; then
18294 elif $ac_last_try; then
18295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18300 rm -f conf$$subs.sh
18302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18303 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18307 s/^/S["/; s/!.*/"]=/
18317 s/\(.\{148\}\)..*/\1/
18319 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18324 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18331 s/\(.\{148\}\)..*/\1/
18333 s/["\\]/\\&/g; s/^/"/; s/$/"/
18337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18342 ' <conf$$subs.awk | sed '
18347 ' >>$CONFIG_STATUS || ac_write_fail=1
18348 rm -f conf$$subs.awk
18349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18351 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18352 for (key in S) S_is_set[key] = 1
18358 nfields = split(line, field, "@")
18360 len = length(field[1])
18361 for (i = 2; i < nfields; i++) {
18363 keylen = length(key)
18364 if (S_is_set[key]) {
18366 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18367 len += length(value) + length(field[++i])
18378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18379 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18380 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18383 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18384 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18387 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18388 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18389 # trailing colons and then remove the whole line if VPATH becomes empty
18390 # (actually we leave an empty line to preserve line numbers).
18391 if test "x$srcdir" = x.; then
18392 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18411 fi # test -n "$CONFIG_FILES"
18413 # Set up the scripts for CONFIG_HEADERS section.
18414 # No need to generate them if there are no CONFIG_HEADERS.
18415 # This happens for instance with `./config.status Makefile'.
18416 if test -n "$CONFIG_HEADERS"; then
18417 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18421 # Transform confdefs.h into an awk script `defines.awk', embedded as
18422 # here-document in config.status, that substitutes the proper values into
18423 # config.h.in to produce config.h.
18425 # Create a delimiter string that does not exist in confdefs.h, to ease
18426 # handling of long lines.
18428 for ac_last_try in false false :; do
18429 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18430 if test -z "$ac_tt"; then
18432 elif $ac_last_try; then
18433 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18439 # For the awk script, D is an array of macro values keyed by name,
18440 # likewise P contains macro parameters if any. Preserve backslash
18441 # newline sequences.
18443 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18445 s/.\{148\}/&'"$ac_delim"'/g
18448 s/^[ ]*#[ ]*define[ ][ ]*/ /
18455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18457 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18462 D["\1"]=" \3\\\\\\n"\\/p
18464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18469 s/.\{148\}/&'"$ac_delim"'/g
18474 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18477 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18479 ' <confdefs.h | sed '
18480 s/'"$ac_delim"'/"\\\
18481 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18484 for (key in D) D_is_set[key] = 1
18487 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18489 split(line, arg, " ")
18490 if (arg[1] == "#") {
18494 defundef = substr(arg[1], 2)
18497 split(mac1, mac2, "(") #)
18499 prefix = substr(line, 1, index(line, defundef) - 1)
18500 if (D_is_set[macro]) {
18501 # Preserve the white space surrounding the "#".
18502 print prefix "define", macro P[macro] D[macro]
18505 # Replace #undef with comments. This is necessary, for example,
18506 # in the case of _POSIX_SOURCE, which is predefined and required
18507 # on some systems where configure will not decide to define it.
18508 if (defundef == "undef") {
18509 print "/*", prefix defundef, macro, "*/"
18517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18518 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18519 fi # test -n "$CONFIG_HEADERS"
18522 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18527 :[FHLC]) ac_mode=$ac_tag; continue;;
18529 case $ac_mode$ac_tag in
18531 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18532 :[FH]-) ac_tag=-:-;;
18533 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18550 -) ac_f="$ac_tmp/stdin";;
18551 *) # Look for the file first in the build tree, then in the source tree
18552 # (if the path is not absolute). The absolute path cannot be DOS-style,
18553 # because $ac_f cannot contain `:'.
18557 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18559 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18561 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18562 as_fn_append ac_file_inputs " '$ac_f'"
18565 # Let's still pretend it is `configure' which instantiates (i.e., don't
18566 # use $as_me), people would be surprised to read:
18567 # /* config.h. Generated by config.status. */
18568 configure_input='Generated from '`
18569 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18571 if test x"$ac_file" != x-; then
18572 configure_input="$ac_file. $configure_input"
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18574 $as_echo "$as_me: creating $ac_file" >&6;}
18576 # Neutralize special characters interpreted by sed in replacement strings.
18577 case $configure_input in #(
18578 *\&* | *\|* | *\\* )
18579 ac_sed_conf_input=`$as_echo "$configure_input" |
18580 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18581 *) ac_sed_conf_input=$configure_input;;
18585 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18591 ac_dir=`$as_dirname -- "$ac_file" ||
18592 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18593 X"$ac_file" : 'X\(//\)[^/]' \| \
18594 X"$ac_file" : 'X\(//\)$' \| \
18595 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18596 $as_echo X"$ac_file" |
18597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18601 /^X\(\/\/\)[^/].*/{
18614 as_dir="$ac_dir"; as_fn_mkdir_p
18618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18621 # A ".." for each directory in $ac_dir_suffix.
18622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18623 case $ac_top_builddir_sub in
18624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18628 ac_abs_top_builddir=$ac_pwd
18629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18630 # for backward compatibility:
18631 ac_top_builddir=$ac_top_build_prefix
18634 .) # We are building in place.
18636 ac_top_srcdir=$ac_top_builddir_sub
18637 ac_abs_top_srcdir=$ac_pwd ;;
18638 [\\/]* | ?:[\\/]* ) # Absolute name.
18639 ac_srcdir=$srcdir$ac_dir_suffix;
18640 ac_top_srcdir=$srcdir
18641 ac_abs_top_srcdir=$srcdir ;;
18642 *) # Relative name.
18643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18644 ac_top_srcdir=$ac_top_build_prefix$srcdir
18645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18657 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18658 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18663 # If the template does not know about datarootdir, expand it.
18664 # FIXME: This hack should be removed a few years after 2.60.
18665 ac_datarootdir_hack=; ac_datarootdir_seen=
18676 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18677 *datarootdir*) ac_datarootdir_seen=yes;;
18678 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18680 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18683 ac_datarootdir_hack='
18684 s&@datadir@&$datadir&g
18685 s&@docdir@&$docdir&g
18686 s&@infodir@&$infodir&g
18687 s&@localedir@&$localedir&g
18688 s&@mandir@&$mandir&g
18689 s&\\\${datarootdir}&$datarootdir&g' ;;
18693 # Neutralize VPATH when `$srcdir' = `.'.
18694 # Shell code in configure.ac might set extrasub.
18695 # FIXME: do we really want to maintain this feature?
18696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18697 ac_sed_extra="$ac_vpsub
18700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18703 s|@configure_input@|$ac_sed_conf_input|;t t
18704 s&@top_builddir@&$ac_top_builddir_sub&;t t
18705 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18706 s&@srcdir@&$ac_srcdir&;t t
18707 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18708 s&@top_srcdir@&$ac_top_srcdir&;t t
18709 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18710 s&@builddir@&$ac_builddir&;t t
18711 s&@abs_builddir@&$ac_abs_builddir&;t t
18712 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18713 s&@INSTALL@&$ac_INSTALL&;t t
18714 $ac_datarootdir_hack
18716 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18717 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18720 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18722 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18724 which seems to be undefined. Please make sure it is defined" >&5
18725 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18726 which seems to be undefined. Please make sure it is defined" >&2;}
18728 rm -f "$ac_tmp/stdin"
18730 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18731 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18739 if test x"$ac_file" != x-; then
18741 $as_echo "/* $configure_input */" \
18742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18743 } >"$ac_tmp/config.h" \
18744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18745 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18747 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18750 mv "$ac_tmp/config.h" "$ac_file" \
18751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18754 $as_echo "/* $configure_input */" \
18755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18756 || as_fn_error $? "could not create -" "$LINENO" 5
18768 ac_clean_files=$ac_clean_files_save
18770 test $ac_write_fail = 0 ||
18771 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18774 # configure is writing to config.log, and then calls config.status.
18775 # config.status does its own redirection, appending to config.log.
18776 # Unfortunately, on DOS this fails, as config.log is still kept open
18777 # by configure, so config.status won't be able to write to it; its
18778 # output is simply discarded. So we exec the FD to /dev/null,
18779 # effectively closing config.log, so it can be properly (re)opened and
18780 # appended to by config.status. When coming back to configure, we
18781 # need to make the FD available again.
18782 if test "$no_create" != yes; then
18784 ac_config_status_args=
18785 test "$silent" = yes &&
18786 ac_config_status_args="$ac_config_status_args --quiet"
18788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18791 # would make configure fail if this is the last instruction.
18792 $ac_cs_success || as_fn_exit 1
18794 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18796 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18800 # Print summary of options
18802 # Someone please show me a better way :)
18803 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
18804 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
18805 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
18806 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
18807 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
18808 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
18809 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
18810 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
18811 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
18812 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
18815 echo "OpenSSH has been configured with the following options:"
18816 echo " User binaries: $B"
18817 echo " System binaries: $C"
18818 echo " Configuration files: $D"
18819 echo " Askpass program: $E"
18820 echo " Manual pages: $F"
18821 echo " PID file: $G"
18822 echo " Privilege separation chroot path: $H"
18823 if test "x$external_path_file" = "x/etc/login.conf" ; then
18824 echo " At runtime, sshd will use the path defined in $external_path_file"
18825 echo " Make sure the path to scp is present, otherwise scp will not work"
18827 echo " sshd default user PATH: $I"
18828 if test ! -z "$external_path_file"; then
18829 echo " (If PATH is set in $external_path_file it will be used instead. If"
18830 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
18833 if test ! -z "$superuser_path" ; then
18834 echo " sshd superuser user PATH: $J"
18836 echo " Manpage format: $MANTYPE"
18837 echo " PAM support: $PAM_MSG"
18838 echo " OSF SIA support: $SIA_MSG"
18839 echo " KerberosV support: $KRB5_MSG"
18840 echo " SELinux support: $SELINUX_MSG"
18841 echo " Smartcard support: $SCARD_MSG"
18842 echo " S/KEY support: $SKEY_MSG"
18843 echo " TCP Wrappers support: $TCPW_MSG"
18844 echo " MD5 password support: $MD5_MSG"
18845 echo " libedit support: $LIBEDIT_MSG"
18846 echo " Solaris process contract support: $SPC_MSG"
18847 echo " Solaris project support: $SP_MSG"
18848 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
18849 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
18850 echo " BSD Auth support: $BSD_AUTH_MSG"
18851 echo " Random number source: $RAND_MSG"
18852 echo " Privsep sandbox style: $SANDBOX_STYLE"
18856 echo " Host: ${host}"
18857 echo " Compiler: ${CC}"
18858 echo " Compiler flags: ${CFLAGS}"
18859 echo "Preprocessor flags: ${CPPFLAGS}"
18860 echo " Linker flags: ${LDFLAGS}"
18861 echo " Libraries: ${LIBS}"
18862 if test ! -z "${SSHDLIBS}"; then
18863 echo " +for sshd: ${SSHDLIBS}"
18865 if test ! -z "${SSHLIBS}"; then
18866 echo " +for ssh: ${SSHLIBS}"
18871 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
18872 echo "SVR4 style packages are supported with \"make package\""
18876 if test "x$PAM_MSG" = "xyes" ; then
18877 echo "PAM is enabled. You may need to install a PAM control file "
18878 echo "for sshd, otherwise password authentication may fail. "
18879 echo "Example PAM control files can be found in the contrib/ "
18880 echo "subdirectory"
18884 if test ! -z "$NO_PEERCHECK" ; then
18885 echo "WARNING: the operating system that you are using does not"
18886 echo "appear to support getpeereid(), getpeerucred() or the"
18887 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
18888 echo "enforce security checks to prevent unauthorised connections to"
18889 echo "ssh-agent. Their absence increases the risk that a malicious"
18890 echo "user can connect to your agent."
18894 if test "$AUDIT_MODULE" = "bsm" ; then
18895 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
18896 echo "See the Solaris section in README.platform for details."