2 # From configure.ac Revision: 1.496 .
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
628 LOGIN_PROGRAM_FALLBACK
630 MAKE_PACKAGE_SUPPORTED
696 program_transform_name
709 enable_option_checking
718 with_solaris_contracts
719 with_solaris_projects
722 with_zlib_version_check
729 with_openssl_header_check
746 enable_etc_default_login
762 ac_precious_vars='build_alias
773 # Initialize some variables set by options.
775 ac_init_version=false
776 ac_unrecognized_opts=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
787 program_transform_name=s,x,x,
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812 infodir='${datarootdir}/info'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 # Accept the important Cygnus configure options, so we can diagnose typos.
840 case $ac_dashdash$ac_option in
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
862 cache_file=config.cache ;;
864 -datadir | --datadir | --datadi | --datad)
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
876 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error $? "invalid feature name: $ac_useropt"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
890 eval enable_$ac_useropt=no ;;
892 -docdir | --docdir | --docdi | --doc | --do)
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
916 eval enable_$ac_useropt=\$ac_optarg ;;
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
931 -help | --help | --hel | --he | -h)
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 htmldir=$ac_optarg ;;
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
961 -libdir | --libdir | --libdi | --libd)
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
973 -localedir | --localedir | --localedi | --localed | --locale)
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 # Obsolete; use --without-fp.
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1052 -psdir | --psdir | --psdi | --psd | --ps)
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 sbindir=$ac_optarg ;;
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 sharedstatedir=$ac_optarg ;;
1078 -site | --site | --sit)
1080 -site=* | --site=* | --sit=*)
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1120 eval with_$ac_useropt=\$ac_optarg ;;
1122 -without-* | --without-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1136 eval with_$ac_useropt=no ;;
1139 # Obsolete; use --with-x.
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1156 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information"
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
1165 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error $? "missing argument to $ac_option"
1186 if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1189 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 # Check all directory arguments for consistency.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1207 # Be sure to have absolute directory names.
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used" >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error $? "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error $? "pwd does not report name of working directory"
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1279 ac_srcdir_defaulted=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1313 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking ...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 if test -n "$ac_init_help"; then
1377 case $ac_init_help in
1378 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1383 --disable-option-checking ignore unrecognized --enable/--with options
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1386 --disable-largefile omit support for large files
1387 --disable-strip Disable calling strip(1) on install
1388 --disable-etc-default-login Disable using PATH from /etc/default/login no
1389 --disable-lastlog disable use of lastlog even if detected no
1390 --disable-utmp disable use of utmp even if detected no
1391 --disable-utmpx disable use of utmpx even if detected no
1392 --disable-wtmp disable use of wtmp even if detected no
1393 --disable-wtmpx disable use of wtmpx even if detected no
1394 --disable-libutil disable use of libutil (login() etc.) no
1395 --disable-pututline disable use of pututline() etc. (uwtmp) no
1396 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --without-stackprotect Don't use compiler's stack protection
1402 --without-rpath Disable auto-added -R linker paths
1403 --with-cflags Specify additional flags to pass to compiler
1404 --with-cppflags Specify additional flags to pass to preprocessor
1405 --with-ldflags Specify additional flags to pass to linker
1406 --with-libs Specify additional libraries to link with
1407 --with-Werror Build main code with -Werror
1408 --with-solaris-contracts Enable Solaris process contracts (experimental)
1409 --with-solaris-projects Enable Solaris projects (experimental)
1410 --with-osfsia Enable Digital Unix SIA
1411 --with-zlib=PATH Use zlib in PATH
1412 --without-zlib-version-check Disable zlib version check
1413 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1414 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1415 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1416 --with-libedit[=PATH] Enable libedit support for sftp
1417 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1418 --with-ssl-dir=PATH Specify path to OpenSSL installation
1419 --without-openssl-header-check Disable OpenSSL version consistency check
1420 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1421 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1422 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1423 --with-pam Enable PAM support
1424 --with-privsep-user=user Specify non-privileged user for privilege separation
1425 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter)
1426 --with-selinux Enable SELinux support
1427 --with-kerberos5=PATH Enable Kerberos 5 support
1428 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1429 --with-xauth=PATH Specify path to xauth program
1430 --with-maildir=/path/to/mail Specify your system mail directory
1431 --with-mantype=man|cat|doc Set man page type
1432 --with-md5-passwords Enable use of MD5 passwords
1433 --without-shadow Disable shadow password support
1434 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1435 --with-default-path= Specify default \$PATH environment for server
1436 --with-superuser-path= Specify different path for super-user
1437 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1438 --with-bsd-auth Enable BSD auth support
1439 --with-pid-dir=PATH Specify location of ssh.pid file
1440 --with-lastlog=FILE|DIR specify lastlog location common locations
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 Report bugs to <openssh-unix-dev@mindrot.org>.
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1485 .) # We are building in place.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1518 OpenSSH configure Portable
1519 generated by GNU Autoconf 2.68
1521 Copyright (C) 2010 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_c_try_run LINENO
1571 # ----------------------
1572 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1573 # that executables *can* be run.
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 if { { ac_try="$ac_link"
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_link") 2>&5
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1588 { { case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_try") 2>&5
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; }; }; then :
1600 $as_echo "$as_me: program exited with status $ac_status" >&5
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1604 ac_retval=$ac_status
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1612 # ac_fn_c_try_cpp LINENO
1613 # ----------------------
1614 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_cpp conftest.$ac_ext"
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } > conftest.i && {
1634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists and can be compiled using the include files in
1652 # INCLUDES, setting the cache variable VAR accordingly.
1653 ac_fn_c_check_header_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if eval \${$3+:} false; then :
1659 $as_echo_n "(cached) " >&6
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1666 if ac_fn_c_try_compile "$LINENO"; then :
1671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 } # ac_fn_c_check_header_compile
1680 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1681 # ---------------------------------------------
1682 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1684 ac_fn_c_check_decl ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 as_decl_name=`echo $2|sed 's/ *(.*//'`
1688 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1690 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1691 if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1700 #ifndef $as_decl_name
1702 (void) $as_decl_use;
1704 (void) $as_decl_name;
1712 if ac_fn_c_try_compile "$LINENO"; then :
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_decl
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 $as_test_x conftest$ac_exeext
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1770 } # ac_fn_c_try_link
1772 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1775 # the include files in INCLUDES and setting the cache variable VAR
1777 ac_fn_c_check_header_mongrel ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if eval \${$3+:} false; then :
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784 $as_echo_n "(cached) " >&6
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1790 # Is the header compilable?
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1792 $as_echo_n "checking $2 usability... " >&6; }
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799 ac_header_compiler=yes
1801 ac_header_compiler=no
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1805 $as_echo "$ac_header_compiler" >&6; }
1807 # Is the header present?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1809 $as_echo_n "checking $2 presence... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1814 if ac_fn_c_try_cpp "$LINENO"; then :
1815 ac_header_preproc=yes
1817 ac_header_preproc=no
1819 rm -f conftest.err conftest.i conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1821 $as_echo "$ac_header_preproc" >&6; }
1823 # So? What about this header?
1824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1827 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1833 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1835 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1837 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1839 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842 ( $as_echo "## ------------------------------------------- ##
1843 ## Report this to openssh-unix-dev@mindrot.org ##
1844 ## ------------------------------------------- ##"
1845 ) | sed "s/^/$as_me: WARNING: /" >&2
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1853 eval "$3=\$ac_header_compiler"
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 } # ac_fn_c_check_header_mongrel
1863 # ac_fn_c_check_func LINENO FUNC VAR
1864 # ----------------------------------
1865 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1866 ac_fn_c_check_func ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878 #define $2 innocuous_$2
1880 /* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (); below.
1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883 <limits.h> exists even on freestanding compilers. */
1886 # include <limits.h>
1888 # include <assert.h>
1893 /* Override any GCC internal prototype to avoid an error.
1894 Use char because int might match the return type of a GCC
1895 builtin and then its argument prototype would still apply. */
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined __stub_$2 || defined __stub___$2
1915 if ac_fn_c_try_link "$LINENO"; then :
1920 rm -f core conftest.err conftest.$ac_objext \
1921 conftest$ac_exeext conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 } # ac_fn_c_check_func
1930 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1931 # -------------------------------------------
1932 # Tests whether TYPE exists after having included INCLUDES, setting cache
1933 # variable VAR accordingly.
1934 ac_fn_c_check_type ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1968 if ac_fn_c_try_compile "$LINENO"; then :
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 } # ac_fn_c_check_type
1984 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1985 # --------------------------------------------
1986 # Tries to find the compile-time value of EXPR in a program that includes
1987 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1989 ac_fn_c_compute_int ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if test "$cross_compiling" = yes; then
1993 # Depending upon the size, compute the lo and hi bounds.
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
2000 static int test_array [1 - 2 * !(($2) >= 0)];
2007 if ac_fn_c_try_compile "$LINENO"; then :
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2016 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_hi=$ac_mid; break
2026 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2027 if test $ac_lo -le $ac_mid; then
2031 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2042 static int test_array [1 - 2 * !(($2) < 0)];
2049 if ac_fn_c_try_compile "$LINENO"; then :
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2058 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 ac_lo=$ac_mid; break
2068 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2069 if test $ac_mid -le $ac_hi; then
2073 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 # Binary search between lo and hi bounds.
2084 while test "x$ac_lo" != "x$ac_hi"; do
2085 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 if ac_fn_c_try_compile "$LINENO"; then :
2102 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2114 static long int longval () { return $2; }
2115 static unsigned long int ulongval () { return $2; }
2122 FILE *f = fopen ("conftest.val", "w");
2127 long int i = longval ();
2130 fprintf (f, "%ld", i);
2134 unsigned long int i = ulongval ();
2137 fprintf (f, "%lu", i);
2139 /* Do not output a trailing newline, as this causes \r\n confusion
2140 on some platforms. */
2141 return ferror (f) || fclose (f) != 0;
2147 if ac_fn_c_try_run "$LINENO"; then :
2148 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2153 conftest.$ac_objext conftest.beam conftest.$ac_ext
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 as_fn_set_status $ac_retval
2160 } # ac_fn_c_compute_int
2162 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2163 # ----------------------------------------------------
2164 # Tries to find if the field MEMBER exists in type AGGR, after including
2165 # INCLUDES, setting cache variable VAR accordingly.
2166 ac_fn_c_check_member ()
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2170 $as_echo_n "checking for $2.$3... " >&6; }
2171 if eval \${$4+:} false; then :
2172 $as_echo_n "(cached) " >&6
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2187 if ac_fn_c_try_compile "$LINENO"; then :
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2197 if (sizeof ac_aggr.$3)
2203 if ac_fn_c_try_compile "$LINENO"; then :
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 } # ac_fn_c_check_member
2218 cat >config.log <<_ACEOF
2219 This file contains any messages produced by compilers while
2220 running configure, to aid debugging if configure makes a mistake.
2222 It was created by OpenSSH $as_me Portable, which was
2223 generated by GNU Autoconf 2.68. Invocation command line was
2235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2242 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2244 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2245 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2247 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 $as_echo "PATH: $as_dir"
2275 # Keep a trace of the command line.
2276 # Strip out --no-create and --no-recursion so they do not pile up.
2277 # Strip out --silent because we don't want to record it for future runs.
2278 # Also quote any args containing shell meta-characters.
2279 # Make two passes to allow for proper duplicate-argument suppression.
2283 ac_must_keep_next=false
2289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2291 | -silent | --silent | --silen | --sile | --sil)
2294 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2299 as_fn_append ac_configure_args1 " '$ac_arg'"
2300 if test $ac_must_keep_next = true; then
2301 ac_must_keep_next=false # Got value, back to normal.
2304 *=* | --config-cache | -C | -disable-* | --disable-* \
2305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2307 | -with-* | --with-* | -without-* | --without-* | --x)
2308 case "$ac_configure_args0 " in
2309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2312 -* ) ac_must_keep_next=true ;;
2315 as_fn_append ac_configure_args " '$ac_arg'"
2320 { ac_configure_args0=; unset ac_configure_args0;}
2321 { ac_configure_args1=; unset ac_configure_args1;}
2323 # When interrupted or exit'd, cleanup temporary files, and complete
2324 # config.log. We remove comments because anyway the quotes in there
2325 # would cause problems or look ugly.
2326 # WARNING: Use '\'' to represent an apostrophe within the trap.
2327 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2328 trap 'exit_status=$?
2329 # Save into config.log some information that might help in debugging.
2333 $as_echo "## ---------------- ##
2334 ## Cache variables. ##
2335 ## ---------------- ##"
2337 # The following way of writing the cache mishandles newlines in values,
2339 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2340 eval ac_val=\$$ac_var
2344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2345 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2348 _ | IFS | as_nl) ;; #(
2349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2350 *) { eval $ac_var=; unset $ac_var;} ;;
2355 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2356 *${as_nl}ac_space=\ *)
2358 "s/'\''/'\''\\\\'\'''\''/g;
2359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2369 $as_echo "## ----------------- ##
2370 ## Output variables. ##
2371 ## ----------------- ##"
2373 for ac_var in $ac_subst_vars
2375 eval ac_val=\$$ac_var
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 $as_echo "$ac_var='\''$ac_val'\''"
2383 if test -n "$ac_subst_files"; then
2384 $as_echo "## ------------------- ##
2385 ## File substitutions. ##
2386 ## ------------------- ##"
2388 for ac_var in $ac_subst_files
2390 eval ac_val=\$$ac_var
2392 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394 $as_echo "$ac_var='\''$ac_val'\''"
2399 if test -s confdefs.h; then
2400 $as_echo "## ----------- ##
2407 test "$ac_signal" != 0 &&
2408 $as_echo "$as_me: caught signal $ac_signal"
2409 $as_echo "$as_me: exit $exit_status"
2411 rm -f core *.core core.conftest.* &&
2412 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2415 for ac_signal in 1 2 13 15; do
2416 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2420 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2421 rm -f -r conftest* confdefs.h
2423 $as_echo "/* confdefs.h */" > confdefs.h
2425 # Predefined preprocessor variables.
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_NAME "$PACKAGE_NAME"
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_STRING "$PACKAGE_STRING"
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_URL "$PACKAGE_URL"
2452 # Let the site file select an alternate cache file if it wants to.
2453 # Prefer an explicitly selected file to automatically selected ones.
2456 if test -n "$CONFIG_SITE"; then
2457 # We do not want a PATH search for config.site.
2458 case $CONFIG_SITE in #((
2459 -*) ac_site_file1=./$CONFIG_SITE;;
2460 */*) ac_site_file1=$CONFIG_SITE;;
2461 *) ac_site_file1=./$CONFIG_SITE;;
2463 elif test "x$prefix" != xNONE; then
2464 ac_site_file1=$prefix/share/config.site
2465 ac_site_file2=$prefix/etc/config.site
2467 ac_site_file1=$ac_default_prefix/share/config.site
2468 ac_site_file2=$ac_default_prefix/etc/config.site
2470 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2472 test "x$ac_site_file" = xNONE && continue
2473 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476 sed 's/^/| /' "$ac_site_file" >&5
2478 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 as_fn_error $? "failed to load site script $ac_site_file
2481 See \`config.log' for more details" "$LINENO" 5; }
2485 if test -r "$cache_file"; then
2486 # Some versions of bash will fail to source /dev/null (special files
2487 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2488 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2490 $as_echo "$as_me: loading cache $cache_file" >&6;}
2492 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2493 *) . "./$cache_file";;
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2498 $as_echo "$as_me: creating cache $cache_file" >&6;}
2502 # Check that the precious variables saved in the cache have kept the same
2504 ac_cache_corrupted=false
2505 for ac_var in $ac_precious_vars; do
2506 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2507 eval ac_new_set=\$ac_env_${ac_var}_set
2508 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2509 eval ac_new_val=\$ac_env_${ac_var}_value
2510 case $ac_old_set,$ac_new_set in
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2513 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2514 ac_cache_corrupted=: ;;
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2517 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2518 ac_cache_corrupted=: ;;
2521 if test "x$ac_old_val" != "x$ac_new_val"; then
2522 # differences in whitespace do not lead to failure.
2523 ac_old_val_w=`echo x $ac_old_val`
2524 ac_new_val_w=`echo x $ac_new_val`
2525 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2527 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2528 ac_cache_corrupted=:
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2531 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2532 eval $ac_var=\$ac_old_val
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2535 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2537 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2540 # Pass precious variables to config.status.
2541 if test "$ac_new_set" = set; then
2543 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2544 *) ac_arg=$ac_var=$ac_new_val ;;
2546 case " $ac_configure_args " in
2547 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2548 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2552 if $ac_cache_corrupted; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2556 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2557 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2559 ## -------------------- ##
2560 ## Main body of script. ##
2561 ## -------------------- ##
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579 ac_config_headers="$ac_config_headers config.h"
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586 if test -n "$ac_tool_prefix"; then
2587 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2588 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_CC+:} false; then :
2592 $as_echo_n "(cached) " >&6
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 if test -n "$CC"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2617 $as_echo "$CC" >&6; }
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2625 if test -z "$ac_cv_prog_CC"; then
2627 # Extract the first word of "gcc", so it can be a program name with args.
2628 set dummy gcc; ac_word=$2
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2632 $as_echo_n "(cached) " >&6
2634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_ac_ct_CC="gcc"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655 if test -n "$ac_ct_CC"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2657 $as_echo "$ac_ct_CC" >&6; }
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660 $as_echo "no" >&6; }
2663 if test "x$ac_ct_CC" = x; then
2666 case $cross_compiling:$ac_tool_warned in
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2670 ac_tool_warned=yes ;;
2678 if test -z "$CC"; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}cc; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_CC+:} false; then :
2685 $as_echo_n "(cached) " >&6
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="${ac_tool_prefix}cc"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test -n "$CC"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710 $as_echo "$CC" >&6; }
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2719 if test -z "$CC"; then
2720 # Extract the first word of "cc", so it can be a program name with args.
2721 set dummy cc; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_CC+:} false; then :
2725 $as_echo_n "(cached) " >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2739 ac_prog_rejected=yes
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 if test $ac_prog_rejected = yes; then
2751 # We found a bogon in the path, so make sure we never use it.
2752 set dummy $ac_cv_prog_CC
2754 if test $# != 0; then
2755 # We chose a different compiler from the bogus one.
2756 # However, it has the same basename, so the bogon will be chosen
2757 # first if we set CC to just the basename; use the full file name.
2759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2775 if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in cl.exe
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if ${ac_cv_prog_CC+:} false; then :
2784 $as_echo_n "(cached) " >&6
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2816 test -n "$CC" && break
2819 if test -z "$CC"; then
2821 for ac_prog in cl.exe
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CC="$ac_prog"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2853 $as_echo "$ac_ct_CC" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2860 test -n "$ac_ct_CC" && break
2863 if test "x$ac_ct_CC" = x; then
2866 case $cross_compiling:$ac_tool_warned in
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870 ac_tool_warned=yes ;;
2879 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2881 as_fn_error $? "no acceptable C compiler found in \$PATH
2882 See \`config.log' for more details" "$LINENO" 5; }
2884 # Provide some information about the compiler.
2885 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2888 for ac_option in --version -v -V -qversion; do
2889 { { ac_try="$ac_compiler $ac_option >&5"
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2895 $as_echo "$ac_try_echo"; } >&5
2896 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2898 if test -s conftest.err; then
2900 ... rest of stderr output deleted ...
2901 10q' conftest.err >conftest.er1
2902 cat conftest.er1 >&5
2904 rm -f conftest.er1 conftest.err
2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }
2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910 /* end confdefs.h. */
2920 ac_clean_files_save=$ac_clean_files
2921 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2922 # Try to create an executable without -o first, disregard a.out.
2923 # It will help us diagnose broken compilers, and finding out an intuition
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2926 $as_echo_n "checking whether the C compiler works... " >&6; }
2927 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2929 # The possible output files:
2930 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2933 for ac_file in $ac_files
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2937 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2942 if { { ac_try="$ac_link_default"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948 $as_echo "$ac_try_echo"; } >&5
2949 (eval "$ac_link_default") 2>&5
2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }; then :
2953 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2954 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2955 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2956 # so that the user can short-circuit this test for compilers unknown to
2958 for ac_file in $ac_files ''
2960 test -f "$ac_file" || continue
2962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2965 # We found the default executable, but exeext='' is most
2969 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2971 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 # We set ac_cv_exeext here because the later test for it is not
2974 # safe: cross compilers may not add the suffix if given an `-o'
2975 # argument, so we may need to know it at that point already.
2976 # Even if this section looks crufty: it has the advantage of
2983 test "$ac_cv_exeext" = no && ac_cv_exeext=
2988 if test -z "$ac_file"; then :
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 $as_echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 as_fn_error 77 "C compiler cannot create executables
2997 See \`config.log' for more details" "$LINENO" 5; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3000 $as_echo "yes" >&6; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3003 $as_echo_n "checking for C compiler default output file name... " >&6; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3005 $as_echo "$ac_file" >&6; }
3006 ac_exeext=$ac_cv_exeext
3008 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3009 ac_clean_files=$ac_clean_files_save
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3011 $as_echo_n "checking for suffix of executables... " >&6; }
3012 if { { ac_try="$ac_link"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_link") 2>&5
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }; then :
3023 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3024 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3025 # work properly (i.e., refer to `conftest.exe'), while it won't with
3027 for ac_file in conftest.exe conftest conftest.*; do
3028 test -f "$ac_file" || continue
3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3031 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3040 See \`config.log' for more details" "$LINENO" 5; }
3042 rm -f conftest conftest$ac_cv_exeext
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3044 $as_echo "$ac_cv_exeext" >&6; }
3046 rm -f conftest.$ac_ext
3047 EXEEXT=$ac_cv_exeext
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3055 FILE *f = fopen ("conftest.out", "w");
3056 return ferror (f) || fclose (f) != 0;
3062 ac_clean_files="$ac_clean_files conftest.out"
3063 # Check that the compiler produces executables we can run. If not, either
3064 # the compiler is broken, or we cross compile.
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3066 $as_echo_n "checking whether we are cross compiling... " >&6; }
3067 if test "$cross_compiling" != yes; then
3068 { { ac_try="$ac_link"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_link") 2>&5
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }
3079 if { ac_try='./conftest$ac_cv_exeext'
3080 { { case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_try") 2>&5
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }; }; then
3092 if test "$cross_compiling" = maybe; then
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error $? "cannot run C compiled programs.
3098 If you meant to cross compile, use \`--host'.
3099 See \`config.log' for more details" "$LINENO" 5; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3104 $as_echo "$cross_compiling" >&6; }
3106 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3107 ac_clean_files=$ac_clean_files_save
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3109 $as_echo_n "checking for suffix of object files... " >&6; }
3110 if ${ac_cv_objext+:} false; then :
3111 $as_echo_n "(cached) " >&6
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3124 rm -f conftest.o conftest.obj
3125 if { { ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_compile") 2>&5
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }; then :
3136 for ac_file in conftest.o conftest.obj conftest.*; do
3137 test -f "$ac_file" || continue;
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3145 $as_echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error $? "cannot compute suffix of object files: cannot compile
3151 See \`config.log' for more details" "$LINENO" 5; }
3153 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3156 $as_echo "$ac_cv_objext" >&6; }
3157 OBJEXT=$ac_cv_objext
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3160 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3161 if ${ac_cv_c_compiler_gnu+:} false; then :
3162 $as_echo_n "(cached) " >&6
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3178 if ac_fn_c_try_compile "$LINENO"; then :
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3188 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3189 if test $ac_compiler_gnu = yes; then
3194 ac_test_CFLAGS=${CFLAGS+set}
3195 ac_save_CFLAGS=$CFLAGS
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3197 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3198 if ${ac_cv_prog_cc_g+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 ac_save_c_werror_flag=$ac_c_werror_flag
3202 ac_c_werror_flag=yes
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3216 if ac_fn_c_try_compile "$LINENO"; then :
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3231 if ac_fn_c_try_compile "$LINENO"; then :
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3247 if ac_fn_c_try_compile "$LINENO"; then :
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_c_werror_flag=$ac_save_c_werror_flag
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3258 $as_echo "$ac_cv_prog_cc_g" >&6; }
3259 if test "$ac_test_CFLAGS" = set; then
3260 CFLAGS=$ac_save_CFLAGS
3261 elif test $ac_cv_prog_cc_g = yes; then
3262 if test "$GCC" = yes; then
3268 if test "$GCC" = yes; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3275 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3276 if ${ac_cv_prog_cc_c89+:} false; then :
3277 $as_echo_n "(cached) " >&6
3279 ac_cv_prog_cc_c89=no
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3285 #include <sys/types.h>
3286 #include <sys/stat.h>
3287 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3288 struct buf { int x; };
3289 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3290 static char *e (p, i)
3296 static char *f (char * (*g) (char **, int), char **p, ...)
3301 s = g (p, va_arg (v,int));
3306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3307 function prototypes and stuff, but not '\xHH' hex character constants.
3308 These don't provoke an error unfortunately, instead are silently treated
3309 as 'x'. The following induces an error, until -std is added to get
3310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3311 array size at least. It's necessary to write '\x00'==0 to get something
3312 that's true only with -std. */
3313 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3316 inside strings and character constants. */
3318 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3320 int test (int i, double x);
3321 struct s1 {int (*f) (int a);};
3322 struct s2 {int (*f) (double a);};
3323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3334 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3337 CC="$ac_save_CC $ac_arg"
3338 if ac_fn_c_try_compile "$LINENO"; then :
3339 ac_cv_prog_cc_c89=$ac_arg
3341 rm -f core conftest.err conftest.$ac_objext
3342 test "x$ac_cv_prog_cc_c89" != "xno" && break
3344 rm -f conftest.$ac_ext
3349 case "x$ac_cv_prog_cc_c89" in
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3352 $as_echo "none needed" >&6; } ;;
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3355 $as_echo "unsupported" >&6; } ;;
3357 CC="$CC $ac_cv_prog_cc_c89"
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3359 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3361 if test "x$ac_cv_prog_cc_c89" != xno; then :
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3373 if test -f "$ac_dir/install-sh"; then
3375 ac_install_sh="$ac_aux_dir/install-sh -c"
3377 elif test -f "$ac_dir/install.sh"; then
3379 ac_install_sh="$ac_aux_dir/install.sh -c"
3381 elif test -f "$ac_dir/shtool"; then
3383 ac_install_sh="$ac_aux_dir/shtool install -c"
3387 if test -z "$ac_aux_dir"; then
3388 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3391 # These three variables are undocumented and unsupported,
3392 # and are intended to be withdrawn in a future Autoconf release.
3393 # They can cause serious problems if a builder's source tree is in a directory
3394 # whose full name contains unusual characters.
3395 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3396 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3397 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3400 # Make sure we can run config.sub.
3401 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3402 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3405 $as_echo_n "checking build system type... " >&6; }
3406 if ${ac_cv_build+:} false; then :
3407 $as_echo_n "(cached) " >&6
3409 ac_build_alias=$build_alias
3410 test "x$ac_build_alias" = x &&
3411 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3412 test "x$ac_build_alias" = x &&
3413 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3414 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3419 $as_echo "$ac_cv_build" >&6; }
3420 case $ac_cv_build in
3422 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3425 ac_save_IFS=$IFS; IFS='-'
3431 # Remember, the first character of IFS is used to create $*,
3432 # except with old shells:
3435 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3439 $as_echo_n "checking host system type... " >&6; }
3440 if ${ac_cv_host+:} false; then :
3441 $as_echo_n "(cached) " >&6
3443 if test "x$host_alias" = x; then
3444 ac_cv_host=$ac_cv_build
3446 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3447 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3452 $as_echo "$ac_cv_host" >&6; }
3455 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3458 ac_save_IFS=$IFS; IFS='-'
3464 # Remember, the first character of IFS is used to create $*,
3465 # except with old shells:
3468 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3478 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3479 # On Suns, sometimes $CPP names a directory.
3480 if test -n "$CPP" && test -d "$CPP"; then
3483 if test -z "$CPP"; then
3484 if ${ac_cv_prog_CPP+:} false; then :
3485 $as_echo_n "(cached) " >&6
3487 # Double quotes because CPP needs to be expanded
3488 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3491 for ac_c_preproc_warn_flag in '' yes
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3502 # include <limits.h>
3504 # include <assert.h>
3508 if ac_fn_c_try_cpp "$LINENO"; then :
3511 # Broken: fails on valid input.
3514 rm -f conftest.err conftest.i conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3522 if ac_fn_c_try_cpp "$LINENO"; then :
3523 # Broken: success on invalid input.
3526 # Passes both tests.
3530 rm -f conftest.err conftest.i conftest.$ac_ext
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.i conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then :
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3548 $as_echo "$CPP" >&6; }
3550 for ac_c_preproc_warn_flag in '' yes
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3561 # include <limits.h>
3563 # include <assert.h>
3567 if ac_fn_c_try_cpp "$LINENO"; then :
3570 # Broken: fails on valid input.
3573 rm -f conftest.err conftest.i conftest.$ac_ext
3575 # OK, works on sane cases. Now check whether nonexistent headers
3576 # can be detected and how.
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 #include <ac_nonexistent.h>
3581 if ac_fn_c_try_cpp "$LINENO"; then :
3582 # Broken: success on invalid input.
3585 # Passes both tests.
3589 rm -f conftest.err conftest.i conftest.$ac_ext
3592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593 rm -f conftest.i conftest.err conftest.$ac_ext
3594 if $ac_preproc_ok; then :
3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3600 See \`config.log' for more details" "$LINENO" 5; }
3604 ac_cpp='$CPP $CPPFLAGS'
3605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3611 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3612 if ${ac_cv_path_GREP+:} false; then :
3613 $as_echo_n "(cached) " >&6
3615 if test -z "$GREP"; then
3616 ac_path_GREP_found=false
3617 # Loop through the user's path and test for each of PROGNAME-LIST
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3622 test -z "$as_dir" && as_dir=.
3623 for ac_prog in grep ggrep; do
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3626 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3627 # Check for GNU ac_path_GREP and select it if it is found.
3628 # Check for GNU $ac_path_GREP
3629 case `"$ac_path_GREP" --version 2>&1` in
3631 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3634 $as_echo_n 0123456789 >"conftest.in"
3637 cat "conftest.in" "conftest.in" >"conftest.tmp"
3638 mv "conftest.tmp" "conftest.in"
3639 cp "conftest.in" "conftest.nl"
3640 $as_echo 'GREP' >> "conftest.nl"
3641 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3643 as_fn_arith $ac_count + 1 && ac_count=$as_val
3644 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3645 # Best one so far, save it but keep looking for a better one
3646 ac_cv_path_GREP="$ac_path_GREP"
3647 ac_path_GREP_max=$ac_count
3649 # 10*(2^10) chars as input seems more than enough
3650 test $ac_count -gt 10 && break
3652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3655 $ac_path_GREP_found && break 3
3660 if test -z "$ac_cv_path_GREP"; then
3661 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3664 ac_cv_path_GREP=$GREP
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3669 $as_echo "$ac_cv_path_GREP" >&6; }
3670 GREP="$ac_cv_path_GREP"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3674 $as_echo_n "checking for egrep... " >&6; }
3675 if ${ac_cv_path_EGREP+:} false; then :
3676 $as_echo_n "(cached) " >&6
3678 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3679 then ac_cv_path_EGREP="$GREP -E"
3681 if test -z "$EGREP"; then
3682 ac_path_EGREP_found=false
3683 # Loop through the user's path and test for each of PROGNAME-LIST
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3688 test -z "$as_dir" && as_dir=.
3689 for ac_prog in egrep; do
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3692 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3693 # Check for GNU ac_path_EGREP and select it if it is found.
3694 # Check for GNU $ac_path_EGREP
3695 case `"$ac_path_EGREP" --version 2>&1` in
3697 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3700 $as_echo_n 0123456789 >"conftest.in"
3703 cat "conftest.in" "conftest.in" >"conftest.tmp"
3704 mv "conftest.tmp" "conftest.in"
3705 cp "conftest.in" "conftest.nl"
3706 $as_echo 'EGREP' >> "conftest.nl"
3707 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709 as_fn_arith $ac_count + 1 && ac_count=$as_val
3710 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3711 # Best one so far, save it but keep looking for a better one
3712 ac_cv_path_EGREP="$ac_path_EGREP"
3713 ac_path_EGREP_max=$ac_count
3715 # 10*(2^10) chars as input seems more than enough
3716 test $ac_count -gt 10 && break
3718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3721 $ac_path_EGREP_found && break 3
3726 if test -z "$ac_cv_path_EGREP"; then
3727 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3730 ac_cv_path_EGREP=$EGREP
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3736 $as_echo "$ac_cv_path_EGREP" >&6; }
3737 EGREP="$ac_cv_path_EGREP"
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3741 $as_echo_n "checking for ANSI C header files... " >&6; }
3742 if ${ac_cv_header_stdc+:} false; then :
3743 $as_echo_n "(cached) " >&6
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_cv_header_stdc=yes
3763 ac_cv_header_stdc=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 if test $ac_cv_header_stdc = yes; then
3768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3775 $EGREP "memchr" >/dev/null 2>&1; then :
3778 ac_cv_header_stdc=no
3784 if test $ac_cv_header_stdc = yes; then
3785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 $EGREP "free" >/dev/null 2>&1; then :
3795 ac_cv_header_stdc=no
3801 if test $ac_cv_header_stdc = yes; then
3802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3803 if test "$cross_compiling" = yes; then :
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3810 #if ((' ' & 0x0FF) == 0x020)
3811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3814 # define ISLOWER(c) \
3815 (('a' <= (c) && (c) <= 'i') \
3816 || ('j' <= (c) && (c) <= 'r') \
3817 || ('s' <= (c) && (c) <= 'z'))
3818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3826 for (i = 0; i < 256; i++)
3827 if (XOR (islower (i), ISLOWER (i))
3828 || toupper (i) != TOUPPER (i))
3833 if ac_fn_c_try_run "$LINENO"; then :
3836 ac_cv_header_stdc=no
3838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3839 conftest.$ac_objext conftest.beam conftest.$ac_ext
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3845 $as_echo "$ac_cv_header_stdc" >&6; }
3846 if test $ac_cv_header_stdc = yes; then
3848 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3852 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3853 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3854 inttypes.h stdint.h unistd.h
3856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3857 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3859 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3860 cat >>confdefs.h <<_ACEOF
3861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3870 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3871 if ${ac_cv_c_bigendian+:} false; then :
3872 $as_echo_n "(cached) " >&6
3874 ac_cv_c_bigendian=unknown
3875 # See if we're dealing with a universal compiler.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #ifndef __APPLE_CC__
3879 not a universal capable compiler
3884 if ac_fn_c_try_compile "$LINENO"; then :
3886 # Check for potential -arch flags. It is not universal unless
3887 # there are at least two -arch flags with different values.
3890 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3891 if test -n "$ac_prev"; then
3893 i?86 | x86_64 | ppc | ppc64)
3894 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3897 ac_cv_c_bigendian=universal
3903 elif test "x$ac_word" = "x-arch"; then
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 if test $ac_cv_c_bigendian = unknown; then
3910 # See if sys/param.h defines the BYTE_ORDER macro.
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913 #include <sys/types.h>
3914 #include <sys/param.h>
3919 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3920 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 # It does; now see whether it defined to BIG_ENDIAN or not.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #include <sys/types.h>
3934 #include <sys/param.h>
3939 #if BYTE_ORDER != BIG_ENDIAN
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_cv_c_bigendian=yes
3950 ac_cv_c_bigendian=no
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 if test $ac_cv_c_bigendian = unknown; then
3957 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3965 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974 # It does; now see whether it defined to _BIG_ENDIAN or not.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_cv_c_bigendian=yes
3993 ac_cv_c_bigendian=no
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 if test $ac_cv_c_bigendian = unknown; then
4000 # Compile a test program.
4001 if test "$cross_compiling" = yes; then :
4002 # Try to guess by grepping values from an object file.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 short int ascii_mm[] =
4006 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4007 short int ascii_ii[] =
4008 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4009 int use_ascii (int i) {
4010 return ascii_mm[i] + ascii_ii[i];
4012 short int ebcdic_ii[] =
4013 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4014 short int ebcdic_mm[] =
4015 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4016 int use_ebcdic (int i) {
4017 return ebcdic_mm[i] + ebcdic_ii[i];
4024 return use_ascii (foo) == use_ebcdic (foo);
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4031 ac_cv_c_bigendian=yes
4033 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4034 if test "$ac_cv_c_bigendian" = unknown; then
4035 ac_cv_c_bigendian=no
4037 # finding both strings is unlikely to happen, but who knows?
4038 ac_cv_c_bigendian=unknown
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 $ac_includes_default
4051 /* Are we little or big endian? From Harbison&Steele. */
4055 char c[sizeof (long int)];
4058 return u.c[sizeof (long int) - 1] == 1;
4064 if ac_fn_c_try_run "$LINENO"; then :
4065 ac_cv_c_bigendian=no
4067 ac_cv_c_bigendian=yes
4069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4070 conftest.$ac_objext conftest.beam conftest.$ac_ext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4076 $as_echo "$ac_cv_c_bigendian" >&6; }
4077 case $ac_cv_c_bigendian in #(
4079 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4085 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4089 as_fn_error $? "unknown endianness
4090 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4094 # Checks for programs.
4095 for ac_prog in gawk mawk nawk awk
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_AWK+:} false; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -n "$AWK"; then
4105 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_AWK="$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 if test -n "$AWK"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4127 $as_echo "$AWK" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4134 test -n "$AWK" && break
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4143 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4144 # On Suns, sometimes $CPP names a directory.
4145 if test -n "$CPP" && test -d "$CPP"; then
4148 if test -z "$CPP"; then
4149 if ${ac_cv_prog_CPP+:} false; then :
4150 $as_echo_n "(cached) " >&6
4152 # Double quotes because CPP needs to be expanded
4153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4156 for ac_c_preproc_warn_flag in '' yes
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4167 # include <limits.h>
4169 # include <assert.h>
4173 if ac_fn_c_try_cpp "$LINENO"; then :
4176 # Broken: fails on valid input.
4179 rm -f conftest.err conftest.i conftest.$ac_ext
4181 # OK, works on sane cases. Now check whether nonexistent headers
4182 # can be detected and how.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <ac_nonexistent.h>
4187 if ac_fn_c_try_cpp "$LINENO"; then :
4188 # Broken: success on invalid input.
4191 # Passes both tests.
4195 rm -f conftest.err conftest.i conftest.$ac_ext
4198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4199 rm -f conftest.i conftest.err conftest.$ac_ext
4200 if $ac_preproc_ok; then :
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4213 $as_echo "$CPP" >&6; }
4215 for ac_c_preproc_warn_flag in '' yes
4217 # Use a header file that comes with gcc, so configuring glibc
4218 # with a fresh cross-compiler works.
4219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220 # <limits.h> exists even on freestanding compilers.
4221 # On the NeXT, cc -E runs the code through the compiler's parser,
4222 # not just through cpp. "Syntax error" is here to catch this case.
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4226 # include <limits.h>
4228 # include <assert.h>
4232 if ac_fn_c_try_cpp "$LINENO"; then :
4235 # Broken: fails on valid input.
4238 rm -f conftest.err conftest.i conftest.$ac_ext
4240 # OK, works on sane cases. Now check whether nonexistent headers
4241 # can be detected and how.
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #include <ac_nonexistent.h>
4246 if ac_fn_c_try_cpp "$LINENO"; then :
4247 # Broken: success on invalid input.
4250 # Passes both tests.
4254 rm -f conftest.err conftest.i conftest.$ac_ext
4257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4258 rm -f conftest.i conftest.err conftest.$ac_ext
4259 if $ac_preproc_ok; then :
4262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4265 See \`config.log' for more details" "$LINENO" 5; }
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274 if test -n "$ac_tool_prefix"; then
4275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4276 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278 $as_echo_n "checking for $ac_word... " >&6; }
4279 if ${ac_cv_prog_RANLIB+:} false; then :
4280 $as_echo_n "(cached) " >&6
4282 if test -n "$RANLIB"; then
4283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 RANLIB=$ac_cv_prog_RANLIB
4303 if test -n "$RANLIB"; then
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4305 $as_echo "$RANLIB" >&6; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 $as_echo "no" >&6; }
4313 if test -z "$ac_cv_prog_RANLIB"; then
4314 ac_ct_RANLIB=$RANLIB
4315 # Extract the first word of "ranlib", so it can be a program name with args.
4316 set dummy ranlib; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -n "$ac_ct_RANLIB"; then
4323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_ac_ct_RANLIB="ranlib"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4343 if test -n "$ac_ct_RANLIB"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4345 $as_echo "$ac_ct_RANLIB" >&6; }
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4351 if test "x$ac_ct_RANLIB" = x; then
4354 case $cross_compiling:$ac_tool_warned in
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4358 ac_tool_warned=yes ;;
4360 RANLIB=$ac_ct_RANLIB
4363 RANLIB="$ac_cv_prog_RANLIB"
4366 # Find a good install program. We prefer a C program (faster),
4367 # so one script is as good as another. But avoid the broken or
4368 # incompatible versions:
4369 # SysV /etc/install, /usr/sbin/install
4370 # SunOS /usr/etc/install
4371 # IRIX /sbin/install
4373 # AmigaOS /C/install, which installs bootblocks on floppy discs
4374 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4377 # OS/2's system install, which has a completely different semantic
4378 # ./install, which can be erroneously created by make from ./install.sh.
4379 # Reject install programs that cannot install multiple files.
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4381 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4382 if test -z "$INSTALL"; then
4383 if ${ac_cv_path_install+:} false; then :
4384 $as_echo_n "(cached) " >&6
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir=.
4391 # Account for people who put trailing slashes in PATH elements.
4392 case $as_dir/ in #((
4393 ./ | .// | /[cC]/* | \
4394 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4395 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4398 # OSF1 and SCO ODT 3.0 have their own names for install.
4399 # Don't use installbsd from OSF since it installs stuff as root
4401 for ac_prog in ginstall scoinst install; do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4404 if test $ac_prog = install &&
4405 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4406 # AIX install. It has an incompatible calling convention.
4408 elif test $ac_prog = install &&
4409 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4410 # program-specific install script used by HP pwplus--don't use.
4413 rm -rf conftest.one conftest.two conftest.dir
4414 echo one > conftest.one
4415 echo two > conftest.two
4417 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4418 test -s conftest.one && test -s conftest.two &&
4419 test -s conftest.dir/conftest.one &&
4420 test -s conftest.dir/conftest.two
4422 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4435 rm -rf conftest.one conftest.two conftest.dir
4438 if test "${ac_cv_path_install+set}" = set; then
4439 INSTALL=$ac_cv_path_install
4441 # As a last resort, use the slow shell script. Don't cache a
4442 # value for INSTALL within a source directory, because that will
4443 # break other packages using the cache if that directory is
4444 # removed, or if the value is a relative name.
4445 INSTALL=$ac_install_sh
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4449 $as_echo "$INSTALL" >&6; }
4451 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4452 # It thinks the first close brace ends the variable substitution.
4453 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4455 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4457 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4460 $as_echo_n "checking for egrep... " >&6; }
4461 if ${ac_cv_path_EGREP+:} false; then :
4462 $as_echo_n "(cached) " >&6
4464 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4465 then ac_cv_path_EGREP="$GREP -E"
4467 if test -z "$EGREP"; then
4468 ac_path_EGREP_found=false
4469 # Loop through the user's path and test for each of PROGNAME-LIST
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4474 test -z "$as_dir" && as_dir=.
4475 for ac_prog in egrep; do
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4478 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4479 # Check for GNU ac_path_EGREP and select it if it is found.
4480 # Check for GNU $ac_path_EGREP
4481 case `"$ac_path_EGREP" --version 2>&1` in
4483 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4486 $as_echo_n 0123456789 >"conftest.in"
4489 cat "conftest.in" "conftest.in" >"conftest.tmp"
4490 mv "conftest.tmp" "conftest.in"
4491 cp "conftest.in" "conftest.nl"
4492 $as_echo 'EGREP' >> "conftest.nl"
4493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4495 as_fn_arith $ac_count + 1 && ac_count=$as_val
4496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4497 # Best one so far, save it but keep looking for a better one
4498 ac_cv_path_EGREP="$ac_path_EGREP"
4499 ac_path_EGREP_max=$ac_count
4501 # 10*(2^10) chars as input seems more than enough
4502 test $ac_count -gt 10 && break
4504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4507 $ac_path_EGREP_found && break 3
4512 if test -z "$ac_cv_path_EGREP"; then
4513 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4516 ac_cv_path_EGREP=$EGREP
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4522 $as_echo "$ac_cv_path_EGREP" >&6; }
4523 EGREP="$ac_cv_path_EGREP"
4526 # Extract the first word of "ar", so it can be a program name with args.
4527 set dummy ar; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_path_AR+:} false; then :
4531 $as_echo_n "(cached) " >&6
4535 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 if test -n "$AR"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4559 $as_echo "$AR" >&6; }
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4566 # Extract the first word of "cat", so it can be a program name with args.
4567 set dummy cat; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if ${ac_cv_path_CAT+:} false; then :
4571 $as_echo_n "(cached) " >&6
4575 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 if test -n "$CAT"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4599 $as_echo "$CAT" >&6; }
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4606 # Extract the first word of "kill", so it can be a program name with args.
4607 set dummy kill; ac_word=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if ${ac_cv_path_KILL+:} false; then :
4611 $as_echo_n "(cached) " >&6
4615 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 KILL=$ac_cv_path_KILL
4637 if test -n "$KILL"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4639 $as_echo "$KILL" >&6; }
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4646 for ac_prog in perl5 perl
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_path_PERL+:} false; then :
4653 $as_echo_n "(cached) " >&6
4657 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 PERL=$ac_cv_path_PERL
4679 if test -n "$PERL"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4681 $as_echo "$PERL" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4688 test -n "$PERL" && break
4691 # Extract the first word of "sed", so it can be a program name with args.
4692 set dummy sed; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_path_SED+:} false; then :
4696 $as_echo_n "(cached) " >&6
4700 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 if test -n "$SED"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4724 $as_echo "$SED" >&6; }
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4732 # Extract the first word of "ent", so it can be a program name with args.
4733 set dummy ent; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if ${ac_cv_path_ENT+:} false; then :
4737 $as_echo_n "(cached) " >&6
4741 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 if test -n "$ENT"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4765 $as_echo "$ENT" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4773 # Extract the first word of "bash", so it can be a program name with args.
4774 set dummy bash; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4778 $as_echo_n "(cached) " >&6
4780 case $TEST_MINUS_S_SH in
4782 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4804 if test -n "$TEST_MINUS_S_SH"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4806 $as_echo "$TEST_MINUS_S_SH" >&6; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4813 # Extract the first word of "ksh", so it can be a program name with args.
4814 set dummy ksh; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4818 $as_echo_n "(cached) " >&6
4820 case $TEST_MINUS_S_SH in
4822 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4844 if test -n "$TEST_MINUS_S_SH"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4846 $as_echo "$TEST_MINUS_S_SH" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4853 # Extract the first word of "sh", so it can be a program name with args.
4854 set dummy sh; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4858 $as_echo_n "(cached) " >&6
4860 case $TEST_MINUS_S_SH in
4862 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4884 if test -n "$TEST_MINUS_S_SH"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4886 $as_echo "$TEST_MINUS_S_SH" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 # Extract the first word of "sh", so it can be a program name with args.
4894 set dummy sh; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_path_SH+:} false; then :
4898 $as_echo_n "(cached) " >&6
4902 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 if test -n "$SH"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4926 $as_echo "$SH" >&6; }
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 # Extract the first word of "groff", so it can be a program name with args.
4934 set dummy groff; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if ${ac_cv_path_GROFF+:} false; then :
4938 $as_echo_n "(cached) " >&6
4942 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 GROFF=$ac_cv_path_GROFF
4964 if test -n "$GROFF"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4966 $as_echo "$GROFF" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4973 # Extract the first word of "nroff", so it can be a program name with args.
4974 set dummy nroff; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if ${ac_cv_path_NROFF+:} false; then :
4978 $as_echo_n "(cached) " >&6
4982 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 NROFF=$ac_cv_path_NROFF
5004 if test -n "$NROFF"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5006 $as_echo "$NROFF" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5013 # Extract the first word of "mandoc", so it can be a program name with args.
5014 set dummy mandoc; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_path_MANDOC+:} false; then :
5018 $as_echo_n "(cached) " >&6
5022 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 MANDOC=$ac_cv_path_MANDOC
5044 if test -n "$MANDOC"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5046 $as_echo "$MANDOC" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5056 if test "x$MANDOC" != "x" ; then
5058 elif test "x$NROFF" != "x" ; then
5059 MANFMT="$NROFF -mandoc"
5060 elif test "x$GROFF" != "x" ; then
5061 MANFMT="$GROFF -mandoc -Tascii"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5064 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5069 # Extract the first word of "groupadd", so it can be a program name with args.
5070 set dummy groupadd; ac_word=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5074 $as_echo_n "(cached) " >&6
5076 case $PATH_GROUPADD_PROG in
5078 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5100 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5101 if test -n "$PATH_GROUPADD_PROG"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5103 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5110 # Extract the first word of "useradd", so it can be a program name with args.
5111 set dummy useradd; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5115 $as_echo_n "(cached) " >&6
5117 case $PATH_USERADD_PROG in
5119 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5141 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5142 if test -n "$PATH_USERADD_PROG"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5144 $as_echo "$PATH_USERADD_PROG" >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5151 # Extract the first word of "pkgmk", so it can be a program name with args.
5152 set dummy pkgmk; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5156 $as_echo_n "(cached) " >&6
5158 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5159 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5179 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5180 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5182 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5189 if test -x /sbin/sh; then
5190 STARTUP_SCRIPT_SHELL=/sbin/sh
5193 STARTUP_SCRIPT_SHELL=/bin/sh
5198 # Check whether --enable-largefile was given.
5199 if test "${enable_largefile+set}" = set; then :
5200 enableval=$enable_largefile;
5203 if test "$enable_largefile" != no; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5206 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5207 if ${ac_cv_sys_largefile_CC+:} false; then :
5208 $as_echo_n "(cached) " >&6
5210 ac_cv_sys_largefile_CC=no
5211 if test "$GCC" != yes; then
5214 # IRIX 6.2 and later do not support large files by default,
5215 # so use the C compiler's -n32 option if that helps.
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218 #include <sys/types.h>
5219 /* Check that off_t can represent 2**63 - 1 correctly.
5220 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5221 since some C++ compilers masquerading as C compilers
5222 incorrectly reject 9223372036854775807. */
5223 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5224 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5225 && LARGE_OFF_T % 2147483647 == 1)
5235 if ac_fn_c_try_compile "$LINENO"; then :
5238 rm -f core conftest.err conftest.$ac_objext
5240 if ac_fn_c_try_compile "$LINENO"; then :
5241 ac_cv_sys_largefile_CC=' -n32'; break
5243 rm -f core conftest.err conftest.$ac_objext
5247 rm -f conftest.$ac_ext
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5251 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5252 if test "$ac_cv_sys_largefile_CC" != no; then
5253 CC=$CC$ac_cv_sys_largefile_CC
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5257 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5258 if ${ac_cv_sys_file_offset_bits+:} false; then :
5259 $as_echo_n "(cached) " >&6
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264 #include <sys/types.h>
5265 /* Check that off_t can represent 2**63 - 1 correctly.
5266 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5267 since some C++ compilers masquerading as C compilers
5268 incorrectly reject 9223372036854775807. */
5269 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5271 && LARGE_OFF_T % 2147483647 == 1)
5281 if ac_fn_c_try_compile "$LINENO"; then :
5282 ac_cv_sys_file_offset_bits=no; break
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #define _FILE_OFFSET_BITS 64
5288 #include <sys/types.h>
5289 /* Check that off_t can represent 2**63 - 1 correctly.
5290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5291 since some C++ compilers masquerading as C compilers
5292 incorrectly reject 9223372036854775807. */
5293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5295 && LARGE_OFF_T % 2147483647 == 1)
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 ac_cv_sys_file_offset_bits=64; break
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 ac_cv_sys_file_offset_bits=unknown
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5314 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5315 case $ac_cv_sys_file_offset_bits in #(
5318 cat >>confdefs.h <<_ACEOF
5319 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5324 if test $ac_cv_sys_file_offset_bits = unknown; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5326 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5327 if ${ac_cv_sys_large_files+:} false; then :
5328 $as_echo_n "(cached) " >&6
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #include <sys/types.h>
5334 /* Check that off_t can represent 2**63 - 1 correctly.
5335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5336 since some C++ compilers masquerading as C compilers
5337 incorrectly reject 9223372036854775807. */
5338 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5340 && LARGE_OFF_T % 2147483647 == 1)
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351 ac_cv_sys_large_files=no; break
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 #define _LARGE_FILES 1
5357 #include <sys/types.h>
5358 /* Check that off_t can represent 2**63 - 1 correctly.
5359 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5360 since some C++ compilers masquerading as C compilers
5361 incorrectly reject 9223372036854775807. */
5362 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5363 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5364 && LARGE_OFF_T % 2147483647 == 1)
5374 if ac_fn_c_try_compile "$LINENO"; then :
5375 ac_cv_sys_large_files=1; break
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 ac_cv_sys_large_files=unknown
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5383 $as_echo "$ac_cv_sys_large_files" >&6; }
5384 case $ac_cv_sys_large_files in #(
5387 cat >>confdefs.h <<_ACEOF
5388 #define _LARGE_FILES $ac_cv_sys_large_files
5397 if test -z "$AR" ; then
5398 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5401 # Use LOGIN_PROGRAM from environment if possible
5402 if test ! -z "$LOGIN_PROGRAM" ; then
5404 cat >>confdefs.h <<_ACEOF
5405 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5410 # Extract the first word of "login", so it can be a program name with args.
5411 set dummy login; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5415 $as_echo_n "(cached) " >&6
5417 case $LOGIN_PROGRAM_FALLBACK in
5419 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5429 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5441 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5443 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5450 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5451 cat >>confdefs.h <<_ACEOF
5452 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5458 # Extract the first word of "passwd", so it can be a program name with args.
5459 set dummy passwd; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5463 $as_echo_n "(cached) " >&6
5465 case $PATH_PASSWD_PROG in
5467 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5489 if test -n "$PATH_PASSWD_PROG"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5491 $as_echo "$PATH_PASSWD_PROG" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5498 if test ! -z "$PATH_PASSWD_PROG" ; then
5500 cat >>confdefs.h <<_ACEOF
5501 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5506 if test -z "$LD" ; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5512 $as_echo_n "checking for inline... " >&6; }
5513 if ${ac_cv_c_inline+:} false; then :
5514 $as_echo_n "(cached) " >&6
5517 for ac_kw in inline __inline__ __inline; do
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5522 static $ac_kw foo_t static_foo () {return 0; }
5523 $ac_kw foo_t foo () {return 0; }
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 ac_cv_c_inline=$ac_kw
5530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 test "$ac_cv_c_inline" != no && break
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5536 $as_echo "$ac_cv_c_inline" >&6; }
5538 case $ac_cv_c_inline in
5541 case $ac_cv_c_inline in
5543 *) ac_val=$ac_cv_c_inline;;
5545 cat >>confdefs.h <<_ACEOF
5547 #define inline $ac_val
5554 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5556 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5560 ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5561 #include <sys/types.h>
5562 #include <sys/param.h>
5563 #include <dev/systrace.h>
5566 if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5567 have_systr_policy_kill=1
5570 ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5571 #include <sys/types.h>
5572 #include <sys/resource.h>
5575 if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5577 $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5581 ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5582 #include <sys/types.h>
5583 #include <linux/prctl.h>
5586 if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5587 have_linux_no_new_privs=1
5590 if test "x$have_linux_no_new_privs" = "x1" ; then
5591 ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
5592 #include <sys/types.h>
5593 #include <linux/seccomp.h>
5596 if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
5597 have_seccomp_filter=1
5601 if test "x$have_seccomp_filter" = "x1" ; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
5603 $as_echo_n "checking kernel for seccomp_filter support... " >&6; }
5604 if test "$cross_compiling" = yes; then :
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
5606 $as_echo "cross-compiling, assuming yes" >&6; }
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5613 #include <linux/seccomp.h>
5615 #include <sys/prctl.h>
5621 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
5622 exit(errno == EFAULT ? 0 : 1);
5627 if ac_fn_c_try_run "$LINENO"; then :
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5629 $as_echo "yes" >&6; }
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5634 # Disable seccomp filter as a target
5635 have_seccomp_filter=0
5638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5639 conftest.$ac_objext conftest.beam conftest.$ac_ext
5644 use_stack_protector=1
5646 # Check whether --with-stackprotect was given.
5647 if test "${with_stackprotect+set}" = set; then :
5648 withval=$with_stackprotect;
5649 if test "x$withval" = "xno"; then
5650 use_stack_protector=0
5656 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5659 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5660 saved_CFLAGS="$CFLAGS"
5661 CFLAGS="$CFLAGS -Wall"
5663 test "x$_define_flag" = "x" && _define_flag="-Wall"
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 int main(void) { return 0; }
5668 if ac_fn_c_try_compile "$LINENO"; then :
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5670 $as_echo "yes" >&6; }
5671 CFLAGS="$saved_CFLAGS $_define_flag"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5675 CFLAGS="$saved_CFLAGS"
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5682 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5683 saved_CFLAGS="$CFLAGS"
5684 CFLAGS="$CFLAGS -Wpointer-arith"
5686 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int main(void) { return 0; }
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 $as_echo "yes" >&6; }
5694 CFLAGS="$saved_CFLAGS $_define_flag"
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698 CFLAGS="$saved_CFLAGS"
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5705 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5706 saved_CFLAGS="$CFLAGS"
5707 CFLAGS="$CFLAGS -Wuninitialized"
5709 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 int main(void) { return 0; }
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5716 $as_echo "yes" >&6; }
5717 CFLAGS="$saved_CFLAGS $_define_flag"
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 CFLAGS="$saved_CFLAGS"
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5
5728 $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5729 saved_CFLAGS="$CFLAGS"
5730 CFLAGS="$CFLAGS -Wsign-compare"
5732 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 int main(void) { return 0; }
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5739 $as_echo "yes" >&6; }
5740 CFLAGS="$saved_CFLAGS $_define_flag"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5744 CFLAGS="$saved_CFLAGS"
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5
5751 $as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5752 saved_CFLAGS="$CFLAGS"
5753 CFLAGS="$CFLAGS -Wformat-security"
5755 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 int main(void) { return 0; }
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5762 $as_echo "yes" >&6; }
5763 CFLAGS="$saved_CFLAGS $_define_flag"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 CFLAGS="$saved_CFLAGS"
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5
5774 $as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; }
5775 saved_CFLAGS="$CFLAGS"
5776 CFLAGS="$CFLAGS -Wpointer-sign"
5777 _define_flag="-Wno-pointer-sign"
5778 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 int main(void) { return 0; }
5783 if ac_fn_c_try_compile "$LINENO"; then :
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5785 $as_echo "yes" >&6; }
5786 CFLAGS="$saved_CFLAGS $_define_flag"
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5790 CFLAGS="$saved_CFLAGS"
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5
5797 $as_echo_n "checking if $CC supports -Wunused-result... " >&6; }
5798 saved_CFLAGS="$CFLAGS"
5799 CFLAGS="$CFLAGS -Wunused-result"
5800 _define_flag="-Wno-unused-result"
5801 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804 int main(void) { return 0; }
5806 if ac_fn_c_try_compile "$LINENO"; then :
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5808 $as_echo "yes" >&6; }
5809 CFLAGS="$saved_CFLAGS $_define_flag"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5813 CFLAGS="$saved_CFLAGS"
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
5820 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5821 saved_CFLAGS="$CFLAGS"
5822 CFLAGS="$CFLAGS -fno-strict-aliasing"
5824 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 int main(void) { return 0; }
5829 if ac_fn_c_try_compile "$LINENO"; then :
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5831 $as_echo "yes" >&6; }
5832 CFLAGS="$saved_CFLAGS $_define_flag"
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 CFLAGS="$saved_CFLAGS"
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -D_FORTIFY_SOURCE=2" >&5
5843 $as_echo_n "checking if $CC supports -D_FORTIFY_SOURCE=2... " >&6; }
5844 saved_CFLAGS="$CFLAGS"
5845 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
5847 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850 int main(void) { return 0; }
5852 if ac_fn_c_try_compile "$LINENO"; then :
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5854 $as_echo "yes" >&6; }
5855 CFLAGS="$saved_CFLAGS $_define_flag"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5859 CFLAGS="$saved_CFLAGS"
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
5865 $as_echo_n "checking gcc version... " >&6; }
5866 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5868 1.*) no_attrib_nonnull=1 ;;
5872 2.*) no_attrib_nonnull=1 ;;
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
5876 $as_echo "$GCC_VER" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5879 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5880 saved_CFLAGS="$CFLAGS"
5881 CFLAGS="$CFLAGS -fno-builtin-memset"
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5888 char b[10]; memset(b, 0, sizeof(b));
5893 if ac_fn_c_try_link "$LINENO"; then :
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5895 $as_echo "yes" >&6; }
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5899 CFLAGS="$saved_CFLAGS"
5902 rm -f core conftest.err conftest.$ac_objext \
5903 conftest$ac_exeext conftest.$ac_ext
5905 # -fstack-protector-all doesn't always work for some GCC versions
5906 # and/or platforms, so we test if we can. If it's not supported
5907 # on a given platform gcc will emit a warning so we use -Werror.
5908 if test "x$use_stack_protector" = "x1"; then
5909 for t in -fstack-protector-all -fstack-protector; do
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5911 $as_echo_n "checking if $CC supports $t... " >&6; }
5912 saved_CFLAGS="$CFLAGS"
5913 saved_LDFLAGS="$LDFLAGS"
5914 CFLAGS="$CFLAGS $t -Werror"
5915 LDFLAGS="$LDFLAGS $t -Werror"
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5924 snprintf(x, sizeof(x), "XXX");
5930 if ac_fn_c_try_link "$LINENO"; then :
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5932 $as_echo "yes" >&6; }
5933 CFLAGS="$saved_CFLAGS $t"
5934 LDFLAGS="$saved_LDFLAGS $t"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5936 $as_echo_n "checking if $t works... " >&6; }
5937 if test "$cross_compiling" = yes; then :
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5939 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5951 snprintf(x, sizeof(x), "XXX");
5957 if ac_fn_c_try_run "$LINENO"; then :
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5959 $as_echo "yes" >&6; }
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5966 conftest.$ac_objext conftest.beam conftest.$ac_ext
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5975 rm -f core conftest.err conftest.$ac_objext \
5976 conftest$ac_exeext conftest.$ac_ext
5977 CFLAGS="$saved_CFLAGS"
5978 LDFLAGS="$saved_LDFLAGS"
5982 if test -z "$have_llong_max"; then
5983 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5984 unset ac_cv_have_decl_LLONG_MAX
5985 saved_CFLAGS="$CFLAGS"
5986 CFLAGS="$CFLAGS -std=gnu99"
5987 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5990 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5993 CFLAGS="$saved_CFLAGS"
5999 if test "x$no_attrib_nonnull" != "x1" ; then
6001 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6006 # Check whether --with-rpath was given.
6007 if test "${with_rpath+set}" = set; then :
6008 withval=$with_rpath;
6009 if test "x$withval" = "xno" ; then
6012 if test "x$withval" = "xyes" ; then
6020 # Allow user to specify flags
6022 # Check whether --with-cflags was given.
6023 if test "${with_cflags+set}" = set; then :
6024 withval=$with_cflags;
6025 if test -n "$withval" && test "x$withval" != "xno" && \
6026 test "x${withval}" != "xyes"; then
6027 CFLAGS="$CFLAGS $withval"
6034 # Check whether --with-cppflags was given.
6035 if test "${with_cppflags+set}" = set; then :
6036 withval=$with_cppflags;
6037 if test -n "$withval" && test "x$withval" != "xno" && \
6038 test "x${withval}" != "xyes"; then
6039 CPPFLAGS="$CPPFLAGS $withval"
6046 # Check whether --with-ldflags was given.
6047 if test "${with_ldflags+set}" = set; then :
6048 withval=$with_ldflags;
6049 if test -n "$withval" && test "x$withval" != "xno" && \
6050 test "x${withval}" != "xyes"; then
6051 LDFLAGS="$LDFLAGS $withval"
6058 # Check whether --with-libs was given.
6059 if test "${with_libs+set}" = set; then :
6061 if test -n "$withval" && test "x$withval" != "xno" && \
6062 test "x${withval}" != "xyes"; then
6063 LIBS="$LIBS $withval"
6070 # Check whether --with-Werror was given.
6071 if test "${with_Werror+set}" = set; then :
6072 withval=$with_Werror;
6073 if test -n "$withval" && test "x$withval" != "xno"; then
6074 werror_flags="-Werror"
6075 if test "x${withval}" != "xyes"; then
6076 werror_flags="$withval"
6110 security/pam_appl.h \
6150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6153 cat >>confdefs.h <<_ACEOF
6154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6162 # lastlog.h requires sys/time.h to be included first on Solaris
6163 for ac_header in lastlog.h
6165 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6166 #ifdef HAVE_SYS_TIME_H
6167 # include <sys/time.h>
6171 if test "x$ac_cv_header_lastlog_h" = xyes; then :
6172 cat >>confdefs.h <<_ACEOF
6173 #define HAVE_LASTLOG_H 1
6181 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6182 for ac_header in sys/ptms.h
6184 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6185 #ifdef HAVE_SYS_STREAM_H
6186 # include <sys/stream.h>
6190 if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6191 cat >>confdefs.h <<_ACEOF
6192 #define HAVE_SYS_PTMS_H 1
6200 # login_cap.h requires sys/types.h on NetBSD
6201 for ac_header in login_cap.h
6203 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6204 #include <sys/types.h>
6207 if test "x$ac_cv_header_login_cap_h" = xyes; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_LOGIN_CAP_H 1
6217 # older BSDs need sys/param.h before sys/mount.h
6218 for ac_header in sys/mount.h
6220 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6221 #include <sys/param.h>
6224 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6225 cat >>confdefs.h <<_ACEOF
6226 #define HAVE_SYS_MOUNT_H 1
6234 # Messages for features tested for in target-specific section
6239 # Check for some target-specific stuff
6242 # Some versions of VAC won't allow macro redefinitions at
6243 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6244 # particularly with older versions of vac or xlc.
6245 # It also throws errors about null macro argments, but these are
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6248 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6252 #define testmacro foo
6253 #define testmacro bar
6262 if ac_fn_c_try_compile "$LINENO"; then :
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6264 $as_echo "yes" >&6; }
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6268 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6269 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6270 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6271 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6278 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6279 if (test -z "$blibpath"); then
6280 blibpath="/usr/lib:/lib"
6282 saved_LDFLAGS="$LDFLAGS"
6283 if test "$GCC" = "yes"; then
6284 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6286 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6288 for tryflags in $flags ;do
6289 if (test -z "$blibflags"); then
6290 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6302 if ac_fn_c_try_link "$LINENO"; then :
6305 rm -f core conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6309 if (test -z "$blibflags"); then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6311 $as_echo "not found" >&6; }
6312 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6315 $as_echo "$blibflags" >&6; }
6317 LDFLAGS="$saved_LDFLAGS"
6318 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6319 if test "x$ac_cv_func_authenticate" = xyes; then :
6321 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6325 $as_echo_n "checking for authenticate in -ls... " >&6; }
6326 if ${ac_cv_lib_s_authenticate+:} false; then :
6327 $as_echo_n "(cached) " >&6
6329 ac_check_lib_save_LIBS=$LIBS
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6334 /* Override any GCC internal prototype to avoid an error.
6335 Use char because int might match the return type of a GCC
6336 builtin and then its argument prototype would still apply. */
6340 char authenticate ();
6344 return authenticate ();
6349 if ac_fn_c_try_link "$LINENO"; then :
6350 ac_cv_lib_s_authenticate=yes
6352 ac_cv_lib_s_authenticate=no
6354 rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6356 LIBS=$ac_check_lib_save_LIBS
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6359 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
6360 if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6361 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6370 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6372 if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6378 cat >>confdefs.h <<_ACEOF
6379 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
6381 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6383 if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6389 cat >>confdefs.h <<_ACEOF
6390 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6392 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6394 if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6400 cat >>confdefs.h <<_ACEOF
6401 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6403 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6405 if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6411 cat >>confdefs.h <<_ACEOF
6412 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6414 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6416 if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6422 cat >>confdefs.h <<_ACEOF
6423 #define HAVE_DECL_SETAUTHDB $ac_have_decl
6426 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6429 if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6435 cat >>confdefs.h <<_ACEOF
6436 #define HAVE_DECL_LOGINFAILED $ac_have_decl
6438 if test $ac_have_decl = 1; then :
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6440 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <usersec.h>
6447 (void)loginfailed("user","host","tty",0);
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6454 $as_echo "yes" >&6; }
6456 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466 for ac_func in getgrset setauthdb
6468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6469 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6470 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6471 cat >>confdefs.h <<_ACEOF
6472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6478 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6482 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6484 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6488 check_for_aix_broken_getaddrinfo=1
6490 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6493 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6496 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6499 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6502 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6505 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6508 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6511 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6514 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6518 check_for_libcrypt_later=1
6519 LIBS="$LIBS /usr/lib/textreadmode.o"
6521 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6524 $as_echo "#define USE_PIPES 1" >>confdefs.h
6527 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6530 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6533 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6536 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6539 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
6542 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
6547 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6549 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6551 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6553 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6558 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
6559 if test "$cross_compiling" = yes; then :
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6561 $as_echo "assume it is working" >&6; }
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 #include <mach-o/dyld.h>
6566 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6573 if ac_fn_c_try_run "$LINENO"; then :
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6575 $as_echo "working" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6578 $as_echo "buggy" >&6; }
6580 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6585 conftest.$ac_objext conftest.beam conftest.$ac_ext
6588 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6590 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6592 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6595 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6598 cat >>confdefs.h <<_ACEOF
6599 #define BIND_8_COMPAT 1
6603 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6606 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6609 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6612 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6613 if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
6617 $as_echo "#define AU_IPv4 0" >>confdefs.h
6619 #include <bsm/audit.h>
6621 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6627 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6629 for ac_func in sandbox_init
6631 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
6632 if test "x$ac_cv_func_sandbox_init" = xyes; then :
6633 cat >>confdefs.h <<_ACEOF
6634 #define HAVE_SANDBOX_INIT 1
6640 for ac_header in sandbox.h
6642 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6643 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6644 cat >>confdefs.h <<_ACEOF
6645 #define HAVE_SANDBOX_H 1
6654 SSHDLIBS="$SSHDLIBS -lcrypt"
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
6659 $as_echo_n "checking for socket in -lnetwork... " >&6; }
6660 if ${ac_cv_lib_network_socket+:} false; then :
6661 $as_echo_n "(cached) " >&6
6663 ac_check_lib_save_LIBS=$LIBS
6664 LIBS="-lnetwork $LIBS"
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6668 /* Override any GCC internal prototype to avoid an error.
6669 Use char because int might match the return type of a GCC
6670 builtin and then its argument prototype would still apply. */
6683 if ac_fn_c_try_link "$LINENO"; then :
6684 ac_cv_lib_network_socket=yes
6686 ac_cv_lib_network_socket=no
6688 rm -f core conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6690 LIBS=$ac_check_lib_save_LIBS
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
6693 $as_echo "$ac_cv_lib_network_socket" >&6; }
6694 if test "x$ac_cv_lib_network_socket" = xyes; then :
6695 cat >>confdefs.h <<_ACEOF
6696 #define HAVE_LIBNETWORK 1
6699 LIBS="-lnetwork $LIBS"
6703 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
6708 # first we define all of the options common to all HP-UX releases
6709 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6710 IPADDR_IN_DISPLAY=yes
6711 $as_echo "#define USE_PIPES 1" >>confdefs.h
6714 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6716 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6719 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6721 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6726 $as_echo_n "checking for t_error in -lxnet... " >&6; }
6727 if ${ac_cv_lib_xnet_t_error+:} false; then :
6728 $as_echo_n "(cached) " >&6
6730 ac_check_lib_save_LIBS=$LIBS
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6735 /* Override any GCC internal prototype to avoid an error.
6736 Use char because int might match the return type of a GCC
6737 builtin and then its argument prototype would still apply. */
6750 if ac_fn_c_try_link "$LINENO"; then :
6751 ac_cv_lib_xnet_t_error=yes
6753 ac_cv_lib_xnet_t_error=no
6755 rm -f core conftest.err conftest.$ac_objext \
6756 conftest$ac_exeext conftest.$ac_ext
6757 LIBS=$ac_check_lib_save_LIBS
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6760 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6761 if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
6762 cat >>confdefs.h <<_ACEOF
6763 #define HAVE_LIBXNET 1
6769 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6773 # next, we define all of the options specific to major releases
6776 if test -z "$GCC"; then
6777 CFLAGS="$CFLAGS -Ae"
6782 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6785 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6788 $as_echo "#define USE_BTMP 1" >>confdefs.h
6790 check_for_hpux_broken_getaddrinfo=1
6791 check_for_conflicting_getspnam=1
6795 # lastly, we define options specific to minor releases
6799 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6801 disable_ptmx_check=yes
6802 LIBS="$LIBS -lsecpw"
6807 PATH="$PATH:/usr/etc"
6809 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6811 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6813 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6815 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6818 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6820 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6824 PATH="$PATH:/usr/etc"
6826 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6829 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6832 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6834 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6835 if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
6837 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6841 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6843 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6845 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6847 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6850 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6852 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6854 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6857 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6858 check_for_libcrypt_later=1
6859 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6861 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6863 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6866 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6869 $as_echo "#define USE_BTMP 1" >>confdefs.h
6874 check_for_libcrypt_later=1
6875 check_for_openpty_ctty_bug=1
6877 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6880 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6882 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6885 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6888 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6890 $as_echo "#define USE_BTMP 1" >>confdefs.h
6893 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
6895 inet6_default_4in6=yes
6899 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6903 # tun(4) forwarding compat code
6904 for ac_header in linux/if_tun.h
6906 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6907 if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
6908 cat >>confdefs.h <<_ACEOF
6909 #define HAVE_LINUX_IF_TUN_H 1
6916 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6918 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6921 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6924 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6927 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
6929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6930 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
6932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6933 cat >>confdefs.h <<_ACEOF
6934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6941 for ac_func in prctl
6943 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
6944 if test "x$ac_cv_func_prctl" = xyes; then :
6945 cat >>confdefs.h <<_ACEOF
6946 #define HAVE_PRCTL 1
6952 have_seccomp_audit_arch=1
6956 $as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64" >>confdefs.h
6961 $as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386" >>confdefs.h
6965 have_seccomp_audit_arch=0
6969 mips-sony-bsd|mips-sony-newsos4)
6971 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6976 check_for_libcrypt_before=1
6977 if test "x$withval" != "xno" ; then
6981 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6983 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6984 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
6988 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6994 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6998 check_for_libcrypt_later=1
7000 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
7003 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7005 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7006 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7010 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7016 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7020 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7022 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7024 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7028 conf_lastlog_location="/usr/adm/lastlog"
7029 conf_utmp_location=/etc/utmp
7030 conf_wtmp_location=/usr/adm/wtmp
7031 maildir=/usr/spool/mail
7033 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
7035 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7037 $as_echo "#define USE_PIPES 1" >>confdefs.h
7040 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
7045 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
7048 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
7051 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
7054 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
7058 if test "x$withval" != "xno" ; then
7061 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7063 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7066 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
7068 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7071 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7073 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7075 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7077 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7080 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7083 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7085 external_path_file=/etc/default/login
7086 # hardwire lastlog location (can't detect it on some versions)
7087 conf_lastlog_location="/var/adm/lastlog"
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7089 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7090 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7091 if test "$sol2ver" -ge 8; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7093 $as_echo "yes" >&6; }
7094 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7097 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7104 # Check whether --with-solaris-contracts was given.
7105 if test "${with_solaris_contracts+set}" = set; then :
7106 withval=$with_solaris_contracts;
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7108 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7109 if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
7110 $as_echo_n "(cached) " >&6
7112 ac_check_lib_save_LIBS=$LIBS
7113 LIBS="-lcontract $LIBS"
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7117 /* Override any GCC internal prototype to avoid an error.
7118 Use char because int might match the return type of a GCC
7119 builtin and then its argument prototype would still apply. */
7123 char ct_tmpl_activate ();
7127 return ct_tmpl_activate ();
7132 if ac_fn_c_try_link "$LINENO"; then :
7133 ac_cv_lib_contract_ct_tmpl_activate=yes
7135 ac_cv_lib_contract_ct_tmpl_activate=no
7137 rm -f core conftest.err conftest.$ac_objext \
7138 conftest$ac_exeext conftest.$ac_ext
7139 LIBS=$ac_check_lib_save_LIBS
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7142 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7143 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7145 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7147 SSHDLIBS="$SSHDLIBS -lcontract"
7155 # Check whether --with-solaris-projects was given.
7156 if test "${with_solaris_projects+set}" = set; then :
7157 withval=$with_solaris_projects;
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7159 $as_echo_n "checking for setproject in -lproject... " >&6; }
7160 if ${ac_cv_lib_project_setproject+:} false; then :
7161 $as_echo_n "(cached) " >&6
7163 ac_check_lib_save_LIBS=$LIBS
7164 LIBS="-lproject $LIBS"
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7168 /* Override any GCC internal prototype to avoid an error.
7169 Use char because int might match the return type of a GCC
7170 builtin and then its argument prototype would still apply. */
7178 return setproject ();
7183 if ac_fn_c_try_link "$LINENO"; then :
7184 ac_cv_lib_project_setproject=yes
7186 ac_cv_lib_project_setproject=no
7188 rm -f core conftest.err conftest.$ac_objext \
7189 conftest$ac_exeext conftest.$ac_ext
7190 LIBS=$ac_check_lib_save_LIBS
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7193 $as_echo "$ac_cv_lib_project_setproject" >&6; }
7194 if test "x$ac_cv_lib_project_setproject" = xyes; then :
7196 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7198 SSHDLIBS="$SSHDLIBS -lproject"
7207 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7208 for ac_func in getpwanam
7210 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7211 if test "x$ac_cv_func_getpwanam" = xyes; then :
7212 cat >>confdefs.h <<_ACEOF
7213 #define HAVE_GETPWANAM 1
7219 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7221 conf_utmp_location=/etc/utmp
7222 conf_wtmp_location=/var/adm/wtmp
7223 conf_lastlog_location=/var/adm/lastlog
7224 $as_echo "#define USE_PIPES 1" >>confdefs.h
7229 $as_echo "#define USE_PIPES 1" >>confdefs.h
7231 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7233 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7235 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7237 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7241 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7243 $as_echo_n "checking for dlsym in -ldl... " >&6; }
7244 if ${ac_cv_lib_dl_dlsym+:} false; then :
7245 $as_echo_n "(cached) " >&6
7247 ac_check_lib_save_LIBS=$LIBS
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7252 /* Override any GCC internal prototype to avoid an error.
7253 Use char because int might match the return type of a GCC
7254 builtin and then its argument prototype would still apply. */
7267 if ac_fn_c_try_link "$LINENO"; then :
7268 ac_cv_lib_dl_dlsym=yes
7270 ac_cv_lib_dl_dlsym=no
7272 rm -f core conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7274 LIBS=$ac_check_lib_save_LIBS
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7277 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7278 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7279 cat >>confdefs.h <<_ACEOF
7280 #define HAVE_LIBDL 1
7287 # -lresolv needs to be at the end of LIBS or DNS lookups break
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7289 $as_echo_n "checking for res_query in -lresolv... " >&6; }
7290 if ${ac_cv_lib_resolv_res_query+:} false; then :
7291 $as_echo_n "(cached) " >&6
7293 ac_check_lib_save_LIBS=$LIBS
7294 LIBS="-lresolv $LIBS"
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7298 /* Override any GCC internal prototype to avoid an error.
7299 Use char because int might match the return type of a GCC
7300 builtin and then its argument prototype would still apply. */
7308 return res_query ();
7313 if ac_fn_c_try_link "$LINENO"; then :
7314 ac_cv_lib_resolv_res_query=yes
7316 ac_cv_lib_resolv_res_query=no
7318 rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
7320 LIBS=$ac_check_lib_save_LIBS
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7323 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7324 if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7325 LIBS="$LIBS -lresolv"
7328 IPADDR_IN_DISPLAY=yes
7329 $as_echo "#define USE_PIPES 1" >>confdefs.h
7331 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7333 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7335 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7337 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7339 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7341 external_path_file=/etc/default/login
7342 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7343 # Attention: always take care to bind libsocket and libnsl before libc,
7344 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7346 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7348 $as_echo "#define USE_PIPES 1" >>confdefs.h
7350 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7352 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7354 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7357 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7359 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7362 # UnixWare 7.x, OpenUNIX 8
7364 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7366 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7368 $as_echo "#define USE_PIPES 1" >>confdefs.h
7370 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7372 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7374 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7376 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7378 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7381 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7382 maildir=/var/spool/mail
7383 TEST_SHELL=/u95/bin/sh
7385 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7387 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7390 $as_echo_n "checking for getluid in -lprot... " >&6; }
7391 if ${ac_cv_lib_prot_getluid+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 ac_check_lib_save_LIBS=$LIBS
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7399 /* Override any GCC internal prototype to avoid an error.
7400 Use char because int might match the return type of a GCC
7401 builtin and then its argument prototype would still apply. */
7414 if ac_fn_c_try_link "$LINENO"; then :
7415 ac_cv_lib_prot_getluid=yes
7417 ac_cv_lib_prot_getluid=no
7419 rm -f core conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
7421 LIBS=$ac_check_lib_save_LIBS
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
7424 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
7425 if test "x$ac_cv_lib_prot_getluid" = xyes; then :
7427 for ac_func in getluid setluid
7429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7431 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7432 cat >>confdefs.h <<_ACEOF
7433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7439 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7441 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7447 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7449 check_for_libcrypt_later=1
7455 # SCO UNIX and OEM versions of SCO UNIX
7457 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
7459 # SCO OpenServer 5.x
7461 if test -z "$GCC"; then
7462 CFLAGS="$CFLAGS -belf"
7464 LIBS="$LIBS -lprot -lx -ltinfo -lm"
7466 $as_echo "#define USE_PIPES 1" >>confdefs.h
7468 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7470 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7472 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7474 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7476 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7478 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7480 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7482 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7484 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7486 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7488 for ac_func in getluid setluid
7490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7492 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7493 cat >>confdefs.h <<_ACEOF
7494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7505 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7507 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7509 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7511 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7513 $as_echo "#define USE_PIPES 1" >>confdefs.h
7515 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7518 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
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 WITH_ABBREV_NO_TTY 1" >>confdefs.h
7530 $as_echo "#define USE_PIPES 1" >>confdefs.h
7532 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7535 LIBS="$LIBS -lgen -lacid -ldb"
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
7545 $as_echo "#define USE_PIPES 1" >>confdefs.h
7547 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7549 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7551 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7552 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
7557 $as_echo_n "checking for Digital Unix SIA... " >&6; }
7560 # Check whether --with-osfsia was given.
7561 if test "${with_osfsia+set}" = set; then :
7562 withval=$with_osfsia;
7563 if test "x$withval" = "xno" ; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7565 $as_echo "disabled" >&6; }
7571 if test -z "$no_osfsia" ; then
7572 if test -f /etc/sia/matrix.conf; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574 $as_echo "yes" >&6; }
7576 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7579 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7581 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7583 LIBS="$LIBS -lsecurity -ldb -lm -laud"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7589 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7593 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7595 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7597 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7599 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7602 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7607 $as_echo "#define USE_PIPES 1" >>confdefs.h
7609 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7612 $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7615 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7618 $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7620 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7622 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7625 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7627 enable_etc_default_login=no # has incompatible /etc/default/login
7630 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7638 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7641 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7643 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7646 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7651 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7652 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7655 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7661 $as_echo_n "checking compiler and flags for sanity... " >&6; }
7662 if test "$cross_compiling" = yes; then :
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7664 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7678 if ac_fn_c_try_run "$LINENO"; then :
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7680 $as_echo "yes" >&6; }
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7685 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7689 conftest.$ac_objext conftest.beam conftest.$ac_ext
7693 # Checks for libraries.
7694 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7695 if test "x$ac_cv_func_yp_match" = xyes; then :
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7699 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
7700 if ${ac_cv_lib_nsl_yp_match+:} false; then :
7701 $as_echo_n "(cached) " >&6
7703 ac_check_lib_save_LIBS=$LIBS
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7708 /* Override any GCC internal prototype to avoid an error.
7709 Use char because int might match the return type of a GCC
7710 builtin and then its argument prototype would still apply. */
7723 if ac_fn_c_try_link "$LINENO"; then :
7724 ac_cv_lib_nsl_yp_match=yes
7726 ac_cv_lib_nsl_yp_match=no
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 LIBS=$ac_check_lib_save_LIBS
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7733 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7734 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
7735 cat >>confdefs.h <<_ACEOF
7736 #define HAVE_LIBNSL 1
7745 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7746 if test "x$ac_cv_func_setsockopt" = xyes; then :
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7750 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7751 if ${ac_cv_lib_socket_setsockopt+:} false; then :
7752 $as_echo_n "(cached) " >&6
7754 ac_check_lib_save_LIBS=$LIBS
7755 LIBS="-lsocket $LIBS"
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7759 /* Override any GCC internal prototype to avoid an error.
7760 Use char because int might match the return type of a GCC
7761 builtin and then its argument prototype would still apply. */
7769 return setsockopt ();
7774 if ac_fn_c_try_link "$LINENO"; then :
7775 ac_cv_lib_socket_setsockopt=yes
7777 ac_cv_lib_socket_setsockopt=no
7779 rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781 LIBS=$ac_check_lib_save_LIBS
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7784 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7785 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
7786 cat >>confdefs.h <<_ACEOF
7787 #define HAVE_LIBSOCKET 1
7790 LIBS="-lsocket $LIBS"
7797 for ac_func in dirname
7799 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7800 if test "x$ac_cv_func_dirname" = xyes; then :
7801 cat >>confdefs.h <<_ACEOF
7802 #define HAVE_DIRNAME 1
7804 for ac_header in libgen.h
7806 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7807 if test "x$ac_cv_header_libgen_h" = xyes; then :
7808 cat >>confdefs.h <<_ACEOF
7809 #define HAVE_LIBGEN_H 1
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7819 $as_echo_n "checking for dirname in -lgen... " >&6; }
7820 if ${ac_cv_lib_gen_dirname+:} false; then :
7821 $as_echo_n "(cached) " >&6
7823 ac_check_lib_save_LIBS=$LIBS
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7828 /* Override any GCC internal prototype to avoid an error.
7829 Use char because int might match the return type of a GCC
7830 builtin and then its argument prototype would still apply. */
7843 if ac_fn_c_try_link "$LINENO"; then :
7844 ac_cv_lib_gen_dirname=yes
7846 ac_cv_lib_gen_dirname=no
7848 rm -f core conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7850 LIBS=$ac_check_lib_save_LIBS
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7853 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
7854 if test "x$ac_cv_lib_gen_dirname" = xyes; then :
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7857 $as_echo_n "checking for broken dirname... " >&6; }
7858 if ${ac_cv_have_broken_dirname+:} false; then :
7859 $as_echo_n "(cached) " >&6
7864 if test "$cross_compiling" = yes; then :
7865 ac_cv_have_broken_dirname="no"
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7873 int main(int argc, char **argv) {
7876 strncpy(buf,"/etc", 32);
7878 if (!s || strncmp(s, "/", 32) != 0) {
7886 if ac_fn_c_try_run "$LINENO"; then :
7887 ac_cv_have_broken_dirname="no"
7889 ac_cv_have_broken_dirname="yes"
7891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7892 conftest.$ac_objext conftest.beam conftest.$ac_ext
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7899 $as_echo "$ac_cv_have_broken_dirname" >&6; }
7900 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7902 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7904 for ac_header in libgen.h
7906 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7907 if test "x$ac_cv_header_libgen_h" = xyes; then :
7908 cat >>confdefs.h <<_ACEOF
7909 #define HAVE_LIBGEN_H 1
7925 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7926 if test "x$ac_cv_func_getspnam" = xyes; then :
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7930 $as_echo_n "checking for getspnam in -lgen... " >&6; }
7931 if ${ac_cv_lib_gen_getspnam+:} false; then :
7932 $as_echo_n "(cached) " >&6
7934 ac_check_lib_save_LIBS=$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. */
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 ac_cv_lib_gen_getspnam=yes
7957 ac_cv_lib_gen_getspnam=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_gen_getspnam" >&5
7964 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7965 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7972 $as_echo_n "checking for library containing basename... " >&6; }
7973 if ${ac_cv_search_basename+:} false; then :
7974 $as_echo_n "(cached) " >&6
7976 ac_func_search_save_LIBS=$LIBS
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7980 /* Override any GCC internal prototype to avoid an error.
7981 Use char because int might match the return type of a GCC
7982 builtin and then its argument prototype would still apply. */
7995 for ac_lib in '' gen; do
7996 if test -z "$ac_lib"; then
7997 ac_res="none required"
8000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8002 if ac_fn_c_try_link "$LINENO"; then :
8003 ac_cv_search_basename=$ac_res
8005 rm -f core conftest.err conftest.$ac_objext \
8007 if ${ac_cv_search_basename+:} false; then :
8011 if ${ac_cv_search_basename+:} false; then :
8014 ac_cv_search_basename=no
8017 LIBS=$ac_func_search_save_LIBS
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8020 $as_echo "$ac_cv_search_basename" >&6; }
8021 ac_res=$ac_cv_search_basename
8022 if test "$ac_res" != no; then :
8023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8025 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8031 # Check whether --with-zlib was given.
8032 if test "${with_zlib+set}" = set; then :
8033 withval=$with_zlib; if test "x$withval" = "xno" ; then
8034 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
8035 elif test "x$withval" != "xyes"; then
8036 if test -d "$withval/lib"; then
8037 if test -n "${need_dash_r}"; then
8038 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8040 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8043 if test -n "${need_dash_r}"; then
8044 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8046 LDFLAGS="-L${withval} ${LDFLAGS}"
8049 if test -d "$withval/include"; then
8050 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8052 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8059 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8060 if test "x$ac_cv_header_zlib_h" = xyes; then :
8063 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
8068 $as_echo_n "checking for deflate in -lz... " >&6; }
8069 if ${ac_cv_lib_z_deflate+:} false; then :
8070 $as_echo_n "(cached) " >&6
8072 ac_check_lib_save_LIBS=$LIBS
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8077 /* Override any GCC internal prototype to avoid an error.
8078 Use char because int might match the return type of a GCC
8079 builtin and then its argument prototype would still apply. */
8092 if ac_fn_c_try_link "$LINENO"; then :
8093 ac_cv_lib_z_deflate=yes
8095 ac_cv_lib_z_deflate=no
8097 rm -f core conftest.err conftest.$ac_objext \
8098 conftest$ac_exeext conftest.$ac_ext
8099 LIBS=$ac_check_lib_save_LIBS
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8102 $as_echo "$ac_cv_lib_z_deflate" >&6; }
8103 if test "x$ac_cv_lib_z_deflate" = xyes; then :
8104 cat >>confdefs.h <<_ACEOF
8112 saved_CPPFLAGS="$CPPFLAGS"
8113 saved_LDFLAGS="$LDFLAGS"
8115 if test -n "${need_dash_r}"; then
8116 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8118 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8120 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8125 /* Override any GCC internal prototype to avoid an error.
8126 Use char because int might match the return type of a GCC
8127 builtin and then its argument prototype would still apply. */
8140 if ac_fn_c_try_link "$LINENO"; then :
8141 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8145 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8149 rm -f core conftest.err conftest.$ac_objext \
8150 conftest$ac_exeext conftest.$ac_ext
8157 # Check whether --with-zlib-version-check was given.
8158 if test "${with_zlib_version_check+set}" = set; then :
8159 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8160 zlib_check_nonfatal=1
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8168 $as_echo_n "checking for possibly buggy zlib... " >&6; }
8169 if test "$cross_compiling" = yes; then :
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8171 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8184 int a=0, b=0, c=0, d=0, n, v;
8185 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8186 if (n != 3 && n != 4)
8188 v = a*1000000 + b*10000 + c*100 + d;
8189 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8192 if (a == 1 && b == 1 && c >= 4)
8195 /* 1.2.3 and up are OK */
8205 if ac_fn_c_try_run "$LINENO"; then :
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8210 $as_echo "yes" >&6; }
8211 if test -z "$zlib_check_nonfatal" ; then
8212 as_fn_error $? "*** zlib too old - check config.log ***
8213 Your reported zlib version has known security problems. It's possible your
8214 vendor has fixed these problems without changing the version number. If you
8215 are sure this is the case, you can disable the check by running
8216 \"./configure --without-zlib-version-check\".
8217 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8218 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8221 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8226 conftest.$ac_objext conftest.beam conftest.$ac_ext
8230 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8231 if test "x$ac_cv_func_strcasecmp" = xyes; then :
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8235 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8236 if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8237 $as_echo_n "(cached) " >&6
8239 ac_check_lib_save_LIBS=$LIBS
8240 LIBS="-lresolv $LIBS"
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8244 /* Override any GCC internal prototype to avoid an error.
8245 Use char because int might match the return type of a GCC
8246 builtin and then its argument prototype would still apply. */
8254 return strcasecmp ();
8259 if ac_fn_c_try_link "$LINENO"; then :
8260 ac_cv_lib_resolv_strcasecmp=yes
8262 ac_cv_lib_resolv_strcasecmp=no
8264 rm -f core conftest.err conftest.$ac_objext \
8265 conftest$ac_exeext conftest.$ac_ext
8266 LIBS=$ac_check_lib_save_LIBS
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8269 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8270 if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8271 LIBS="$LIBS -lresolv"
8277 for ac_func in utimes
8279 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8280 if test "x$ac_cv_func_utimes" = xyes; then :
8281 cat >>confdefs.h <<_ACEOF
8282 #define HAVE_UTIMES 1
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8287 $as_echo_n "checking for utimes in -lc89... " >&6; }
8288 if ${ac_cv_lib_c89_utimes+:} false; then :
8289 $as_echo_n "(cached) " >&6
8291 ac_check_lib_save_LIBS=$LIBS
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8296 /* Override any GCC internal prototype to avoid an error.
8297 Use char because int might match the return type of a GCC
8298 builtin and then its argument prototype would still apply. */
8311 if ac_fn_c_try_link "$LINENO"; then :
8312 ac_cv_lib_c89_utimes=yes
8314 ac_cv_lib_c89_utimes=no
8316 rm -f core conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318 LIBS=$ac_check_lib_save_LIBS
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8321 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
8322 if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8323 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8333 for ac_header in libutil.h
8335 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8336 if test "x$ac_cv_header_libutil_h" = xyes; then :
8337 cat >>confdefs.h <<_ACEOF
8338 #define HAVE_LIBUTIL_H 1
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
8346 $as_echo_n "checking for library containing fmt_scaled... " >&6; }
8347 if ${ac_cv_search_fmt_scaled+:} false; then :
8348 $as_echo_n "(cached) " >&6
8350 ac_func_search_save_LIBS=$LIBS
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8354 /* Override any GCC internal prototype to avoid an error.
8355 Use char because int might match the return type of a GCC
8356 builtin and then its argument prototype would still apply. */
8364 return fmt_scaled ();
8369 for ac_lib in '' util bsd; do
8370 if test -z "$ac_lib"; then
8371 ac_res="none required"
8374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8376 if ac_fn_c_try_link "$LINENO"; then :
8377 ac_cv_search_fmt_scaled=$ac_res
8379 rm -f core conftest.err conftest.$ac_objext \
8381 if ${ac_cv_search_fmt_scaled+:} false; then :
8385 if ${ac_cv_search_fmt_scaled+:} false; then :
8388 ac_cv_search_fmt_scaled=no
8391 LIBS=$ac_func_search_save_LIBS
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
8394 $as_echo "$ac_cv_search_fmt_scaled" >&6; }
8395 ac_res=$ac_cv_search_fmt_scaled
8396 if test "$ac_res" != no; then :
8397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8402 $as_echo_n "checking for library containing login... " >&6; }
8403 if ${ac_cv_search_login+:} false; then :
8404 $as_echo_n "(cached) " >&6
8406 ac_func_search_save_LIBS=$LIBS
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8410 /* Override any GCC internal prototype to avoid an error.
8411 Use char because int might match the return type of a GCC
8412 builtin and then its argument prototype would still apply. */
8425 for ac_lib in '' util bsd; do
8426 if test -z "$ac_lib"; then
8427 ac_res="none required"
8430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8432 if ac_fn_c_try_link "$LINENO"; then :
8433 ac_cv_search_login=$ac_res
8435 rm -f core conftest.err conftest.$ac_objext \
8437 if ${ac_cv_search_login+:} false; then :
8441 if ${ac_cv_search_login+:} false; then :
8444 ac_cv_search_login=no
8447 LIBS=$ac_func_search_save_LIBS
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
8450 $as_echo "$ac_cv_search_login" >&6; }
8451 ac_res=$ac_cv_search_login
8452 if test "$ac_res" != no; then :
8453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
8458 $as_echo_n "checking for library containing logout... " >&6; }
8459 if ${ac_cv_search_logout+:} false; then :
8460 $as_echo_n "(cached) " >&6
8462 ac_func_search_save_LIBS=$LIBS
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8466 /* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8481 for ac_lib in '' util bsd; do
8482 if test -z "$ac_lib"; then
8483 ac_res="none required"
8486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8488 if ac_fn_c_try_link "$LINENO"; then :
8489 ac_cv_search_logout=$ac_res
8491 rm -f core conftest.err conftest.$ac_objext \
8493 if ${ac_cv_search_logout+:} false; then :
8497 if ${ac_cv_search_logout+:} false; then :
8500 ac_cv_search_logout=no
8503 LIBS=$ac_func_search_save_LIBS
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
8506 $as_echo "$ac_cv_search_logout" >&6; }
8507 ac_res=$ac_cv_search_logout
8508 if test "$ac_res" != no; then :
8509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
8514 $as_echo_n "checking for library containing logwtmp... " >&6; }
8515 if ${ac_cv_search_logwtmp+:} false; then :
8516 $as_echo_n "(cached) " >&6
8518 ac_func_search_save_LIBS=$LIBS
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8522 /* Override any GCC internal prototype to avoid an error.
8523 Use char because int might match the return type of a GCC
8524 builtin and then its argument prototype would still apply. */
8537 for ac_lib in '' util bsd; do
8538 if test -z "$ac_lib"; then
8539 ac_res="none required"
8542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8544 if ac_fn_c_try_link "$LINENO"; then :
8545 ac_cv_search_logwtmp=$ac_res
8547 rm -f core conftest.err conftest.$ac_objext \
8549 if ${ac_cv_search_logwtmp+:} false; then :
8553 if ${ac_cv_search_logwtmp+:} false; then :
8556 ac_cv_search_logwtmp=no
8559 LIBS=$ac_func_search_save_LIBS
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
8562 $as_echo "$ac_cv_search_logwtmp" >&6; }
8563 ac_res=$ac_cv_search_logwtmp
8564 if test "$ac_res" != no; then :
8565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
8570 $as_echo_n "checking for library containing openpty... " >&6; }
8571 if ${ac_cv_search_openpty+:} false; then :
8572 $as_echo_n "(cached) " >&6
8574 ac_func_search_save_LIBS=$LIBS
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8578 /* Override any GCC internal prototype to avoid an error.
8579 Use char because int might match the return type of a GCC
8580 builtin and then its argument prototype would still apply. */
8593 for ac_lib in '' util bsd; do
8594 if test -z "$ac_lib"; then
8595 ac_res="none required"
8598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8600 if ac_fn_c_try_link "$LINENO"; then :
8601 ac_cv_search_openpty=$ac_res
8603 rm -f core conftest.err conftest.$ac_objext \
8605 if ${ac_cv_search_openpty+:} false; then :
8609 if ${ac_cv_search_openpty+:} false; then :
8612 ac_cv_search_openpty=no
8615 LIBS=$ac_func_search_save_LIBS
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
8618 $as_echo "$ac_cv_search_openpty" >&6; }
8619 ac_res=$ac_cv_search_openpty
8620 if test "$ac_res" != no; then :
8621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
8626 $as_echo_n "checking for library containing updwtmp... " >&6; }
8627 if ${ac_cv_search_updwtmp+:} false; then :
8628 $as_echo_n "(cached) " >&6
8630 ac_func_search_save_LIBS=$LIBS
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8634 /* Override any GCC internal prototype to avoid an error.
8635 Use char because int might match the return type of a GCC
8636 builtin and then its argument prototype would still apply. */
8649 for ac_lib in '' util bsd; do
8650 if test -z "$ac_lib"; then
8651 ac_res="none required"
8654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8656 if ac_fn_c_try_link "$LINENO"; then :
8657 ac_cv_search_updwtmp=$ac_res
8659 rm -f core conftest.err conftest.$ac_objext \
8661 if ${ac_cv_search_updwtmp+:} false; then :
8665 if ${ac_cv_search_updwtmp+:} false; then :
8668 ac_cv_search_updwtmp=no
8671 LIBS=$ac_func_search_save_LIBS
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
8674 $as_echo "$ac_cv_search_updwtmp" >&6; }
8675 ac_res=$ac_cv_search_updwtmp
8676 if test "$ac_res" != no; then :
8677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8681 for ac_func in fmt_scaled login logout openpty updwtmp logwtmp
8683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8684 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8685 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8686 cat >>confdefs.h <<_ACEOF
8687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8694 for ac_func in strftime
8696 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8697 if test "x$ac_cv_func_strftime" = xyes; then :
8698 cat >>confdefs.h <<_ACEOF
8699 #define HAVE_STRFTIME 1
8703 # strftime is in -lintl on SCO UNIX.
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8705 $as_echo_n "checking for strftime in -lintl... " >&6; }
8706 if ${ac_cv_lib_intl_strftime+:} false; then :
8707 $as_echo_n "(cached) " >&6
8709 ac_check_lib_save_LIBS=$LIBS
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8729 if ac_fn_c_try_link "$LINENO"; then :
8730 ac_cv_lib_intl_strftime=yes
8732 ac_cv_lib_intl_strftime=no
8734 rm -f core conftest.err conftest.$ac_objext \
8735 conftest$ac_exeext conftest.$ac_ext
8736 LIBS=$ac_check_lib_save_LIBS
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8739 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8740 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
8741 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8750 # Check for ALTDIRFUNC glob() extension
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
8752 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8757 #ifdef GLOB_ALTDIRFUNC
8762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
8766 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8769 $as_echo "yes" >&6; }
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8781 # Check for g.gl_matchc glob() extension
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
8783 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8790 glob_t g; g.gl_matchc = 1;
8795 if ac_fn_c_try_compile "$LINENO"; then :
8798 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801 $as_echo "yes" >&6; }
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 # Check for g.gl_statv glob() extension
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
8813 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8821 #ifndef GLOB_KEEPSTAT
8822 #error "glob does not support GLOB_KEEPSTAT extension"
8831 if ac_fn_c_try_compile "$LINENO"; then :
8834 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8837 $as_echo "yes" >&6; }
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842 $as_echo "no" >&6; }
8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
8850 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
8862 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
8863 if test "$cross_compiling" = yes; then :
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
8866 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
8867 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8875 #include <sys/types.h>
8882 exit(sizeof(d.d_name)<=sizeof(char));
8888 if ac_fn_c_try_run "$LINENO"; then :
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8890 $as_echo "yes" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8896 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8901 conftest.$ac_objext conftest.beam conftest.$ac_ext
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8906 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8907 if test -d "/proc/$$/fd" ; then
8909 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8912 $as_echo "yes" >&6; }
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8918 # Check whether user wants S/Key support
8921 # Check whether --with-skey was given.
8922 if test "${with_skey+set}" = set; then :
8924 if test "x$withval" != "xno" ; then
8926 if test "x$withval" != "xyes" ; then
8927 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8928 LDFLAGS="$LDFLAGS -L${withval}/lib"
8932 $as_echo "#define SKEY 1" >>confdefs.h
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8938 $as_echo_n "checking for s/key support... " >&6; }
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8949 char *ff = skey_keyinfo(""); ff="";
8956 if ac_fn_c_try_link "$LINENO"; then :
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8958 $as_echo "yes" >&6; }
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8963 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8969 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8980 (void)skeychallenge(NULL,"name","",0);
8986 if ac_fn_c_try_compile "$LINENO"; then :
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8989 $as_echo "yes" >&6; }
8991 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 # Check whether user wants TCP wrappers support
9009 # Check whether --with-tcp-wrappers was given.
9010 if test "${with_tcp_wrappers+set}" = set; then :
9011 withval=$with_tcp_wrappers;
9012 if test "x$withval" != "xno" ; then
9014 saved_LDFLAGS="$LDFLAGS"
9015 saved_CPPFLAGS="$CPPFLAGS"
9016 if test -n "${withval}" && \
9017 test "x${withval}" != "xyes"; then
9018 if test -d "${withval}/lib"; then
9019 if test -n "${need_dash_r}"; then
9020 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9022 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9025 if test -n "${need_dash_r}"; then
9026 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9028 LDFLAGS="-L${withval} ${LDFLAGS}"
9031 if test -d "${withval}/include"; then
9032 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9034 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
9039 $as_echo_n "checking for libwrap... " >&6; }
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9043 #include <sys/types.h>
9044 #include <sys/socket.h>
9045 #include <netinet/in.h>
9047 int deny_severity = 0, allow_severity = 0;
9059 if ac_fn_c_try_link "$LINENO"; then :
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9062 $as_echo "yes" >&6; }
9064 $as_echo "#define LIBWRAP 1" >>confdefs.h
9066 SSHDLIBS="$SSHDLIBS -lwrap"
9071 as_fn_error $? "*** libwrap missing" "$LINENO" 5
9075 rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9084 # Check whether user wants to use ldns
9087 # Check whether --with-ldns was given.
9088 if test "${with_ldns+set}" = set; then :
9090 if test "x$withval" != "xno" ; then
9092 if test "x$withval" != "xyes" ; then
9093 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9094 LDFLAGS="$LDFLAGS -L${withval}/lib"
9098 $as_echo "#define HAVE_LDNS 1" >>confdefs.h
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
9104 $as_echo_n "checking for ldns support... " >&6; }
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9111 #include <ldns/ldns.h>
9112 int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
9116 if ac_fn_c_try_link "$LINENO"; then :
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9118 $as_echo "yes" >&6; }
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9123 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
9126 rm -f core conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
9134 # Check whether user wants libedit support
9137 # Check whether --with-libedit was given.
9138 if test "${with_libedit+set}" = set; then :
9139 withval=$with_libedit; if test "x$withval" != "xno" ; then
9140 if test "x$withval" = "xyes" ; then
9141 if test -n "$ac_tool_prefix"; then
9142 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9143 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9145 $as_echo_n "checking for $ac_word... " >&6; }
9146 if ${ac_cv_path_PKGCONFIG+:} false; then :
9147 $as_echo_n "(cached) " >&6
9151 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
9154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 test -z "$as_dir" && as_dir=.
9159 for ac_exec_ext in '' $ac_executable_extensions; do
9160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9161 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9172 PKGCONFIG=$ac_cv_path_PKGCONFIG
9173 if test -n "$PKGCONFIG"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
9175 $as_echo "$PKGCONFIG" >&6; }
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9183 if test -z "$ac_cv_path_PKGCONFIG"; then
9184 ac_pt_PKGCONFIG=$PKGCONFIG
9185 # Extract the first word of "pkg-config", so it can be a program name with args.
9186 set dummy pkg-config; ac_word=$2
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 $as_echo_n "checking for $ac_word... " >&6; }
9189 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
9190 $as_echo_n "(cached) " >&6
9192 case $ac_pt_PKGCONFIG in
9194 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9204 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
9216 if test -n "$ac_pt_PKGCONFIG"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
9218 $as_echo "$ac_pt_PKGCONFIG" >&6; }
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9224 if test "x$ac_pt_PKGCONFIG" = x; then
9227 case $cross_compiling:$ac_tool_warned in
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231 ac_tool_warned=yes ;;
9233 PKGCONFIG=$ac_pt_PKGCONFIG
9236 PKGCONFIG="$ac_cv_path_PKGCONFIG"
9239 if test "x$PKGCONFIG" != "xno"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
9241 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
9242 if "$PKGCONFIG" libedit; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9244 $as_echo "yes" >&6; }
9245 use_pkgconfig_for_libedit=yes
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248 $as_echo "no" >&6; }
9252 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9253 if test -n "${need_dash_r}"; then
9254 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9256 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9259 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
9260 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
9261 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
9263 LIBEDIT="-ledit -lcurses"
9265 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
9267 $as_echo_n "checking for el_init in -ledit... " >&6; }
9268 if ${ac_cv_lib_edit_el_init+:} false; then :
9269 $as_echo_n "(cached) " >&6
9271 ac_check_lib_save_LIBS=$LIBS
9272 LIBS="-ledit $OTHERLIBS
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9277 /* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 ac_cv_lib_edit_el_init=yes
9295 ac_cv_lib_edit_el_init=no
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LIBS=$ac_check_lib_save_LIBS
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
9302 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
9303 if test "x$ac_cv_lib_edit_el_init" = xyes; then :
9305 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
9311 as_fn_error $? "libedit not found" "$LINENO" 5
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
9315 $as_echo_n "checking if libedit version is compatible... " >&6; }
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 #include <histedit.h>
9324 el_init("", NULL, NULL, NULL);
9331 if ac_fn_c_try_compile "$LINENO"; then :
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9333 $as_echo "yes" >&6; }
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9337 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348 # Check whether --with-audit was given.
9349 if test "${with_audit+set}" = set; then :
9350 withval=$with_audit;
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
9352 $as_echo_n "checking for supported audit module... " >&6; }
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
9356 $as_echo "bsm" >&6; }
9358 for ac_header in bsm/audit.h
9360 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
9367 if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
9368 cat >>confdefs.h <<_ACEOF
9369 #define HAVE_BSM_AUDIT_H 1
9373 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
9379 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
9380 if ${ac_cv_lib_bsm_getaudit+:} false; then :
9381 $as_echo_n "(cached) " >&6
9383 ac_check_lib_save_LIBS=$LIBS
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9388 /* Override any GCC internal prototype to avoid an error.
9389 Use char because int might match the return type of a GCC
9390 builtin and then its argument prototype would still apply. */
9403 if ac_fn_c_try_link "$LINENO"; then :
9404 ac_cv_lib_bsm_getaudit=yes
9406 ac_cv_lib_bsm_getaudit=no
9408 rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9410 LIBS=$ac_check_lib_save_LIBS
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
9413 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
9414 if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
9415 cat >>confdefs.h <<_ACEOF
9416 #define HAVE_LIBBSM 1
9422 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
9425 for ac_func in getaudit
9427 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
9428 if test "x$ac_cv_func_getaudit" = xyes; then :
9429 cat >>confdefs.h <<_ACEOF
9430 #define HAVE_GETAUDIT 1
9434 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
9438 # These are optional
9439 for ac_func in getaudit_addr aug_get_machine
9441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9444 cat >>confdefs.h <<_ACEOF
9445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9452 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
9454 if test "$sol2ver" -eq 11; then
9455 SSHDLIBS="$SSHDLIBS -lscf"
9457 $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
9463 $as_echo "linux" >&6; }
9465 for ac_header in libaudit.h
9467 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
9468 if test "x$ac_cv_header_libaudit_h" = xyes; then :
9469 cat >>confdefs.h <<_ACEOF
9470 #define HAVE_LIBAUDIT_H 1
9477 SSHDLIBS="$SSHDLIBS -laudit"
9479 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
9485 $as_echo "debug" >&6; }
9487 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492 $as_echo "no" >&6; }
9495 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
9505 arc4random_uniform \
9601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9603 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9604 cat >>confdefs.h <<_ACEOF
9605 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9618 return (isblank('a'));
9623 if ac_fn_c_try_link "$LINENO"; then :
9625 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
9629 rm -f core conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9632 # PKCS#11 support requires dlopen() and co
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9634 $as_echo_n "checking for library containing dlopen... " >&6; }
9635 if ${ac_cv_search_dlopen+:} false; then :
9636 $as_echo_n "(cached) " >&6
9638 ac_func_search_save_LIBS=$LIBS
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9657 for ac_lib in '' dl; do
9658 if test -z "$ac_lib"; then
9659 ac_res="none required"
9662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9664 if ac_fn_c_try_link "$LINENO"; then :
9665 ac_cv_search_dlopen=$ac_res
9667 rm -f core conftest.err conftest.$ac_objext \
9669 if ${ac_cv_search_dlopen+:} false; then :
9673 if ${ac_cv_search_dlopen+:} false; then :
9676 ac_cv_search_dlopen=no
9679 LIBS=$ac_func_search_save_LIBS
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9682 $as_echo "$ac_cv_search_dlopen" >&6; }
9683 ac_res=$ac_cv_search_dlopen
9684 if test "$ac_res" != no; then :
9685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9687 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
9693 # IRIX has a const char return value for gai_strerror()
9694 for ac_func in gai_strerror
9696 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
9697 if test "x$ac_cv_func_gai_strerror" = xyes; then :
9698 cat >>confdefs.h <<_ACEOF
9699 #define HAVE_GAI_STRERROR 1
9702 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9707 #include <sys/types.h>
9708 #include <sys/socket.h>
9711 const char *gai_strerror(int);
9718 str = gai_strerror(0);
9724 if ac_fn_c_try_compile "$LINENO"; then :
9727 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9736 $as_echo_n "checking for library containing nanosleep... " >&6; }
9737 if ${ac_cv_search_nanosleep+:} false; then :
9738 $as_echo_n "(cached) " >&6
9740 ac_func_search_save_LIBS=$LIBS
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9744 /* Override any GCC internal prototype to avoid an error.
9745 Use char because int might match the return type of a GCC
9746 builtin and then its argument prototype would still apply. */
9754 return nanosleep ();
9759 for ac_lib in '' rt posix4; do
9760 if test -z "$ac_lib"; then
9761 ac_res="none required"
9764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9766 if ac_fn_c_try_link "$LINENO"; then :
9767 ac_cv_search_nanosleep=$ac_res
9769 rm -f core conftest.err conftest.$ac_objext \
9771 if ${ac_cv_search_nanosleep+:} false; then :
9775 if ${ac_cv_search_nanosleep+:} false; then :
9778 ac_cv_search_nanosleep=no
9781 LIBS=$ac_func_search_save_LIBS
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
9784 $as_echo "$ac_cv_search_nanosleep" >&6; }
9785 ac_res=$ac_cv_search_nanosleep
9786 if test "$ac_res" != no; then :
9787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9789 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
9794 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
9795 if test "x$ac_cv_have_decl_getrusage" = xyes; then :
9796 for ac_func in getrusage
9798 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
9799 if test "x$ac_cv_func_getrusage" = xyes; then :
9800 cat >>confdefs.h <<_ACEOF
9801 #define HAVE_GETRUSAGE 1
9809 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
9810 #ifdef HAVE_STRING_H
9811 # include <string.h>
9815 if test "x$ac_cv_have_decl_strsep" = xyes; then :
9816 for ac_func in strsep
9818 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
9819 if test "x$ac_cv_func_strsep" = xyes; then :
9820 cat >>confdefs.h <<_ACEOF
9821 #define HAVE_STRSEP 1
9830 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
9833 if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
9834 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
9837 for ac_func in tcsendbreak
9839 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
9840 if test "x$ac_cv_func_tcsendbreak" = xyes; then :
9841 cat >>confdefs.h <<_ACEOF
9842 #define HAVE_TCSENDBREAK 1
9851 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
9853 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
9859 cat >>confdefs.h <<_ACEOF
9860 #define HAVE_DECL_H_ERRNO $ac_have_decl
9864 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
9865 #include <sys/types.h>
9866 #include <sys/socket.h>
9869 if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
9875 cat >>confdefs.h <<_ACEOF
9876 #define HAVE_DECL_SHUT_RD $ac_have_decl
9880 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
9881 #include <sys/types.h>
9882 #ifdef HAVE_SYS_STAT_H
9883 # include <sys/stat.h>
9890 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
9896 cat >>confdefs.h <<_ACEOF
9897 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
9901 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
9902 #include <sys/types.h>
9903 #include <sys/uio.h>
9907 if test "x$ac_cv_have_decl_writev" = xyes; then :
9913 cat >>confdefs.h <<_ACEOF
9914 #define HAVE_DECL_WRITEV $ac_have_decl
9918 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
9919 #include <sys/param.h>
9922 if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
9933 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
9937 if test "x$ac_cv_have_decl_offsetof" = xyes; then :
9943 cat >>confdefs.h <<_ACEOF
9944 #define HAVE_DECL_OFFSETOF $ac_have_decl
9948 for ac_func in setresuid
9950 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
9951 if test "x$ac_cv_func_setresuid" = xyes; then :
9952 cat >>confdefs.h <<_ACEOF
9953 #define HAVE_SETRESUID 1
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
9957 $as_echo_n "checking if setresuid seems to work... " >&6; }
9958 if test "$cross_compiling" = yes; then :
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9960 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9984 if ac_fn_c_try_run "$LINENO"; then :
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9986 $as_echo "yes" >&6; }
9989 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9992 $as_echo "not implemented" >&6; }
9994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9995 conftest.$ac_objext conftest.beam conftest.$ac_ext
10003 for ac_func in setresgid
10005 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
10006 if test "x$ac_cv_func_setresgid" = xyes; then :
10007 cat >>confdefs.h <<_ACEOF
10008 #define HAVE_SETRESGID 1
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
10012 $as_echo_n "checking if setresgid seems to work... " >&6; }
10013 if test "$cross_compiling" = yes; then :
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
10015 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10021 #include <stdlib.h>
10039 if ac_fn_c_try_run "$LINENO"; then :
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10041 $as_echo "yes" >&6; }
10044 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
10047 $as_echo "not implemented" >&6; }
10049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10050 conftest.$ac_objext conftest.beam conftest.$ac_ext
10058 for ac_func in gettimeofday time
10060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10061 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10062 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10063 cat >>confdefs.h <<_ACEOF
10064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10070 for ac_func in endutent getutent getutid getutline pututline setutent
10072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10075 cat >>confdefs.h <<_ACEOF
10076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10082 for ac_func in utmpname
10084 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
10085 if test "x$ac_cv_func_utmpname" = xyes; then :
10086 cat >>confdefs.h <<_ACEOF
10087 #define HAVE_UTMPNAME 1
10093 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
10095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10097 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10098 cat >>confdefs.h <<_ACEOF
10099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10105 for ac_func in setutxdb setutxent utmpxname
10107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10108 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10109 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10110 cat >>confdefs.h <<_ACEOF
10111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10117 for ac_func in getlastlogxbyname
10119 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
10120 if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
10121 cat >>confdefs.h <<_ACEOF
10122 #define HAVE_GETLASTLOGXBYNAME 1
10129 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
10130 if test "x$ac_cv_func_daemon" = xyes; then :
10132 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
10136 $as_echo_n "checking for daemon in -lbsd... " >&6; }
10137 if ${ac_cv_lib_bsd_daemon+:} false; then :
10138 $as_echo_n "(cached) " >&6
10140 ac_check_lib_save_LIBS=$LIBS
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10145 /* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
10160 if ac_fn_c_try_link "$LINENO"; then :
10161 ac_cv_lib_bsd_daemon=yes
10163 ac_cv_lib_bsd_daemon=no
10165 rm -f core conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
10170 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
10171 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
10172 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
10180 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10181 if test "x$ac_cv_func_getpagesize" = xyes; then :
10183 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
10187 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
10188 if ${ac_cv_lib_ucb_getpagesize+:} false; then :
10189 $as_echo_n "(cached) " >&6
10191 ac_check_lib_save_LIBS=$LIBS
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10202 char getpagesize ();
10206 return getpagesize ();
10211 if ac_fn_c_try_link "$LINENO"; then :
10212 ac_cv_lib_ucb_getpagesize=yes
10214 ac_cv_lib_ucb_getpagesize=no
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_lib_save_LIBS
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
10221 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
10222 if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
10223 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
10231 # Check for broken snprintf
10232 if test "x$ac_cv_func_snprintf" = "xyes" ; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
10234 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
10235 if test "$cross_compiling" = yes; then :
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
10237 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10248 snprintf(b,5,"123456789");
10255 if ac_fn_c_try_run "$LINENO"; then :
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10257 $as_echo "yes" >&6; }
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 $as_echo "no" >&6; }
10263 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
10266 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
10269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10270 conftest.$ac_objext conftest.beam conftest.$ac_ext
10275 # If we don't have a working asprintf, then we strongly depend on vsnprintf
10276 # returning the right thing on overflow: the number of characters it tried to
10277 # create (as per SUSv3)
10278 if test "x$ac_cv_func_asprintf" != "xyes" && \
10279 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
10281 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
10282 if test "$cross_compiling" = yes; then :
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
10284 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h. */
10290 #include <sys/types.h>
10292 #include <stdarg.h>
10294 int x_snprintf(char *str,size_t count,const char *fmt,...)
10296 size_t ret; va_list ap;
10297 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
10306 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
10312 if ac_fn_c_try_run "$LINENO"; then :
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10314 $as_echo "yes" >&6; }
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10320 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
10323 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
10326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10327 conftest.$ac_objext conftest.beam conftest.$ac_ext
10332 # On systems where [v]snprintf is broken, but is declared in stdio,
10333 # check that the fmt argument is const char * or just char *.
10334 # This is only useful for when BROKEN_SNPRINTF
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
10336 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10341 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
10353 if ac_fn_c_try_compile "$LINENO"; then :
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10355 $as_echo "yes" >&6; }
10357 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10362 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
10365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10367 # Check for missing getpeereid (or equiv) support
10369 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
10371 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10375 #include <sys/types.h>
10376 #include <sys/socket.h>
10380 int i = SO_PEERCRED;
10385 if ac_fn_c_try_compile "$LINENO"; then :
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10387 $as_echo "yes" >&6; }
10389 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
10403 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
10404 if test "$cross_compiling" = yes; then :
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407 $as_echo "yes" >&6; }
10408 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10416 #include <stdlib.h>
10422 char template[]="conftest.mkstemp-test";
10423 if (mkstemp(template) == -1)
10432 if ac_fn_c_try_run "$LINENO"; then :
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435 $as_echo "no" >&6; }
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10440 $as_echo "yes" >&6; }
10442 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
10446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10447 conftest.$ac_objext conftest.beam conftest.$ac_ext
10452 if test ! -z "$check_for_openpty_ctty_bug"; then
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
10454 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
10455 if test "$cross_compiling" = yes; then :
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10458 $as_echo "cross-compiling, assuming yes" >&6; }
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10466 #include <sys/fcntl.h>
10467 #include <sys/types.h>
10468 #include <sys/wait.h>
10475 int fd, ptyfd, ttyfd, status;
10478 if (pid < 0) { /* failed */
10480 } else if (pid > 0) { /* parent */
10481 waitpid(pid, &status, 0);
10482 if (WIFEXITED(status))
10483 exit(WEXITSTATUS(status));
10486 } else { /* child */
10487 close(0); close(1); close(2);
10489 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
10490 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
10492 exit(3); /* Acquired ctty: broken */
10494 exit(0); /* Did not acquire ctty: OK */
10501 if ac_fn_c_try_run "$LINENO"; then :
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10504 $as_echo "yes" >&6; }
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10510 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
10514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10515 conftest.$ac_objext conftest.beam conftest.$ac_ext
10520 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10521 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10523 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10524 if test "$cross_compiling" = yes; then :
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10527 $as_echo "cross-compiling, assuming yes" >&6; }
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10535 #include <sys/socket.h>
10538 #include <netinet/in.h>
10540 #define TEST_PORT "2222"
10547 struct addrinfo *gai_ai, *ai, hints;
10548 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10550 memset(&hints, 0, sizeof(hints));
10551 hints.ai_family = PF_UNSPEC;
10552 hints.ai_socktype = SOCK_STREAM;
10553 hints.ai_flags = AI_PASSIVE;
10555 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10557 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10561 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10562 if (ai->ai_family != AF_INET6)
10565 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10566 sizeof(ntop), strport, sizeof(strport),
10567 NI_NUMERICHOST|NI_NUMERICSERV);
10570 if (err == EAI_SYSTEM)
10571 perror("getnameinfo EAI_SYSTEM");
10573 fprintf(stderr, "getnameinfo failed: %s\n",
10574 gai_strerror(err));
10578 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
10581 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
10582 if (errno == EBADF)
10592 if ac_fn_c_try_run "$LINENO"; then :
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595 $as_echo "yes" >&6; }
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 $as_echo "no" >&6; }
10601 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10606 conftest.$ac_objext conftest.beam conftest.$ac_ext
10611 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10612 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10614 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10615 if test "$cross_compiling" = yes; then :
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
10618 $as_echo "cross-compiling, assuming no" >&6; }
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10626 #include <sys/socket.h>
10629 #include <netinet/in.h>
10631 #define TEST_PORT "2222"
10638 struct addrinfo *gai_ai, *ai, hints;
10639 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10641 memset(&hints, 0, sizeof(hints));
10642 hints.ai_family = PF_UNSPEC;
10643 hints.ai_socktype = SOCK_STREAM;
10644 hints.ai_flags = AI_PASSIVE;
10646 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10648 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10652 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10653 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
10656 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10657 sizeof(ntop), strport, sizeof(strport),
10658 NI_NUMERICHOST|NI_NUMERICSERV);
10660 if (ai->ai_family == AF_INET && err != 0) {
10661 perror("getnameinfo");
10671 if ac_fn_c_try_run "$LINENO"; then :
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10674 $as_echo "yes" >&6; }
10676 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10683 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10688 conftest.$ac_objext conftest.beam conftest.$ac_ext
10693 if test "x$check_for_conflicting_getspnam" = "x1"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
10695 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698 #include <shadow.h>
10707 if ac_fn_c_try_compile "$LINENO"; then :
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10715 $as_echo "yes" >&6; }
10717 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
10722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10726 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10727 if ${ac_cv_func_getpgrp_void+:} false; then :
10728 $as_echo_n "(cached) " >&6
10730 # Use it with a single arg.
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 $ac_includes_default
10742 if ac_fn_c_try_compile "$LINENO"; then :
10743 ac_cv_func_getpgrp_void=no
10745 ac_cv_func_getpgrp_void=yes
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10751 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10752 if test $ac_cv_func_getpgrp_void = yes; then
10754 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10759 # Search for OpenSSL
10760 saved_CPPFLAGS="$CPPFLAGS"
10761 saved_LDFLAGS="$LDFLAGS"
10763 # Check whether --with-ssl-dir was given.
10764 if test "${with_ssl_dir+set}" = set; then :
10765 withval=$with_ssl_dir;
10766 if test "x$withval" != "xno" ; then
10769 ./*|../*) withval="`pwd`/$withval"
10771 if test -d "$withval/lib"; then
10772 if test -n "${need_dash_r}"; then
10773 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10775 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10777 elif test -d "$withval/lib64"; then
10778 if test -n "${need_dash_r}"; then
10779 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
10781 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
10784 if test -n "${need_dash_r}"; then
10785 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10787 LDFLAGS="-L${withval} ${LDFLAGS}"
10790 if test -d "$withval/include"; then
10791 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10793 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10800 LIBS="-lcrypto $LIBS"
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10814 return RAND_add ();
10819 if ac_fn_c_try_link "$LINENO"; then :
10821 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10825 if test -n "${need_dash_r}"; then
10826 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
10828 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
10830 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
10831 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
10832 if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
10835 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10852 return RAND_add ();
10857 if ac_fn_c_try_link "$LINENO"; then :
10858 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10862 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10871 rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10874 # Determine OpenSSL header version
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
10876 $as_echo_n "checking OpenSSL header version... " >&6; }
10877 if test "$cross_compiling" = yes; then :
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10880 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10888 #include <string.h>
10889 #include <openssl/opensslv.h>
10890 #define DATA "conftest.sslincver"
10899 fd = fopen(DATA,"w");
10903 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
10912 if ac_fn_c_try_run "$LINENO"; then :
10914 ssl_header_ver=`cat conftest.sslincver`
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
10916 $as_echo "$ssl_header_ver" >&6; }
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10921 $as_echo "not found" >&6; }
10922 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
10925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10926 conftest.$ac_objext conftest.beam conftest.$ac_ext
10930 # Determine OpenSSL library version
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
10932 $as_echo_n "checking OpenSSL library version... " >&6; }
10933 if test "$cross_compiling" = yes; then :
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10936 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10944 #include <string.h>
10945 #include <openssl/opensslv.h>
10946 #include <openssl/crypto.h>
10947 #define DATA "conftest.ssllibver"
10956 fd = fopen(DATA,"w");
10960 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
10969 if ac_fn_c_try_run "$LINENO"; then :
10971 ssl_library_ver=`cat conftest.ssllibver`
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
10973 $as_echo "$ssl_library_ver" >&6; }
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10978 $as_echo "not found" >&6; }
10979 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
10982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10983 conftest.$ac_objext conftest.beam conftest.$ac_ext
10988 # Check whether --with-openssl-header-check was given.
10989 if test "${with_openssl_header_check+set}" = set; then :
10990 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
10991 openssl_check_nonfatal=1
10998 # Sanity check OpenSSL headers
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
11000 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
11001 if test "$cross_compiling" = yes; then :
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11004 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11011 #include <string.h>
11012 #include <openssl/opensslv.h>
11018 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
11024 if ac_fn_c_try_run "$LINENO"; then :
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027 $as_echo "yes" >&6; }
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032 $as_echo "no" >&6; }
11033 if test "x$openssl_check_nonfatal" = "x"; then
11034 as_fn_error $? "Your OpenSSL headers do not match your
11035 library. Check config.log for details.
11036 If you are sure your installation is consistent, you can disable the check
11037 by running \"./configure --without-openssl-header-check\".
11038 Also see contrib/findssl.sh for help identifying header/library mismatches.
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
11042 library. Check config.log for details.
11043 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
11044 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
11045 library. Check config.log for details.
11046 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
11050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11051 conftest.$ac_objext conftest.beam conftest.$ac_ext
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
11056 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11059 #include <openssl/evp.h>
11063 SSLeay_add_all_algorithms();
11068 if ac_fn_c_try_link "$LINENO"; then :
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11071 $as_echo "yes" >&6; }
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
11080 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11083 #include <openssl/evp.h>
11087 SSLeay_add_all_algorithms();
11092 if ac_fn_c_try_link "$LINENO"; then :
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11095 $as_echo "yes" >&6; }
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100 $as_echo "no" >&6; }
11105 rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11110 rm -f core conftest.err conftest.$ac_objext \
11111 conftest$ac_exeext conftest.$ac_ext
11113 for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method HMAC_CTX_init
11115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11116 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11117 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11118 cat >>confdefs.h <<_ACEOF
11119 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11127 # Check whether --with-ssl-engine was given.
11128 if test "${with_ssl_engine+set}" = set; then :
11129 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
11131 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11135 #include <openssl/engine.h>
11141 ENGINE_load_builtin_engines();
11142 ENGINE_register_all_complete();
11148 if ac_fn_c_try_compile "$LINENO"; then :
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150 $as_echo "yes" >&6; }
11152 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
11156 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
11159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 # Check for OpenSSL without EVP_aes_{192,256}_cbc
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
11167 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11171 #include <string.h>
11172 #include <openssl/evp.h>
11178 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
11184 if ac_fn_c_try_link "$LINENO"; then :
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192 $as_echo "yes" >&6; }
11194 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
11203 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11207 #include <string.h>
11208 #include <openssl/evp.h>
11214 if(EVP_DigestUpdate(NULL, NULL,0))
11221 if ac_fn_c_try_link "$LINENO"; then :
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224 $as_echo "yes" >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11231 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
11236 rm -f core conftest.err conftest.$ac_objext \
11237 conftest$ac_exeext conftest.$ac_ext
11239 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
11240 # because the system crypt() is more featureful.
11241 if test "x$check_for_libcrypt_before" = "x1"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11243 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
11244 if ${ac_cv_lib_crypt_crypt+:} false; then :
11245 $as_echo_n "(cached) " >&6
11247 ac_check_lib_save_LIBS=$LIBS
11248 LIBS="-lcrypt $LIBS"
11249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h. */
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11267 if ac_fn_c_try_link "$LINENO"; then :
11268 ac_cv_lib_crypt_crypt=yes
11270 ac_cv_lib_crypt_crypt=no
11272 rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_lib_save_LIBS
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11277 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11278 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11279 cat >>confdefs.h <<_ACEOF
11280 #define HAVE_LIBCRYPT 1
11283 LIBS="-lcrypt $LIBS"
11289 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
11290 # version in OpenSSL.
11291 if test "x$check_for_libcrypt_later" = "x1"; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11293 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
11294 if ${ac_cv_lib_crypt_crypt+:} false; then :
11295 $as_echo_n "(cached) " >&6
11297 ac_check_lib_save_LIBS=$LIBS
11298 LIBS="-lcrypt $LIBS"
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11302 /* Override any GCC internal prototype to avoid an error.
11303 Use char because int might match the return type of a GCC
11304 builtin and then its argument prototype would still apply. */
11317 if ac_fn_c_try_link "$LINENO"; then :
11318 ac_cv_lib_crypt_crypt=yes
11320 ac_cv_lib_crypt_crypt=no
11322 rm -f core conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext conftest.$ac_ext
11324 LIBS=$ac_check_lib_save_LIBS
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11327 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11328 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11329 LIBS="$LIBS -lcrypt"
11334 # Search for SHA256 support in libc and/or OpenSSL
11335 for ac_func in SHA256_Update EVP_sha256
11337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11339 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11340 cat >>confdefs.h <<_ACEOF
11341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11343 TEST_SSH_SHA256=yes
11351 # Check complete ECC support in OpenSSL
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
11353 $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11357 #include <openssl/ec.h>
11358 #include <openssl/ecdh.h>
11359 #include <openssl/ecdsa.h>
11360 #include <openssl/evp.h>
11361 #include <openssl/objects.h>
11362 #include <openssl/opensslv.h>
11363 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
11364 # error "OpenSSL < 0.9.8g has unreliable ECC code"
11371 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
11372 const EVP_MD *m = EVP_sha512(); /* We need this too */
11378 if ac_fn_c_try_link "$LINENO"; then :
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11381 $as_echo "yes" >&6; }
11383 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11393 COMMENT_OUT_ECC="#no ecc#"
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
11404 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
11405 if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
11406 $as_echo_n "(cached) " >&6
11408 ac_check_lib_save_LIBS=$LIBS
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11419 char ia_openinfo ();
11423 return ia_openinfo ();
11428 if ac_fn_c_try_link "$LINENO"; then :
11429 ac_cv_lib_iaf_ia_openinfo=yes
11431 ac_cv_lib_iaf_ia_openinfo=no
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
11438 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
11439 if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
11442 for ac_func in set_id
11444 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
11445 if test "x$ac_cv_func_set_id" = xyes; then :
11446 cat >>confdefs.h <<_ACEOF
11447 #define HAVE_SET_ID 1
11449 SSHDLIBS="$SSHDLIBS -liaf"
11451 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
11462 ### Configure cryptographic random number support
11464 # Check wheter OpenSSL seeds itself
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
11466 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
11467 if test "$cross_compiling" = yes; then :
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11470 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11471 # This is safe, since we will fatal() at runtime if
11472 # OpenSSL is not seeded correctly.
11473 OPENSSL_SEEDS_ITSELF=yes
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11480 #include <string.h>
11481 #include <openssl/rand.h>
11487 exit(RAND_status() == 1 ? 0 : 1);
11493 if ac_fn_c_try_run "$LINENO"; then :
11495 OPENSSL_SEEDS_ITSELF=yes
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11497 $as_echo "yes" >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11506 conftest.$ac_objext conftest.beam conftest.$ac_ext
11512 # Check whether --with-prngd-port was given.
11513 if test "${with_prngd_port+set}" = set; then :
11514 withval=$with_prngd_port;
11522 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
11525 if test ! -z "$withval" ; then
11526 PRNGD_PORT="$withval"
11528 cat >>confdefs.h <<_ACEOF
11529 #define PRNGD_PORT $PRNGD_PORT
11538 # PRNGD Unix domain socket
11540 # Check whether --with-prngd-socket was given.
11541 if test "${with_prngd_socket+set}" = set; then :
11542 withval=$with_prngd_socket;
11545 withval="/var/run/egd-pool"
11553 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
11557 if test ! -z "$withval" ; then
11558 if test ! -z "$PRNGD_PORT" ; then
11559 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
11561 if test ! -r "$withval" ; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
11563 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
11565 PRNGD_SOCKET="$withval"
11567 cat >>confdefs.h <<_ACEOF
11568 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11575 # Check for existing socket only if we don't have a random device already
11576 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
11578 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
11579 # Insert other locations here
11580 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
11581 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
11582 PRNGD_SOCKET="$sock"
11583 cat >>confdefs.h <<_ACEOF
11584 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11590 if test ! -z "$PRNGD_SOCKET" ; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
11592 $as_echo "$PRNGD_SOCKET" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11595 $as_echo "not found" >&6; }
11603 # Which randomness source do we use?
11604 if test ! -z "$PRNGD_PORT" ; then
11605 RAND_MSG="PRNGd port $PRNGD_PORT"
11606 elif test ! -z "$PRNGD_SOCKET" ; then
11607 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
11608 elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
11610 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
11612 RAND_MSG="OpenSSL internal ONLY"
11614 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
11617 # Check for PAM libs
11620 # Check whether --with-pam was given.
11621 if test "${with_pam+set}" = set; then :
11623 if test "x$withval" != "xno" ; then
11624 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
11625 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
11626 as_fn_error $? "PAM headers not found" "$LINENO" 5
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11631 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11632 if ${ac_cv_lib_dl_dlopen+:} false; then :
11633 $as_echo_n "(cached) " >&6
11635 ac_check_lib_save_LIBS=$LIBS
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 ac_cv_lib_dl_dlopen=yes
11658 ac_cv_lib_dl_dlopen=no
11660 rm -f core conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662 LIBS=$ac_check_lib_save_LIBS
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11665 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11666 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11667 cat >>confdefs.h <<_ACEOF
11668 #define HAVE_LIBDL 1
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
11676 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
11677 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
11678 $as_echo_n "(cached) " >&6
11680 ac_check_lib_save_LIBS=$LIBS
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11685 /* Override any GCC internal prototype to avoid an error.
11686 Use char because int might match the return type of a GCC
11687 builtin and then its argument prototype would still apply. */
11691 char pam_set_item ();
11695 return pam_set_item ();
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 ac_cv_lib_pam_pam_set_item=yes
11703 ac_cv_lib_pam_pam_set_item=no
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LIBS=$ac_check_lib_save_LIBS
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
11710 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
11711 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
11712 cat >>confdefs.h <<_ACEOF
11713 #define HAVE_LIBPAM 1
11719 as_fn_error $? "*** libpam missing" "$LINENO" 5
11722 for ac_func in pam_getenvlist
11724 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
11725 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
11726 cat >>confdefs.h <<_ACEOF
11727 #define HAVE_PAM_GETENVLIST 1
11733 for ac_func in pam_putenv
11735 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
11736 if test "x$ac_cv_func_pam_putenv" = xyes; then :
11737 cat >>confdefs.h <<_ACEOF
11738 #define HAVE_PAM_PUTENV 1
11748 SSHDLIBS="$SSHDLIBS -lpam"
11750 $as_echo "#define USE_PAM 1" >>confdefs.h
11753 if test $ac_cv_lib_dl_dlopen = yes; then
11756 # libdl already in LIBS
11759 SSHDLIBS="$SSHDLIBS -ldl"
11769 # Check for older PAM
11770 if test "x$PAM_MSG" = "xyes" ; then
11771 # Check PAM strerror arguments (old PAM)
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
11773 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11777 #include <stdlib.h>
11778 #if defined(HAVE_SECURITY_PAM_APPL_H)
11779 #include <security/pam_appl.h>
11780 #elif defined (HAVE_PAM_PAM_APPL_H)
11781 #include <pam/pam_appl.h>
11788 (void)pam_strerror((pam_handle_t *)NULL, -1);
11794 if ac_fn_c_try_compile "$LINENO"; then :
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11800 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11803 $as_echo "yes" >&6; }
11804 PAM_MSG="yes (old library)"
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 SSH_PRIVSEP_USER=sshd
11813 # Check whether --with-privsep-user was given.
11814 if test "${with_privsep_user+set}" = set; then :
11815 withval=$with_privsep_user;
11816 if test -n "$withval" && test "x$withval" != "xno" && \
11817 test "x${withval}" != "xyes"; then
11818 SSH_PRIVSEP_USER=$withval
11825 cat >>confdefs.h <<_ACEOF
11826 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
11831 # Decide which sandbox style to use
11834 # Check whether --with-sandbox was given.
11835 if test "${with_sandbox+set}" = set; then :
11836 withval=$with_sandbox;
11837 if test "x$withval" = "xyes" ; then
11840 sandbox_arg="$withval"
11847 # Some platforms (seems to be the ones that have a kernel poll(2)-type
11848 # function with which they implement select(2)) use an extra file descriptor
11849 # when calling select(2), which means we can't use the rlimit sandbox.
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
11851 $as_echo_n "checking if select works with descriptor rlimit... " >&6; }
11852 if test "$cross_compiling" = yes; then :
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11854 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11860 #include <sys/types.h>
11861 #ifdef HAVE_SYS_TIME_H
11862 # include <sys/time.h>
11864 #include <sys/resource.h>
11865 #ifdef HAVE_SYS_SELECT_H
11866 # include <sys/select.h>
11870 #include <stdlib.h>
11876 struct rlimit rl_zero;
11880 fd = open("/dev/null", O_RDONLY);
11883 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
11884 setrlimit(RLIMIT_FSIZE, &rl_zero);
11885 setrlimit(RLIMIT_NOFILE, &rl_zero);
11886 r = select(fd+1, &fds, NULL, NULL, NULL);
11887 exit (r == -1 ? 1 : 0);
11893 if ac_fn_c_try_run "$LINENO"; then :
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11895 $as_echo "yes" >&6; }
11896 select_works_with_rlimit=yes
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899 $as_echo "no" >&6; }
11900 select_works_with_rlimit=no
11902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11903 conftest.$ac_objext conftest.beam conftest.$ac_ext
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
11908 $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
11909 if test "$cross_compiling" = yes; then :
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11911 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11917 #include <sys/types.h>
11918 #include <sys/resource.h>
11919 #include <stdlib.h>
11925 struct rlimit rl_zero;
11927 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
11928 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
11934 if ac_fn_c_try_run "$LINENO"; then :
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936 $as_echo "yes" >&6; }
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11941 $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
11944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11945 conftest.$ac_objext conftest.beam conftest.$ac_ext
11949 if test "x$sandbox_arg" = "xsystrace" || \
11950 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
11951 test "x$have_systr_policy_kill" != "x1" && \
11952 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
11953 SANDBOX_STYLE="systrace"
11955 $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
11957 elif test "x$sandbox_arg" = "xdarwin" || \
11958 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
11959 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
11960 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
11961 "x$ac_cv_header_sandbox_h" != "xyes" && \
11962 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
11963 SANDBOX_STYLE="darwin"
11965 $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
11967 elif test "x$sandbox_arg" = "xseccomp_filter" || \
11968 ( test -z "$sandbox_arg" && \
11969 test "x$have_seccomp_filter" = "x1" && \
11970 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
11971 test "x$have_seccomp_audit_arch" = "x1" && \
11972 test "x$have_linux_no_new_privs" = "x1" && \
11973 test "x$ac_cv_func_prctl" = "xyes" ) ; then
11974 test "x$have_seccomp_audit_arch" != "x1" && \
11975 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
11976 test "x$have_linux_no_new_privs" != "x1" && \
11977 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
11978 test "x$have_seccomp_filter" != "x1" && \
11979 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
11980 test "x$ac_cv_func_prctl" != "xyes" && \
11981 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
11982 SANDBOX_STYLE="seccomp_filter"
11984 $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
11986 elif test "x$sandbox_arg" = "xrlimit" || \
11987 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
11988 test "x$select_works_with_rlimit" == "xyes" ) ; then
11989 test "x$ac_cv_func_setrlimit" != "xyes" && \
11990 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
11991 test "x$select_works_with_rlimit" != "xyes" && \
11992 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
11993 SANDBOX_STYLE="rlimit"
11995 $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
11997 elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
11998 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
11999 SANDBOX_STYLE="none"
12001 $as_echo "#define SANDBOX_NULL 1" >>confdefs.h
12004 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
12007 # Cheap hack to ensure NEWS-OS libraries are arranged right.
12008 if test ! -z "$SONY" ; then
12009 LIBS="$LIBS -liberty";
12012 # Check for long long datatypes
12013 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12014 if test "x$ac_cv_type_long_long" = xyes; then :
12016 cat >>confdefs.h <<_ACEOF
12017 #define HAVE_LONG_LONG 1
12022 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
12023 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
12025 cat >>confdefs.h <<_ACEOF
12026 #define HAVE_UNSIGNED_LONG_LONG 1
12031 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
12032 if test "x$ac_cv_type_long_double" = xyes; then :
12034 cat >>confdefs.h <<_ACEOF
12035 #define HAVE_LONG_DOUBLE 1
12042 # Check datatype sizes
12043 # The cast to long int works around a bug in the HP C Compiler
12044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12046 # This bug is HP SR number 8606223364.
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
12048 $as_echo_n "checking size of short int... " >&6; }
12049 if ${ac_cv_sizeof_short_int+:} false; then :
12050 $as_echo_n "(cached) " >&6
12052 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
12055 if test "$ac_cv_type_short_int" = yes; then
12056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12058 as_fn_error 77 "cannot compute sizeof (short int)
12059 See \`config.log' for more details" "$LINENO" 5; }
12061 ac_cv_sizeof_short_int=0
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
12067 $as_echo "$ac_cv_sizeof_short_int" >&6; }
12071 cat >>confdefs.h <<_ACEOF
12072 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12076 # The cast to long int works around a bug in the HP C Compiler
12077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12079 # This bug is HP SR number 8606223364.
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12081 $as_echo_n "checking size of int... " >&6; }
12082 if ${ac_cv_sizeof_int+:} false; then :
12083 $as_echo_n "(cached) " >&6
12085 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12088 if test "$ac_cv_type_int" = yes; then
12089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12091 as_fn_error 77 "cannot compute sizeof (int)
12092 See \`config.log' for more details" "$LINENO" 5; }
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12100 $as_echo "$ac_cv_sizeof_int" >&6; }
12104 cat >>confdefs.h <<_ACEOF
12105 #define SIZEOF_INT $ac_cv_sizeof_int
12109 # The cast to long int works around a bug in the HP C Compiler
12110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12112 # This bug is HP SR number 8606223364.
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
12114 $as_echo_n "checking size of long int... " >&6; }
12115 if ${ac_cv_sizeof_long_int+:} false; then :
12116 $as_echo_n "(cached) " >&6
12118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
12121 if test "$ac_cv_type_long_int" = yes; then
12122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12124 as_fn_error 77 "cannot compute sizeof (long int)
12125 See \`config.log' for more details" "$LINENO" 5; }
12127 ac_cv_sizeof_long_int=0
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
12133 $as_echo "$ac_cv_sizeof_long_int" >&6; }
12137 cat >>confdefs.h <<_ACEOF
12138 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
12142 # The cast to long int works around a bug in the HP C Compiler
12143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12145 # This bug is HP SR number 8606223364.
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
12147 $as_echo_n "checking size of long long int... " >&6; }
12148 if ${ac_cv_sizeof_long_long_int+:} false; then :
12149 $as_echo_n "(cached) " >&6
12151 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
12154 if test "$ac_cv_type_long_long_int" = yes; then
12155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12157 as_fn_error 77 "cannot compute sizeof (long long int)
12158 See \`config.log' for more details" "$LINENO" 5; }
12160 ac_cv_sizeof_long_long_int=0
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
12166 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
12170 cat >>confdefs.h <<_ACEOF
12171 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
12176 # Sanity check long long for some platforms (AIX)
12177 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
12178 ac_cv_sizeof_long_long_int=0
12181 # compute LLONG_MIN and LLONG_MAX if we don't know them.
12182 if test -z "$have_llong_max"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
12184 $as_echo_n "checking for max value of long long... " >&6; }
12185 if test "$cross_compiling" = yes; then :
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12188 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12196 /* Why is this so damn hard? */
12200 #define __USE_ISOC99
12201 #include <limits.h>
12202 #define DATA "conftest.llminmax"
12203 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
12206 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
12207 * we do this the hard way.
12210 fprint_ll(FILE *f, long long n)
12213 int l[sizeof(long long) * 8];
12216 if (fprintf(f, "-") < 0)
12218 for (i = 0; n != 0; i++) {
12219 l[i] = my_abs(n % 10);
12223 if (fprintf(f, "%d", l[--i]) < 0)
12226 if (fprintf(f, " ") < 0)
12236 long long i, llmin, llmax = 0;
12238 if((f = fopen(DATA,"w")) == NULL)
12241 #if defined(LLONG_MIN) && defined(LLONG_MAX)
12242 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
12246 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
12247 /* This will work on one's complement and two's complement */
12248 for (i = 1; i > llmax; i <<= 1, i++)
12250 llmin = llmax + 1LL; /* wrap */
12254 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
12255 || llmax - 1 > llmax || llmin == llmax || llmin == 0
12256 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
12257 fprintf(f, "unknown unknown\n");
12261 if (fprint_ll(f, llmin) < 0)
12263 if (fprint_ll(f, llmax) < 0)
12273 if ac_fn_c_try_run "$LINENO"; then :
12275 llong_min=`$AWK '{print $1}' conftest.llminmax`
12276 llong_max=`$AWK '{print $2}' conftest.llminmax`
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
12279 $as_echo "$llong_max" >&6; }
12281 cat >>confdefs.h <<_ACEOF
12282 #define LLONG_MAX ${llong_max}LL
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
12286 $as_echo_n "checking for min value of long long... " >&6; }
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
12288 $as_echo "$llong_min" >&6; }
12290 cat >>confdefs.h <<_ACEOF
12291 #define LLONG_MIN ${llong_min}LL
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12298 $as_echo "not found" >&6; }
12301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12302 conftest.$ac_objext conftest.beam conftest.$ac_ext
12308 # More checks for data types
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
12310 $as_echo_n "checking for u_int type... " >&6; }
12311 if ${ac_cv_have_u_int+:} false; then :
12312 $as_echo_n "(cached) " >&6
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #include <sys/types.h>
12326 if ac_fn_c_try_compile "$LINENO"; then :
12327 ac_cv_have_u_int="yes"
12329 ac_cv_have_u_int="no"
12332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
12336 $as_echo "$ac_cv_have_u_int" >&6; }
12337 if test "x$ac_cv_have_u_int" = "xyes" ; then
12339 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
12345 $as_echo_n "checking for intXX_t types... " >&6; }
12346 if ${ac_cv_have_intxx_t+:} false; then :
12347 $as_echo_n "(cached) " >&6
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352 #include <sys/types.h>
12356 int8_t a; int16_t b; int32_t c; a = b = c = 1;
12361 if ac_fn_c_try_compile "$LINENO"; then :
12362 ac_cv_have_intxx_t="yes"
12364 ac_cv_have_intxx_t="no"
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
12371 $as_echo "$ac_cv_have_intxx_t" >&6; }
12372 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
12374 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12379 if (test -z "$have_intxx_t" && \
12380 test "x$ac_cv_header_stdint_h" = "xyes")
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
12383 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12386 #include <stdint.h>
12390 int8_t a; int16_t b; int32_t c; a = b = c = 1;
12395 if ac_fn_c_try_compile "$LINENO"; then :
12397 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12400 $as_echo "yes" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
12411 $as_echo_n "checking for int64_t type... " >&6; }
12412 if ${ac_cv_have_int64_t+:} false; then :
12413 $as_echo_n "(cached) " >&6
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12419 #include <sys/types.h>
12420 #ifdef HAVE_STDINT_H
12421 # include <stdint.h>
12423 #include <sys/socket.h>
12424 #ifdef HAVE_SYS_BITYPES_H
12425 # include <sys/bitypes.h>
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439 ac_cv_have_int64_t="yes"
12441 ac_cv_have_int64_t="no"
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
12448 $as_echo "$ac_cv_have_int64_t" >&6; }
12449 if test "x$ac_cv_have_int64_t" = "xyes" ; then
12451 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
12456 $as_echo_n "checking for u_intXX_t types... " >&6; }
12457 if ${ac_cv_have_u_intxx_t+:} false; then :
12458 $as_echo_n "(cached) " >&6
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463 #include <sys/types.h>
12467 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12472 if ac_fn_c_try_compile "$LINENO"; then :
12473 ac_cv_have_u_intxx_t="yes"
12475 ac_cv_have_u_intxx_t="no"
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
12482 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
12483 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
12485 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12490 if test -z "$have_u_intxx_t" ; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
12492 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #include <sys/socket.h>
12499 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12504 if ac_fn_c_try_compile "$LINENO"; then :
12506 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12509 $as_echo "yes" >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
12520 $as_echo_n "checking for u_int64_t types... " >&6; }
12521 if ${ac_cv_have_u_int64_t+:} false; then :
12522 $as_echo_n "(cached) " >&6
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527 #include <sys/types.h>
12531 u_int64_t a; a = 1;
12536 if ac_fn_c_try_compile "$LINENO"; then :
12537 ac_cv_have_u_int64_t="yes"
12539 ac_cv_have_u_int64_t="no"
12542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
12546 $as_echo "$ac_cv_have_u_int64_t" >&6; }
12547 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
12549 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12554 if test -z "$have_u_int64_t" ; then
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
12556 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 #include <sys/bitypes.h>
12568 if ac_fn_c_try_compile "$LINENO"; then :
12570 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573 $as_echo "yes" >&6; }
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12583 if test -z "$have_u_intxx_t" ; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
12585 $as_echo_n "checking for uintXX_t types... " >&6; }
12586 if ${ac_cv_have_uintxx_t+:} false; then :
12587 $as_echo_n "(cached) " >&6
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12593 #include <sys/types.h>
12608 if ac_fn_c_try_compile "$LINENO"; then :
12609 ac_cv_have_uintxx_t="yes"
12611 ac_cv_have_uintxx_t="no"
12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
12618 $as_echo "$ac_cv_have_uintxx_t" >&6; }
12619 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12621 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12626 if test -z "$have_uintxx_t" ; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
12628 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12631 #include <stdint.h>
12635 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12640 if ac_fn_c_try_compile "$LINENO"; then :
12642 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12645 $as_echo "yes" >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12655 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12656 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12659 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12663 #include <sys/bitypes.h>
12669 int8_t a; int16_t b; int32_t c;
12670 u_int8_t e; u_int16_t f; u_int32_t g;
12671 a = b = c = e = f = g = 1;
12677 if ac_fn_c_try_compile "$LINENO"; then :
12679 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12681 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12684 $as_echo "yes" >&6; }
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
12696 $as_echo_n "checking for u_char... " >&6; }
12697 if ${ac_cv_have_u_char+:} false; then :
12698 $as_echo_n "(cached) " >&6
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703 #include <sys/types.h>
12707 u_char foo; foo = 125;
12712 if ac_fn_c_try_compile "$LINENO"; then :
12713 ac_cv_have_u_char="yes"
12715 ac_cv_have_u_char="no"
12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
12722 $as_echo "$ac_cv_have_u_char" >&6; }
12723 if test "x$ac_cv_have_u_char" = "xyes" ; then
12725 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
12730 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12731 #include <sys/socket.h>
12733 if test "x$ac_cv_type_socklen_t" = xyes; then :
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12738 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12739 if ${curl_cv_socklen_t_equiv+:} false; then :
12740 $as_echo_n "(cached) " >&6
12743 # Systems have either "struct sockaddr *" or
12744 # "void *" as the second argument to getpeername
12745 curl_cv_socklen_t_equiv=
12746 for arg2 in "struct sockaddr" void; do
12747 for t in int size_t unsigned long "unsigned long"; do
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12751 #include <sys/types.h>
12752 #include <sys/socket.h>
12754 int getpeername (int, $arg2 *, $t *);
12761 getpeername(0,0,&len);
12767 if ac_fn_c_try_compile "$LINENO"; then :
12769 curl_cv_socklen_t_equiv="$t"
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 if test "x$curl_cv_socklen_t_equiv" = x; then
12778 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12784 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
12786 cat >>confdefs.h <<_ACEOF
12787 #define socklen_t $curl_cv_socklen_t_equiv
12794 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12796 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
12798 cat >>confdefs.h <<_ACEOF
12799 #define HAVE_SIG_ATOMIC_T 1
12805 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12806 #include <sys/types.h>
12807 #ifdef HAVE_SYS_BITYPES_H
12808 #include <sys/bitypes.h>
12810 #ifdef HAVE_SYS_STATFS_H
12811 #include <sys/statfs.h>
12813 #ifdef HAVE_SYS_STATVFS_H
12814 #include <sys/statvfs.h>
12818 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
12820 cat >>confdefs.h <<_ACEOF
12821 #define HAVE_FSBLKCNT_T 1
12826 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12827 #include <sys/types.h>
12828 #ifdef HAVE_SYS_BITYPES_H
12829 #include <sys/bitypes.h>
12831 #ifdef HAVE_SYS_STATFS_H
12832 #include <sys/statfs.h>
12834 #ifdef HAVE_SYS_STATVFS_H
12835 #include <sys/statvfs.h>
12839 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
12841 cat >>confdefs.h <<_ACEOF
12842 #define HAVE_FSFILCNT_T 1
12849 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12850 #include <netinet/in.h>
12852 if test "x$ac_cv_type_in_addr_t" = xyes; then :
12854 cat >>confdefs.h <<_ACEOF
12855 #define HAVE_IN_ADDR_T 1
12860 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12861 #include <netinet/in.h>
12863 if test "x$ac_cv_type_in_port_t" = xyes; then :
12865 cat >>confdefs.h <<_ACEOF
12866 #define HAVE_IN_PORT_T 1
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12874 $as_echo_n "checking for size_t... " >&6; }
12875 if ${ac_cv_have_size_t+:} false; then :
12876 $as_echo_n "(cached) " >&6
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881 #include <sys/types.h>
12885 size_t foo; foo = 1235;
12890 if ac_fn_c_try_compile "$LINENO"; then :
12891 ac_cv_have_size_t="yes"
12893 ac_cv_have_size_t="no"
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12900 $as_echo "$ac_cv_have_size_t" >&6; }
12901 if test "x$ac_cv_have_size_t" = "xyes" ; then
12903 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12908 $as_echo_n "checking for ssize_t... " >&6; }
12909 if ${ac_cv_have_ssize_t+:} false; then :
12910 $as_echo_n "(cached) " >&6
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915 #include <sys/types.h>
12919 ssize_t foo; foo = 1235;
12924 if ac_fn_c_try_compile "$LINENO"; then :
12925 ac_cv_have_ssize_t="yes"
12927 ac_cv_have_ssize_t="no"
12930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12934 $as_echo "$ac_cv_have_ssize_t" >&6; }
12935 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12937 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12942 $as_echo_n "checking for clock_t... " >&6; }
12943 if ${ac_cv_have_clock_t+:} false; then :
12944 $as_echo_n "(cached) " >&6
12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h. */
12953 clock_t foo; foo = 1235;
12958 if ac_fn_c_try_compile "$LINENO"; then :
12959 ac_cv_have_clock_t="yes"
12961 ac_cv_have_clock_t="no"
12964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12968 $as_echo "$ac_cv_have_clock_t" >&6; }
12969 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12971 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12976 $as_echo_n "checking for sa_family_t... " >&6; }
12977 if ${ac_cv_have_sa_family_t+:} false; then :
12978 $as_echo_n "(cached) " >&6
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12984 #include <sys/types.h>
12985 #include <sys/socket.h>
12990 sa_family_t foo; foo = 1235;
12995 if ac_fn_c_try_compile "$LINENO"; then :
12996 ac_cv_have_sa_family_t="yes"
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13001 #include <sys/types.h>
13002 #include <sys/socket.h>
13003 #include <netinet/in.h>
13008 sa_family_t foo; foo = 1235;
13013 if ac_fn_c_try_compile "$LINENO"; then :
13014 ac_cv_have_sa_family_t="yes"
13016 ac_cv_have_sa_family_t="no"
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
13026 $as_echo "$ac_cv_have_sa_family_t" >&6; }
13027 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
13029 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
13034 $as_echo_n "checking for pid_t... " >&6; }
13035 if ${ac_cv_have_pid_t+:} false; then :
13036 $as_echo_n "(cached) " >&6
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13041 #include <sys/types.h>
13045 pid_t foo; foo = 1235;
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051 ac_cv_have_pid_t="yes"
13053 ac_cv_have_pid_t="no"
13056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
13060 $as_echo "$ac_cv_have_pid_t" >&6; }
13061 if test "x$ac_cv_have_pid_t" = "xyes" ; then
13063 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
13068 $as_echo_n "checking for mode_t... " >&6; }
13069 if ${ac_cv_have_mode_t+:} false; then :
13070 $as_echo_n "(cached) " >&6
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13075 #include <sys/types.h>
13079 mode_t foo; foo = 1235;
13084 if ac_fn_c_try_compile "$LINENO"; then :
13085 ac_cv_have_mode_t="yes"
13087 ac_cv_have_mode_t="no"
13090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
13094 $as_echo "$ac_cv_have_mode_t" >&6; }
13095 if test "x$ac_cv_have_mode_t" = "xyes" ; then
13097 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
13103 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
13104 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
13105 $as_echo_n "(cached) " >&6
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13111 #include <sys/types.h>
13112 #include <sys/socket.h>
13117 struct sockaddr_storage s;
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 ac_cv_have_struct_sockaddr_storage="yes"
13125 ac_cv_have_struct_sockaddr_storage="no"
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
13132 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
13133 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
13135 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
13140 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
13141 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
13142 $as_echo_n "(cached) " >&6
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13148 #include <sys/types.h>
13149 #include <netinet/in.h>
13154 struct sockaddr_in6 s; s.sin6_family = 0;
13159 if ac_fn_c_try_compile "$LINENO"; then :
13160 ac_cv_have_struct_sockaddr_in6="yes"
13162 ac_cv_have_struct_sockaddr_in6="no"
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
13169 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
13170 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
13172 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
13177 $as_echo_n "checking for struct in6_addr... " >&6; }
13178 if ${ac_cv_have_struct_in6_addr+:} false; then :
13179 $as_echo_n "(cached) " >&6
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13185 #include <sys/types.h>
13186 #include <netinet/in.h>
13191 struct in6_addr s; s.s6_addr[0] = 0;
13196 if ac_fn_c_try_compile "$LINENO"; then :
13197 ac_cv_have_struct_in6_addr="yes"
13199 ac_cv_have_struct_in6_addr="no"
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
13206 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
13207 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13209 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
13212 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
13213 #ifdef HAVE_SYS_TYPES_H
13214 #include <sys/types.h>
13216 #include <netinet/in.h>
13219 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13221 cat >>confdefs.h <<_ACEOF
13222 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
13231 $as_echo_n "checking for struct addrinfo... " >&6; }
13232 if ${ac_cv_have_struct_addrinfo+:} false; then :
13233 $as_echo_n "(cached) " >&6
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13239 #include <sys/types.h>
13240 #include <sys/socket.h>
13246 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13251 if ac_fn_c_try_compile "$LINENO"; then :
13252 ac_cv_have_struct_addrinfo="yes"
13254 ac_cv_have_struct_addrinfo="no"
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
13261 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
13262 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13264 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
13269 $as_echo_n "checking for struct timeval... " >&6; }
13270 if ${ac_cv_have_struct_timeval+:} false; then :
13271 $as_echo_n "(cached) " >&6
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13276 #include <sys/time.h>
13280 struct timeval tv; tv.tv_sec = 1;
13285 if ac_fn_c_try_compile "$LINENO"; then :
13286 ac_cv_have_struct_timeval="yes"
13288 ac_cv_have_struct_timeval="no"
13291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
13295 $as_echo "$ac_cv_have_struct_timeval" >&6; }
13296 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13298 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
13300 have_struct_timeval=1
13303 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
13304 if test "x$ac_cv_type_struct_timespec" = xyes; then :
13306 cat >>confdefs.h <<_ACEOF
13307 #define HAVE_STRUCT_TIMESPEC 1
13314 # We need int64_t or else certian parts of the compile will fail.
13315 if test "x$ac_cv_have_int64_t" = "xno" && \
13316 test "x$ac_cv_sizeof_long_int" != "x8" && \
13317 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13318 echo "OpenSSH requires int64_t support. Contact your vendor or install"
13319 echo "an alternative compiler (I.E., GCC) before continuing."
13323 if test "$cross_compiling" = yes; then :
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
13325 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13332 #include <string.h>
13333 #ifdef HAVE_SNPRINTF
13337 char expected_out[50];
13339 #if (SIZEOF_LONG_INT == 8)
13340 long int num = 0x7fffffffffffffff;
13342 long long num = 0x7fffffffffffffffll;
13344 strcpy(expected_out, "9223372036854775807");
13345 snprintf(buf, mazsize, "%lld", num);
13346 if(strcmp(buf, expected_out) != 0)
13351 main() { exit(0); }
13355 if ac_fn_c_try_run "$LINENO"; then :
13358 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
13361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13362 conftest.$ac_objext conftest.beam conftest.$ac_ext
13368 # look for field 'ut_host' in header 'utmp.h'
13369 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13370 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
13372 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
13373 if eval \${$ossh_varname+:} false; then :
13374 $as_echo_n "(cached) " >&6
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13383 $EGREP "ut_host" >/dev/null 2>&1; then :
13384 eval "$ossh_varname=yes"
13386 eval "$ossh_varname=no"
13392 ossh_result=`eval 'echo $'"$ossh_varname"`
13393 if test -n "`echo $ossh_varname`"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13395 $as_echo "$ossh_result" >&6; }
13396 if test "x$ossh_result" = "xyes"; then
13398 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13407 # look for field 'ut_host' in header 'utmpx.h'
13408 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13409 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
13411 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
13412 if eval \${$ossh_varname+:} false; then :
13413 $as_echo_n "(cached) " >&6
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13422 $EGREP "ut_host" >/dev/null 2>&1; then :
13423 eval "$ossh_varname=yes"
13425 eval "$ossh_varname=no"
13431 ossh_result=`eval 'echo $'"$ossh_varname"`
13432 if test -n "`echo $ossh_varname`"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13434 $as_echo "$ossh_result" >&6; }
13435 if test "x$ossh_result" = "xyes"; then
13437 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442 $as_echo "no" >&6; }
13446 # look for field 'syslen' in header 'utmpx.h'
13447 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13448 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
13450 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
13451 if eval \${$ossh_varname+:} false; then :
13452 $as_echo_n "(cached) " >&6
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13461 $EGREP "syslen" >/dev/null 2>&1; then :
13462 eval "$ossh_varname=yes"
13464 eval "$ossh_varname=no"
13470 ossh_result=`eval 'echo $'"$ossh_varname"`
13471 if test -n "`echo $ossh_varname`"; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13473 $as_echo "$ossh_result" >&6; }
13474 if test "x$ossh_result" = "xyes"; then
13476 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13485 # look for field 'ut_pid' in header 'utmp.h'
13486 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13487 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
13489 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
13490 if eval \${$ossh_varname+:} false; then :
13491 $as_echo_n "(cached) " >&6
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13500 $EGREP "ut_pid" >/dev/null 2>&1; then :
13501 eval "$ossh_varname=yes"
13503 eval "$ossh_varname=no"
13509 ossh_result=`eval 'echo $'"$ossh_varname"`
13510 if test -n "`echo $ossh_varname`"; then
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13512 $as_echo "$ossh_result" >&6; }
13513 if test "x$ossh_result" = "xyes"; then
13515 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13524 # look for field 'ut_type' in header 'utmp.h'
13525 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13526 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
13528 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
13529 if eval \${$ossh_varname+:} false; then :
13530 $as_echo_n "(cached) " >&6
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13539 $EGREP "ut_type" >/dev/null 2>&1; then :
13540 eval "$ossh_varname=yes"
13542 eval "$ossh_varname=no"
13548 ossh_result=`eval 'echo $'"$ossh_varname"`
13549 if test -n "`echo $ossh_varname`"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13551 $as_echo "$ossh_result" >&6; }
13552 if test "x$ossh_result" = "xyes"; then
13554 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559 $as_echo "no" >&6; }
13563 # look for field 'ut_type' in header 'utmpx.h'
13564 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13565 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
13567 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
13568 if eval \${$ossh_varname+:} false; then :
13569 $as_echo_n "(cached) " >&6
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13578 $EGREP "ut_type" >/dev/null 2>&1; then :
13579 eval "$ossh_varname=yes"
13581 eval "$ossh_varname=no"
13587 ossh_result=`eval 'echo $'"$ossh_varname"`
13588 if test -n "`echo $ossh_varname`"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13590 $as_echo "$ossh_result" >&6; }
13591 if test "x$ossh_result" = "xyes"; then
13593 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598 $as_echo "no" >&6; }
13602 # look for field 'ut_tv' in header 'utmp.h'
13603 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13604 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
13606 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
13607 if eval \${$ossh_varname+:} false; then :
13608 $as_echo_n "(cached) " >&6
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13617 $EGREP "ut_tv" >/dev/null 2>&1; then :
13618 eval "$ossh_varname=yes"
13620 eval "$ossh_varname=no"
13626 ossh_result=`eval 'echo $'"$ossh_varname"`
13627 if test -n "`echo $ossh_varname`"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13629 $as_echo "$ossh_result" >&6; }
13630 if test "x$ossh_result" = "xyes"; then
13632 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13641 # look for field 'ut_id' in header 'utmp.h'
13642 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13643 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
13645 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
13646 if eval \${$ossh_varname+:} false; then :
13647 $as_echo_n "(cached) " >&6
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13656 $EGREP "ut_id" >/dev/null 2>&1; then :
13657 eval "$ossh_varname=yes"
13659 eval "$ossh_varname=no"
13665 ossh_result=`eval 'echo $'"$ossh_varname"`
13666 if test -n "`echo $ossh_varname`"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13668 $as_echo "$ossh_result" >&6; }
13669 if test "x$ossh_result" = "xyes"; then
13671 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676 $as_echo "no" >&6; }
13680 # look for field 'ut_id' in header 'utmpx.h'
13681 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13682 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
13684 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
13685 if eval \${$ossh_varname+:} false; then :
13686 $as_echo_n "(cached) " >&6
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13695 $EGREP "ut_id" >/dev/null 2>&1; then :
13696 eval "$ossh_varname=yes"
13698 eval "$ossh_varname=no"
13704 ossh_result=`eval 'echo $'"$ossh_varname"`
13705 if test -n "`echo $ossh_varname`"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13707 $as_echo "$ossh_result" >&6; }
13708 if test "x$ossh_result" = "xyes"; then
13710 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715 $as_echo "no" >&6; }
13719 # look for field 'ut_addr' in header 'utmp.h'
13720 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13721 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
13723 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
13724 if eval \${$ossh_varname+:} false; then :
13725 $as_echo_n "(cached) " >&6
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13734 $EGREP "ut_addr" >/dev/null 2>&1; then :
13735 eval "$ossh_varname=yes"
13737 eval "$ossh_varname=no"
13743 ossh_result=`eval 'echo $'"$ossh_varname"`
13744 if test -n "`echo $ossh_varname`"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13746 $as_echo "$ossh_result" >&6; }
13747 if test "x$ossh_result" = "xyes"; then
13749 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13754 $as_echo "no" >&6; }
13758 # look for field 'ut_addr' in header 'utmpx.h'
13759 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13760 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13762 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13763 if eval \${$ossh_varname+:} false; then :
13764 $as_echo_n "(cached) " >&6
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773 $EGREP "ut_addr" >/dev/null 2>&1; then :
13774 eval "$ossh_varname=yes"
13776 eval "$ossh_varname=no"
13782 ossh_result=`eval 'echo $'"$ossh_varname"`
13783 if test -n "`echo $ossh_varname`"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13785 $as_echo "$ossh_result" >&6; }
13786 if test "x$ossh_result" = "xyes"; then
13788 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793 $as_echo "no" >&6; }
13797 # look for field 'ut_addr_v6' in header 'utmp.h'
13798 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13799 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13801 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13802 if eval \${$ossh_varname+:} false; then :
13803 $as_echo_n "(cached) " >&6
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13813 eval "$ossh_varname=yes"
13815 eval "$ossh_varname=no"
13821 ossh_result=`eval 'echo $'"$ossh_varname"`
13822 if test -n "`echo $ossh_varname`"; then
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13824 $as_echo "$ossh_result" >&6; }
13825 if test "x$ossh_result" = "xyes"; then
13827 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13836 # look for field 'ut_addr_v6' in header 'utmpx.h'
13837 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13838 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13840 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13841 if eval \${$ossh_varname+:} false; then :
13842 $as_echo_n "(cached) " >&6
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13851 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13852 eval "$ossh_varname=yes"
13854 eval "$ossh_varname=no"
13860 ossh_result=`eval 'echo $'"$ossh_varname"`
13861 if test -n "`echo $ossh_varname`"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13863 $as_echo "$ossh_result" >&6; }
13864 if test "x$ossh_result" = "xyes"; then
13866 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "no" >&6; }
13875 # look for field 'ut_exit' in header 'utmp.h'
13876 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13877 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13879 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13880 if eval \${$ossh_varname+:} false; then :
13881 $as_echo_n "(cached) " >&6
13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885 /* end confdefs.h. */
13889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13890 $EGREP "ut_exit" >/dev/null 2>&1; then :
13891 eval "$ossh_varname=yes"
13893 eval "$ossh_varname=no"
13899 ossh_result=`eval 'echo $'"$ossh_varname"`
13900 if test -n "`echo $ossh_varname`"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13902 $as_echo "$ossh_result" >&6; }
13903 if test "x$ossh_result" = "xyes"; then
13905 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910 $as_echo "no" >&6; }
13914 # look for field 'ut_time' in header 'utmp.h'
13915 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13916 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13918 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13919 if eval \${$ossh_varname+:} false; then :
13920 $as_echo_n "(cached) " >&6
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13929 $EGREP "ut_time" >/dev/null 2>&1; then :
13930 eval "$ossh_varname=yes"
13932 eval "$ossh_varname=no"
13938 ossh_result=`eval 'echo $'"$ossh_varname"`
13939 if test -n "`echo $ossh_varname`"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13941 $as_echo "$ossh_result" >&6; }
13942 if test "x$ossh_result" = "xyes"; then
13944 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949 $as_echo "no" >&6; }
13953 # look for field 'ut_time' in header 'utmpx.h'
13954 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13955 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13957 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13958 if eval \${$ossh_varname+:} false; then :
13959 $as_echo_n "(cached) " >&6
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13968 $EGREP "ut_time" >/dev/null 2>&1; then :
13969 eval "$ossh_varname=yes"
13971 eval "$ossh_varname=no"
13977 ossh_result=`eval 'echo $'"$ossh_varname"`
13978 if test -n "`echo $ossh_varname`"; then
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13980 $as_echo "$ossh_result" >&6; }
13981 if test "x$ossh_result" = "xyes"; then
13983 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13988 $as_echo "no" >&6; }
13992 # look for field 'ut_tv' in header 'utmpx.h'
13993 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13994 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13996 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13997 if eval \${$ossh_varname+:} false; then :
13998 $as_echo_n "(cached) " >&6
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14007 $EGREP "ut_tv" >/dev/null 2>&1; then :
14008 eval "$ossh_varname=yes"
14010 eval "$ossh_varname=no"
14016 ossh_result=`eval 'echo $'"$ossh_varname"`
14017 if test -n "`echo $ossh_varname`"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14019 $as_echo "$ossh_result" >&6; }
14020 if test "x$ossh_result" = "xyes"; then
14022 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027 $as_echo "no" >&6; }
14031 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
14032 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
14034 cat >>confdefs.h <<_ACEOF
14035 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14041 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
14043 #if HAVE_SYS_TYPES_H
14044 # include <sys/types.h>
14046 #include <netinet/in.h>
14047 #include <arpa/nameser.h>
14048 #include <resolv.h>
14051 if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
14055 $as_echo "#define __res_state state" >>confdefs.h
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
14061 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
14062 if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
14063 $as_echo_n "(cached) " >&6
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14069 #include <sys/types.h>
14070 #include <sys/socket.h>
14075 struct sockaddr_storage s; s.ss_family = 1;
14080 if ac_fn_c_try_compile "$LINENO"; then :
14081 ac_cv_have_ss_family_in_struct_ss="yes"
14083 ac_cv_have_ss_family_in_struct_ss="no"
14085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
14089 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
14090 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
14092 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
14097 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
14098 if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
14099 $as_echo_n "(cached) " >&6
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14105 #include <sys/types.h>
14106 #include <sys/socket.h>
14111 struct sockaddr_storage s; s.__ss_family = 1;
14116 if ac_fn_c_try_compile "$LINENO"; then :
14117 ac_cv_have___ss_family_in_struct_ss="yes"
14119 ac_cv_have___ss_family_in_struct_ss="no"
14122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14126 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
14127 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14129 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
14134 $as_echo_n "checking for pw_class field in struct passwd... " >&6; }
14135 if ${ac_cv_have_pw_class_in_struct_passwd+:} false; then :
14136 $as_echo_n "(cached) " >&6
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14145 struct passwd p; p.pw_class = 0;
14150 if ac_fn_c_try_compile "$LINENO"; then :
14151 ac_cv_have_pw_class_in_struct_passwd="yes"
14153 ac_cv_have_pw_class_in_struct_passwd="no"
14156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14160 $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
14161 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14163 $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
14168 $as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
14169 if ${ac_cv_have_pw_expire_in_struct_passwd+:} false; then :
14170 $as_echo_n "(cached) " >&6
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14179 struct passwd p; p.pw_expire = 0;
14184 if ac_fn_c_try_compile "$LINENO"; then :
14185 ac_cv_have_pw_expire_in_struct_passwd="yes"
14187 ac_cv_have_pw_expire_in_struct_passwd="no"
14190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14194 $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
14195 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14197 $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
14202 $as_echo_n "checking for pw_change field in struct passwd... " >&6; }
14203 if ${ac_cv_have_pw_change_in_struct_passwd+:} false; then :
14204 $as_echo_n "(cached) " >&6
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14213 struct passwd p; p.pw_change = 0;
14218 if ac_fn_c_try_compile "$LINENO"; then :
14219 ac_cv_have_pw_change_in_struct_passwd="yes"
14221 ac_cv_have_pw_change_in_struct_passwd="no"
14224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14228 $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
14229 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14231 $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
14236 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
14237 if ${ac_cv_have_accrights_in_msghdr+:} false; then :
14238 $as_echo_n "(cached) " >&6
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14244 #include <sys/types.h>
14245 #include <sys/socket.h>
14246 #include <sys/uio.h>
14252 #ifdef msg_accrights
14253 #error "msg_accrights is a macro"
14257 m.msg_accrights = 0;
14264 if ac_fn_c_try_compile "$LINENO"; then :
14265 ac_cv_have_accrights_in_msghdr="yes"
14267 ac_cv_have_accrights_in_msghdr="no"
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
14274 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
14275 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14277 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
14282 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14286 #include <sys/param.h>
14287 #include <sys/stat.h>
14288 #ifdef HAVE_SYS_TIME_H
14289 # include <sys/time.h>
14291 #ifdef HAVE_SYS_MOUNT_H
14292 #include <sys/mount.h>
14294 #ifdef HAVE_SYS_STATVFS_H
14295 #include <sys/statvfs.h>
14301 struct statvfs s; s.f_fsid = 0;
14306 if ac_fn_c_try_compile "$LINENO"; then :
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14308 $as_echo "yes" >&6; }
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311 $as_echo "no" >&6; }
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
14314 $as_echo_n "checking if fsid_t has member val... " >&6; }
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14318 #include <sys/types.h>
14319 #include <sys/statvfs.h>
14324 fsid_t t; t.val[0] = 0;
14329 if ac_fn_c_try_compile "$LINENO"; then :
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14331 $as_echo "yes" >&6; }
14333 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
14342 $as_echo_n "checking if f_fsid has member __val... " >&6; }
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14346 #include <sys/types.h>
14347 #include <sys/statvfs.h>
14352 fsid_t t; t.__val[0] = 0;
14357 if ac_fn_c_try_compile "$LINENO"; then :
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14359 $as_echo "yes" >&6; }
14361 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
14373 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
14374 if ${ac_cv_have_control_in_msghdr+:} false; then :
14375 $as_echo_n "(cached) " >&6
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14381 #include <sys/types.h>
14382 #include <sys/socket.h>
14383 #include <sys/uio.h>
14390 #error "msg_control is a macro"
14401 if ac_fn_c_try_compile "$LINENO"; then :
14402 ac_cv_have_control_in_msghdr="yes"
14404 ac_cv_have_control_in_msghdr="no"
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
14411 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
14412 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14414 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
14419 $as_echo_n "checking if libc defines __progname... " >&6; }
14420 if ${ac_cv_libc_defines___progname+:} false; then :
14421 $as_echo_n "(cached) " >&6
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14430 extern char *__progname; printf("%s", __progname);
14435 if ac_fn_c_try_link "$LINENO"; then :
14436 ac_cv_libc_defines___progname="yes"
14438 ac_cv_libc_defines___progname="no"
14441 rm -f core conftest.err conftest.$ac_objext \
14442 conftest$ac_exeext conftest.$ac_ext
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
14446 $as_echo "$ac_cv_libc_defines___progname" >&6; }
14447 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14449 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
14454 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
14455 if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
14456 $as_echo_n "(cached) " >&6
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14465 printf("%s", __FUNCTION__);
14470 if ac_fn_c_try_link "$LINENO"; then :
14471 ac_cv_cc_implements___FUNCTION__="yes"
14473 ac_cv_cc_implements___FUNCTION__="no"
14476 rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
14481 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
14482 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14484 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
14489 $as_echo_n "checking whether $CC implements __func__... " >&6; }
14490 if ${ac_cv_cc_implements___func__+:} false; then :
14491 $as_echo_n "(cached) " >&6
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14500 printf("%s", __func__);
14505 if ac_fn_c_try_link "$LINENO"; then :
14506 ac_cv_cc_implements___func__="yes"
14508 ac_cv_cc_implements___func__="no"
14511 rm -f core conftest.err conftest.$ac_objext \
14512 conftest$ac_exeext conftest.$ac_ext
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
14516 $as_echo "$ac_cv_cc_implements___func__" >&6; }
14517 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14519 $as_echo "#define HAVE___func__ 1" >>confdefs.h
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
14524 $as_echo_n "checking whether va_copy exists... " >&6; }
14525 if ${ac_cv_have_va_copy+:} false; then :
14526 $as_echo_n "(cached) " >&6
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14532 #include <stdarg.h>
14543 if ac_fn_c_try_link "$LINENO"; then :
14544 ac_cv_have_va_copy="yes"
14546 ac_cv_have_va_copy="no"
14549 rm -f core conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext conftest.$ac_ext
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
14554 $as_echo "$ac_cv_have_va_copy" >&6; }
14555 if test "x$ac_cv_have_va_copy" = "xyes" ; then
14557 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
14562 $as_echo_n "checking whether __va_copy exists... " >&6; }
14563 if ${ac_cv_have___va_copy+:} false; then :
14564 $as_echo_n "(cached) " >&6
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14570 #include <stdarg.h>
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 ac_cv_have___va_copy="yes"
14584 ac_cv_have___va_copy="no"
14587 rm -f core conftest.err conftest.$ac_objext \
14588 conftest$ac_exeext conftest.$ac_ext
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
14592 $as_echo "$ac_cv_have___va_copy" >&6; }
14593 if test "x$ac_cv_have___va_copy" = "xyes" ; then
14595 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
14600 $as_echo_n "checking whether getopt has optreset support... " >&6; }
14601 if ${ac_cv_have_getopt_optreset+:} false; then :
14602 $as_echo_n "(cached) " >&6
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14607 #include <getopt.h>
14611 extern int optreset; optreset = 0;
14616 if ac_fn_c_try_link "$LINENO"; then :
14617 ac_cv_have_getopt_optreset="yes"
14619 ac_cv_have_getopt_optreset="no"
14622 rm -f core conftest.err conftest.$ac_objext \
14623 conftest$ac_exeext conftest.$ac_ext
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
14627 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
14628 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14630 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
14635 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
14636 if ${ac_cv_libc_defines_sys_errlist+:} false; then :
14637 $as_echo_n "(cached) " >&6
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14646 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14651 if ac_fn_c_try_link "$LINENO"; then :
14652 ac_cv_libc_defines_sys_errlist="yes"
14654 ac_cv_libc_defines_sys_errlist="no"
14657 rm -f core conftest.err conftest.$ac_objext \
14658 conftest$ac_exeext conftest.$ac_ext
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
14662 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
14663 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14665 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
14671 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
14672 if ${ac_cv_libc_defines_sys_nerr+:} false; then :
14673 $as_echo_n "(cached) " >&6
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14682 extern int sys_nerr; printf("%i", sys_nerr);
14687 if ac_fn_c_try_link "$LINENO"; then :
14688 ac_cv_libc_defines_sys_nerr="yes"
14690 ac_cv_libc_defines_sys_nerr="no"
14693 rm -f core conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
14698 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
14699 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14701 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
14705 # Check libraries needed by DNS fingerprint support
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14707 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14708 if ${ac_cv_search_getrrsetbyname+:} false; then :
14709 $as_echo_n "(cached) " >&6
14711 ac_func_search_save_LIBS=$LIBS
14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14715 /* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14721 char getrrsetbyname ();
14725 return getrrsetbyname ();
14730 for ac_lib in '' resolv; do
14731 if test -z "$ac_lib"; then
14732 ac_res="none required"
14735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14737 if ac_fn_c_try_link "$LINENO"; then :
14738 ac_cv_search_getrrsetbyname=$ac_res
14740 rm -f core conftest.err conftest.$ac_objext \
14742 if ${ac_cv_search_getrrsetbyname+:} false; then :
14746 if ${ac_cv_search_getrrsetbyname+:} false; then :
14749 ac_cv_search_getrrsetbyname=no
14751 rm conftest.$ac_ext
14752 LIBS=$ac_func_search_save_LIBS
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14755 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14756 ac_res=$ac_cv_search_getrrsetbyname
14757 if test "$ac_res" != no; then :
14758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14760 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14764 # Needed by our getrrsetbyname()
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14766 $as_echo_n "checking for library containing res_query... " >&6; }
14767 if ${ac_cv_search_res_query+:} false; then :
14768 $as_echo_n "(cached) " >&6
14770 ac_func_search_save_LIBS=$LIBS
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14774 /* Override any GCC internal prototype to avoid an error.
14775 Use char because int might match the return type of a GCC
14776 builtin and then its argument prototype would still apply. */
14784 return res_query ();
14789 for ac_lib in '' resolv; do
14790 if test -z "$ac_lib"; then
14791 ac_res="none required"
14794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14796 if ac_fn_c_try_link "$LINENO"; then :
14797 ac_cv_search_res_query=$ac_res
14799 rm -f core conftest.err conftest.$ac_objext \
14801 if ${ac_cv_search_res_query+:} false; then :
14805 if ${ac_cv_search_res_query+:} false; then :
14808 ac_cv_search_res_query=no
14810 rm conftest.$ac_ext
14811 LIBS=$ac_func_search_save_LIBS
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14814 $as_echo "$ac_cv_search_res_query" >&6; }
14815 ac_res=$ac_cv_search_res_query
14816 if test "$ac_res" != no; then :
14817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14822 $as_echo_n "checking for library containing dn_expand... " >&6; }
14823 if ${ac_cv_search_dn_expand+:} false; then :
14824 $as_echo_n "(cached) " >&6
14826 ac_func_search_save_LIBS=$LIBS
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14830 /* Override any GCC internal prototype to avoid an error.
14831 Use char because int might match the return type of a GCC
14832 builtin and then its argument prototype would still apply. */
14840 return dn_expand ();
14845 for ac_lib in '' resolv; do
14846 if test -z "$ac_lib"; then
14847 ac_res="none required"
14850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14852 if ac_fn_c_try_link "$LINENO"; then :
14853 ac_cv_search_dn_expand=$ac_res
14855 rm -f core conftest.err conftest.$ac_objext \
14857 if ${ac_cv_search_dn_expand+:} false; then :
14861 if ${ac_cv_search_dn_expand+:} false; then :
14864 ac_cv_search_dn_expand=no
14866 rm conftest.$ac_ext
14867 LIBS=$ac_func_search_save_LIBS
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14870 $as_echo "$ac_cv_search_dn_expand" >&6; }
14871 ac_res=$ac_cv_search_dn_expand
14872 if test "$ac_res" != no; then :
14873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14878 $as_echo_n "checking if res_query will link... " >&6; }
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14882 #include <sys/types.h>
14883 #include <netinet/in.h>
14884 #include <arpa/nameser.h>
14886 #include <resolv.h>
14892 res_query (0, 0, 0, 0, 0);
14898 if ac_fn_c_try_link "$LINENO"; then :
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14900 $as_echo "yes" >&6; }
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14903 $as_echo "no" >&6; }
14905 LIBS="$LIBS -lresolv"
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14907 $as_echo_n "checking for res_query in -lresolv... " >&6; }
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14911 #include <sys/types.h>
14912 #include <netinet/in.h>
14913 #include <arpa/nameser.h>
14915 #include <resolv.h>
14921 res_query (0, 0, 0, 0, 0);
14927 if ac_fn_c_try_link "$LINENO"; then :
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14929 $as_echo "yes" >&6; }
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14933 $as_echo "no" >&6; }
14935 rm -f core conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14939 rm -f core conftest.err conftest.$ac_objext \
14940 conftest$ac_exeext conftest.$ac_ext
14941 for ac_func in _getshort _getlong
14943 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14944 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14945 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14946 cat >>confdefs.h <<_ACEOF
14947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14953 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14954 #include <arpa/nameser.h>
14956 if test "x$ac_cv_have_decl__getshort" = xyes; then :
14962 cat >>confdefs.h <<_ACEOF
14963 #define HAVE_DECL__GETSHORT $ac_have_decl
14965 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14966 #include <arpa/nameser.h>
14968 if test "x$ac_cv_have_decl__getlong" = xyes; then :
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_DECL__GETLONG $ac_have_decl
14978 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14980 if test "x$ac_cv_member_HEADER_ad" = xyes; then :
14982 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14991 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
14996 #if HAVE_SYS_TYPES_H
14997 # include <sys/types.h>
14999 #include <netinet/in.h>
15000 #include <arpa/nameser.h>
15001 #include <resolv.h>
15002 extern struct __res_state _res;
15012 if ac_fn_c_try_link "$LINENO"; then :
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15014 $as_echo "yes" >&6; }
15016 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021 $as_echo "no" >&6; }
15024 rm -f core conftest.err conftest.$ac_objext \
15025 conftest$ac_exeext conftest.$ac_ext
15027 # Check whether user wants SELinux support
15031 # Check whether --with-selinux was given.
15032 if test "${with_selinux+set}" = set; then :
15033 withval=$with_selinux; if test "x$withval" != "xno" ; then
15036 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
15039 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
15040 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
15043 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
15048 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
15049 if ${ac_cv_lib_selinux_setexeccon+:} false; then :
15050 $as_echo_n "(cached) " >&6
15052 ac_check_lib_save_LIBS=$LIBS
15053 LIBS="-lselinux $LIBS"
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15057 /* Override any GCC internal prototype to avoid an error.
15058 Use char because int might match the return type of a GCC
15059 builtin and then its argument prototype would still apply. */
15063 char setexeccon ();
15067 return setexeccon ();
15072 if ac_fn_c_try_link "$LINENO"; then :
15073 ac_cv_lib_selinux_setexeccon=yes
15075 ac_cv_lib_selinux_setexeccon=no
15077 rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_lib_save_LIBS
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
15082 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
15083 if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
15084 LIBSELINUX="-lselinux"
15085 LIBS="$LIBS -lselinux"
15088 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
15091 SSHLIBS="$SSHLIBS $LIBSELINUX"
15092 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
15093 for ac_func in getseuserbyname get_default_context_with_level
15095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15097 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15098 cat >>confdefs.h <<_ACEOF
15099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15113 # Check whether user wants Kerberos 5 support
15116 # Check whether --with-kerberos5 was given.
15117 if test "${with_kerberos5+set}" = set; then :
15118 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
15119 if test "x$withval" = "xyes" ; then
15120 KRB5ROOT="/usr/local"
15122 KRB5ROOT=${withval}
15126 $as_echo "#define KRB5 1" >>confdefs.h
15130 # Extract the first word of "krb5-config", so it can be a program name with args.
15131 set dummy krb5-config; ac_word=$2
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15133 $as_echo_n "checking for $ac_word... " >&6; }
15134 if ${ac_cv_path_KRB5CONF+:} false; then :
15135 $as_echo_n "(cached) " >&6
15139 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
15142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15143 as_dummy="$KRB5ROOT/bin:$PATH"
15144 for as_dir in $as_dummy
15147 test -z "$as_dir" && as_dir=.
15148 for ac_exec_ext in '' $ac_executable_extensions; do
15149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15150 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
15151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15158 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
15162 KRB5CONF=$ac_cv_path_KRB5CONF
15163 if test -n "$KRB5CONF"; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
15165 $as_echo "$KRB5CONF" >&6; }
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168 $as_echo "no" >&6; }
15172 if test -x $KRB5CONF ; then
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
15175 $as_echo_n "checking for gssapi support... " >&6; }
15176 if $KRB5CONF | grep gssapi >/dev/null ; then
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15178 $as_echo "yes" >&6; }
15180 $as_echo "#define GSSAPI 1" >>confdefs.h
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15185 $as_echo "no" >&6; }
15188 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
15189 K5LIBS="`$KRB5CONF --libs $k5confopts`"
15190 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15192 $as_echo_n "checking whether we are using Heimdal... " >&6; }
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15200 char *tmp = heimdal_version;
15205 if ac_fn_c_try_compile "$LINENO"; then :
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15207 $as_echo "yes" >&6; }
15209 $as_echo "#define HEIMDAL 1" >>confdefs.h
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15213 $as_echo "no" >&6; }
15216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15218 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15219 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15221 $as_echo_n "checking whether we are using Heimdal... " >&6; }
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15229 char *tmp = heimdal_version;
15234 if ac_fn_c_try_compile "$LINENO"; then :
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15236 $as_echo "yes" >&6; }
15237 $as_echo "#define HEIMDAL 1" >>confdefs.h
15240 K5LIBS="$K5LIBS -lcom_err -lasn1"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
15242 $as_echo_n "checking for net_write in -lroken... " >&6; }
15243 if ${ac_cv_lib_roken_net_write+:} false; then :
15244 $as_echo_n "(cached) " >&6
15246 ac_check_lib_save_LIBS=$LIBS
15247 LIBS="-lroken $LIBS"
15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249 /* end confdefs.h. */
15251 /* Override any GCC internal prototype to avoid an error.
15252 Use char because int might match the return type of a GCC
15253 builtin and then its argument prototype would still apply. */
15261 return net_write ();
15266 if ac_fn_c_try_link "$LINENO"; then :
15267 ac_cv_lib_roken_net_write=yes
15269 ac_cv_lib_roken_net_write=no
15271 rm -f core conftest.err conftest.$ac_objext \
15272 conftest$ac_exeext conftest.$ac_ext
15273 LIBS=$ac_check_lib_save_LIBS
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
15276 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
15277 if test "x$ac_cv_lib_roken_net_write" = xyes; then :
15278 K5LIBS="$K5LIBS -lroken"
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15282 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15283 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
15284 $as_echo_n "(cached) " >&6
15286 ac_check_lib_save_LIBS=$LIBS
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15291 /* Override any GCC internal prototype to avoid an error.
15292 Use char because int might match the return type of a GCC
15293 builtin and then its argument prototype would still apply. */
15297 char des_cbc_encrypt ();
15301 return des_cbc_encrypt ();
15306 if ac_fn_c_try_link "$LINENO"; then :
15307 ac_cv_lib_des_des_cbc_encrypt=yes
15309 ac_cv_lib_des_des_cbc_encrypt=no
15311 rm -f core conftest.err conftest.$ac_objext \
15312 conftest$ac_exeext conftest.$ac_ext
15313 LIBS=$ac_check_lib_save_LIBS
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15316 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15317 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
15318 K5LIBS="$K5LIBS -ldes"
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324 $as_echo "no" >&6; }
15325 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
15331 $as_echo_n "checking for library containing dn_expand... " >&6; }
15332 if ${ac_cv_search_dn_expand+:} false; then :
15333 $as_echo_n "(cached) " >&6
15335 ac_func_search_save_LIBS=$LIBS
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15339 /* Override any GCC internal prototype to avoid an error.
15340 Use char because int might match the return type of a GCC
15341 builtin and then its argument prototype would still apply. */
15349 return dn_expand ();
15354 for ac_lib in '' resolv; do
15355 if test -z "$ac_lib"; then
15356 ac_res="none required"
15359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15361 if ac_fn_c_try_link "$LINENO"; then :
15362 ac_cv_search_dn_expand=$ac_res
15364 rm -f core conftest.err conftest.$ac_objext \
15366 if ${ac_cv_search_dn_expand+:} false; then :
15370 if ${ac_cv_search_dn_expand+:} false; then :
15373 ac_cv_search_dn_expand=no
15375 rm conftest.$ac_ext
15376 LIBS=$ac_func_search_save_LIBS
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
15379 $as_echo "$ac_cv_search_dn_expand" >&6; }
15380 ac_res=$ac_cv_search_dn_expand
15381 if test "$ac_res" != no; then :
15382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
15388 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
15389 if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
15390 $as_echo_n "(cached) " >&6
15392 ac_check_lib_save_LIBS=$LIBS
15393 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15397 /* Override any GCC internal prototype to avoid an error.
15398 Use char because int might match the return type of a GCC
15399 builtin and then its argument prototype would still apply. */
15403 char gss_init_sec_context ();
15407 return gss_init_sec_context ();
15412 if ac_fn_c_try_link "$LINENO"; then :
15413 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
15415 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
15417 rm -f core conftest.err conftest.$ac_objext \
15418 conftest$ac_exeext conftest.$ac_ext
15419 LIBS=$ac_check_lib_save_LIBS
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
15422 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
15423 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
15424 $as_echo "#define GSSAPI 1" >>confdefs.h
15426 K5LIBS="-lgssapi_krb5 $K5LIBS"
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
15429 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
15430 if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
15431 $as_echo_n "(cached) " >&6
15433 ac_check_lib_save_LIBS=$LIBS
15434 LIBS="-lgssapi $K5LIBS $LIBS"
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15438 /* Override any GCC internal prototype to avoid an error.
15439 Use char because int might match the return type of a GCC
15440 builtin and then its argument prototype would still apply. */
15444 char gss_init_sec_context ();
15448 return gss_init_sec_context ();
15453 if ac_fn_c_try_link "$LINENO"; then :
15454 ac_cv_lib_gssapi_gss_init_sec_context=yes
15456 ac_cv_lib_gssapi_gss_init_sec_context=no
15458 rm -f core conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15460 LIBS=$ac_check_lib_save_LIBS
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
15463 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
15464 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
15465 $as_echo "#define GSSAPI 1" >>confdefs.h
15467 K5LIBS="-lgssapi $K5LIBS"
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
15470 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
15477 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
15478 if test "x$ac_cv_header_gssapi_h" = xyes; then :
15481 unset ac_cv_header_gssapi_h
15482 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15483 for ac_header in gssapi.h
15485 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
15486 if test "x$ac_cv_header_gssapi_h" = xyes; then :
15487 cat >>confdefs.h <<_ACEOF
15488 #define HAVE_GSSAPI_H 1
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
15493 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
15506 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15507 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
15508 if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
15517 if test ! -z "$need_dash_r" ; then
15518 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15520 if test ! -z "$blibpath" ; then
15521 blibpath="$blibpath:${KRB5ROOT}/lib"
15524 for ac_header in gssapi.h gssapi/gssapi.h
15526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15527 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15528 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15529 cat >>confdefs.h <<_ACEOF
15530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15537 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
15539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15540 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15541 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15542 cat >>confdefs.h <<_ACEOF
15543 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15550 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
15552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15553 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15554 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15555 cat >>confdefs.h <<_ACEOF
15556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15564 LIBS="$LIBS $K5LIBS"
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
15566 $as_echo_n "checking for library containing k_hasafs... " >&6; }
15567 if ${ac_cv_search_k_hasafs+:} false; then :
15568 $as_echo_n "(cached) " >&6
15570 ac_func_search_save_LIBS=$LIBS
15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572 /* end confdefs.h. */
15574 /* Override any GCC internal prototype to avoid an error.
15575 Use char because int might match the return type of a GCC
15576 builtin and then its argument prototype would still apply. */
15584 return k_hasafs ();
15589 for ac_lib in '' kafs; do
15590 if test -z "$ac_lib"; then
15591 ac_res="none required"
15594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15596 if ac_fn_c_try_link "$LINENO"; then :
15597 ac_cv_search_k_hasafs=$ac_res
15599 rm -f core conftest.err conftest.$ac_objext \
15601 if ${ac_cv_search_k_hasafs+:} false; then :
15605 if ${ac_cv_search_k_hasafs+:} false; then :
15608 ac_cv_search_k_hasafs=no
15610 rm conftest.$ac_ext
15611 LIBS=$ac_func_search_save_LIBS
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
15614 $as_echo "$ac_cv_search_k_hasafs" >&6; }
15615 ac_res=$ac_cv_search_k_hasafs
15616 if test "$ac_res" != no; then :
15617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15619 $as_echo "#define USE_AFS 1" >>confdefs.h
15629 # Looking for programs, paths and files
15631 PRIVSEP_PATH=/var/empty
15633 # Check whether --with-privsep-path was given.
15634 if test "${with_privsep_path+set}" = set; then :
15635 withval=$with_privsep_path;
15636 if test -n "$withval" && test "x$withval" != "xno" && \
15637 test "x${withval}" != "xyes"; then
15638 PRIVSEP_PATH=$withval
15647 # Check whether --with-xauth was given.
15648 if test "${with_xauth+set}" = set; then :
15649 withval=$with_xauth;
15650 if test -n "$withval" && test "x$withval" != "xno" && \
15651 test "x${withval}" != "xyes"; then
15652 xauth_path=$withval
15658 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15659 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15660 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15661 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15662 # Extract the first word of "xauth", so it can be a program name with args.
15663 set dummy xauth; ac_word=$2
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15665 $as_echo_n "checking for $ac_word... " >&6; }
15666 if ${ac_cv_path_xauth_path+:} false; then :
15667 $as_echo_n "(cached) " >&6
15669 case $xauth_path in
15671 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15675 for as_dir in $TestPath
15678 test -z "$as_dir" && as_dir=.
15679 for ac_exec_ext in '' $ac_executable_extensions; do
15680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15681 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15692 xauth_path=$ac_cv_path_xauth_path
15693 if test -n "$xauth_path"; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15695 $as_echo "$xauth_path" >&6; }
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15698 $as_echo "no" >&6; }
15702 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15703 xauth_path="/usr/openwin/bin/xauth"
15711 # Check whether --enable-strip was given.
15712 if test "${enable_strip+set}" = set; then :
15713 enableval=$enable_strip;
15714 if test "x$enableval" = "xno" ; then
15723 if test -z "$xauth_path" ; then
15724 XAUTH_PATH="undefined"
15728 cat >>confdefs.h <<_ACEOF
15729 #define XAUTH_PATH "$xauth_path"
15732 XAUTH_PATH=$xauth_path
15736 # Check for mail directory
15738 # Check whether --with-maildir was given.
15739 if test "${with_maildir+set}" = set; then :
15740 withval=$with_maildir;
15741 if test "X$withval" != X && test "x$withval" != xno && \
15742 test "x${withval}" != xyes; then
15744 cat >>confdefs.h <<_ACEOF
15745 #define MAIL_DIRECTORY "$withval"
15752 if test "X$maildir" != "X"; then
15753 cat >>confdefs.h <<_ACEOF
15754 #define MAIL_DIRECTORY "$maildir"
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
15759 $as_echo_n "checking Discovering system mail directory... " >&6; }
15760 if test "$cross_compiling" = yes; then :
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
15763 $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15771 #include <string.h>
15772 #ifdef HAVE_PATHS_H
15775 #ifdef HAVE_MAILLOCK_H
15776 #include <maillock.h>
15778 #define DATA "conftest.maildir"
15787 fd = fopen(DATA,"w");
15791 #if defined (_PATH_MAILDIR)
15792 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
15794 #elif defined (MAILDIR)
15795 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
15797 #elif defined (_PATH_MAIL)
15798 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
15810 if ac_fn_c_try_run "$LINENO"; then :
15812 maildir_what=`awk -F: '{print $1}' conftest.maildir`
15813 maildir=`awk -F: '{print $2}' conftest.maildir \
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
15816 $as_echo "Using: $maildir from $maildir_what" >&6; }
15817 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
15818 cat >>confdefs.h <<_ACEOF
15819 #define MAIL_DIRECTORY "$maildir"
15826 if test "X$ac_status" = "X2";then
15827 # our test program didn't find it. Default to /var/spool/mail
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
15829 $as_echo "Using: default value of /var/spool/mail" >&6; }
15830 cat >>confdefs.h <<_ACEOF
15831 #define MAIL_DIRECTORY "/var/spool/mail"
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
15836 $as_echo "*** not found ***" >&6; }
15840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15841 conftest.$ac_objext conftest.beam conftest.$ac_ext
15850 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15852 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15853 disable_ptmx_check=yes
15855 if test -z "$no_dev_ptmx" ; then
15856 if test "x$disable_ptmx_check" != "xyes" ; then
15857 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15859 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15860 if eval \${$as_ac_File+:} false; then :
15861 $as_echo_n "(cached) " >&6
15863 test "$cross_compiling" = yes &&
15864 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15865 if test -r ""/dev/ptmx""; then
15866 eval "$as_ac_File=yes"
15868 eval "$as_ac_File=no"
15871 eval ac_res=\$$as_ac_File
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15873 $as_echo "$ac_res" >&6; }
15874 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15877 cat >>confdefs.h <<_ACEOF
15878 #define HAVE_DEV_PTMX 1
15889 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15890 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15892 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15893 if eval \${$as_ac_File+:} false; then :
15894 $as_echo_n "(cached) " >&6
15896 test "$cross_compiling" = yes &&
15897 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15898 if test -r ""/dev/ptc""; then
15899 eval "$as_ac_File=yes"
15901 eval "$as_ac_File=no"
15904 eval ac_res=\$$as_ac_File
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15906 $as_echo "$ac_res" >&6; }
15907 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15910 cat >>confdefs.h <<_ACEOF
15911 #define HAVE_DEV_PTS_AND_PTC 1
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15921 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15924 # Options from here on. Some of these are preset by platform above
15926 # Check whether --with-mantype was given.
15927 if test "${with_mantype+set}" = set; then :
15928 withval=$with_mantype;
15934 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15941 if test -z "$MANTYPE"; then
15942 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15943 for ac_prog in nroff awf
15945 # Extract the first word of "$ac_prog", so it can be a program name with args.
15946 set dummy $ac_prog; ac_word=$2
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15948 $as_echo_n "checking for $ac_word... " >&6; }
15949 if ${ac_cv_path_NROFF+:} false; then :
15950 $as_echo_n "(cached) " >&6
15954 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958 for as_dir in $TestPath
15961 test -z "$as_dir" && as_dir=.
15962 for ac_exec_ext in '' $ac_executable_extensions; do
15963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15964 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15975 NROFF=$ac_cv_path_NROFF
15976 if test -n "$NROFF"; then
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15978 $as_echo "$NROFF" >&6; }
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15981 $as_echo "no" >&6; }
15985 test -n "$NROFF" && break
15987 test -n "$NROFF" || NROFF="/bin/false"
15989 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15991 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15998 if test "$MANTYPE" = "doc"; then
16001 mansubdir=$MANTYPE;
16005 # Check whether to enable MD5 passwords
16008 # Check whether --with-md5-passwords was given.
16009 if test "${with_md5_passwords+set}" = set; then :
16010 withval=$with_md5_passwords;
16011 if test "x$withval" != "xno" ; then
16013 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
16022 # Whether to disable shadow password support
16024 # Check whether --with-shadow was given.
16025 if test "${with_shadow+set}" = set; then :
16026 withval=$with_shadow;
16027 if test "x$withval" = "xno" ; then
16028 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
16037 if test -z "$disable_shadow" ; then
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
16039 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16043 #include <sys/types.h>
16044 #include <shadow.h>
16050 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
16055 if ac_fn_c_try_compile "$LINENO"; then :
16056 sp_expire_available=yes
16058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 if test "x$sp_expire_available" = "xyes" ; then
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16062 $as_echo "yes" >&6; }
16064 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068 $as_echo "no" >&6; }
16072 # Use ip address instead of hostname in $DISPLAY
16073 if test ! -z "$IPADDR_IN_DISPLAY" ; then
16074 DISPLAY_HACK_MSG="yes"
16076 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
16079 DISPLAY_HACK_MSG="no"
16081 # Check whether --with-ipaddr-display was given.
16082 if test "${with_ipaddr_display+set}" = set; then :
16083 withval=$with_ipaddr_display;
16084 if test "x$withval" != "xno" ; then
16085 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
16087 DISPLAY_HACK_MSG="yes"
16095 # check for /etc/default/login and use it if present.
16096 # Check whether --enable-etc-default-login was given.
16097 if test "${enable_etc_default_login+set}" = set; then :
16098 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
16100 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
16101 etc_default_login=no
16103 etc_default_login=yes
16106 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
16109 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
16110 etc_default_login=no
16112 etc_default_login=yes
16118 if test "x$etc_default_login" != "xno"; then
16119 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
16121 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
16122 if eval \${$as_ac_File+:} false; then :
16123 $as_echo_n "(cached) " >&6
16125 test "$cross_compiling" = yes &&
16126 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16127 if test -r ""/etc/default/login""; then
16128 eval "$as_ac_File=yes"
16130 eval "$as_ac_File=no"
16133 eval ac_res=\$$as_ac_File
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16135 $as_echo "$ac_res" >&6; }
16136 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
16137 external_path_file=/etc/default/login
16140 if test "x$external_path_file" = "x/etc/default/login"; then
16142 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
16147 if test $ac_cv_func_login_getcapbool = "yes" && \
16148 test $ac_cv_header_login_cap_h = "yes" ; then
16149 external_path_file=/etc/login.conf
16152 # Whether to mess with the default path
16153 SERVER_PATH_MSG="(default)"
16155 # Check whether --with-default-path was given.
16156 if test "${with_default_path+set}" = set; then :
16157 withval=$with_default_path;
16158 if test "x$external_path_file" = "x/etc/login.conf" ; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16160 --with-default-path=PATH has no effect on this system.
16161 Edit /etc/login.conf instead." >&5
16162 $as_echo "$as_me: WARNING:
16163 --with-default-path=PATH has no effect on this system.
16164 Edit /etc/login.conf instead." >&2;}
16165 elif test "x$withval" != "xno" ; then
16166 if test ! -z "$external_path_file" ; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16168 --with-default-path=PATH will only be used if PATH is not defined in
16169 $external_path_file ." >&5
16170 $as_echo "$as_me: WARNING:
16171 --with-default-path=PATH will only be used if PATH is not defined in
16172 $external_path_file ." >&2;}
16174 user_path="$withval"
16175 SERVER_PATH_MSG="$withval"
16179 if test "x$external_path_file" = "x/etc/login.conf" ; then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
16181 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
16183 if test ! -z "$external_path_file" ; then
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16185 If PATH is defined in $external_path_file, ensure the path to scp is included,
16186 otherwise scp will not work." >&5
16187 $as_echo "$as_me: WARNING:
16188 If PATH is defined in $external_path_file, ensure the path to scp is included,
16189 otherwise scp will not work." >&2;}
16191 if test "$cross_compiling" = yes; then :
16192 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16198 /* find out what STDPATH is */
16200 #ifdef HAVE_PATHS_H
16201 # include <paths.h>
16203 #ifndef _PATH_STDPATH
16204 # ifdef _PATH_USERPATH /* Irix */
16205 # define _PATH_STDPATH _PATH_USERPATH
16207 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16210 #include <sys/types.h>
16211 #include <sys/stat.h>
16213 #define DATA "conftest.stdpath"
16222 fd = fopen(DATA,"w");
16226 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16235 if ac_fn_c_try_run "$LINENO"; then :
16236 user_path=`cat conftest.stdpath`
16238 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16241 conftest.$ac_objext conftest.beam conftest.$ac_ext
16244 # make sure $bindir is in USER_PATH so scp will work
16245 t_bindir="${bindir}"
16246 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
16247 t_bindir=`eval echo ${t_bindir}`
16249 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16252 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16255 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
16256 if test $? -ne 0 ; then
16257 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
16258 if test $? -ne 0 ; then
16259 user_path=$user_path:$t_bindir
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16261 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
16268 if test "x$external_path_file" != "x/etc/login.conf" ; then
16270 cat >>confdefs.h <<_ACEOF
16271 #define USER_PATH "$user_path"
16277 # Set superuser path separately to user path
16279 # Check whether --with-superuser-path was given.
16280 if test "${with_superuser_path+set}" = set; then :
16281 withval=$with_superuser_path;
16282 if test -n "$withval" && test "x$withval" != "xno" && \
16283 test "x${withval}" != "xyes"; then
16285 cat >>confdefs.h <<_ACEOF
16286 #define SUPERUSER_PATH "$withval"
16289 superuser_path=$withval
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16298 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
16299 IPV4_IN6_HACK_MSG="no"
16301 # Check whether --with-4in6 was given.
16302 if test "${with_4in6+set}" = set; then :
16303 withval=$with_4in6;
16304 if test "x$withval" != "xno" ; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16306 $as_echo "yes" >&6; }
16308 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
16310 IPV4_IN6_HACK_MSG="yes"
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16313 $as_echo "no" >&6; }
16318 if test "x$inet6_default_4in6" = "xyes"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
16320 $as_echo "yes (default)" >&6; }
16321 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
16323 IPV4_IN6_HACK_MSG="yes"
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
16326 $as_echo "no (default)" >&6; }
16333 # Whether to enable BSD auth support
16336 # Check whether --with-bsd-auth was given.
16337 if test "${with_bsd_auth+set}" = set; then :
16338 withval=$with_bsd_auth;
16339 if test "x$withval" != "xno" ; then
16341 $as_echo "#define BSD_AUTH 1" >>confdefs.h
16350 # Where to place sshd.pid
16352 # make sure the directory exists
16353 if test ! -d $piddir ; then
16354 piddir=`eval echo ${sysconfdir}`
16356 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16361 # Check whether --with-pid-dir was given.
16362 if test "${with_pid_dir+set}" = set; then :
16363 withval=$with_pid_dir;
16364 if test -n "$withval" && test "x$withval" != "xno" && \
16365 test "x${withval}" != "xyes"; then
16367 if test ! -d $piddir ; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
16369 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16378 cat >>confdefs.h <<_ACEOF
16379 #define _PATH_SSH_PIDDIR "$piddir"
16384 # Check whether --enable-lastlog was given.
16385 if test "${enable_lastlog+set}" = set; then :
16386 enableval=$enable_lastlog;
16387 if test "x$enableval" = "xno" ; then
16388 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
16395 # Check whether --enable-utmp was given.
16396 if test "${enable_utmp+set}" = set; then :
16397 enableval=$enable_utmp;
16398 if test "x$enableval" = "xno" ; then
16399 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16406 # Check whether --enable-utmpx was given.
16407 if test "${enable_utmpx+set}" = set; then :
16408 enableval=$enable_utmpx;
16409 if test "x$enableval" = "xno" ; then
16411 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
16418 # Check whether --enable-wtmp was given.
16419 if test "${enable_wtmp+set}" = set; then :
16420 enableval=$enable_wtmp;
16421 if test "x$enableval" = "xno" ; then
16422 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16429 # Check whether --enable-wtmpx was given.
16430 if test "${enable_wtmpx+set}" = set; then :
16431 enableval=$enable_wtmpx;
16432 if test "x$enableval" = "xno" ; then
16434 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16441 # Check whether --enable-libutil was given.
16442 if test "${enable_libutil+set}" = set; then :
16443 enableval=$enable_libutil;
16444 if test "x$enableval" = "xno" ; then
16445 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
16452 # Check whether --enable-pututline was given.
16453 if test "${enable_pututline+set}" = set; then :
16454 enableval=$enable_pututline;
16455 if test "x$enableval" = "xno" ; then
16457 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
16464 # Check whether --enable-pututxline was given.
16465 if test "${enable_pututxline+set}" = set; then :
16466 enableval=$enable_pututxline;
16467 if test "x$enableval" = "xno" ; then
16469 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
16477 # Check whether --with-lastlog was given.
16478 if test "${with_lastlog+set}" = set; then :
16479 withval=$with_lastlog;
16480 if test "x$withval" = "xno" ; then
16481 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
16483 elif test -n "$withval" && test "x${withval}" != "xyes"; then
16484 conf_lastlog_location=$withval
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
16493 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16497 #include <sys/types.h>
16499 #ifdef HAVE_LASTLOG_H
16500 # include <lastlog.h>
16502 #ifdef HAVE_PATHS_H
16503 # include <paths.h>
16505 #ifdef HAVE_LOGIN_H
16506 # include <login.h>
16512 char *lastlog = LASTLOG_FILE;
16517 if ac_fn_c_try_compile "$LINENO"; then :
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16519 $as_echo "yes" >&6; }
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523 $as_echo "no" >&6; }
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
16525 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16529 #include <sys/types.h>
16531 #ifdef HAVE_LASTLOG_H
16532 # include <lastlog.h>
16534 #ifdef HAVE_PATHS_H
16535 # include <paths.h>
16541 char *lastlog = _PATH_LASTLOG;
16546 if ac_fn_c_try_compile "$LINENO"; then :
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16548 $as_echo "yes" >&6; }
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16552 $as_echo "no" >&6; }
16553 system_lastlog_path=no
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 if test -z "$conf_lastlog_location"; then
16562 if test x"$system_lastlog_path" = x"no" ; then
16563 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16564 if (test -d "$f" || test -f "$f") ; then
16565 conf_lastlog_location=$f
16568 if test -z "$conf_lastlog_location"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
16570 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16575 if test -n "$conf_lastlog_location"; then
16577 cat >>confdefs.h <<_ACEOF
16578 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
16584 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16588 #include <sys/types.h>
16590 #ifdef HAVE_PATHS_H
16591 # include <paths.h>
16597 char *utmp = UTMP_FILE;
16602 if ac_fn_c_try_compile "$LINENO"; then :
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16604 $as_echo "yes" >&6; }
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16607 $as_echo "no" >&6; }
16608 system_utmp_path=no
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 if test -z "$conf_utmp_location"; then
16613 if test x"$system_utmp_path" = x"no" ; then
16614 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16615 if test -f $f ; then
16616 conf_utmp_location=$f
16619 if test -z "$conf_utmp_location"; then
16620 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16625 if test -n "$conf_utmp_location"; then
16627 cat >>confdefs.h <<_ACEOF
16628 #define CONF_UTMP_FILE "$conf_utmp_location"
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
16634 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636 /* end confdefs.h. */
16638 #include <sys/types.h>
16640 #ifdef HAVE_PATHS_H
16641 # include <paths.h>
16647 char *wtmp = WTMP_FILE;
16652 if ac_fn_c_try_compile "$LINENO"; then :
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16654 $as_echo "yes" >&6; }
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657 $as_echo "no" >&6; }
16658 system_wtmp_path=no
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662 if test -z "$conf_wtmp_location"; then
16663 if test x"$system_wtmp_path" = x"no" ; then
16664 for f in /usr/adm/wtmp /var/log/wtmp; do
16665 if test -f $f ; then
16666 conf_wtmp_location=$f
16669 if test -z "$conf_wtmp_location"; then
16670 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16675 if test -n "$conf_wtmp_location"; then
16677 cat >>confdefs.h <<_ACEOF
16678 #define CONF_WTMP_FILE "$conf_wtmp_location"
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16685 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16689 #include <sys/types.h>
16691 #ifdef HAVE_UTMPX_H
16694 #ifdef HAVE_PATHS_H
16695 # include <paths.h>
16701 char *wtmpx = WTMPX_FILE;
16706 if ac_fn_c_try_compile "$LINENO"; then :
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16708 $as_echo "yes" >&6; }
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711 $as_echo "no" >&6; }
16712 system_wtmpx_path=no
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 if test -z "$conf_wtmpx_location"; then
16717 if test x"$system_wtmpx_path" = x"no" ; then
16718 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16723 cat >>confdefs.h <<_ACEOF
16724 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
16730 if test ! -z "$blibpath" ; then
16731 LDFLAGS="$LDFLAGS $blibflags$blibpath"
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16733 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16736 CFLAGS="$CFLAGS $werror_flags"
16738 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16743 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
16744 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
16748 TEST_SSH_IPV6=$TEST_SSH_IPV6
16752 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
16754 cat >confcache <<\_ACEOF
16755 # This file is a shell script that caches the results of configure
16756 # tests run on this system so they can be shared between configure
16757 # scripts and configure runs, see configure's option --config-cache.
16758 # It is not useful on other systems. If it contains results you don't
16759 # want to keep, you may remove or edit it.
16761 # config.status only pays attention to the cache file if you give it
16762 # the --recheck option to rerun configure.
16764 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16765 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16766 # following values.
16770 # The following way of writing the cache mishandles newlines in values,
16771 # but we know of no workaround that is simple, portable, and efficient.
16772 # So, we kill variables containing newlines.
16773 # Ultrix sh set writes to stderr and can't be redirected directly,
16774 # and sets the high bit in the cache file unless we assign to the vars.
16776 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16777 eval ac_val=\$$ac_var
16781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16785 _ | IFS | as_nl) ;; #(
16786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16787 *) { eval $ac_var=; unset $ac_var;} ;;
16793 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16794 *${as_nl}ac_space=\ *)
16795 # `set' does not quote correctly, so add quotes: double-quote
16796 # substitution turns \\\\ into \\, and sed turns \\ into \.
16799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16802 # `set' quotes correctly as required by POSIX, so do not add quotes.
16803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16814 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16816 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16817 if test -w "$cache_file"; then
16818 if test "x$cache_file" != "x/dev/null"; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16820 $as_echo "$as_me: updating cache $cache_file" >&6;}
16821 if test ! -f "$cache_file" || test -h "$cache_file"; then
16822 cat confcache >"$cache_file"
16824 case $cache_file in #(
16826 mv -f confcache "$cache_file"$$ &&
16827 mv -f "$cache_file"$$ "$cache_file" ;; #(
16829 mv -f confcache "$cache_file" ;;
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16835 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16840 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16841 # Let make expand exec_prefix.
16842 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16844 DEFS=-DHAVE_CONFIG_H
16849 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16850 # 1. Remove the extension, and $U if already installed.
16851 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16852 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16853 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16854 # will be set to the directory where LIBOBJS objects are built.
16855 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16856 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16858 LIBOBJS=$ac_libobjs
16860 LTLIBOBJS=$ac_ltlibobjs
16865 : "${CONFIG_STATUS=./config.status}"
16867 ac_clean_files_save=$ac_clean_files
16868 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16870 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16872 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16874 # Generated by $as_me.
16875 # Run this file to recreate the current configuration.
16876 # Compiler output produced by configure, useful for debugging
16877 # configure, is in config.log if it exists.
16880 ac_cs_recheck=false
16883 SHELL=\${CONFIG_SHELL-$SHELL}
16886 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16887 ## -------------------- ##
16888 ## M4sh Initialization. ##
16889 ## -------------------- ##
16891 # Be more Bourne compatible
16892 DUALCASE=1; export DUALCASE # for MKS sh
16893 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16896 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16897 # is contrary to our usage. Disable this feature.
16898 alias -g '${1+"$@"}'='"$@"'
16899 setopt NO_GLOB_SUBST
16901 case `(set -o) 2>/dev/null` in #(
16913 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16914 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16915 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16917 # Prefer a ksh shell builtin over an external printf program on Solaris,
16918 # but without wasting forks for bash or zsh.
16919 if test -z "$BASH_VERSION$ZSH_VERSION" \
16920 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16921 as_echo='print -r --'
16922 as_echo_n='print -rn --'
16923 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16924 as_echo='printf %s\n'
16925 as_echo_n='printf %s'
16927 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16928 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16929 as_echo_n='/usr/ucb/echo -n'
16931 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16932 as_echo_n_body='eval
16936 expr "X$arg" : "X\\(.*\\)$as_nl";
16937 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16939 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16941 export as_echo_n_body
16942 as_echo_n='sh -c $as_echo_n_body as_echo'
16944 export as_echo_body
16945 as_echo='sh -c $as_echo_body as_echo'
16948 # The user is always right.
16949 if test "${PATH_SEPARATOR+set}" != set; then
16951 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16952 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16959 # We need space, tab and new line, in precisely that order. Quoting is
16960 # there to prevent editors from complaining about space-tab.
16961 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16962 # splitting by setting IFS to empty value.)
16965 # Find who we are. Look in the path if we contain no directory separator.
16968 *[\\/]* ) as_myself=$0 ;;
16969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16970 for as_dir in $PATH
16973 test -z "$as_dir" && as_dir=.
16974 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16980 # We did not find ourselves, most probably we were run as `sh COMMAND'
16981 # in which case we are not to be found in the path.
16982 if test "x$as_myself" = x; then
16985 if test ! -f "$as_myself"; then
16986 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16990 # Unset variables that we do not need and which cause bugs (e.g. in
16991 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16992 # suppresses any "Segmentation fault" message there. '((' could
16993 # trigger a bug in pdksh 5.2.14.
16994 for as_var in BASH_ENV ENV MAIL MAILPATH
16995 do eval test x\${$as_var+set} = xset \
16996 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17009 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17012 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17013 # ----------------------------------------
17014 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17015 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17016 # script with STATUS, using 1 if that was 0.
17019 as_status=$1; test $as_status -eq 0 && as_status=1
17021 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17022 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17024 $as_echo "$as_me: error: $2" >&2
17025 as_fn_exit $as_status
17029 # as_fn_set_status STATUS
17030 # -----------------------
17031 # Set $? to STATUS, without forking.
17032 as_fn_set_status ()
17035 } # as_fn_set_status
17037 # as_fn_exit STATUS
17038 # -----------------
17039 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17043 as_fn_set_status $1
17049 # Portably unset VAR.
17052 { eval $1=; unset $1;}
17054 as_unset=as_fn_unset
17055 # as_fn_append VAR VALUE
17056 # ----------------------
17057 # Append the text in VALUE to the end of the definition contained in VAR. Take
17058 # advantage of any shell optimizations that allow amortized linear growth over
17059 # repeated appends, instead of the typical quadratic growth present in naive
17061 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17062 eval 'as_fn_append ()
17073 # as_fn_arith ARG...
17074 # ------------------
17075 # Perform arithmetic evaluation on the ARGs, and store the result in the
17076 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17077 # must be portable across $(()) and expr.
17078 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17079 eval 'as_fn_arith ()
17086 as_val=`expr "$@" || test $? -eq 1`
17091 if expr a : '\(a\)' >/dev/null 2>&1 &&
17092 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17098 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17099 as_basename=basename
17104 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17110 as_me=`$as_basename -- "$0" ||
17111 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17112 X"$0" : 'X\(//\)$' \| \
17113 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17115 sed '/^.*\/\([^/][^/]*\)\/*$/{
17129 # Avoid depending upon Character Ranges.
17130 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17131 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17132 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17133 as_cr_digits='0123456789'
17134 as_cr_alnum=$as_cr_Letters$as_cr_digits
17136 ECHO_C= ECHO_N= ECHO_T=
17137 case `echo -n x` in #(((((
17139 case `echo 'xy\c'` in
17140 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17142 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17149 rm -f conf$$ conf$$.exe conf$$.file
17150 if test -d conf$$.dir; then
17151 rm -f conf$$.dir/conf$$.file
17154 mkdir conf$$.dir 2>/dev/null
17156 if (echo >conf$$.file) 2>/dev/null; then
17157 if ln -s conf$$.file conf$$ 2>/dev/null; then
17159 # ... but there are two gotchas:
17160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17162 # In both cases, we have to default to `cp -p'.
17163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17165 elif ln conf$$.file conf$$ 2>/dev/null; then
17173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17174 rmdir conf$$.dir 2>/dev/null
17179 # Create "$as_dir" as a directory, including parents if necessary.
17184 -*) as_dir=./$as_dir;;
17186 test -d "$as_dir" || eval $as_mkdir_p || {
17190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17191 *) as_qdir=$as_dir;;
17193 as_dirs="'$as_qdir' $as_dirs"
17194 as_dir=`$as_dirname -- "$as_dir" ||
17195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17196 X"$as_dir" : 'X\(//\)[^/]' \| \
17197 X"$as_dir" : 'X\(//\)$' \| \
17198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17199 $as_echo X"$as_dir" |
17200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17204 /^X\(\/\/\)[^/].*/{
17217 test -d "$as_dir" && break
17219 test -z "$as_dirs" || eval "mkdir $as_dirs"
17220 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17224 if mkdir -p . 2>/dev/null; then
17225 as_mkdir_p='mkdir -p "$as_dir"'
17227 test -d ./-p && rmdir ./-p
17231 if test -x / >/dev/null 2>&1; then
17232 as_test_x='test -x'
17234 if ls -dL / >/dev/null 2>&1; then
17241 if test -d "$1"; then
17247 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17248 ???[sx]*):;;*)false;;esac;fi
17252 as_executable_p=$as_test_x
17254 # Sed expression to map a string onto a valid CPP name.
17255 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17257 # Sed expression to map a string onto a valid variable name.
17258 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17262 ## ----------------------------------- ##
17263 ## Main body of $CONFIG_STATUS script. ##
17264 ## ----------------------------------- ##
17266 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17269 # Save the log message, to keep $0 and so on meaningful, and to
17270 # report actual input values of CONFIG_FILES etc. instead of their
17271 # values after options handling.
17273 This file was extended by OpenSSH $as_me Portable, which was
17274 generated by GNU Autoconf 2.68. Invocation command line was
17276 CONFIG_FILES = $CONFIG_FILES
17277 CONFIG_HEADERS = $CONFIG_HEADERS
17278 CONFIG_LINKS = $CONFIG_LINKS
17279 CONFIG_COMMANDS = $CONFIG_COMMANDS
17282 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17287 case $ac_config_files in *"
17288 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17291 case $ac_config_headers in *"
17292 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17297 # Files that config.status was made for.
17298 config_files="$ac_config_files"
17299 config_headers="$ac_config_headers"
17303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17305 \`$as_me' instantiates files and other configuration actions
17306 from templates according to the current configuration. Unless the files
17307 and actions are specified as TAGs, all are instantiated by default.
17309 Usage: $0 [OPTION]... [TAG]...
17311 -h, --help print this help, then exit
17312 -V, --version print version number and configuration settings, then exit
17313 --config print configuration, then exit
17314 -q, --quiet, --silent
17315 do not print progress messages
17316 -d, --debug don't remove temporary files
17317 --recheck update $as_me by reconfiguring in the same conditions
17318 --file=FILE[:TEMPLATE]
17319 instantiate the configuration file FILE
17320 --header=FILE[:TEMPLATE]
17321 instantiate the configuration header FILE
17323 Configuration files:
17326 Configuration headers:
17329 Report bugs to <openssh-unix-dev@mindrot.org>."
17332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17333 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17335 OpenSSH config.status Portable
17336 configured by $0, generated by GNU Autoconf 2.68,
17337 with options \\"\$ac_cs_config\\"
17339 Copyright (C) 2010 Free Software Foundation, Inc.
17340 This config.status script is free software; the Free Software Foundation
17341 gives unlimited permission to copy, distribute and modify it."
17347 test -n "\$AWK" || AWK=awk
17350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17351 # The default lists apply if the user does not specify any file.
17357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17358 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17374 # Handling of the options.
17375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17378 $as_echo "$ac_cs_version"; exit ;;
17379 --config | --confi | --conf | --con | --co | --c )
17380 $as_echo "$ac_cs_config"; exit ;;
17381 --debug | --debu | --deb | --de | --d | -d )
17383 --file | --fil | --fi | --f )
17386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17387 '') as_fn_error $? "missing file argument" ;;
17389 as_fn_append CONFIG_FILES " '$ac_optarg'"
17390 ac_need_defaults=false;;
17391 --header | --heade | --head | --hea )
17394 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17396 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17397 ac_need_defaults=false;;
17399 # Conflict between --help and --header
17400 as_fn_error $? "ambiguous option: \`$1'
17401 Try \`$0 --help' for more information.";;
17402 --help | --hel | -h )
17403 $as_echo "$ac_cs_usage"; exit ;;
17404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17408 # This is an error.
17409 -*) as_fn_error $? "unrecognized option: \`$1'
17410 Try \`$0 --help' for more information." ;;
17412 *) as_fn_append ac_config_targets " $1"
17413 ac_need_defaults=false ;;
17419 ac_configure_extra_args=
17421 if $ac_cs_silent; then
17423 ac_configure_extra_args="$ac_configure_extra_args --silent"
17427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17428 if \$ac_cs_recheck; then
17429 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17432 CONFIG_SHELL='$SHELL'
17433 export CONFIG_SHELL
17438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17443 ## Running $as_me. ##
17449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17454 # Handling of arguments.
17455 for ac_config_target in $ac_config_targets
17457 case $ac_config_target in
17458 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17460 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
17461 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
17462 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
17463 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17464 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
17465 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
17467 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17472 # If the user did not use the arguments to specify the items to instantiate,
17473 # then the envvar interface is used. Set only those that are not.
17474 # We use the long form for the default assignment because of an extremely
17475 # bizarre bug on SunOS 4.1.3.
17476 if $ac_need_defaults; then
17477 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17478 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17481 # Have a temporary directory for convenience. Make it in the build tree
17482 # simply because there is no reason against having it here, and in addition,
17483 # creating and moving files from /tmp can sometimes cause problems.
17484 # Hook for its removal unless debugging.
17485 # Note that there is a small window in which the directory will not be cleaned:
17486 # after its creation but before its name has been assigned to `$tmp'.
17490 trap 'exit_status=$?
17491 : "${ac_tmp:=$tmp}"
17492 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17494 trap 'as_fn_exit 1' 1 2 13 15
17496 # Create a (secure) tmp directory for tmp files.
17499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17503 tmp=./conf$$-$RANDOM
17504 (umask 077 && mkdir "$tmp")
17505 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17508 # Set up the scripts for CONFIG_FILES section.
17509 # No need to generate them if there are no CONFIG_FILES.
17510 # This happens for instance with `./config.status config.h'.
17511 if test -n "$CONFIG_FILES"; then
17514 ac_cr=`echo X | tr X '\015'`
17515 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17516 # But we know of no other shell where ac_cr would be empty at this
17517 # point, so we can use a bashism as a fallback.
17518 if test "x$ac_cr" = x; then
17519 eval ac_cr=\$\'\\r\'
17521 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17522 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17525 ac_cs_awk_cr=$ac_cr
17528 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17533 echo "cat >conf$$subs.awk <<_ACEOF" &&
17534 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17536 } >conf$$subs.sh ||
17537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17538 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17540 for ac_last_try in false false false false false :; do
17541 . ./conf$$subs.sh ||
17542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17544 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17545 if test $ac_delim_n = $ac_delim_num; then
17547 elif $ac_last_try; then
17548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17553 rm -f conf$$subs.sh
17555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17556 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17560 s/^/S["/; s/!.*/"]=/
17570 s/\(.\{148\}\)..*/\1/
17572 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17577 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17584 s/\(.\{148\}\)..*/\1/
17586 s/["\\]/\\&/g; s/^/"/; s/$/"/
17590 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17595 ' <conf$$subs.awk | sed '
17600 ' >>$CONFIG_STATUS || ac_write_fail=1
17601 rm -f conf$$subs.awk
17602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17604 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17605 for (key in S) S_is_set[key] = 1
17611 nfields = split(line, field, "@")
17613 len = length(field[1])
17614 for (i = 2; i < nfields; i++) {
17616 keylen = length(key)
17617 if (S_is_set[key]) {
17619 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17620 len += length(value) + length(field[++i])
17631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17632 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17633 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17636 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17637 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17640 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17641 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17642 # trailing colons and then remove the whole line if VPATH becomes empty
17643 # (actually we leave an empty line to preserve line numbers).
17644 if test "x$srcdir" = x.; then
17645 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17664 fi # test -n "$CONFIG_FILES"
17666 # Set up the scripts for CONFIG_HEADERS section.
17667 # No need to generate them if there are no CONFIG_HEADERS.
17668 # This happens for instance with `./config.status Makefile'.
17669 if test -n "$CONFIG_HEADERS"; then
17670 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17674 # Transform confdefs.h into an awk script `defines.awk', embedded as
17675 # here-document in config.status, that substitutes the proper values into
17676 # config.h.in to produce config.h.
17678 # Create a delimiter string that does not exist in confdefs.h, to ease
17679 # handling of long lines.
17681 for ac_last_try in false false :; do
17682 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17683 if test -z "$ac_tt"; then
17685 elif $ac_last_try; then
17686 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17692 # For the awk script, D is an array of macro values keyed by name,
17693 # likewise P contains macro parameters if any. Preserve backslash
17694 # newline sequences.
17696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17698 s/.\{148\}/&'"$ac_delim"'/g
17701 s/^[ ]*#[ ]*define[ ][ ]*/ /
17708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17715 D["\1"]=" \3\\\\\\n"\\/p
17717 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17722 s/.\{148\}/&'"$ac_delim"'/g
17727 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17730 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17732 ' <confdefs.h | sed '
17733 s/'"$ac_delim"'/"\\\
17734 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17737 for (key in D) D_is_set[key] = 1
17740 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17742 split(line, arg, " ")
17743 if (arg[1] == "#") {
17747 defundef = substr(arg[1], 2)
17750 split(mac1, mac2, "(") #)
17752 prefix = substr(line, 1, index(line, defundef) - 1)
17753 if (D_is_set[macro]) {
17754 # Preserve the white space surrounding the "#".
17755 print prefix "define", macro P[macro] D[macro]
17758 # Replace #undef with comments. This is necessary, for example,
17759 # in the case of _POSIX_SOURCE, which is predefined and required
17760 # on some systems where configure will not decide to define it.
17761 if (defundef == "undef") {
17762 print "/*", prefix defundef, macro, "*/"
17770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17771 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17772 fi # test -n "$CONFIG_HEADERS"
17775 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17780 :[FHLC]) ac_mode=$ac_tag; continue;;
17782 case $ac_mode$ac_tag in
17784 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17785 :[FH]-) ac_tag=-:-;;
17786 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17803 -) ac_f="$ac_tmp/stdin";;
17804 *) # Look for the file first in the build tree, then in the source tree
17805 # (if the path is not absolute). The absolute path cannot be DOS-style,
17806 # because $ac_f cannot contain `:'.
17810 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17812 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17814 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17815 as_fn_append ac_file_inputs " '$ac_f'"
17818 # Let's still pretend it is `configure' which instantiates (i.e., don't
17819 # use $as_me), people would be surprised to read:
17820 # /* config.h. Generated by config.status. */
17821 configure_input='Generated from '`
17822 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17824 if test x"$ac_file" != x-; then
17825 configure_input="$ac_file. $configure_input"
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17827 $as_echo "$as_me: creating $ac_file" >&6;}
17829 # Neutralize special characters interpreted by sed in replacement strings.
17830 case $configure_input in #(
17831 *\&* | *\|* | *\\* )
17832 ac_sed_conf_input=`$as_echo "$configure_input" |
17833 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17834 *) ac_sed_conf_input=$configure_input;;
17838 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17844 ac_dir=`$as_dirname -- "$ac_file" ||
17845 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17846 X"$ac_file" : 'X\(//\)[^/]' \| \
17847 X"$ac_file" : 'X\(//\)$' \| \
17848 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17849 $as_echo X"$ac_file" |
17850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17854 /^X\(\/\/\)[^/].*/{
17867 as_dir="$ac_dir"; as_fn_mkdir_p
17871 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17873 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17874 # A ".." for each directory in $ac_dir_suffix.
17875 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17876 case $ac_top_builddir_sub in
17877 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17878 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17881 ac_abs_top_builddir=$ac_pwd
17882 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17883 # for backward compatibility:
17884 ac_top_builddir=$ac_top_build_prefix
17887 .) # We are building in place.
17889 ac_top_srcdir=$ac_top_builddir_sub
17890 ac_abs_top_srcdir=$ac_pwd ;;
17891 [\\/]* | ?:[\\/]* ) # Absolute name.
17892 ac_srcdir=$srcdir$ac_dir_suffix;
17893 ac_top_srcdir=$srcdir
17894 ac_abs_top_srcdir=$srcdir ;;
17895 *) # Relative name.
17896 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17897 ac_top_srcdir=$ac_top_build_prefix$srcdir
17898 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17900 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17911 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916 # If the template does not know about datarootdir, expand it.
17917 # FIXME: This hack should be removed a few years after 2.60.
17918 ac_datarootdir_hack=; ac_datarootdir_seen=
17929 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17930 *datarootdir*) ac_datarootdir_seen=yes;;
17931 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17933 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17936 ac_datarootdir_hack='
17937 s&@datadir@&$datadir&g
17938 s&@docdir@&$docdir&g
17939 s&@infodir@&$infodir&g
17940 s&@localedir@&$localedir&g
17941 s&@mandir@&$mandir&g
17942 s&\\\${datarootdir}&$datarootdir&g' ;;
17946 # Neutralize VPATH when `$srcdir' = `.'.
17947 # Shell code in configure.ac might set extrasub.
17948 # FIXME: do we really want to maintain this feature?
17949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17950 ac_sed_extra="$ac_vpsub
17953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17956 s|@configure_input@|$ac_sed_conf_input|;t t
17957 s&@top_builddir@&$ac_top_builddir_sub&;t t
17958 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17959 s&@srcdir@&$ac_srcdir&;t t
17960 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17961 s&@top_srcdir@&$ac_top_srcdir&;t t
17962 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17963 s&@builddir@&$ac_builddir&;t t
17964 s&@abs_builddir@&$ac_abs_builddir&;t t
17965 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17966 s&@INSTALL@&$ac_INSTALL&;t t
17967 $ac_datarootdir_hack
17969 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17970 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17972 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17973 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17974 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17975 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17977 which seems to be undefined. Please make sure it is defined" >&5
17978 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17979 which seems to be undefined. Please make sure it is defined" >&2;}
17981 rm -f "$ac_tmp/stdin"
17983 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17984 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17992 if test x"$ac_file" != x-; then
17994 $as_echo "/* $configure_input */" \
17995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17996 } >"$ac_tmp/config.h" \
17997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17998 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18000 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18003 mv "$ac_tmp/config.h" "$ac_file" \
18004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18007 $as_echo "/* $configure_input */" \
18008 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18009 || as_fn_error $? "could not create -" "$LINENO" 5
18021 ac_clean_files=$ac_clean_files_save
18023 test $ac_write_fail = 0 ||
18024 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18027 # configure is writing to config.log, and then calls config.status.
18028 # config.status does its own redirection, appending to config.log.
18029 # Unfortunately, on DOS this fails, as config.log is still kept open
18030 # by configure, so config.status won't be able to write to it; its
18031 # output is simply discarded. So we exec the FD to /dev/null,
18032 # effectively closing config.log, so it can be properly (re)opened and
18033 # appended to by config.status. When coming back to configure, we
18034 # need to make the FD available again.
18035 if test "$no_create" != yes; then
18037 ac_config_status_args=
18038 test "$silent" = yes &&
18039 ac_config_status_args="$ac_config_status_args --quiet"
18041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18044 # would make configure fail if this is the last instruction.
18045 $ac_cs_success || as_fn_exit 1
18047 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18049 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18053 # Print summary of options
18055 # Someone please show me a better way :)
18056 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
18057 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
18058 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
18059 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
18060 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
18061 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
18062 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
18063 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
18064 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
18065 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
18068 echo "OpenSSH has been configured with the following options:"
18069 echo " User binaries: $B"
18070 echo " System binaries: $C"
18071 echo " Configuration files: $D"
18072 echo " Askpass program: $E"
18073 echo " Manual pages: $F"
18074 echo " PID file: $G"
18075 echo " Privilege separation chroot path: $H"
18076 if test "x$external_path_file" = "x/etc/login.conf" ; then
18077 echo " At runtime, sshd will use the path defined in $external_path_file"
18078 echo " Make sure the path to scp is present, otherwise scp will not work"
18080 echo " sshd default user PATH: $I"
18081 if test ! -z "$external_path_file"; then
18082 echo " (If PATH is set in $external_path_file it will be used instead. If"
18083 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
18086 if test ! -z "$superuser_path" ; then
18087 echo " sshd superuser user PATH: $J"
18089 echo " Manpage format: $MANTYPE"
18090 echo " PAM support: $PAM_MSG"
18091 echo " OSF SIA support: $SIA_MSG"
18092 echo " KerberosV support: $KRB5_MSG"
18093 echo " SELinux support: $SELINUX_MSG"
18094 echo " Smartcard support: $SCARD_MSG"
18095 echo " S/KEY support: $SKEY_MSG"
18096 echo " TCP Wrappers support: $TCPW_MSG"
18097 echo " MD5 password support: $MD5_MSG"
18098 echo " libedit support: $LIBEDIT_MSG"
18099 echo " Solaris process contract support: $SPC_MSG"
18100 echo " Solaris project support: $SP_MSG"
18101 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
18102 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
18103 echo " BSD Auth support: $BSD_AUTH_MSG"
18104 echo " Random number source: $RAND_MSG"
18105 echo " Privsep sandbox style: $SANDBOX_STYLE"
18109 echo " Host: ${host}"
18110 echo " Compiler: ${CC}"
18111 echo " Compiler flags: ${CFLAGS}"
18112 echo "Preprocessor flags: ${CPPFLAGS}"
18113 echo " Linker flags: ${LDFLAGS}"
18114 echo " Libraries: ${LIBS}"
18115 if test ! -z "${SSHDLIBS}"; then
18116 echo " +for sshd: ${SSHDLIBS}"
18118 if test ! -z "${SSHLIBS}"; then
18119 echo " +for ssh: ${SSHLIBS}"
18124 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
18125 echo "SVR4 style packages are supported with \"make package\""
18129 if test "x$PAM_MSG" = "xyes" ; then
18130 echo "PAM is enabled. You may need to install a PAM control file "
18131 echo "for sshd, otherwise password authentication may fail. "
18132 echo "Example PAM control files can be found in the contrib/ "
18133 echo "subdirectory"
18137 if test ! -z "$NO_PEERCHECK" ; then
18138 echo "WARNING: the operating system that you are using does not"
18139 echo "appear to support getpeereid(), getpeerucred() or the"
18140 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
18141 echo "enforce security checks to prevent unauthorised connections to"
18142 echo "ssh-agent. Their absence increases the risk that a malicious"
18143 echo "user can connect to your agent."
18147 if test "$AUDIT_MODULE" = "bsm" ; then
18148 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
18149 echo "See the Solaris section in README.platform for details."