summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19734
1 files changed, 19734 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..6815388cc
--- /dev/null
+++ b/configure
@@ -0,0 +1,19734 @@
1#! /bin/sh
2# From configure.ac Revision: 1.583 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.68 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11# Foundation, Inc.
12#
13#
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## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
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+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_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.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55else
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'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
85
86
87# IFS
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.)
92IFS=" "" $as_nl"
93
94# Find who we are. Look in the path if we contain no directory separator.
95as_myself=
96case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105IFS=$as_save_IFS
106
107 ;;
108esac
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.
111if test "x$as_myself" = x; then
112 as_myself=$0
113fi
114if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117fi
118
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.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
153 ;;
154esac
155fi
156"
157 as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171 exitcode=1; echo positional parameters were not saved.
172fi
173test 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
178test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181else
182 as_have_required=no
183fi
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188as_found=false
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190do
191 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=.
193 as_found=:
194 case $as_dir in #(
195 /*)
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 :
203 break 2
204fi
205fi
206 done;;
207 esac
208 as_found=false
209done
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
213fi; }
214IFS=$as_save_IFS
215
216
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.
222 BASH_ENV=/dev/null
223 ENV=/dev/null
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 export CONFIG_SHELL
226 case $- in # ((((
227 *v*x* | *x*v* ) as_opts=-vx ;;
228 *v* ) as_opts=-v ;;
229 *x* ) as_opts=-x ;;
230 * ) as_opts= ;;
231 esac
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
233fi
234
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."
241 else
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."
247 fi
248 exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266 { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275 return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283 set +e
284 as_fn_set_status $1
285 exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
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
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
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.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368fi # as_fn_arith
369
370
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.
376as_fn_error ()
377{
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
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
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390else
391 as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396else
397 as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402else
403 as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
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. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
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; }
455
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).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473*)
474 ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
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 ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498else
499 as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='OpenSSH'
563PACKAGE_TARNAME='openssh'
564PACKAGE_VERSION='Portable'
565PACKAGE_STRING='OpenSSH Portable'
566PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
567PACKAGE_URL=''
568
569ac_unique_file="ssh.c"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584# include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589# include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='LTLIBOBJS
607LIBOBJS
608UNSUPPORTED_ALGORITHMS
609TEST_MALLOC_OPTIONS
610TEST_SSH_IPV6
611piddir
612user_path
613mansubdir
614MANTYPE
615XAUTH_PATH
616STRIP_OPT
617xauth_path
618PRIVSEP_PATH
619K5LIBS
620GSSLIBS
621KRB5CONF
622SSHDLIBS
623SSHLIBS
624SSH_PRIVSEP_USER
625COMMENT_OUT_ECC
626TEST_SSH_ECC
627LIBEDIT
628PKGCONFIG
629LD
630PATH_PASSWD_PROG
631LOGIN_PROGRAM_FALLBACK
632STARTUP_SCRIPT_SHELL
633MAKE_PACKAGE_SUPPORTED
634PATH_USERADD_PROG
635PATH_GROUPADD_PROG
636MANFMT
637TEST_SHELL
638MANDOC
639NROFF
640GROFF
641SH
642TEST_MINUS_S_SH
643ENT
644SED
645PERL
646KILL
647CAT
648AR
649INSTALL_DATA
650INSTALL_SCRIPT
651INSTALL_PROGRAM
652RANLIB
653AWK
654EGREP
655GREP
656CPP
657host_os
658host_vendor
659host_cpu
660host
661build_os
662build_vendor
663build_cpu
664build
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
672target_alias
673host_alias
674build_alias
675LIBS
676ECHO_T
677ECHO_N
678ECHO_C
679DEFS
680mandir
681localedir
682libdir
683psdir
684pdfdir
685dvidir
686htmldir
687infodir
688docdir
689oldincludedir
690includedir
691localstatedir
692sharedstatedir
693sysconfdir
694datadir
695datarootdir
696libexecdir
697sbindir
698bindir
699program_transform_name
700prefix
701exec_prefix
702PACKAGE_URL
703PACKAGE_BUGREPORT
704PACKAGE_STRING
705PACKAGE_VERSION
706PACKAGE_TARNAME
707PACKAGE_NAME
708PATH_SEPARATOR
709SHELL'
710ac_subst_files=''
711ac_user_opts='
712enable_option_checking
713enable_largefile
714with_stackprotect
715with_hardening
716with_rpath
717with_cflags
718with_cppflags
719with_ldflags
720with_libs
721with_Werror
722with_solaris_contracts
723with_solaris_projects
724with_osfsia
725with_zlib
726with_zlib_version_check
727with_skey
728with_ldns
729with_libedit
730with_audit
731with_pie
732with_ssl_dir
733with_openssl_header_check
734with_ssl_engine
735with_prngd_port
736with_prngd_socket
737with_pam
738with_privsep_user
739with_sandbox
740with_selinux
741with_kerberos5
742with_privsep_path
743with_xauth
744enable_strip
745with_maildir
746with_mantype
747with_md5_passwords
748with_shadow
749with_ipaddr_display
750enable_etc_default_login
751with_default_path
752with_superuser_path
753with_4in6
754with_bsd_auth
755with_pid_dir
756enable_lastlog
757enable_utmp
758enable_utmpx
759enable_wtmp
760enable_wtmpx
761enable_libutil
762enable_pututline
763enable_pututxline
764with_lastlog
765'
766 ac_precious_vars='build_alias
767host_alias
768target_alias
769CC
770CFLAGS
771LDFLAGS
772LIBS
773CPPFLAGS
774CPP'
775
776
777# Initialize some variables set by options.
778ac_init_help=
779ac_init_version=false
780ac_unrecognized_opts=
781ac_unrecognized_sep=
782# The variables have the same names as the options, with
783# dashes changed to underlines.
784cache_file=/dev/null
785exec_prefix=NONE
786no_create=
787no_recursion=
788prefix=NONE
789program_prefix=NONE
790program_suffix=NONE
791program_transform_name=s,x,x,
792silent=
793site=
794srcdir=
795verbose=
796x_includes=NONE
797x_libraries=NONE
798
799# Installation directory options.
800# These are left unexpanded so users can "make install exec_prefix=/foo"
801# and all the variables that are supposed to be based on exec_prefix
802# by default will actually change.
803# Use braces instead of parens because sh, perl, etc. also accept them.
804# (The list follows the same order as the GNU Coding Standards.)
805bindir='${exec_prefix}/bin'
806sbindir='${exec_prefix}/sbin'
807libexecdir='${exec_prefix}/libexec'
808datarootdir='${prefix}/share'
809datadir='${datarootdir}'
810sysconfdir='${prefix}/etc'
811sharedstatedir='${prefix}/com'
812localstatedir='${prefix}/var'
813includedir='${prefix}/include'
814oldincludedir='/usr/include'
815docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816infodir='${datarootdir}/info'
817htmldir='${docdir}'
818dvidir='${docdir}'
819pdfdir='${docdir}'
820psdir='${docdir}'
821libdir='${exec_prefix}/lib'
822localedir='${datarootdir}/locale'
823mandir='${datarootdir}/man'
824
825ac_prev=
826ac_dashdash=
827for ac_option
828do
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
832 ac_prev=
833 continue
834 fi
835
836 case $ac_option in
837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *=) ac_optarg= ;;
839 *) ac_optarg=yes ;;
840 esac
841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889"enable_$ac_useropt"
890"*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915"enable_$ac_useropt"
916"*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1081
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1091
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1098
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1109
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119"with_$ac_useropt"
1120"*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1125
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1141
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1145
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1152
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1159
1160 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161Try \`$0 --help' for more information"
1162 ;;
1163
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1173
1174 *)
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 ;;
1181
1182 esac
1183done
1184
1185if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error $? "missing argument to $ac_option"
1188fi
1189
1190if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1196fi
1197
1198# Check all directory arguments for consistency.
1199for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1203do
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used" >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $? "working directory cannot be determined"
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
1337Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370_ACEOF
1371
1372 cat <<\_ACEOF
1373
1374System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1383 esac
1384 cat <<\_ACEOF
1385
1386Optional Features:
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --disable-largefile omit support for large files
1391 --disable-strip Disable calling strip(1) on install
1392 --disable-etc-default-login Disable using PATH from /etc/default/login no
1393 --disable-lastlog disable use of lastlog even if detected no
1394 --disable-utmp disable use of utmp even if detected no
1395 --disable-utmpx disable use of utmpx even if detected no
1396 --disable-wtmp disable use of wtmp even if detected no
1397 --disable-wtmpx disable use of wtmpx even if detected no
1398 --disable-libutil disable use of libutil (login() etc.) no
1399 --disable-pututline disable use of pututline() etc. (uwtmp) no
1400 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1401
1402Optional Packages:
1403 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1404 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1405 --without-stackprotect Don't use compiler's stack protection
1406 --without-hardening Don't use toolchain hardening flags
1407 --without-rpath Disable auto-added -R linker paths
1408 --with-cflags Specify additional flags to pass to compiler
1409 --with-cppflags Specify additional flags to pass to preprocessor
1410 --with-ldflags Specify additional flags to pass to linker
1411 --with-libs Specify additional libraries to link with
1412 --with-Werror Build main code with -Werror
1413 --with-solaris-contracts Enable Solaris process contracts (experimental)
1414 --with-solaris-projects Enable Solaris projects (experimental)
1415 --with-osfsia Enable Digital Unix SIA
1416 --with-zlib=PATH Use zlib in PATH
1417 --without-zlib-version-check Disable zlib version check
1418 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1419 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1420 --with-libedit[=PATH] Enable libedit support for sftp
1421 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1422 --with-pie Build Position Independent Executables if possible
1423 --with-ssl-dir=PATH Specify path to OpenSSL installation
1424 --without-openssl-header-check Disable OpenSSL version consistency check
1425 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1426 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1427 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1428 --with-pam Enable PAM support
1429 --with-privsep-user=user Specify non-privileged user for privilege separation
1430 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum)
1431 --with-selinux Enable SELinux support
1432 --with-kerberos5=PATH Enable Kerberos 5 support
1433 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1434 --with-xauth=PATH Specify path to xauth program
1435 --with-maildir=/path/to/mail Specify your system mail directory
1436 --with-mantype=man|cat|doc Set man page type
1437 --with-md5-passwords Enable use of MD5 passwords
1438 --without-shadow Disable shadow password support
1439 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1440 --with-default-path= Specify default \$PATH environment for server
1441 --with-superuser-path= Specify different path for super-user
1442 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1443 --with-bsd-auth Enable BSD auth support
1444 --with-pid-dir=PATH Specify location of ssh.pid file
1445 --with-lastlog=FILE|DIR specify lastlog location common locations
1446
1447Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 CPP C preprocessor
1456
1457Use these variables to override the choices made by `configure' or to help
1458it to find libraries and programs with nonstandard names/locations.
1459
1460Report bugs to <openssh-unix-dev@mindrot.org>.
1461_ACEOF
1462ac_status=$?
1463fi
1464
1465if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1472
1473case "$ac_dir" in
1474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475*)
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483esac
1484ac_abs_top_builddir=$ac_pwd
1485ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486# for backward compatibility:
1487ac_top_builddir=$ac_top_build_prefix
1488
1489case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502esac
1503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1518fi
1519
1520test -n "$ac_init_help" && exit $ac_status
1521if $ac_init_version; then
1522 cat <<\_ACEOF
1523OpenSSH configure Portable
1524generated by GNU Autoconf 2.68
1525
1526Copyright (C) 2010 Free Software Foundation, Inc.
1527This configure script is free software; the Free Software Foundation
1528gives unlimited permission to copy, distribute and modify it.
1529_ACEOF
1530 exit
1531fi
1532
1533## ------------------------ ##
1534## Autoconf initialization. ##
1535## ------------------------ ##
1536
1537# ac_fn_c_try_compile LINENO
1538# --------------------------
1539# Try to compile conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_c_try_compile ()
1541{
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564else
1565 $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_compile
1574
1575# ac_fn_c_try_run LINENO
1576# ----------------------
1577# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1578# that executables *can* be run.
1579ac_fn_c_try_run ()
1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_link"
1583case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>&5
1590 ac_status=$?
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1593 { { case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_try") 2>&5
1600 ac_status=$?
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; }; }; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: program exited with status $ac_status" >&5
1606 $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=$ac_status
1610fi
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_run
1616
1617# ac_fn_c_try_cpp LINENO
1618# ----------------------
1619# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_cpp ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } > conftest.i && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_cpp
1653
1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655# -------------------------------------------------------
1656# Tests whether HEADER exists and can be compiled using the include files in
1657# INCLUDES, setting the cache variable VAR accordingly.
1658ac_fn_c_check_header_compile ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662$as_echo_n "checking for $2... " >&6; }
1663if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668$4
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673else
1674 eval "$3=no"
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677fi
1678eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680$as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683} # ac_fn_c_check_header_compile
1684
1685# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1686# ---------------------------------------------
1687# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1688# accordingly.
1689ac_fn_c_check_decl ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 as_decl_name=`echo $2|sed 's/ *(.*//'`
1693 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1695$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1696if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h. */
1701$4
1702int
1703main ()
1704{
1705#ifndef $as_decl_name
1706#ifdef __cplusplus
1707 (void) $as_decl_use;
1708#else
1709 (void) $as_decl_name;
1710#endif
1711#endif
1712
1713 ;
1714 return 0;
1715}
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"; then :
1718 eval "$3=yes"
1719else
1720 eval "$3=no"
1721fi
1722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723fi
1724eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729} # ac_fn_c_check_decl
1730
1731# ac_fn_c_try_link LINENO
1732# -----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_link ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 $as_test_x conftest$ac_exeext
1759 }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_link
1776
1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780# the include files in INCLUDES and setting the cache variable VAR
1781# accordingly.
1782ac_fn_c_check_header_mongrel ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if eval \${$3+:} false; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794else
1795 # Is the header compilable?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797$as_echo_n "checking $2 usability... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805else
1806 ac_header_compiler=no
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810$as_echo "$ac_header_compiler" >&6; }
1811
1812# Is the header present?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814$as_echo_n "checking $2 presence... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821else
1822 ac_header_preproc=no
1823fi
1824rm -f conftest.err conftest.i conftest.$ac_ext
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826$as_echo "$ac_header_preproc" >&6; }
1827
1828# So? What about this header?
1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847( $as_echo "## ------------------------------------------- ##
1848## Report this to openssh-unix-dev@mindrot.org ##
1849## ------------------------------------------- ##"
1850 ) | sed "s/^/$as_me: WARNING: /" >&2
1851 ;;
1852esac
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 eval "$3=\$ac_header_compiler"
1859fi
1860eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863fi
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866} # ac_fn_c_check_header_mongrel
1867
1868# ac_fn_c_check_func LINENO FUNC VAR
1869# ----------------------------------
1870# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871ac_fn_c_check_func ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
1876if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883#define $2 innocuous_$2
1884
1885/* System header to define __stub macros and hopefully few prototypes,
1886 which can conflict with char $2 (); below.
1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888 <limits.h> exists even on freestanding compilers. */
1889
1890#ifdef __STDC__
1891# include <limits.h>
1892#else
1893# include <assert.h>
1894#endif
1895
1896#undef $2
1897
1898/* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1901#ifdef __cplusplus
1902extern "C"
1903#endif
1904char $2 ();
1905/* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908#if defined __stub_$2 || defined __stub___$2
1909choke me
1910#endif
1911
1912int
1913main ()
1914{
1915return $2 ();
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_link "$LINENO"; then :
1921 eval "$3=yes"
1922else
1923 eval "$3=no"
1924fi
1925rm -f core conftest.err conftest.$ac_objext \
1926 conftest$ac_exeext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933} # ac_fn_c_check_func
1934
1935# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1936# -------------------------------------------
1937# Tests whether TYPE exists after having included INCLUDES, setting cache
1938# variable VAR accordingly.
1939ac_fn_c_check_type ()
1940{
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943$as_echo_n "checking for $2... " >&6; }
1944if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946else
1947 eval "$3=no"
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950$4
1951int
1952main ()
1953{
1954if (sizeof ($2))
1955 return 0;
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963$4
1964int
1965main ()
1966{
1967if (sizeof (($2)))
1968 return 0;
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974
1975else
1976 eval "$3=yes"
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981fi
1982eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987} # ac_fn_c_check_type
1988
1989# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1990# --------------------------------------------
1991# Tries to find the compile-time value of EXPR in a program that includes
1992# INCLUDES, setting VAR accordingly. Returns whether the value could be
1993# computed
1994ac_fn_c_compute_int ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if test "$cross_compiling" = yes; then
1998 # Depending upon the size, compute the lo and hi bounds.
1999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h. */
2001$4
2002int
2003main ()
2004{
2005static int test_array [1 - 2 * !(($2) >= 0)];
2006test_array [0] = 0
2007
2008 ;
2009 return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_lo=0 ac_mid=0
2014 while :; do
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018int
2019main ()
2020{
2021static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2022test_array [0] = 0
2023
2024 ;
2025 return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_hi=$ac_mid; break
2030else
2031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2032 if test $ac_lo -le $ac_mid; then
2033 ac_lo= ac_hi=
2034 break
2035 fi
2036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 done
2040else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h. */
2043$4
2044int
2045main ()
2046{
2047static int test_array [1 - 2 * !(($2) < 0)];
2048test_array [0] = 0
2049
2050 ;
2051 return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_hi=-1 ac_mid=-1
2056 while :; do
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$4
2060int
2061main ()
2062{
2063static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2064test_array [0] = 0
2065
2066 ;
2067 return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=$ac_mid; break
2072else
2073 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2074 if test $ac_mid -le $ac_hi; then
2075 ac_lo= ac_hi=
2076 break
2077 fi
2078 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082else
2083 ac_lo= ac_hi=
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088# Binary search between lo and hi bounds.
2089while test "x$ac_lo" != "x$ac_hi"; do
2090 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2098test_array [0] = 0
2099
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=$ac_mid
2106else
2107 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2108fi
2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110done
2111case $ac_lo in #((
2112?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2113'') ac_retval=1 ;;
2114esac
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h. */
2118$4
2119static long int longval () { return $2; }
2120static unsigned long int ulongval () { return $2; }
2121#include <stdio.h>
2122#include <stdlib.h>
2123int
2124main ()
2125{
2126
2127 FILE *f = fopen ("conftest.val", "w");
2128 if (! f)
2129 return 1;
2130 if (($2) < 0)
2131 {
2132 long int i = longval ();
2133 if (i != ($2))
2134 return 1;
2135 fprintf (f, "%ld", i);
2136 }
2137 else
2138 {
2139 unsigned long int i = ulongval ();
2140 if (i != ($2))
2141 return 1;
2142 fprintf (f, "%lu", i);
2143 }
2144 /* Do not output a trailing newline, as this causes \r\n confusion
2145 on some platforms. */
2146 return ferror (f) || fclose (f) != 0;
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_run "$LINENO"; then :
2153 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2154else
2155 ac_retval=1
2156fi
2157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2158 conftest.$ac_objext conftest.beam conftest.$ac_ext
2159rm -f conftest.val
2160
2161 fi
2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 as_fn_set_status $ac_retval
2164
2165} # ac_fn_c_compute_int
2166
2167# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2168# ----------------------------------------------------
2169# Tries to find if the field MEMBER exists in type AGGR, after including
2170# INCLUDES, setting cache variable VAR accordingly.
2171ac_fn_c_check_member ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2175$as_echo_n "checking for $2.$3... " >&6; }
2176if eval \${$4+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$5
2182int
2183main ()
2184{
2185static $2 ac_aggr;
2186if (ac_aggr.$3)
2187return 0;
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193 eval "$4=yes"
2194else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h. */
2197$5
2198int
2199main ()
2200{
2201static $2 ac_aggr;
2202if (sizeof ac_aggr.$3)
2203return 0;
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208if ac_fn_c_try_compile "$LINENO"; then :
2209 eval "$4=yes"
2210else
2211 eval "$4=no"
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216fi
2217eval ac_res=\$$4
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221
2222} # ac_fn_c_check_member
2223cat >config.log <<_ACEOF
2224This file contains any messages produced by compilers while
2225running configure, to aid debugging if configure makes a mistake.
2226
2227It was created by OpenSSH $as_me Portable, which was
2228generated by GNU Autoconf 2.68. Invocation command line was
2229
2230 $ $0 $@
2231
2232_ACEOF
2233exec 5>>config.log
2234{
2235cat <<_ASUNAME
2236## --------- ##
2237## Platform. ##
2238## --------- ##
2239
2240hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2241uname -m = `(uname -m) 2>/dev/null || echo unknown`
2242uname -r = `(uname -r) 2>/dev/null || echo unknown`
2243uname -s = `(uname -s) 2>/dev/null || echo unknown`
2244uname -v = `(uname -v) 2>/dev/null || echo unknown`
2245
2246/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2247/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2248
2249/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2250/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2251/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2252/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2253/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2254/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2255/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2256
2257_ASUNAME
2258
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 $as_echo "PATH: $as_dir"
2265 done
2266IFS=$as_save_IFS
2267
2268} >&5
2269
2270cat >&5 <<_ACEOF
2271
2272
2273## ----------- ##
2274## Core tests. ##
2275## ----------- ##
2276
2277_ACEOF
2278
2279
2280# Keep a trace of the command line.
2281# Strip out --no-create and --no-recursion so they do not pile up.
2282# Strip out --silent because we don't want to record it for future runs.
2283# Also quote any args containing shell meta-characters.
2284# Make two passes to allow for proper duplicate-argument suppression.
2285ac_configure_args=
2286ac_configure_args0=
2287ac_configure_args1=
2288ac_must_keep_next=false
2289for ac_pass in 1 2
2290do
2291 for ac_arg
2292 do
2293 case $ac_arg in
2294 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2296 | -silent | --silent | --silen | --sile | --sil)
2297 continue ;;
2298 *\'*)
2299 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 esac
2301 case $ac_pass in
2302 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2303 2)
2304 as_fn_append ac_configure_args1 " '$ac_arg'"
2305 if test $ac_must_keep_next = true; then
2306 ac_must_keep_next=false # Got value, back to normal.
2307 else
2308 case $ac_arg in
2309 *=* | --config-cache | -C | -disable-* | --disable-* \
2310 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2311 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2312 | -with-* | --with-* | -without-* | --without-* | --x)
2313 case "$ac_configure_args0 " in
2314 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2315 esac
2316 ;;
2317 -* ) ac_must_keep_next=true ;;
2318 esac
2319 fi
2320 as_fn_append ac_configure_args " '$ac_arg'"
2321 ;;
2322 esac
2323 done
2324done
2325{ ac_configure_args0=; unset ac_configure_args0;}
2326{ ac_configure_args1=; unset ac_configure_args1;}
2327
2328# When interrupted or exit'd, cleanup temporary files, and complete
2329# config.log. We remove comments because anyway the quotes in there
2330# would cause problems or look ugly.
2331# WARNING: Use '\'' to represent an apostrophe within the trap.
2332# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2333trap 'exit_status=$?
2334 # Save into config.log some information that might help in debugging.
2335 {
2336 echo
2337
2338 $as_echo "## ---------------- ##
2339## Cache variables. ##
2340## ---------------- ##"
2341 echo
2342 # The following way of writing the cache mishandles newlines in values,
2343(
2344 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in #(
2347 *${as_nl}*)
2348 case $ac_var in #(
2349 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2350$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2351 esac
2352 case $ac_var in #(
2353 _ | IFS | as_nl) ;; #(
2354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2355 *) { eval $ac_var=; unset $ac_var;} ;;
2356 esac ;;
2357 esac
2358 done
2359 (set) 2>&1 |
2360 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2361 *${as_nl}ac_space=\ *)
2362 sed -n \
2363 "s/'\''/'\''\\\\'\'''\''/g;
2364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2365 ;; #(
2366 *)
2367 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2368 ;;
2369 esac |
2370 sort
2371)
2372 echo
2373
2374 $as_echo "## ----------------- ##
2375## Output variables. ##
2376## ----------------- ##"
2377 echo
2378 for ac_var in $ac_subst_vars
2379 do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in
2382 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2383 esac
2384 $as_echo "$ac_var='\''$ac_val'\''"
2385 done | sort
2386 echo
2387
2388 if test -n "$ac_subst_files"; then
2389 $as_echo "## ------------------- ##
2390## File substitutions. ##
2391## ------------------- ##"
2392 echo
2393 for ac_var in $ac_subst_files
2394 do
2395 eval ac_val=\$$ac_var
2396 case $ac_val in
2397 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2398 esac
2399 $as_echo "$ac_var='\''$ac_val'\''"
2400 done | sort
2401 echo
2402 fi
2403
2404 if test -s confdefs.h; then
2405 $as_echo "## ----------- ##
2406## confdefs.h. ##
2407## ----------- ##"
2408 echo
2409 cat confdefs.h
2410 echo
2411 fi
2412 test "$ac_signal" != 0 &&
2413 $as_echo "$as_me: caught signal $ac_signal"
2414 $as_echo "$as_me: exit $exit_status"
2415 } >&5
2416 rm -f core *.core core.conftest.* &&
2417 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418 exit $exit_status
2419' 0
2420for ac_signal in 1 2 13 15; do
2421 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2422done
2423ac_signal=0
2424
2425# confdefs.h avoids OS command line length limits that DEFS can exceed.
2426rm -f -r conftest* confdefs.h
2427
2428$as_echo "/* confdefs.h */" > confdefs.h
2429
2430# Predefined preprocessor variables.
2431
2432cat >>confdefs.h <<_ACEOF
2433#define PACKAGE_NAME "$PACKAGE_NAME"
2434_ACEOF
2435
2436cat >>confdefs.h <<_ACEOF
2437#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438_ACEOF
2439
2440cat >>confdefs.h <<_ACEOF
2441#define PACKAGE_VERSION "$PACKAGE_VERSION"
2442_ACEOF
2443
2444cat >>confdefs.h <<_ACEOF
2445#define PACKAGE_STRING "$PACKAGE_STRING"
2446_ACEOF
2447
2448cat >>confdefs.h <<_ACEOF
2449#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450_ACEOF
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE_URL "$PACKAGE_URL"
2454_ACEOF
2455
2456
2457# Let the site file select an alternate cache file if it wants to.
2458# Prefer an explicitly selected file to automatically selected ones.
2459ac_site_file1=NONE
2460ac_site_file2=NONE
2461if test -n "$CONFIG_SITE"; then
2462 # We do not want a PATH search for config.site.
2463 case $CONFIG_SITE in #((
2464 -*) ac_site_file1=./$CONFIG_SITE;;
2465 */*) ac_site_file1=$CONFIG_SITE;;
2466 *) ac_site_file1=./$CONFIG_SITE;;
2467 esac
2468elif test "x$prefix" != xNONE; then
2469 ac_site_file1=$prefix/share/config.site
2470 ac_site_file2=$prefix/etc/config.site
2471else
2472 ac_site_file1=$ac_default_prefix/share/config.site
2473 ac_site_file2=$ac_default_prefix/etc/config.site
2474fi
2475for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2476do
2477 test "x$ac_site_file" = xNONE && continue
2478 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2480$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2481 sed 's/^/| /' "$ac_site_file" >&5
2482 . "$ac_site_file" \
2483 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2485as_fn_error $? "failed to load site script $ac_site_file
2486See \`config.log' for more details" "$LINENO" 5; }
2487 fi
2488done
2489
2490if test -r "$cache_file"; then
2491 # Some versions of bash will fail to source /dev/null (special files
2492 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2493 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2495$as_echo "$as_me: loading cache $cache_file" >&6;}
2496 case $cache_file in
2497 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2498 *) . "./$cache_file";;
2499 esac
2500 fi
2501else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2503$as_echo "$as_me: creating cache $cache_file" >&6;}
2504 >$cache_file
2505fi
2506
2507# Check that the precious variables saved in the cache have kept the same
2508# value.
2509ac_cache_corrupted=false
2510for ac_var in $ac_precious_vars; do
2511 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2512 eval ac_new_set=\$ac_env_${ac_var}_set
2513 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2514 eval ac_new_val=\$ac_env_${ac_var}_value
2515 case $ac_old_set,$ac_new_set in
2516 set,)
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2518$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2520 ,set)
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2522$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2523 ac_cache_corrupted=: ;;
2524 ,);;
2525 *)
2526 if test "x$ac_old_val" != "x$ac_new_val"; then
2527 # differences in whitespace do not lead to failure.
2528 ac_old_val_w=`echo x $ac_old_val`
2529 ac_new_val_w=`echo x $ac_new_val`
2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2532$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2533 ac_cache_corrupted=:
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2536$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2537 eval $ac_var=\$ac_old_val
2538 fi
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2540$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2542$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2543 fi;;
2544 esac
2545 # Pass precious variables to config.status.
2546 if test "$ac_new_set" = set; then
2547 case $ac_new_val in
2548 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2549 *) ac_arg=$ac_var=$ac_new_val ;;
2550 esac
2551 case " $ac_configure_args " in
2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2554 esac
2555 fi
2556done
2557if $ac_cache_corrupted; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2561$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2562 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2563fi
2564## -------------------- ##
2565## Main body of script. ##
2566## -------------------- ##
2567
2568ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573
2574
2575
2576
2577ac_ext=c
2578ac_cpp='$CPP $CPPFLAGS'
2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
2583
2584ac_config_headers="$ac_config_headers config.h"
2585
2586ac_ext=c
2587ac_cpp='$CPP $CPPFLAGS'
2588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}gcc; ac_word=$2
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; }
2596if ${ac_cv_prog_CC+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613done
2614 done
2615IFS=$as_save_IFS
2616
2617fi
2618fi
2619CC=$ac_cv_prog_CC
2620if test -n "$CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2622$as_echo "$CC" >&6; }
2623else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625$as_echo "no" >&6; }
2626fi
2627
2628
2629fi
2630if test -z "$ac_cv_prog_CC"; then
2631 ac_ct_CC=$CC
2632 # Extract the first word of "gcc", so it can be a program name with args.
2633set dummy gcc; ac_word=$2
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635$as_echo_n "checking for $ac_word... " >&6; }
2636if ${ac_cv_prog_ac_ct_CC+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638else
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="gcc"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653done
2654 done
2655IFS=$as_save_IFS
2656
2657fi
2658fi
2659ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660if test -n "$ac_ct_CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2662$as_echo "$ac_ct_CC" >&6; }
2663else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665$as_echo "no" >&6; }
2666fi
2667
2668 if test "x$ac_ct_CC" = x; then
2669 CC=""
2670 else
2671 case $cross_compiling:$ac_tool_warned in
2672yes:)
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2675ac_tool_warned=yes ;;
2676esac
2677 CC=$ac_ct_CC
2678 fi
2679else
2680 CC="$ac_cv_prog_CC"
2681fi
2682
2683if test -z "$CC"; then
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2686set dummy ${ac_tool_prefix}cc; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if ${ac_cv_prog_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691else
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_CC="${ac_tool_prefix}cc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706done
2707 done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712CC=$ac_cv_prog_CC
2713if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715$as_echo "$CC" >&6; }
2716else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721
2722 fi
2723fi
2724if test -z "$CC"; then
2725 # Extract the first word of "cc", so it can be a program name with args.
2726set dummy cc; ac_word=$2
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
2729if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734else
2735 ac_prog_rejected=no
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2744 ac_prog_rejected=yes
2745 continue
2746 fi
2747 ac_cv_prog_CC="cc"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751done
2752 done
2753IFS=$as_save_IFS
2754
2755if test $ac_prog_rejected = yes; then
2756 # We found a bogon in the path, so make sure we never use it.
2757 set dummy $ac_cv_prog_CC
2758 shift
2759 if test $# != 0; then
2760 # We chose a different compiler from the bogus one.
2761 # However, it has the same basename, so the bogon will be chosen
2762 # first if we set CC to just the basename; use the full file name.
2763 shift
2764 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2765 fi
2766fi
2767fi
2768fi
2769CC=$ac_cv_prog_CC
2770if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772$as_echo "$CC" >&6; }
2773else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
2777
2778
2779fi
2780if test -z "$CC"; then
2781 if test -n "$ac_tool_prefix"; then
2782 for ac_prog in cl.exe
2783 do
2784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
2788if ${ac_cv_prog_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805done
2806 done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811CC=$ac_cv_prog_CC
2812if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814$as_echo "$CC" >&6; }
2815else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817$as_echo "no" >&6; }
2818fi
2819
2820
2821 test -n "$CC" && break
2822 done
2823fi
2824if test -z "$CC"; then
2825 ac_ct_CC=$CC
2826 for ac_prog in cl.exe
2827do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829set dummy $ac_prog; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if ${ac_cv_prog_ac_ct_CC+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834else
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_ac_ct_CC="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849done
2850 done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856if test -n "$ac_ct_CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2858$as_echo "$ac_ct_CC" >&6; }
2859else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861$as_echo "no" >&6; }
2862fi
2863
2864
2865 test -n "$ac_ct_CC" && break
2866done
2867
2868 if test "x$ac_ct_CC" = x; then
2869 CC=""
2870 else
2871 case $cross_compiling:$ac_tool_warned in
2872yes:)
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2875ac_tool_warned=yes ;;
2876esac
2877 CC=$ac_ct_CC
2878 fi
2879fi
2880
2881fi
2882
2883
2884test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886as_fn_error $? "no acceptable C compiler found in \$PATH
2887See \`config.log' for more details" "$LINENO" 5; }
2888
2889# Provide some information about the compiler.
2890$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2891set X $ac_compile
2892ac_compiler=$2
2893for ac_option in --version -v -V -qversion; do
2894 { { ac_try="$ac_compiler $ac_option >&5"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900$as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2902 ac_status=$?
2903 if test -s conftest.err; then
2904 sed '10a\
2905... rest of stderr output deleted ...
2906 10q' conftest.err >conftest.er1
2907 cat conftest.er1 >&5
2908 fi
2909 rm -f conftest.er1 conftest.err
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; }
2912done
2913
2914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915/* end confdefs.h. */
2916
2917int
2918main ()
2919{
2920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925ac_clean_files_save=$ac_clean_files
2926ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2927# Try to create an executable without -o first, disregard a.out.
2928# It will help us diagnose broken compilers, and finding out an intuition
2929# of exeext.
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2931$as_echo_n "checking whether the C compiler works... " >&6; }
2932ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2933
2934# The possible output files:
2935ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2936
2937ac_rmfiles=
2938for ac_file in $ac_files
2939do
2940 case $ac_file in
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2942 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2943 esac
2944done
2945rm -f $ac_rmfiles
2946
2947if { { ac_try="$ac_link_default"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953$as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_link_default") 2>&5
2955 ac_status=$?
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }; then :
2958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2959# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2960# in a Makefile. We should not override ac_cv_exeext if it was cached,
2961# so that the user can short-circuit this test for compilers unknown to
2962# Autoconf.
2963for ac_file in $ac_files ''
2964do
2965 test -f "$ac_file" || continue
2966 case $ac_file in
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2968 ;;
2969 [ab].out )
2970 # We found the default executable, but exeext='' is most
2971 # certainly right.
2972 break;;
2973 *.* )
2974 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2975 then :; else
2976 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 fi
2978 # We set ac_cv_exeext here because the later test for it is not
2979 # safe: cross compilers may not add the suffix if given an `-o'
2980 # argument, so we may need to know it at that point already.
2981 # Even if this section looks crufty: it has the advantage of
2982 # actually working.
2983 break;;
2984 * )
2985 break;;
2986 esac
2987done
2988test "$ac_cv_exeext" = no && ac_cv_exeext=
2989
2990else
2991 ac_file=''
2992fi
2993if test -z "$ac_file"; then :
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996$as_echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5
2998
2999{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3001as_fn_error 77 "C compiler cannot create executables
3002See \`config.log' for more details" "$LINENO" 5; }
3003else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005$as_echo "yes" >&6; }
3006fi
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3008$as_echo_n "checking for C compiler default output file name... " >&6; }
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3010$as_echo "$ac_file" >&6; }
3011ac_exeext=$ac_cv_exeext
3012
3013rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3014ac_clean_files=$ac_clean_files_save
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3016$as_echo_n "checking for suffix of executables... " >&6; }
3017if { { ac_try="$ac_link"
3018case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023$as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_link") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3029# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3030# work properly (i.e., refer to `conftest.exe'), while it won't with
3031# `rm'.
3032for ac_file in conftest.exe conftest conftest.*; do
3033 test -f "$ac_file" || continue
3034 case $ac_file in
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3036 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037 break;;
3038 * ) break;;
3039 esac
3040done
3041else
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3045See \`config.log' for more details" "$LINENO" 5; }
3046fi
3047rm -f conftest conftest$ac_cv_exeext
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3049$as_echo "$ac_cv_exeext" >&6; }
3050
3051rm -f conftest.$ac_ext
3052EXEEXT=$ac_cv_exeext
3053ac_exeext=$EXEEXT
3054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055/* end confdefs.h. */
3056#include <stdio.h>
3057int
3058main ()
3059{
3060FILE *f = fopen ("conftest.out", "w");
3061 return ferror (f) || fclose (f) != 0;
3062
3063 ;
3064 return 0;
3065}
3066_ACEOF
3067ac_clean_files="$ac_clean_files conftest.out"
3068# Check that the compiler produces executables we can run. If not, either
3069# the compiler is broken, or we cross compile.
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3071$as_echo_n "checking whether we are cross compiling... " >&6; }
3072if test "$cross_compiling" != yes; then
3073 { { ac_try="$ac_link"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079$as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_link") 2>&5
3081 ac_status=$?
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3084 if { ac_try='./conftest$ac_cv_exeext'
3085 { { case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_try") 2>&5
3092 ac_status=$?
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; }; then
3095 cross_compiling=no
3096 else
3097 if test "$cross_compiling" = maybe; then
3098 cross_compiling=yes
3099 else
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102as_fn_error $? "cannot run C compiled programs.
3103If you meant to cross compile, use \`--host'.
3104See \`config.log' for more details" "$LINENO" 5; }
3105 fi
3106 fi
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3109$as_echo "$cross_compiling" >&6; }
3110
3111rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3112ac_clean_files=$ac_clean_files_save
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3114$as_echo_n "checking for suffix of object files... " >&6; }
3115if ${ac_cv_objext+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117else
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.o conftest.obj
3130if { { ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136$as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_compile") 2>&5
3138 ac_status=$?
3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140 test $ac_status = 0; }; then :
3141 for ac_file in conftest.o conftest.obj conftest.*; do
3142 test -f "$ac_file" || continue;
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3146 break;;
3147 esac
3148done
3149else
3150 $as_echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155as_fn_error $? "cannot compute suffix of object files: cannot compile
3156See \`config.log' for more details" "$LINENO" 5; }
3157fi
3158rm -f conftest.$ac_cv_objext conftest.$ac_ext
3159fi
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3161$as_echo "$ac_cv_objext" >&6; }
3162OBJEXT=$ac_cv_objext
3163ac_objext=$OBJEXT
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3165$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3166if ${ac_cv_c_compiler_gnu+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175#ifndef __GNUC__
3176 choke me
3177#endif
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183if ac_fn_c_try_compile "$LINENO"; then :
3184 ac_compiler_gnu=yes
3185else
3186 ac_compiler_gnu=no
3187fi
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190
3191fi
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3193$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194if test $ac_compiler_gnu = yes; then
3195 GCC=yes
3196else
3197 GCC=
3198fi
3199ac_test_CFLAGS=${CFLAGS+set}
3200ac_save_CFLAGS=$CFLAGS
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3202$as_echo_n "checking whether $CC accepts -g... " >&6; }
3203if ${ac_cv_prog_cc_g+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205else
3206 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes
3208 ac_cv_prog_cc_g=no
3209 CFLAGS="-g"
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
3221if ac_fn_c_try_compile "$LINENO"; then :
3222 ac_cv_prog_cc_g=yes
3223else
3224 CFLAGS=""
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h. */
3227
3228int
3229main ()
3230{
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236if ac_fn_c_try_compile "$LINENO"; then :
3237
3238else
3239 ac_c_werror_flag=$ac_save_c_werror_flag
3240 CFLAGS="-g"
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242/* end confdefs.h. */
3243
3244int
3245main ()
3246{
3247
3248 ;
3249 return 0;
3250}
3251_ACEOF
3252if ac_fn_c_try_compile "$LINENO"; then :
3253 ac_cv_prog_cc_g=yes
3254fi
3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256fi
3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258fi
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_c_werror_flag=$ac_save_c_werror_flag
3261fi
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3263$as_echo "$ac_cv_prog_cc_g" >&6; }
3264if test "$ac_test_CFLAGS" = set; then
3265 CFLAGS=$ac_save_CFLAGS
3266elif test $ac_cv_prog_cc_g = yes; then
3267 if test "$GCC" = yes; then
3268 CFLAGS="-g -O2"
3269 else
3270 CFLAGS="-g"
3271 fi
3272else
3273 if test "$GCC" = yes; then
3274 CFLAGS="-O2"
3275 else
3276 CFLAGS=
3277 fi
3278fi
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3280$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3281if ${ac_cv_prog_cc_c89+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283else
3284 ac_cv_prog_cc_c89=no
3285ac_save_CC=$CC
3286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287/* end confdefs.h. */
3288#include <stdarg.h>
3289#include <stdio.h>
3290#include <sys/types.h>
3291#include <sys/stat.h>
3292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3293struct buf { int x; };
3294FILE * (*rcsopen) (struct buf *, struct stat *, int);
3295static char *e (p, i)
3296 char **p;
3297 int i;
3298{
3299 return p[i];
3300}
3301static char *f (char * (*g) (char **, int), char **p, ...)
3302{
3303 char *s;
3304 va_list v;
3305 va_start (v,p);
3306 s = g (p, va_arg (v,int));
3307 va_end (v);
3308 return s;
3309}
3310
3311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3312 function prototypes and stuff, but not '\xHH' hex character constants.
3313 These don't provoke an error unfortunately, instead are silently treated
3314 as 'x'. The following induces an error, until -std is added to get
3315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3316 array size at least. It's necessary to write '\x00'==0 to get something
3317 that's true only with -std. */
3318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319
3320/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3321 inside strings and character constants. */
3322#define FOO(x) 'x'
3323int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3324
3325int test (int i, double x);
3326struct s1 {int (*f) (int a);};
3327struct s2 {int (*f) (double a);};
3328int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3329int argc;
3330char **argv;
3331int
3332main ()
3333{
3334return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3335 ;
3336 return 0;
3337}
3338_ACEOF
3339for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3340 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3341do
3342 CC="$ac_save_CC $ac_arg"
3343 if ac_fn_c_try_compile "$LINENO"; then :
3344 ac_cv_prog_cc_c89=$ac_arg
3345fi
3346rm -f core conftest.err conftest.$ac_objext
3347 test "x$ac_cv_prog_cc_c89" != "xno" && break
3348done
3349rm -f conftest.$ac_ext
3350CC=$ac_save_CC
3351
3352fi
3353# AC_CACHE_VAL
3354case "x$ac_cv_prog_cc_c89" in
3355 x)
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3357$as_echo "none needed" >&6; } ;;
3358 xno)
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3360$as_echo "unsupported" >&6; } ;;
3361 *)
3362 CC="$CC $ac_cv_prog_cc_c89"
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3364$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3365esac
3366if test "x$ac_cv_prog_cc_c89" != xno; then :
3367
3368fi
3369
3370ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS'
3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375
3376ac_aux_dir=
3377for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3378 if test -f "$ac_dir/install-sh"; then
3379 ac_aux_dir=$ac_dir
3380 ac_install_sh="$ac_aux_dir/install-sh -c"
3381 break
3382 elif test -f "$ac_dir/install.sh"; then
3383 ac_aux_dir=$ac_dir
3384 ac_install_sh="$ac_aux_dir/install.sh -c"
3385 break
3386 elif test -f "$ac_dir/shtool"; then
3387 ac_aux_dir=$ac_dir
3388 ac_install_sh="$ac_aux_dir/shtool install -c"
3389 break
3390 fi
3391done
3392if test -z "$ac_aux_dir"; then
3393 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3394fi
3395
3396# These three variables are undocumented and unsupported,
3397# and are intended to be withdrawn in a future Autoconf release.
3398# They can cause serious problems if a builder's source tree is in a directory
3399# whose full name contains unusual characters.
3400ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3401ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3402ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3403
3404
3405# Make sure we can run config.sub.
3406$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3407 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3408
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3410$as_echo_n "checking build system type... " >&6; }
3411if ${ac_cv_build+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413else
3414 ac_build_alias=$build_alias
3415test "x$ac_build_alias" = x &&
3416 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3417test "x$ac_build_alias" = x &&
3418 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3419ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3421
3422fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3424$as_echo "$ac_cv_build" >&6; }
3425case $ac_cv_build in
3426*-*-*) ;;
3427*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3428esac
3429build=$ac_cv_build
3430ac_save_IFS=$IFS; IFS='-'
3431set x $ac_cv_build
3432shift
3433build_cpu=$1
3434build_vendor=$2
3435shift; shift
3436# Remember, the first character of IFS is used to create $*,
3437# except with old shells:
3438build_os=$*
3439IFS=$ac_save_IFS
3440case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3441
3442
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3444$as_echo_n "checking host system type... " >&6; }
3445if ${ac_cv_host+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447else
3448 if test "x$host_alias" = x; then
3449 ac_cv_host=$ac_cv_build
3450else
3451 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3453fi
3454
3455fi
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3457$as_echo "$ac_cv_host" >&6; }
3458case $ac_cv_host in
3459*-*-*) ;;
3460*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3461esac
3462host=$ac_cv_host
3463ac_save_IFS=$IFS; IFS='-'
3464set x $ac_cv_host
3465shift
3466host_cpu=$1
3467host_vendor=$2
3468shift; shift
3469# Remember, the first character of IFS is used to create $*,
3470# except with old shells:
3471host_os=$*
3472IFS=$ac_save_IFS
3473case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3474
3475
3476
3477ac_ext=c
3478ac_cpp='$CPP $CPPFLAGS'
3479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3483$as_echo_n "checking how to run the C preprocessor... " >&6; }
3484# On Suns, sometimes $CPP names a directory.
3485if test -n "$CPP" && test -d "$CPP"; then
3486 CPP=
3487fi
3488if test -z "$CPP"; then
3489 if ${ac_cv_prog_CPP+:} false; then :
3490 $as_echo_n "(cached) " >&6
3491else
3492 # Double quotes because CPP needs to be expanded
3493 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3494 do
3495 ac_preproc_ok=false
3496for ac_c_preproc_warn_flag in '' yes
3497do
3498 # Use a header file that comes with gcc, so configuring glibc
3499 # with a fresh cross-compiler works.
3500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501 # <limits.h> exists even on freestanding compilers.
3502 # On the NeXT, cc -E runs the code through the compiler's parser,
3503 # not just through cpp. "Syntax error" is here to catch this case.
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h. */
3506#ifdef __STDC__
3507# include <limits.h>
3508#else
3509# include <assert.h>
3510#endif
3511 Syntax error
3512_ACEOF
3513if ac_fn_c_try_cpp "$LINENO"; then :
3514
3515else
3516 # Broken: fails on valid input.
3517continue
3518fi
3519rm -f conftest.err conftest.i conftest.$ac_ext
3520
3521 # OK, works on sane cases. Now check whether nonexistent headers
3522 # can be detected and how.
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h. */
3525#include <ac_nonexistent.h>
3526_ACEOF
3527if ac_fn_c_try_cpp "$LINENO"; then :
3528 # Broken: success on invalid input.
3529continue
3530else
3531 # Passes both tests.
3532ac_preproc_ok=:
3533break
3534fi
3535rm -f conftest.err conftest.i conftest.$ac_ext
3536
3537done
3538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539rm -f conftest.i conftest.err conftest.$ac_ext
3540if $ac_preproc_ok; then :
3541 break
3542fi
3543
3544 done
3545 ac_cv_prog_CPP=$CPP
3546
3547fi
3548 CPP=$ac_cv_prog_CPP
3549else
3550 ac_cv_prog_CPP=$CPP
3551fi
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3553$as_echo "$CPP" >&6; }
3554ac_preproc_ok=false
3555for ac_c_preproc_warn_flag in '' yes
3556do
3557 # Use a header file that comes with gcc, so configuring glibc
3558 # with a fresh cross-compiler works.
3559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560 # <limits.h> exists even on freestanding compilers.
3561 # On the NeXT, cc -E runs the code through the compiler's parser,
3562 # not just through cpp. "Syntax error" is here to catch this case.
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h. */
3565#ifdef __STDC__
3566# include <limits.h>
3567#else
3568# include <assert.h>
3569#endif
3570 Syntax error
3571_ACEOF
3572if ac_fn_c_try_cpp "$LINENO"; then :
3573
3574else
3575 # Broken: fails on valid input.
3576continue
3577fi
3578rm -f conftest.err conftest.i conftest.$ac_ext
3579
3580 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how.
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h. */
3584#include <ac_nonexistent.h>
3585_ACEOF
3586if ac_fn_c_try_cpp "$LINENO"; then :
3587 # Broken: success on invalid input.
3588continue
3589else
3590 # Passes both tests.
3591ac_preproc_ok=:
3592break
3593fi
3594rm -f conftest.err conftest.i conftest.$ac_ext
3595
3596done
3597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598rm -f conftest.i conftest.err conftest.$ac_ext
3599if $ac_preproc_ok; then :
3600
3601else
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3605See \`config.log' for more details" "$LINENO" 5; }
3606fi
3607
3608ac_ext=c
3609ac_cpp='$CPP $CPPFLAGS'
3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3616$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3617if ${ac_cv_path_GREP+:} false; then :
3618 $as_echo_n "(cached) " >&6
3619else
3620 if test -z "$GREP"; then
3621 ac_path_GREP_found=false
3622 # Loop through the user's path and test for each of PROGNAME-LIST
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3625do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_prog in grep ggrep; do
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3631 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3632# Check for GNU ac_path_GREP and select it if it is found.
3633 # Check for GNU $ac_path_GREP
3634case `"$ac_path_GREP" --version 2>&1` in
3635*GNU*)
3636 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3637*)
3638 ac_count=0
3639 $as_echo_n 0123456789 >"conftest.in"
3640 while :
3641 do
3642 cat "conftest.in" "conftest.in" >"conftest.tmp"
3643 mv "conftest.tmp" "conftest.in"
3644 cp "conftest.in" "conftest.nl"
3645 $as_echo 'GREP' >> "conftest.nl"
3646 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3648 as_fn_arith $ac_count + 1 && ac_count=$as_val
3649 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3650 # Best one so far, save it but keep looking for a better one
3651 ac_cv_path_GREP="$ac_path_GREP"
3652 ac_path_GREP_max=$ac_count
3653 fi
3654 # 10*(2^10) chars as input seems more than enough
3655 test $ac_count -gt 10 && break
3656 done
3657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3658esac
3659
3660 $ac_path_GREP_found && break 3
3661 done
3662 done
3663 done
3664IFS=$as_save_IFS
3665 if test -z "$ac_cv_path_GREP"; then
3666 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3667 fi
3668else
3669 ac_cv_path_GREP=$GREP
3670fi
3671
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3674$as_echo "$ac_cv_path_GREP" >&6; }
3675 GREP="$ac_cv_path_GREP"
3676
3677
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3679$as_echo_n "checking for egrep... " >&6; }
3680if ${ac_cv_path_EGREP+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682else
3683 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3684 then ac_cv_path_EGREP="$GREP -E"
3685 else
3686 if test -z "$EGREP"; then
3687 ac_path_EGREP_found=false
3688 # Loop through the user's path and test for each of PROGNAME-LIST
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3691do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_prog in egrep; do
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3697 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3698# Check for GNU ac_path_EGREP and select it if it is found.
3699 # Check for GNU $ac_path_EGREP
3700case `"$ac_path_EGREP" --version 2>&1` in
3701*GNU*)
3702 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3703*)
3704 ac_count=0
3705 $as_echo_n 0123456789 >"conftest.in"
3706 while :
3707 do
3708 cat "conftest.in" "conftest.in" >"conftest.tmp"
3709 mv "conftest.tmp" "conftest.in"
3710 cp "conftest.in" "conftest.nl"
3711 $as_echo 'EGREP' >> "conftest.nl"
3712 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3714 as_fn_arith $ac_count + 1 && ac_count=$as_val
3715 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3716 # Best one so far, save it but keep looking for a better one
3717 ac_cv_path_EGREP="$ac_path_EGREP"
3718 ac_path_EGREP_max=$ac_count
3719 fi
3720 # 10*(2^10) chars as input seems more than enough
3721 test $ac_count -gt 10 && break
3722 done
3723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3724esac
3725
3726 $ac_path_EGREP_found && break 3
3727 done
3728 done
3729 done
3730IFS=$as_save_IFS
3731 if test -z "$ac_cv_path_EGREP"; then
3732 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3733 fi
3734else
3735 ac_cv_path_EGREP=$EGREP
3736fi
3737
3738 fi
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3741$as_echo "$ac_cv_path_EGREP" >&6; }
3742 EGREP="$ac_cv_path_EGREP"
3743
3744
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3746$as_echo_n "checking for ANSI C header files... " >&6; }
3747if ${ac_cv_header_stdc+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h. */
3752#include <stdlib.h>
3753#include <stdarg.h>
3754#include <string.h>
3755#include <float.h>
3756
3757int
3758main ()
3759{
3760
3761 ;
3762 return 0;
3763}
3764_ACEOF
3765if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_cv_header_stdc=yes
3767else
3768 ac_cv_header_stdc=no
3769fi
3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771
3772if test $ac_cv_header_stdc = yes; then
3773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h. */
3776#include <string.h>
3777
3778_ACEOF
3779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3780 $EGREP "memchr" >/dev/null 2>&1; then :
3781
3782else
3783 ac_cv_header_stdc=no
3784fi
3785rm -f conftest*
3786
3787fi
3788
3789if test $ac_cv_header_stdc = yes; then
3790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h. */
3793#include <stdlib.h>
3794
3795_ACEOF
3796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797 $EGREP "free" >/dev/null 2>&1; then :
3798
3799else
3800 ac_cv_header_stdc=no
3801fi
3802rm -f conftest*
3803
3804fi
3805
3806if test $ac_cv_header_stdc = yes; then
3807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3808 if test "$cross_compiling" = yes; then :
3809 :
3810else
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812/* end confdefs.h. */
3813#include <ctype.h>
3814#include <stdlib.h>
3815#if ((' ' & 0x0FF) == 0x020)
3816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3818#else
3819# define ISLOWER(c) \
3820 (('a' <= (c) && (c) <= 'i') \
3821 || ('j' <= (c) && (c) <= 'r') \
3822 || ('s' <= (c) && (c) <= 'z'))
3823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3824#endif
3825
3826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3827int
3828main ()
3829{
3830 int i;
3831 for (i = 0; i < 256; i++)
3832 if (XOR (islower (i), ISLOWER (i))
3833 || toupper (i) != TOUPPER (i))
3834 return 2;
3835 return 0;
3836}
3837_ACEOF
3838if ac_fn_c_try_run "$LINENO"; then :
3839
3840else
3841 ac_cv_header_stdc=no
3842fi
3843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3844 conftest.$ac_objext conftest.beam conftest.$ac_ext
3845fi
3846
3847fi
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3850$as_echo "$ac_cv_header_stdc" >&6; }
3851if test $ac_cv_header_stdc = yes; then
3852
3853$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3854
3855fi
3856
3857# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3858for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3859 inttypes.h stdint.h unistd.h
3860do :
3861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3862ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3863"
3864if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3865 cat >>confdefs.h <<_ACEOF
3866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3867_ACEOF
3868
3869fi
3870
3871done
3872
3873
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3875$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3876if ${ac_cv_c_bigendian+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878else
3879 ac_cv_c_bigendian=unknown
3880 # See if we're dealing with a universal compiler.
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h. */
3883#ifndef __APPLE_CC__
3884 not a universal capable compiler
3885 #endif
3886 typedef int dummy;
3887
3888_ACEOF
3889if ac_fn_c_try_compile "$LINENO"; then :
3890
3891 # Check for potential -arch flags. It is not universal unless
3892 # there are at least two -arch flags with different values.
3893 ac_arch=
3894 ac_prev=
3895 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3896 if test -n "$ac_prev"; then
3897 case $ac_word in
3898 i?86 | x86_64 | ppc | ppc64)
3899 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3900 ac_arch=$ac_word
3901 else
3902 ac_cv_c_bigendian=universal
3903 break
3904 fi
3905 ;;
3906 esac
3907 ac_prev=
3908 elif test "x$ac_word" = "x-arch"; then
3909 ac_prev=arch
3910 fi
3911 done
3912fi
3913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 if test $ac_cv_c_bigendian = unknown; then
3915 # See if sys/param.h defines the BYTE_ORDER macro.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h. */
3918#include <sys/types.h>
3919 #include <sys/param.h>
3920
3921int
3922main ()
3923{
3924#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3925 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3926 && LITTLE_ENDIAN)
3927 bogus endian macros
3928 #endif
3929
3930 ;
3931 return 0;
3932}
3933_ACEOF
3934if ac_fn_c_try_compile "$LINENO"; then :
3935 # It does; now see whether it defined to BIG_ENDIAN or not.
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h. */
3938#include <sys/types.h>
3939 #include <sys/param.h>
3940
3941int
3942main ()
3943{
3944#if BYTE_ORDER != BIG_ENDIAN
3945 not big endian
3946 #endif
3947
3948 ;
3949 return 0;
3950}
3951_ACEOF
3952if ac_fn_c_try_compile "$LINENO"; then :
3953 ac_cv_c_bigendian=yes
3954else
3955 ac_cv_c_bigendian=no
3956fi
3957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958fi
3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 fi
3961 if test $ac_cv_c_bigendian = unknown; then
3962 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h. */
3965#include <limits.h>
3966
3967int
3968main ()
3969{
3970#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3971 bogus endian macros
3972 #endif
3973
3974 ;
3975 return 0;
3976}
3977_ACEOF
3978if ac_fn_c_try_compile "$LINENO"; then :
3979 # It does; now see whether it defined to _BIG_ENDIAN or not.
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h. */
3982#include <limits.h>
3983
3984int
3985main ()
3986{
3987#ifndef _BIG_ENDIAN
3988 not big endian
3989 #endif
3990
3991 ;
3992 return 0;
3993}
3994_ACEOF
3995if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_cv_c_bigendian=yes
3997else
3998 ac_cv_c_bigendian=no
3999fi
4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001fi
4002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 fi
4004 if test $ac_cv_c_bigendian = unknown; then
4005 # Compile a test program.
4006 if test "$cross_compiling" = yes; then :
4007 # Try to guess by grepping values from an object file.
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h. */
4010short int ascii_mm[] =
4011 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4012 short int ascii_ii[] =
4013 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4014 int use_ascii (int i) {
4015 return ascii_mm[i] + ascii_ii[i];
4016 }
4017 short int ebcdic_ii[] =
4018 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4019 short int ebcdic_mm[] =
4020 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4021 int use_ebcdic (int i) {
4022 return ebcdic_mm[i] + ebcdic_ii[i];
4023 }
4024 extern int foo;
4025
4026int
4027main ()
4028{
4029return use_ascii (foo) == use_ebcdic (foo);
4030 ;
4031 return 0;
4032}
4033_ACEOF
4034if ac_fn_c_try_compile "$LINENO"; then :
4035 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4036 ac_cv_c_bigendian=yes
4037 fi
4038 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4039 if test "$ac_cv_c_bigendian" = unknown; then
4040 ac_cv_c_bigendian=no
4041 else
4042 # finding both strings is unlikely to happen, but who knows?
4043 ac_cv_c_bigendian=unknown
4044 fi
4045 fi
4046fi
4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048else
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h. */
4051$ac_includes_default
4052int
4053main ()
4054{
4055
4056 /* Are we little or big endian? From Harbison&Steele. */
4057 union
4058 {
4059 long int l;
4060 char c[sizeof (long int)];
4061 } u;
4062 u.l = 1;
4063 return u.c[sizeof (long int) - 1] == 1;
4064
4065 ;
4066 return 0;
4067}
4068_ACEOF
4069if ac_fn_c_try_run "$LINENO"; then :
4070 ac_cv_c_bigendian=no
4071else
4072 ac_cv_c_bigendian=yes
4073fi
4074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4075 conftest.$ac_objext conftest.beam conftest.$ac_ext
4076fi
4077
4078 fi
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4081$as_echo "$ac_cv_c_bigendian" >&6; }
4082 case $ac_cv_c_bigendian in #(
4083 yes)
4084 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4085;; #(
4086 no)
4087 ;; #(
4088 universal)
4089
4090$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4091
4092 ;; #(
4093 *)
4094 as_fn_error $? "unknown endianness
4095 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4096 esac
4097
4098
4099# Checks for programs.
4100for ac_prog in gawk mawk nawk awk
4101do
4102 # Extract the first word of "$ac_prog", so it can be a program name with args.
4103set dummy $ac_prog; ac_word=$2
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105$as_echo_n "checking for $ac_word... " >&6; }
4106if ${ac_cv_prog_AWK+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108else
4109 if test -n "$AWK"; then
4110 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4111else
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119 ac_cv_prog_AWK="$ac_prog"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4122 fi
4123done
4124 done
4125IFS=$as_save_IFS
4126
4127fi
4128fi
4129AWK=$ac_cv_prog_AWK
4130if test -n "$AWK"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4132$as_echo "$AWK" >&6; }
4133else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
4136fi
4137
4138
4139 test -n "$AWK" && break
4140done
4141
4142ac_ext=c
4143ac_cpp='$CPP $CPPFLAGS'
4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4148$as_echo_n "checking how to run the C preprocessor... " >&6; }
4149# On Suns, sometimes $CPP names a directory.
4150if test -n "$CPP" && test -d "$CPP"; then
4151 CPP=
4152fi
4153if test -z "$CPP"; then
4154 if ${ac_cv_prog_CPP+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156else
4157 # Double quotes because CPP needs to be expanded
4158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4159 do
4160 ac_preproc_ok=false
4161for ac_c_preproc_warn_flag in '' yes
4162do
4163 # Use a header file that comes with gcc, so configuring glibc
4164 # with a fresh cross-compiler works.
4165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4166 # <limits.h> exists even on freestanding compilers.
4167 # On the NeXT, cc -E runs the code through the compiler's parser,
4168 # not just through cpp. "Syntax error" is here to catch this case.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h. */
4171#ifdef __STDC__
4172# include <limits.h>
4173#else
4174# include <assert.h>
4175#endif
4176 Syntax error
4177_ACEOF
4178if ac_fn_c_try_cpp "$LINENO"; then :
4179
4180else
4181 # Broken: fails on valid input.
4182continue
4183fi
4184rm -f conftest.err conftest.i conftest.$ac_ext
4185
4186 # OK, works on sane cases. Now check whether nonexistent headers
4187 # can be detected and how.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189/* end confdefs.h. */
4190#include <ac_nonexistent.h>
4191_ACEOF
4192if ac_fn_c_try_cpp "$LINENO"; then :
4193 # Broken: success on invalid input.
4194continue
4195else
4196 # Passes both tests.
4197ac_preproc_ok=:
4198break
4199fi
4200rm -f conftest.err conftest.i conftest.$ac_ext
4201
4202done
4203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4204rm -f conftest.i conftest.err conftest.$ac_ext
4205if $ac_preproc_ok; then :
4206 break
4207fi
4208
4209 done
4210 ac_cv_prog_CPP=$CPP
4211
4212fi
4213 CPP=$ac_cv_prog_CPP
4214else
4215 ac_cv_prog_CPP=$CPP
4216fi
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4218$as_echo "$CPP" >&6; }
4219ac_preproc_ok=false
4220for ac_c_preproc_warn_flag in '' yes
4221do
4222 # Use a header file that comes with gcc, so configuring glibc
4223 # with a fresh cross-compiler works.
4224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225 # <limits.h> exists even on freestanding compilers.
4226 # On the NeXT, cc -E runs the code through the compiler's parser,
4227 # not just through cpp. "Syntax error" is here to catch this case.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h. */
4230#ifdef __STDC__
4231# include <limits.h>
4232#else
4233# include <assert.h>
4234#endif
4235 Syntax error
4236_ACEOF
4237if ac_fn_c_try_cpp "$LINENO"; then :
4238
4239else
4240 # Broken: fails on valid input.
4241continue
4242fi
4243rm -f conftest.err conftest.i conftest.$ac_ext
4244
4245 # OK, works on sane cases. Now check whether nonexistent headers
4246 # can be detected and how.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248/* end confdefs.h. */
4249#include <ac_nonexistent.h>
4250_ACEOF
4251if ac_fn_c_try_cpp "$LINENO"; then :
4252 # Broken: success on invalid input.
4253continue
4254else
4255 # Passes both tests.
4256ac_preproc_ok=:
4257break
4258fi
4259rm -f conftest.err conftest.i conftest.$ac_ext
4260
4261done
4262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263rm -f conftest.i conftest.err conftest.$ac_ext
4264if $ac_preproc_ok; then :
4265
4266else
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4270See \`config.log' for more details" "$LINENO" 5; }
4271fi
4272
4273ac_ext=c
4274ac_cpp='$CPP $CPPFLAGS'
4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
4279if test -n "$ac_tool_prefix"; then
4280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4281set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283$as_echo_n "checking for $ac_word... " >&6; }
4284if ${ac_cv_prog_RANLIB+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286else
4287 if test -n "$RANLIB"; then
4288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4289else
4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291for as_dir in $PATH
4292do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4300 fi
4301done
4302 done
4303IFS=$as_save_IFS
4304
4305fi
4306fi
4307RANLIB=$ac_cv_prog_RANLIB
4308if test -n "$RANLIB"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4310$as_echo "$RANLIB" >&6; }
4311else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313$as_echo "no" >&6; }
4314fi
4315
4316
4317fi
4318if test -z "$ac_cv_prog_RANLIB"; then
4319 ac_ct_RANLIB=$RANLIB
4320 # Extract the first word of "ranlib", so it can be a program name with args.
4321set dummy ranlib; ac_word=$2
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323$as_echo_n "checking for $ac_word... " >&6; }
4324if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326else
4327 if test -n "$ac_ct_RANLIB"; then
4328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4329else
4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
4332do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_prog_ac_ct_RANLIB="ranlib"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4340 fi
4341done
4342 done
4343IFS=$as_save_IFS
4344
4345fi
4346fi
4347ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4348if test -n "$ac_ct_RANLIB"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4350$as_echo "$ac_ct_RANLIB" >&6; }
4351else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353$as_echo "no" >&6; }
4354fi
4355
4356 if test "x$ac_ct_RANLIB" = x; then
4357 RANLIB=":"
4358 else
4359 case $cross_compiling:$ac_tool_warned in
4360yes:)
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4363ac_tool_warned=yes ;;
4364esac
4365 RANLIB=$ac_ct_RANLIB
4366 fi
4367else
4368 RANLIB="$ac_cv_prog_RANLIB"
4369fi
4370
4371# Find a good install program. We prefer a C program (faster),
4372# so one script is as good as another. But avoid the broken or
4373# incompatible versions:
4374# SysV /etc/install, /usr/sbin/install
4375# SunOS /usr/etc/install
4376# IRIX /sbin/install
4377# AIX /bin/install
4378# AmigaOS /C/install, which installs bootblocks on floppy discs
4379# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4380# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4381# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4382# OS/2's system install, which has a completely different semantic
4383# ./install, which can be erroneously created by make from ./install.sh.
4384# Reject install programs that cannot install multiple files.
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4386$as_echo_n "checking for a BSD-compatible install... " >&6; }
4387if test -z "$INSTALL"; then
4388if ${ac_cv_path_install+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH
4393do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 # Account for people who put trailing slashes in PATH elements.
4397case $as_dir/ in #((
4398 ./ | .// | /[cC]/* | \
4399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4400 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4401 /usr/ucb/* ) ;;
4402 *)
4403 # OSF1 and SCO ODT 3.0 have their own names for install.
4404 # Don't use installbsd from OSF since it installs stuff as root
4405 # by default.
4406 for ac_prog in ginstall scoinst install; do
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4409 if test $ac_prog = install &&
4410 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4411 # AIX install. It has an incompatible calling convention.
4412 :
4413 elif test $ac_prog = install &&
4414 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4415 # program-specific install script used by HP pwplus--don't use.
4416 :
4417 else
4418 rm -rf conftest.one conftest.two conftest.dir
4419 echo one > conftest.one
4420 echo two > conftest.two
4421 mkdir conftest.dir
4422 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4423 test -s conftest.one && test -s conftest.two &&
4424 test -s conftest.dir/conftest.one &&
4425 test -s conftest.dir/conftest.two
4426 then
4427 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4428 break 3
4429 fi
4430 fi
4431 fi
4432 done
4433 done
4434 ;;
4435esac
4436
4437 done
4438IFS=$as_save_IFS
4439
4440rm -rf conftest.one conftest.two conftest.dir
4441
4442fi
4443 if test "${ac_cv_path_install+set}" = set; then
4444 INSTALL=$ac_cv_path_install
4445 else
4446 # As a last resort, use the slow shell script. Don't cache a
4447 # value for INSTALL within a source directory, because that will
4448 # break other packages using the cache if that directory is
4449 # removed, or if the value is a relative name.
4450 INSTALL=$ac_install_sh
4451 fi
4452fi
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4454$as_echo "$INSTALL" >&6; }
4455
4456# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4457# It thinks the first close brace ends the variable substitution.
4458test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4459
4460test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4461
4462test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4463
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4465$as_echo_n "checking for egrep... " >&6; }
4466if ${ac_cv_path_EGREP+:} false; then :
4467 $as_echo_n "(cached) " >&6
4468else
4469 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4470 then ac_cv_path_EGREP="$GREP -E"
4471 else
4472 if test -z "$EGREP"; then
4473 ac_path_EGREP_found=false
4474 # Loop through the user's path and test for each of PROGNAME-LIST
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_prog in egrep; do
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4483 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4484# Check for GNU ac_path_EGREP and select it if it is found.
4485 # Check for GNU $ac_path_EGREP
4486case `"$ac_path_EGREP" --version 2>&1` in
4487*GNU*)
4488 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4489*)
4490 ac_count=0
4491 $as_echo_n 0123456789 >"conftest.in"
4492 while :
4493 do
4494 cat "conftest.in" "conftest.in" >"conftest.tmp"
4495 mv "conftest.tmp" "conftest.in"
4496 cp "conftest.in" "conftest.nl"
4497 $as_echo 'EGREP' >> "conftest.nl"
4498 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500 as_fn_arith $ac_count + 1 && ac_count=$as_val
4501 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4502 # Best one so far, save it but keep looking for a better one
4503 ac_cv_path_EGREP="$ac_path_EGREP"
4504 ac_path_EGREP_max=$ac_count
4505 fi
4506 # 10*(2^10) chars as input seems more than enough
4507 test $ac_count -gt 10 && break
4508 done
4509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4510esac
4511
4512 $ac_path_EGREP_found && break 3
4513 done
4514 done
4515 done
4516IFS=$as_save_IFS
4517 if test -z "$ac_cv_path_EGREP"; then
4518 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4519 fi
4520else
4521 ac_cv_path_EGREP=$EGREP
4522fi
4523
4524 fi
4525fi
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4527$as_echo "$ac_cv_path_EGREP" >&6; }
4528 EGREP="$ac_cv_path_EGREP"
4529
4530
4531# Extract the first word of "ar", so it can be a program name with args.
4532set dummy ar; ac_word=$2
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534$as_echo_n "checking for $ac_word... " >&6; }
4535if ${ac_cv_path_AR+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537else
4538 case $AR in
4539 [\\/]* | ?:[\\/]*)
4540 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4541 ;;
4542 *)
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544for as_dir in $PATH
4545do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554done
4555 done
4556IFS=$as_save_IFS
4557
4558 ;;
4559esac
4560fi
4561AR=$ac_cv_path_AR
4562if test -n "$AR"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4564$as_echo "$AR" >&6; }
4565else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567$as_echo "no" >&6; }
4568fi
4569
4570
4571# Extract the first word of "cat", so it can be a program name with args.
4572set dummy cat; ac_word=$2
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574$as_echo_n "checking for $ac_word... " >&6; }
4575if ${ac_cv_path_CAT+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577else
4578 case $CAT in
4579 [\\/]* | ?:[\\/]*)
4580 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4581 ;;
4582 *)
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584for as_dir in $PATH
4585do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4593 fi
4594done
4595 done
4596IFS=$as_save_IFS
4597
4598 ;;
4599esac
4600fi
4601CAT=$ac_cv_path_CAT
4602if test -n "$CAT"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4604$as_echo "$CAT" >&6; }
4605else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607$as_echo "no" >&6; }
4608fi
4609
4610
4611# Extract the first word of "kill", so it can be a program name with args.
4612set dummy kill; ac_word=$2
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if ${ac_cv_path_KILL+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617else
4618 case $KILL in
4619 [\\/]* | ?:[\\/]*)
4620 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4621 ;;
4622 *)
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4633 fi
4634done
4635 done
4636IFS=$as_save_IFS
4637
4638 ;;
4639esac
4640fi
4641KILL=$ac_cv_path_KILL
4642if test -n "$KILL"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4644$as_echo "$KILL" >&6; }
4645else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647$as_echo "no" >&6; }
4648fi
4649
4650
4651for ac_prog in perl5 perl
4652do
4653 # Extract the first word of "$ac_prog", so it can be a program name with args.
4654set dummy $ac_prog; ac_word=$2
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656$as_echo_n "checking for $ac_word... " >&6; }
4657if ${ac_cv_path_PERL+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659else
4660 case $PERL in
4661 [\\/]* | ?:[\\/]*)
4662 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4663 ;;
4664 *)
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676done
4677 done
4678IFS=$as_save_IFS
4679
4680 ;;
4681esac
4682fi
4683PERL=$ac_cv_path_PERL
4684if test -n "$PERL"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4686$as_echo "$PERL" >&6; }
4687else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689$as_echo "no" >&6; }
4690fi
4691
4692
4693 test -n "$PERL" && break
4694done
4695
4696# Extract the first word of "sed", so it can be a program name with args.
4697set dummy sed; ac_word=$2
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if ${ac_cv_path_SED+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702else
4703 case $SED in
4704 [\\/]* | ?:[\\/]*)
4705 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4706 ;;
4707 *)
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4718 fi
4719done
4720 done
4721IFS=$as_save_IFS
4722
4723 ;;
4724esac
4725fi
4726SED=$ac_cv_path_SED
4727if test -n "$SED"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4729$as_echo "$SED" >&6; }
4730else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
4733fi
4734
4735
4736
4737# Extract the first word of "ent", so it can be a program name with args.
4738set dummy ent; ac_word=$2
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740$as_echo_n "checking for $ac_word... " >&6; }
4741if ${ac_cv_path_ENT+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743else
4744 case $ENT in
4745 [\\/]* | ?:[\\/]*)
4746 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4747 ;;
4748 *)
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761 done
4762IFS=$as_save_IFS
4763
4764 ;;
4765esac
4766fi
4767ENT=$ac_cv_path_ENT
4768if test -n "$ENT"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4770$as_echo "$ENT" >&6; }
4771else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
4774fi
4775
4776
4777
4778# Extract the first word of "bash", so it can be a program name with args.
4779set dummy bash; ac_word=$2
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781$as_echo_n "checking for $ac_word... " >&6; }
4782if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784else
4785 case $TEST_MINUS_S_SH in
4786 [\\/]* | ?:[\\/]*)
4787 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4788 ;;
4789 *)
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801done
4802 done
4803IFS=$as_save_IFS
4804
4805 ;;
4806esac
4807fi
4808TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4809if test -n "$TEST_MINUS_S_SH"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4811$as_echo "$TEST_MINUS_S_SH" >&6; }
4812else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814$as_echo "no" >&6; }
4815fi
4816
4817
4818# Extract the first word of "ksh", so it can be a program name with args.
4819set dummy ksh; ac_word=$2
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; }
4822if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824else
4825 case $TEST_MINUS_S_SH in
4826 [\\/]* | ?:[\\/]*)
4827 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4828 ;;
4829 *)
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841done
4842 done
4843IFS=$as_save_IFS
4844
4845 ;;
4846esac
4847fi
4848TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4849if test -n "$TEST_MINUS_S_SH"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4851$as_echo "$TEST_MINUS_S_SH" >&6; }
4852else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855fi
4856
4857
4858# Extract the first word of "sh", so it can be a program name with args.
4859set dummy sh; ac_word=$2
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864else
4865 case $TEST_MINUS_S_SH in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4868 ;;
4869 *)
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882 done
4883IFS=$as_save_IFS
4884
4885 ;;
4886esac
4887fi
4888TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4889if test -n "$TEST_MINUS_S_SH"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4891$as_echo "$TEST_MINUS_S_SH" >&6; }
4892else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895fi
4896
4897
4898# Extract the first word of "sh", so it can be a program name with args.
4899set dummy sh; ac_word=$2
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901$as_echo_n "checking for $ac_word... " >&6; }
4902if ${ac_cv_path_SH+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904else
4905 case $SH in
4906 [\\/]* | ?:[\\/]*)
4907 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4908 ;;
4909 *)
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922 done
4923IFS=$as_save_IFS
4924
4925 ;;
4926esac
4927fi
4928SH=$ac_cv_path_SH
4929if test -n "$SH"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4931$as_echo "$SH" >&6; }
4932else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934$as_echo "no" >&6; }
4935fi
4936
4937
4938# Extract the first word of "groff", so it can be a program name with args.
4939set dummy groff; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; }
4942if ${ac_cv_path_GROFF+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944else
4945 case $GROFF in
4946 [\\/]* | ?:[\\/]*)
4947 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4948 ;;
4949 *)
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961done
4962 done
4963IFS=$as_save_IFS
4964
4965 ;;
4966esac
4967fi
4968GROFF=$ac_cv_path_GROFF
4969if test -n "$GROFF"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4971$as_echo "$GROFF" >&6; }
4972else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977
4978# Extract the first word of "nroff", so it can be a program name with args.
4979set dummy nroff; ac_word=$2
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; }
4982if ${ac_cv_path_NROFF+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984else
4985 case $NROFF in
4986 [\\/]* | ?:[\\/]*)
4987 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4988 ;;
4989 *)
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5000 fi
5001done
5002 done
5003IFS=$as_save_IFS
5004
5005 ;;
5006esac
5007fi
5008NROFF=$ac_cv_path_NROFF
5009if test -n "$NROFF"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5011$as_echo "$NROFF" >&6; }
5012else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
5016
5017
5018# Extract the first word of "mandoc", so it can be a program name with args.
5019set dummy mandoc; ac_word=$2
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021$as_echo_n "checking for $ac_word... " >&6; }
5022if ${ac_cv_path_MANDOC+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024else
5025 case $MANDOC in
5026 [\\/]* | ?:[\\/]*)
5027 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5028 ;;
5029 *)
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041done
5042 done
5043IFS=$as_save_IFS
5044
5045 ;;
5046esac
5047fi
5048MANDOC=$ac_cv_path_MANDOC
5049if test -n "$MANDOC"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5051$as_echo "$MANDOC" >&6; }
5052else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057
5058TEST_SHELL=sh
5059
5060
5061if test "x$MANDOC" != "x" ; then
5062 MANFMT="$MANDOC"
5063elif test "x$NROFF" != "x" ; then
5064 MANFMT="$NROFF -mandoc"
5065elif test "x$GROFF" != "x" ; then
5066 MANFMT="$GROFF -mandoc -Tascii"
5067else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5069$as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5070 MANFMT="false"
5071fi
5072
5073
5074# Extract the first word of "groupadd", so it can be a program name with args.
5075set dummy groupadd; ac_word=$2
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
5078if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 case $PATH_GROUPADD_PROG in
5082 [\\/]* | ?:[\\/]*)
5083 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5084 ;;
5085 *)
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097done
5098 done
5099IFS=$as_save_IFS
5100
5101 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5102 ;;
5103esac
5104fi
5105PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5106if test -n "$PATH_GROUPADD_PROG"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5108$as_echo "$PATH_GROUPADD_PROG" >&6; }
5109else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
5112fi
5113
5114
5115# Extract the first word of "useradd", so it can be a program name with args.
5116set dummy useradd; ac_word=$2
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118$as_echo_n "checking for $ac_word... " >&6; }
5119if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121else
5122 case $PATH_USERADD_PROG in
5123 [\\/]* | ?:[\\/]*)
5124 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5125 ;;
5126 *)
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5137 fi
5138done
5139 done
5140IFS=$as_save_IFS
5141
5142 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5143 ;;
5144esac
5145fi
5146PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5147if test -n "$PATH_USERADD_PROG"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5149$as_echo "$PATH_USERADD_PROG" >&6; }
5150else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
5153fi
5154
5155
5156# Extract the first word of "pkgmk", so it can be a program name with args.
5157set dummy pkgmk; ac_word=$2
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159$as_echo_n "checking for $ac_word... " >&6; }
5160if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162else
5163 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5164 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5165else
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177done
5178 done
5179IFS=$as_save_IFS
5180
5181 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5182fi
5183fi
5184MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5185if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5187$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5188else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190$as_echo "no" >&6; }
5191fi
5192
5193
5194if test -x /sbin/sh; then
5195 STARTUP_SCRIPT_SHELL=/sbin/sh
5196
5197else
5198 STARTUP_SCRIPT_SHELL=/bin/sh
5199
5200fi
5201
5202# System features
5203# Check whether --enable-largefile was given.
5204if test "${enable_largefile+set}" = set; then :
5205 enableval=$enable_largefile;
5206fi
5207
5208if test "$enable_largefile" != no; then
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5211$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5212if ${ac_cv_sys_largefile_CC+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 ac_cv_sys_largefile_CC=no
5216 if test "$GCC" != yes; then
5217 ac_save_CC=$CC
5218 while :; do
5219 # IRIX 6.2 and later do not support large files by default,
5220 # so use the C compiler's -n32 option if that helps.
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h. */
5223#include <sys/types.h>
5224 /* Check that off_t can represent 2**63 - 1 correctly.
5225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5226 since some C++ compilers masquerading as C compilers
5227 incorrectly reject 9223372036854775807. */
5228#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5230 && LARGE_OFF_T % 2147483647 == 1)
5231 ? 1 : -1];
5232int
5233main ()
5234{
5235
5236 ;
5237 return 0;
5238}
5239_ACEOF
5240 if ac_fn_c_try_compile "$LINENO"; then :
5241 break
5242fi
5243rm -f core conftest.err conftest.$ac_objext
5244 CC="$CC -n32"
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 ac_cv_sys_largefile_CC=' -n32'; break
5247fi
5248rm -f core conftest.err conftest.$ac_objext
5249 break
5250 done
5251 CC=$ac_save_CC
5252 rm -f conftest.$ac_ext
5253 fi
5254fi
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5256$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5257 if test "$ac_cv_sys_largefile_CC" != no; then
5258 CC=$CC$ac_cv_sys_largefile_CC
5259 fi
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5262$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5263if ${ac_cv_sys_file_offset_bits+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265else
5266 while :; do
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268/* end confdefs.h. */
5269#include <sys/types.h>
5270 /* Check that off_t can represent 2**63 - 1 correctly.
5271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5272 since some C++ compilers masquerading as C compilers
5273 incorrectly reject 9223372036854775807. */
5274#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5276 && LARGE_OFF_T % 2147483647 == 1)
5277 ? 1 : -1];
5278int
5279main ()
5280{
5281
5282 ;
5283 return 0;
5284}
5285_ACEOF
5286if ac_fn_c_try_compile "$LINENO"; then :
5287 ac_cv_sys_file_offset_bits=no; break
5288fi
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h. */
5292#define _FILE_OFFSET_BITS 64
5293#include <sys/types.h>
5294 /* Check that off_t can represent 2**63 - 1 correctly.
5295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5296 since some C++ compilers masquerading as C compilers
5297 incorrectly reject 9223372036854775807. */
5298#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5300 && LARGE_OFF_T % 2147483647 == 1)
5301 ? 1 : -1];
5302int
5303main ()
5304{
5305
5306 ;
5307 return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"; then :
5311 ac_cv_sys_file_offset_bits=64; break
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 ac_cv_sys_file_offset_bits=unknown
5315 break
5316done
5317fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5319$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5320case $ac_cv_sys_file_offset_bits in #(
5321 no | unknown) ;;
5322 *)
5323cat >>confdefs.h <<_ACEOF
5324#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5325_ACEOF
5326;;
5327esac
5328rm -rf conftest*
5329 if test $ac_cv_sys_file_offset_bits = unknown; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5331$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5332if ${ac_cv_sys_large_files+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334else
5335 while :; do
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337/* end confdefs.h. */
5338#include <sys/types.h>
5339 /* Check that off_t can represent 2**63 - 1 correctly.
5340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5341 since some C++ compilers masquerading as C compilers
5342 incorrectly reject 9223372036854775807. */
5343#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5345 && LARGE_OFF_T % 2147483647 == 1)
5346 ? 1 : -1];
5347int
5348main ()
5349{
5350
5351 ;
5352 return 0;
5353}
5354_ACEOF
5355if ac_fn_c_try_compile "$LINENO"; then :
5356 ac_cv_sys_large_files=no; break
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360/* end confdefs.h. */
5361#define _LARGE_FILES 1
5362#include <sys/types.h>
5363 /* Check that off_t can represent 2**63 - 1 correctly.
5364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5365 since some C++ compilers masquerading as C compilers
5366 incorrectly reject 9223372036854775807. */
5367#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5369 && LARGE_OFF_T % 2147483647 == 1)
5370 ? 1 : -1];
5371int
5372main ()
5373{
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_sys_large_files=1; break
5381fi
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_cv_sys_large_files=unknown
5384 break
5385done
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5388$as_echo "$ac_cv_sys_large_files" >&6; }
5389case $ac_cv_sys_large_files in #(
5390 no | unknown) ;;
5391 *)
5392cat >>confdefs.h <<_ACEOF
5393#define _LARGE_FILES $ac_cv_sys_large_files
5394_ACEOF
5395;;
5396esac
5397rm -rf conftest*
5398 fi
5399fi
5400
5401
5402if test -z "$AR" ; then
5403 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5404fi
5405
5406# Use LOGIN_PROGRAM from environment if possible
5407if test ! -z "$LOGIN_PROGRAM" ; then
5408
5409cat >>confdefs.h <<_ACEOF
5410#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5411_ACEOF
5412
5413else
5414 # Search for login
5415 # Extract the first word of "login", so it can be a program name with args.
5416set dummy login; ac_word=$2
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418$as_echo_n "checking for $ac_word... " >&6; }
5419if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421else
5422 case $LOGIN_PROGRAM_FALLBACK in
5423 [\\/]* | ?:[\\/]*)
5424 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5425 ;;
5426 *)
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2
5437 fi
5438done
5439 done
5440IFS=$as_save_IFS
5441
5442 ;;
5443esac
5444fi
5445LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5446if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5448$as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5449else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451$as_echo "no" >&6; }
5452fi
5453
5454
5455 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5456 cat >>confdefs.h <<_ACEOF
5457#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5458_ACEOF
5459
5460 fi
5461fi
5462
5463# Extract the first word of "passwd", so it can be a program name with args.
5464set dummy passwd; ac_word=$2
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466$as_echo_n "checking for $ac_word... " >&6; }
5467if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469else
5470 case $PATH_PASSWD_PROG in
5471 [\\/]* | ?:[\\/]*)
5472 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5473 ;;
5474 *)
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in $PATH
5477do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486done
5487 done
5488IFS=$as_save_IFS
5489
5490 ;;
5491esac
5492fi
5493PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5494if test -n "$PATH_PASSWD_PROG"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5496$as_echo "$PATH_PASSWD_PROG" >&6; }
5497else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499$as_echo "no" >&6; }
5500fi
5501
5502
5503if test ! -z "$PATH_PASSWD_PROG" ; then
5504
5505cat >>confdefs.h <<_ACEOF
5506#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5507_ACEOF
5508
5509fi
5510
5511if test -z "$LD" ; then
5512 LD=$CC
5513fi
5514
5515
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5517$as_echo_n "checking for inline... " >&6; }
5518if ${ac_cv_c_inline+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520else
5521 ac_cv_c_inline=no
5522for ac_kw in inline __inline__ __inline; do
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h. */
5525#ifndef __cplusplus
5526typedef int foo_t;
5527static $ac_kw foo_t static_foo () {return 0; }
5528$ac_kw foo_t foo () {return 0; }
5529#endif
5530
5531_ACEOF
5532if ac_fn_c_try_compile "$LINENO"; then :
5533 ac_cv_c_inline=$ac_kw
5534fi
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 test "$ac_cv_c_inline" != no && break
5537done
5538
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5541$as_echo "$ac_cv_c_inline" >&6; }
5542
5543case $ac_cv_c_inline in
5544 inline | yes) ;;
5545 *)
5546 case $ac_cv_c_inline in
5547 no) ac_val=;;
5548 *) ac_val=$ac_cv_c_inline;;
5549 esac
5550 cat >>confdefs.h <<_ACEOF
5551#ifndef __cplusplus
5552#define inline $ac_val
5553#endif
5554_ACEOF
5555 ;;
5556esac
5557
5558
5559ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5560"
5561if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5562 have_llong_max=1
5563fi
5564
5565ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5566 #include <sys/types.h>
5567 #include <sys/param.h>
5568 #include <dev/systrace.h>
5569
5570"
5571if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5572 have_systr_policy_kill=1
5573fi
5574
5575ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5576 #include <sys/types.h>
5577 #include <sys/resource.h>
5578
5579"
5580if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5581
5582$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5583
5584fi
5585
5586ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5587 #include <sys/types.h>
5588 #include <linux/prctl.h>
5589
5590"
5591if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5592 have_linux_no_new_privs=1
5593fi
5594
5595
5596use_stack_protector=1
5597use_toolchain_hardening=1
5598
5599# Check whether --with-stackprotect was given.
5600if test "${with_stackprotect+set}" = set; then :
5601 withval=$with_stackprotect;
5602 if test "x$withval" = "xno"; then
5603 use_stack_protector=0
5604 fi
5605fi
5606
5607
5608# Check whether --with-hardening was given.
5609if test "${with_hardening+set}" = set; then :
5610 withval=$with_hardening;
5611 if test "x$withval" = "xno"; then
5612 use_toolchain_hardening=0
5613 fi
5614fi
5615
5616
5617# We use -Werror for the tests only so that we catch warnings like "this is
5618# on by default" for things like -fPIE.
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
5620$as_echo_n "checking if $CC supports -Werror... " >&6; }
5621saved_CFLAGS="$CFLAGS"
5622CFLAGS="$CFLAGS -Werror"
5623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h. */
5625int main(void) { return 0; }
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5629$as_echo "yes" >&6; }
5630 WERROR="-Werror"
5631else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634 WERROR=""
5635
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638CFLAGS="$saved_CFLAGS"
5639
5640if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5641 {
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
5643$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5644 saved_CFLAGS="$CFLAGS"
5645 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5646 _define_flag=""
5647 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h. */
5650
5651#include <stdlib.h>
5652#include <stdio.h>
5653int main(int argc, char **argv) {
5654 /* Some math to catch -ftrapv problems in the toolchain */
5655 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5656 float l = i * 2.1;
5657 double m = l / 0.5;
5658 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5659 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5660 exit(0);
5661}
5662
5663_ACEOF
5664if ac_fn_c_try_compile "$LINENO"; then :
5665
5666if `grep -i "unrecognized option" conftest.err >/dev/null`
5667then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669$as_echo "no" >&6; }
5670 CFLAGS="$saved_CFLAGS"
5671else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5673$as_echo "yes" >&6; }
5674 CFLAGS="$saved_CFLAGS $_define_flag"
5675fi
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679 CFLAGS="$saved_CFLAGS"
5680
5681fi
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683}
5684 {
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5686$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
5687 saved_CFLAGS="$CFLAGS"
5688 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5689 _define_flag=""
5690 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h. */
5693
5694#include <stdlib.h>
5695#include <stdio.h>
5696int main(int argc, char **argv) {
5697 /* Some math to catch -ftrapv problems in the toolchain */
5698 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5699 float l = i * 2.1;
5700 double m = l / 0.5;
5701 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5702 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5703 exit(0);
5704}
5705
5706_ACEOF
5707if ac_fn_c_try_compile "$LINENO"; then :
5708
5709if `grep -i "unrecognized option" conftest.err >/dev/null`
5710then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }
5713 CFLAGS="$saved_CFLAGS"
5714else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5716$as_echo "yes" >&6; }
5717 CFLAGS="$saved_CFLAGS $_define_flag"
5718fi
5719else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }
5722 CFLAGS="$saved_CFLAGS"
5723
5724fi
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726}
5727 {
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5
5729$as_echo_n "checking if $CC supports compile flag -Wall... " >&6; }
5730 saved_CFLAGS="$CFLAGS"
5731 CFLAGS="$CFLAGS $WERROR -Wall"
5732 _define_flag=""
5733 test "x$_define_flag" = "x" && _define_flag="-Wall"
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h. */
5736
5737#include <stdlib.h>
5738#include <stdio.h>
5739int main(int argc, char **argv) {
5740 /* Some math to catch -ftrapv problems in the toolchain */
5741 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5742 float l = i * 2.1;
5743 double m = l / 0.5;
5744 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5745 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5746 exit(0);
5747}
5748
5749_ACEOF
5750if ac_fn_c_try_compile "$LINENO"; then :
5751
5752if `grep -i "unrecognized option" conftest.err >/dev/null`
5753then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755$as_echo "no" >&6; }
5756 CFLAGS="$saved_CFLAGS"
5757else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759$as_echo "yes" >&6; }
5760 CFLAGS="$saved_CFLAGS $_define_flag"
5761fi
5762else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764$as_echo "no" >&6; }
5765 CFLAGS="$saved_CFLAGS"
5766
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769}
5770 {
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
5772$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5773 saved_CFLAGS="$CFLAGS"
5774 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
5775 _define_flag=""
5776 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h. */
5779
5780#include <stdlib.h>
5781#include <stdio.h>
5782int main(int argc, char **argv) {
5783 /* Some math to catch -ftrapv problems in the toolchain */
5784 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5785 float l = i * 2.1;
5786 double m = l / 0.5;
5787 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5788 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5789 exit(0);
5790}
5791
5792_ACEOF
5793if ac_fn_c_try_compile "$LINENO"; then :
5794
5795if `grep -i "unrecognized option" conftest.err >/dev/null`
5796then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798$as_echo "no" >&6; }
5799 CFLAGS="$saved_CFLAGS"
5800else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5802$as_echo "yes" >&6; }
5803 CFLAGS="$saved_CFLAGS $_define_flag"
5804fi
5805else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808 CFLAGS="$saved_CFLAGS"
5809
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812}
5813 {
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5
5815$as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; }
5816 saved_CFLAGS="$CFLAGS"
5817 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
5818 _define_flag=""
5819 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h. */
5822
5823#include <stdlib.h>
5824#include <stdio.h>
5825int main(int argc, char **argv) {
5826 /* Some math to catch -ftrapv problems in the toolchain */
5827 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5828 float l = i * 2.1;
5829 double m = l / 0.5;
5830 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5831 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5832 exit(0);
5833}
5834
5835_ACEOF
5836if ac_fn_c_try_compile "$LINENO"; then :
5837
5838if `grep -i "unrecognized option" conftest.err >/dev/null`
5839then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841$as_echo "no" >&6; }
5842 CFLAGS="$saved_CFLAGS"
5843else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5845$as_echo "yes" >&6; }
5846 CFLAGS="$saved_CFLAGS $_define_flag"
5847fi
5848else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851 CFLAGS="$saved_CFLAGS"
5852
5853fi
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855}
5856 {
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5
5858$as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; }
5859 saved_CFLAGS="$CFLAGS"
5860 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
5861 _define_flag=""
5862 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h. */
5865
5866#include <stdlib.h>
5867#include <stdio.h>
5868int main(int argc, char **argv) {
5869 /* Some math to catch -ftrapv problems in the toolchain */
5870 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5871 float l = i * 2.1;
5872 double m = l / 0.5;
5873 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5874 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5875 exit(0);
5876}
5877
5878_ACEOF
5879if ac_fn_c_try_compile "$LINENO"; then :
5880
5881if `grep -i "unrecognized option" conftest.err >/dev/null`
5882then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885 CFLAGS="$saved_CFLAGS"
5886else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5888$as_echo "yes" >&6; }
5889 CFLAGS="$saved_CFLAGS $_define_flag"
5890fi
5891else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893$as_echo "no" >&6; }
5894 CFLAGS="$saved_CFLAGS"
5895
5896fi
5897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898}
5899 {
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5
5901$as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; }
5902 saved_CFLAGS="$CFLAGS"
5903 CFLAGS="$CFLAGS $WERROR -Wformat-security"
5904 _define_flag=""
5905 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h. */
5908
5909#include <stdlib.h>
5910#include <stdio.h>
5911int main(int argc, char **argv) {
5912 /* Some math to catch -ftrapv problems in the toolchain */
5913 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5914 float l = i * 2.1;
5915 double m = l / 0.5;
5916 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5917 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5918 exit(0);
5919}
5920
5921_ACEOF
5922if ac_fn_c_try_compile "$LINENO"; then :
5923
5924if `grep -i "unrecognized option" conftest.err >/dev/null`
5925then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928 CFLAGS="$saved_CFLAGS"
5929else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5931$as_echo "yes" >&6; }
5932 CFLAGS="$saved_CFLAGS $_define_flag"
5933fi
5934else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936$as_echo "no" >&6; }
5937 CFLAGS="$saved_CFLAGS"
5938
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941}
5942 {
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
5944$as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; }
5945 saved_CFLAGS="$CFLAGS"
5946 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
5947 _define_flag=""
5948 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h. */
5951
5952#include <stdlib.h>
5953#include <stdio.h>
5954int main(int argc, char **argv) {
5955 /* Some math to catch -ftrapv problems in the toolchain */
5956 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5957 float l = i * 2.1;
5958 double m = l / 0.5;
5959 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5960 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5961 exit(0);
5962}
5963
5964_ACEOF
5965if ac_fn_c_try_compile "$LINENO"; then :
5966
5967if `grep -i "unrecognized option" conftest.err >/dev/null`
5968then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970$as_echo "no" >&6; }
5971 CFLAGS="$saved_CFLAGS"
5972else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5974$as_echo "yes" >&6; }
5975 CFLAGS="$saved_CFLAGS $_define_flag"
5976fi
5977else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979$as_echo "no" >&6; }
5980 CFLAGS="$saved_CFLAGS"
5981
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984}
5985 {
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5
5987$as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
5988 saved_CFLAGS="$CFLAGS"
5989 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
5990 _define_flag="-Wno-pointer-sign"
5991 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h. */
5994
5995#include <stdlib.h>
5996#include <stdio.h>
5997int main(int argc, char **argv) {
5998 /* Some math to catch -ftrapv problems in the toolchain */
5999 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6000 float l = i * 2.1;
6001 double m = l / 0.5;
6002 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6003 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6004 exit(0);
6005}
6006
6007_ACEOF
6008if ac_fn_c_try_compile "$LINENO"; then :
6009
6010if `grep -i "unrecognized option" conftest.err >/dev/null`
6011then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014 CFLAGS="$saved_CFLAGS"
6015else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6017$as_echo "yes" >&6; }
6018 CFLAGS="$saved_CFLAGS $_define_flag"
6019fi
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
6023 CFLAGS="$saved_CFLAGS"
6024
6025fi
6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027}
6028 {
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5
6030$as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; }
6031 saved_CFLAGS="$CFLAGS"
6032 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6033 _define_flag="-Wno-unused-result"
6034 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h. */
6037
6038#include <stdlib.h>
6039#include <stdio.h>
6040int main(int argc, char **argv) {
6041 /* Some math to catch -ftrapv problems in the toolchain */
6042 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6043 float l = i * 2.1;
6044 double m = l / 0.5;
6045 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6046 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6047 exit(0);
6048}
6049
6050_ACEOF
6051if ac_fn_c_try_compile "$LINENO"; then :
6052
6053if `grep -i "unrecognized option" conftest.err >/dev/null`
6054then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057 CFLAGS="$saved_CFLAGS"
6058else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6060$as_echo "yes" >&6; }
6061 CFLAGS="$saved_CFLAGS $_define_flag"
6062fi
6063else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066 CFLAGS="$saved_CFLAGS"
6067
6068fi
6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070}
6071 {
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6073$as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; }
6074 saved_CFLAGS="$CFLAGS"
6075 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6076 _define_flag=""
6077 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h. */
6080
6081#include <stdlib.h>
6082#include <stdio.h>
6083int main(int argc, char **argv) {
6084 /* Some math to catch -ftrapv problems in the toolchain */
6085 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6086 float l = i * 2.1;
6087 double m = l / 0.5;
6088 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6089 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6090 exit(0);
6091}
6092
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"; then :
6095
6096if `grep -i "unrecognized option" conftest.err >/dev/null`
6097then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099$as_echo "no" >&6; }
6100 CFLAGS="$saved_CFLAGS"
6101else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6103$as_echo "yes" >&6; }
6104 CFLAGS="$saved_CFLAGS $_define_flag"
6105fi
6106else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }
6109 CFLAGS="$saved_CFLAGS"
6110
6111fi
6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113}
6114 {
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6116$as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; }
6117 saved_CFLAGS="$CFLAGS"
6118 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6119 _define_flag=""
6120 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h. */
6123
6124#include <stdlib.h>
6125#include <stdio.h>
6126int main(int argc, char **argv) {
6127 /* Some math to catch -ftrapv problems in the toolchain */
6128 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6129 float l = i * 2.1;
6130 double m = l / 0.5;
6131 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6132 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6133 exit(0);
6134}
6135
6136_ACEOF
6137if ac_fn_c_try_compile "$LINENO"; then :
6138
6139if `grep -i "unrecognized option" conftest.err >/dev/null`
6140then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
6143 CFLAGS="$saved_CFLAGS"
6144else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146$as_echo "yes" >&6; }
6147 CFLAGS="$saved_CFLAGS $_define_flag"
6148fi
6149else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151$as_echo "no" >&6; }
6152 CFLAGS="$saved_CFLAGS"
6153
6154fi
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156}
6157 if test "x$use_toolchain_hardening" = "x1"; then
6158 {
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5
6160$as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
6161 saved_LDFLAGS="$LDFLAGS"
6162 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6163 _define_flag=""
6164 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h. */
6167
6168#include <stdlib.h>
6169#include <stdio.h>
6170int main(int argc, char **argv) {
6171 /* Some math to catch -ftrapv problems in the toolchain */
6172 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6173 float l = i * 2.1;
6174 double m = l / 0.5;
6175 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6176 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6177 exit(0);
6178}
6179
6180_ACEOF
6181if ac_fn_c_try_link "$LINENO"; then :
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6183$as_echo "yes" >&6; }
6184 LDFLAGS="$saved_LDFLAGS $_define_flag"
6185else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187$as_echo "no" >&6; }
6188 LDFLAGS="$saved_LDFLAGS"
6189
6190fi
6191rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193}
6194 {
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5
6196$as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; }
6197 saved_LDFLAGS="$LDFLAGS"
6198 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6199 _define_flag=""
6200 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h. */
6203
6204#include <stdlib.h>
6205#include <stdio.h>
6206int main(int argc, char **argv) {
6207 /* Some math to catch -ftrapv problems in the toolchain */
6208 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6209 float l = i * 2.1;
6210 double m = l / 0.5;
6211 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6212 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6213 exit(0);
6214}
6215
6216_ACEOF
6217if ac_fn_c_try_link "$LINENO"; then :
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6219$as_echo "yes" >&6; }
6220 LDFLAGS="$saved_LDFLAGS $_define_flag"
6221else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224 LDFLAGS="$saved_LDFLAGS"
6225
6226fi
6227rm -f core conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
6229}
6230 {
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6232$as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
6233 saved_LDFLAGS="$LDFLAGS"
6234 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6235 _define_flag=""
6236 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h. */
6239
6240#include <stdlib.h>
6241#include <stdio.h>
6242int main(int argc, char **argv) {
6243 /* Some math to catch -ftrapv problems in the toolchain */
6244 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6245 float l = i * 2.1;
6246 double m = l / 0.5;
6247 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6248 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6249 exit(0);
6250}
6251
6252_ACEOF
6253if ac_fn_c_try_link "$LINENO"; then :
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6255$as_echo "yes" >&6; }
6256 LDFLAGS="$saved_LDFLAGS $_define_flag"
6257else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259$as_echo "no" >&6; }
6260 LDFLAGS="$saved_LDFLAGS"
6261
6262fi
6263rm -f core conftest.err conftest.$ac_objext \
6264 conftest$ac_exeext conftest.$ac_ext
6265}
6266 # NB. -ftrapv expects certain support functions to be present in
6267 # the compiler library (libgcc or similar) to detect integer operations
6268 # that can overflow. We must check that the result of enabling it
6269 # actually links. The test program compiled/linked includes a number
6270 # of integer operations that should exercise this.
6271 {
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6273$as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; }
6274 saved_CFLAGS="$CFLAGS"
6275 CFLAGS="$CFLAGS $WERROR -ftrapv"
6276 _define_flag=""
6277 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279/* end confdefs.h. */
6280
6281#include <stdlib.h>
6282#include <stdio.h>
6283int main(int argc, char **argv) {
6284 /* Some math to catch -ftrapv problems in the toolchain */
6285 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6286 float l = i * 2.1;
6287 double m = l / 0.5;
6288 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6289 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6290 exit(0);
6291}
6292
6293_ACEOF
6294if ac_fn_c_try_link "$LINENO"; then :
6295
6296if `grep -i "unrecognized option" conftest.err >/dev/null`
6297then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299$as_echo "no" >&6; }
6300 CFLAGS="$saved_CFLAGS"
6301else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6303$as_echo "yes" >&6; }
6304 CFLAGS="$saved_CFLAGS $_define_flag"
6305fi
6306else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309 CFLAGS="$saved_CFLAGS"
6310
6311fi
6312rm -f core conftest.err conftest.$ac_objext \
6313 conftest$ac_exeext conftest.$ac_ext
6314}
6315 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
6317$as_echo_n "checking gcc version... " >&6; }
6318 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6319 case $GCC_VER in
6320 1.*) no_attrib_nonnull=1 ;;
6321 2.8* | 2.9*)
6322 no_attrib_nonnull=1
6323 ;;
6324 2.*) no_attrib_nonnull=1 ;;
6325 *) ;;
6326 esac
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
6328$as_echo "$GCC_VER" >&6; }
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
6331$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
6332 saved_CFLAGS="$CFLAGS"
6333 CFLAGS="$CFLAGS -fno-builtin-memset"
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335/* end confdefs.h. */
6336 #include <string.h>
6337int
6338main ()
6339{
6340 char b[10]; memset(b, 0, sizeof(b));
6341 ;
6342 return 0;
6343}
6344_ACEOF
6345if ac_fn_c_try_link "$LINENO"; then :
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6347$as_echo "yes" >&6; }
6348else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350$as_echo "no" >&6; }
6351 CFLAGS="$saved_CFLAGS"
6352
6353fi
6354rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6356
6357 # -fstack-protector-all doesn't always work for some GCC versions
6358 # and/or platforms, so we test if we can. If it's not supported
6359 # on a given platform gcc will emit a warning so we use -Werror.
6360 if test "x$use_stack_protector" = "x1"; then
6361 for t in -fstack-protector-strong -fstack-protector-all \
6362 -fstack-protector; do
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
6364$as_echo_n "checking if $CC supports $t... " >&6; }
6365 saved_CFLAGS="$CFLAGS"
6366 saved_LDFLAGS="$LDFLAGS"
6367 CFLAGS="$CFLAGS $t -Werror"
6368 LDFLAGS="$LDFLAGS $t -Werror"
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h. */
6371 #include <stdio.h>
6372int
6373main ()
6374{
6375
6376 char x[256];
6377 snprintf(x, sizeof(x), "XXX");
6378
6379 ;
6380 return 0;
6381}
6382_ACEOF
6383if ac_fn_c_try_link "$LINENO"; then :
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6385$as_echo "yes" >&6; }
6386 CFLAGS="$saved_CFLAGS $t"
6387 LDFLAGS="$saved_LDFLAGS $t"
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
6389$as_echo_n "checking if $t works... " >&6; }
6390 if test "$cross_compiling" = yes; then :
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
6392$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6393 break
6394
6395else
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h. */
6398 #include <stdio.h>
6399int
6400main ()
6401{
6402
6403 char x[256];
6404 snprintf(x, sizeof(x), "XXX");
6405
6406 ;
6407 return 0;
6408}
6409_ACEOF
6410if ac_fn_c_try_run "$LINENO"; then :
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6412$as_echo "yes" >&6; }
6413 break
6414else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
6417fi
6418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6419 conftest.$ac_objext conftest.beam conftest.$ac_ext
6420fi
6421
6422
6423else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425$as_echo "no" >&6; }
6426
6427fi
6428rm -f core conftest.err conftest.$ac_objext \
6429 conftest$ac_exeext conftest.$ac_ext
6430 CFLAGS="$saved_CFLAGS"
6431 LDFLAGS="$saved_LDFLAGS"
6432 done
6433 fi
6434
6435 if test -z "$have_llong_max"; then
6436 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6437 unset ac_cv_have_decl_LLONG_MAX
6438 saved_CFLAGS="$CFLAGS"
6439 CFLAGS="$CFLAGS -std=gnu99"
6440 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
6441
6442"
6443if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
6444 have_llong_max=1
6445else
6446 CFLAGS="$saved_CFLAGS"
6447fi
6448
6449 fi
6450fi
6451
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
6453$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
6454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h. */
6456
6457#include <stdlib.h>
6458__attribute__((__unused__)) static void foo(void){return;}
6459int
6460main ()
6461{
6462 exit(0);
6463 ;
6464 return 0;
6465}
6466_ACEOF
6467if ac_fn_c_try_compile "$LINENO"; then :
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6469$as_echo "yes" >&6; }
6470else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472$as_echo "no" >&6; }
6473
6474$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
6475
6476
6477fi
6478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479
6480if test "x$no_attrib_nonnull" != "x1" ; then
6481
6482$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6483
6484fi
6485
6486
6487# Check whether --with-rpath was given.
6488if test "${with_rpath+set}" = set; then :
6489 withval=$with_rpath;
6490 if test "x$withval" = "xno" ; then
6491 need_dash_r=""
6492 fi
6493 if test "x$withval" = "xyes" ; then
6494 need_dash_r=1
6495 fi
6496
6497
6498fi
6499
6500
6501# Allow user to specify flags
6502
6503# Check whether --with-cflags was given.
6504if test "${with_cflags+set}" = set; then :
6505 withval=$with_cflags;
6506 if test -n "$withval" && test "x$withval" != "xno" && \
6507 test "x${withval}" != "xyes"; then
6508 CFLAGS="$CFLAGS $withval"
6509 fi
6510
6511
6512fi
6513
6514
6515# Check whether --with-cppflags was given.
6516if test "${with_cppflags+set}" = set; then :
6517 withval=$with_cppflags;
6518 if test -n "$withval" && test "x$withval" != "xno" && \
6519 test "x${withval}" != "xyes"; then
6520 CPPFLAGS="$CPPFLAGS $withval"
6521 fi
6522
6523
6524fi
6525
6526
6527# Check whether --with-ldflags was given.
6528if test "${with_ldflags+set}" = set; then :
6529 withval=$with_ldflags;
6530 if test -n "$withval" && test "x$withval" != "xno" && \
6531 test "x${withval}" != "xyes"; then
6532 LDFLAGS="$LDFLAGS $withval"
6533 fi
6534
6535
6536fi
6537
6538
6539# Check whether --with-libs was given.
6540if test "${with_libs+set}" = set; then :
6541 withval=$with_libs;
6542 if test -n "$withval" && test "x$withval" != "xno" && \
6543 test "x${withval}" != "xyes"; then
6544 LIBS="$LIBS $withval"
6545 fi
6546
6547
6548fi
6549
6550
6551# Check whether --with-Werror was given.
6552if test "${with_Werror+set}" = set; then :
6553 withval=$with_Werror;
6554 if test -n "$withval" && test "x$withval" != "xno"; then
6555 werror_flags="-Werror"
6556 if test "x${withval}" != "xyes"; then
6557 werror_flags="$withval"
6558 fi
6559 fi
6560
6561
6562fi
6563
6564
6565for ac_header in \
6566 blf.h \
6567 bstring.h \
6568 crypt.h \
6569 crypto/sha2.h \
6570 dirent.h \
6571 endian.h \
6572 elf.h \
6573 features.h \
6574 fcntl.h \
6575 floatingpoint.h \
6576 getopt.h \
6577 glob.h \
6578 ia.h \
6579 iaf.h \
6580 inttypes.h \
6581 limits.h \
6582 locale.h \
6583 login.h \
6584 maillock.h \
6585 ndir.h \
6586 net/if_tun.h \
6587 netdb.h \
6588 netgroup.h \
6589 pam/pam_appl.h \
6590 paths.h \
6591 poll.h \
6592 pty.h \
6593 readpassphrase.h \
6594 rpc/types.h \
6595 security/pam_appl.h \
6596 sha2.h \
6597 shadow.h \
6598 stddef.h \
6599 stdint.h \
6600 string.h \
6601 strings.h \
6602 sys/audit.h \
6603 sys/bitypes.h \
6604 sys/bsdtty.h \
6605 sys/capability.h \
6606 sys/cdefs.h \
6607 sys/dir.h \
6608 sys/mman.h \
6609 sys/ndir.h \
6610 sys/poll.h \
6611 sys/prctl.h \
6612 sys/pstat.h \
6613 sys/select.h \
6614 sys/stat.h \
6615 sys/stream.h \
6616 sys/stropts.h \
6617 sys/strtio.h \
6618 sys/statvfs.h \
6619 sys/sysmacros.h \
6620 sys/time.h \
6621 sys/timers.h \
6622 time.h \
6623 tmpdir.h \
6624 ttyent.h \
6625 ucred.h \
6626 unistd.h \
6627 usersec.h \
6628 util.h \
6629 utime.h \
6630 utmp.h \
6631 utmpx.h \
6632 vis.h \
6633
6634do :
6635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6636ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6638 cat >>confdefs.h <<_ACEOF
6639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6640_ACEOF
6641
6642fi
6643
6644done
6645
6646
6647# lastlog.h requires sys/time.h to be included first on Solaris
6648for ac_header in lastlog.h
6649do :
6650 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6651#ifdef HAVE_SYS_TIME_H
6652# include <sys/time.h>
6653#endif
6654
6655"
6656if test "x$ac_cv_header_lastlog_h" = xyes; then :
6657 cat >>confdefs.h <<_ACEOF
6658#define HAVE_LASTLOG_H 1
6659_ACEOF
6660
6661fi
6662
6663done
6664
6665
6666# sys/ptms.h requires sys/stream.h to be included first on Solaris
6667for ac_header in sys/ptms.h
6668do :
6669 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6670#ifdef HAVE_SYS_STREAM_H
6671# include <sys/stream.h>
6672#endif
6673
6674"
6675if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6676 cat >>confdefs.h <<_ACEOF
6677#define HAVE_SYS_PTMS_H 1
6678_ACEOF
6679
6680fi
6681
6682done
6683
6684
6685# login_cap.h requires sys/types.h on NetBSD
6686for ac_header in login_cap.h
6687do :
6688 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6689#include <sys/types.h>
6690
6691"
6692if test "x$ac_cv_header_login_cap_h" = xyes; then :
6693 cat >>confdefs.h <<_ACEOF
6694#define HAVE_LOGIN_CAP_H 1
6695_ACEOF
6696
6697fi
6698
6699done
6700
6701
6702# older BSDs need sys/param.h before sys/mount.h
6703for ac_header in sys/mount.h
6704do :
6705 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6706#include <sys/param.h>
6707
6708"
6709if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6710 cat >>confdefs.h <<_ACEOF
6711#define HAVE_SYS_MOUNT_H 1
6712_ACEOF
6713
6714fi
6715
6716done
6717
6718
6719# Android requires sys/socket.h to be included before sys/un.h
6720for ac_header in sys/un.h
6721do :
6722 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
6723#include <sys/types.h>
6724#include <sys/socket.h>
6725
6726"
6727if test "x$ac_cv_header_sys_un_h" = xyes; then :
6728 cat >>confdefs.h <<_ACEOF
6729#define HAVE_SYS_UN_H 1
6730_ACEOF
6731
6732fi
6733
6734done
6735
6736
6737# Messages for features tested for in target-specific section
6738SIA_MSG="no"
6739SPC_MSG="no"
6740SP_MSG="no"
6741
6742# Check for some target-specific stuff
6743case "$host" in
6744*-*-aix*)
6745 # Some versions of VAC won't allow macro redefinitions at
6746 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6747 # particularly with older versions of vac or xlc.
6748 # It also throws errors about null macro argments, but these are
6749 # not fatal.
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6751$as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h. */
6754
6755#define testmacro foo
6756#define testmacro bar
6757int
6758main ()
6759{
6760 exit(0);
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765if ac_fn_c_try_compile "$LINENO"; then :
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6767$as_echo "yes" >&6; }
6768else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770$as_echo "no" >&6; }
6771 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6772 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6773 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6774 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6775
6776
6777fi
6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6781$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6782 if (test -z "$blibpath"); then
6783 blibpath="/usr/lib:/lib"
6784 fi
6785 saved_LDFLAGS="$LDFLAGS"
6786 if test "$GCC" = "yes"; then
6787 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6788 else
6789 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6790 fi
6791 for tryflags in $flags ;do
6792 if (test -z "$blibflags"); then
6793 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795/* end confdefs.h. */
6796
6797int
6798main ()
6799{
6800
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805if ac_fn_c_try_link "$LINENO"; then :
6806 blibflags=$tryflags
6807fi
6808rm -f core conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6810 fi
6811 done
6812 if (test -z "$blibflags"); then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6814$as_echo "not found" >&6; }
6815 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6818$as_echo "$blibflags" >&6; }
6819 fi
6820 LDFLAGS="$saved_LDFLAGS"
6821 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6822if test "x$ac_cv_func_authenticate" = xyes; then :
6823
6824$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6825
6826else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6828$as_echo_n "checking for authenticate in -ls... " >&6; }
6829if ${ac_cv_lib_s_authenticate+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831else
6832 ac_check_lib_save_LIBS=$LIBS
6833LIBS="-ls $LIBS"
6834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h. */
6836
6837/* Override any GCC internal prototype to avoid an error.
6838 Use char because int might match the return type of a GCC
6839 builtin and then its argument prototype would still apply. */
6840#ifdef __cplusplus
6841extern "C"
6842#endif
6843char authenticate ();
6844int
6845main ()
6846{
6847return authenticate ();
6848 ;
6849 return 0;
6850}
6851_ACEOF
6852if ac_fn_c_try_link "$LINENO"; then :
6853 ac_cv_lib_s_authenticate=yes
6854else
6855 ac_cv_lib_s_authenticate=no
6856fi
6857rm -f core conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6859LIBS=$ac_check_lib_save_LIBS
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6862$as_echo "$ac_cv_lib_s_authenticate" >&6; }
6863if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6864 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6865
6866 LIBS="$LIBS -ls"
6867
6868fi
6869
6870
6871fi
6872
6873 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6874"
6875if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6876 ac_have_decl=1
6877else
6878 ac_have_decl=0
6879fi
6880
6881cat >>confdefs.h <<_ACEOF
6882#define HAVE_DECL_AUTHENTICATE $ac_have_decl
6883_ACEOF
6884ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6885"
6886if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6887 ac_have_decl=1
6888else
6889 ac_have_decl=0
6890fi
6891
6892cat >>confdefs.h <<_ACEOF
6893#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6894_ACEOF
6895ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6896"
6897if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6898 ac_have_decl=1
6899else
6900 ac_have_decl=0
6901fi
6902
6903cat >>confdefs.h <<_ACEOF
6904#define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6905_ACEOF
6906ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6907"
6908if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6909 ac_have_decl=1
6910else
6911 ac_have_decl=0
6912fi
6913
6914cat >>confdefs.h <<_ACEOF
6915#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6916_ACEOF
6917ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6918"
6919if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6920 ac_have_decl=1
6921else
6922 ac_have_decl=0
6923fi
6924
6925cat >>confdefs.h <<_ACEOF
6926#define HAVE_DECL_SETAUTHDB $ac_have_decl
6927_ACEOF
6928
6929 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6930
6931"
6932if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6933 ac_have_decl=1
6934else
6935 ac_have_decl=0
6936fi
6937
6938cat >>confdefs.h <<_ACEOF
6939#define HAVE_DECL_LOGINFAILED $ac_have_decl
6940_ACEOF
6941if test $ac_have_decl = 1; then :
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6943$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945/* end confdefs.h. */
6946 #include <usersec.h>
6947int
6948main ()
6949{
6950 (void)loginfailed("user","host","tty",0);
6951 ;
6952 return 0;
6953}
6954_ACEOF
6955if ac_fn_c_try_compile "$LINENO"; then :
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6957$as_echo "yes" >&6; }
6958
6959$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6960
6961else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963$as_echo "no" >&6; }
6964
6965fi
6966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967fi
6968
6969 for ac_func in getgrset setauthdb
6970do :
6971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6972ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6973if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6974 cat >>confdefs.h <<_ACEOF
6975#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6976_ACEOF
6977
6978fi
6979done
6980
6981 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6982 #include <fcntl.h>
6983
6984"
6985if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6986
6987$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6988
6989fi
6990
6991 check_for_aix_broken_getaddrinfo=1
6992
6993$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6994
6995
6996$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6997
6998
6999$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7000
7001
7002$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7003
7004
7005$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7006
7007
7008$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7009
7010
7011$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7012
7013
7014$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7015
7016
7017$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
7018
7019
7020$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7021
7022 ;;
7023*-*-android*)
7024
7025$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7026
7027
7028$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7029
7030 ;;
7031*-*-cygwin*)
7032 check_for_libcrypt_later=1
7033 LIBS="$LIBS /usr/lib/textreadmode.o"
7034
7035$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
7036
7037
7038$as_echo "#define USE_PIPES 1" >>confdefs.h
7039
7040
7041$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7042
7043
7044$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7045
7046
7047$as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
7048
7049
7050$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7051
7052
7053$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
7054
7055
7056$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
7057
7058 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
7059 # reasons which cause compile warnings, so we disable those warnings.
7060 {
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5
7062$as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; }
7063 saved_CFLAGS="$CFLAGS"
7064 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
7065 _define_flag=""
7066 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h. */
7069
7070#include <stdlib.h>
7071#include <stdio.h>
7072int main(int argc, char **argv) {
7073 /* Some math to catch -ftrapv problems in the toolchain */
7074 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
7075 float l = i * 2.1;
7076 double m = l / 0.5;
7077 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
7078 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
7079 exit(0);
7080}
7081
7082_ACEOF
7083if ac_fn_c_try_compile "$LINENO"; then :
7084
7085if `grep -i "unrecognized option" conftest.err >/dev/null`
7086then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088$as_echo "no" >&6; }
7089 CFLAGS="$saved_CFLAGS"
7090else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7092$as_echo "yes" >&6; }
7093 CFLAGS="$saved_CFLAGS $_define_flag"
7094fi
7095else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097$as_echo "no" >&6; }
7098 CFLAGS="$saved_CFLAGS"
7099
7100fi
7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102}
7103 ;;
7104*-*-dgux*)
7105
7106$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7107
7108 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7109
7110 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7111
7112 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7113
7114 ;;
7115*-*-darwin*)
7116 use_pie=auto
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
7118$as_echo_n "checking if we have working getaddrinfo... " >&6; }
7119 if test "$cross_compiling" = yes; then :
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
7121$as_echo "assume it is working" >&6; }
7122else
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h. */
7125 #include <mach-o/dyld.h>
7126main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7127 exit(0);
7128 else
7129 exit(1);
7130}
7131
7132_ACEOF
7133if ac_fn_c_try_run "$LINENO"; then :
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
7135$as_echo "working" >&6; }
7136else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
7138$as_echo "buggy" >&6; }
7139
7140$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7141
7142
7143fi
7144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7145 conftest.$ac_objext conftest.beam conftest.$ac_ext
7146fi
7147
7148 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7149
7150 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7151
7152 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7153
7154
7155$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7156
7157
7158cat >>confdefs.h <<_ACEOF
7159#define BIND_8_COMPAT 1
7160_ACEOF
7161
7162
7163$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7164
7165
7166$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7167
7168
7169$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7170
7171
7172 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
7173if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
7174
7175else
7176
7177$as_echo "#define AU_IPv4 0" >>confdefs.h
7178
7179 #include <bsm/audit.h>
7180
7181$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
7182
7183
7184fi
7185
7186
7187$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7188
7189 for ac_func in sandbox_init
7190do :
7191 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
7192if test "x$ac_cv_func_sandbox_init" = xyes; then :
7193 cat >>confdefs.h <<_ACEOF
7194#define HAVE_SANDBOX_INIT 1
7195_ACEOF
7196
7197fi
7198done
7199
7200 for ac_header in sandbox.h
7201do :
7202 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
7203if test "x$ac_cv_header_sandbox_h" = xyes; then :
7204 cat >>confdefs.h <<_ACEOF
7205#define HAVE_SANDBOX_H 1
7206_ACEOF
7207
7208fi
7209
7210done
7211
7212 ;;
7213*-*-dragonfly*)
7214 SSHDLIBS="$SSHDLIBS -lcrypt"
7215 TEST_MALLOC_OPTIONS="AFGJPRX"
7216 ;;
7217*-*-haiku*)
7218 LIBS="$LIBS -lbsd "
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7220$as_echo_n "checking for socket in -lnetwork... " >&6; }
7221if ${ac_cv_lib_network_socket+:} false; then :
7222 $as_echo_n "(cached) " >&6
7223else
7224 ac_check_lib_save_LIBS=$LIBS
7225LIBS="-lnetwork $LIBS"
7226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h. */
7228
7229/* Override any GCC internal prototype to avoid an error.
7230 Use char because int might match the return type of a GCC
7231 builtin and then its argument prototype would still apply. */
7232#ifdef __cplusplus
7233extern "C"
7234#endif
7235char socket ();
7236int
7237main ()
7238{
7239return socket ();
7240 ;
7241 return 0;
7242}
7243_ACEOF
7244if ac_fn_c_try_link "$LINENO"; then :
7245 ac_cv_lib_network_socket=yes
7246else
7247 ac_cv_lib_network_socket=no
7248fi
7249rm -f core conftest.err conftest.$ac_objext \
7250 conftest$ac_exeext conftest.$ac_ext
7251LIBS=$ac_check_lib_save_LIBS
7252fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7254$as_echo "$ac_cv_lib_network_socket" >&6; }
7255if test "x$ac_cv_lib_network_socket" = xyes; then :
7256 cat >>confdefs.h <<_ACEOF
7257#define HAVE_LIBNETWORK 1
7258_ACEOF
7259
7260 LIBS="-lnetwork $LIBS"
7261
7262fi
7263
7264 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
7265
7266 MANTYPE=man
7267 ;;
7268*-*-hpux*)
7269 # first we define all of the options common to all HP-UX releases
7270 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7271 IPADDR_IN_DISPLAY=yes
7272 $as_echo "#define USE_PIPES 1" >>confdefs.h
7273
7274
7275$as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
7276
7277 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7278
7279
7280$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
7281
7282 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
7283
7284
7285$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7286
7287 maildir="/var/mail"
7288 LIBS="$LIBS -lsec"
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
7290$as_echo_n "checking for t_error in -lxnet... " >&6; }
7291if ${ac_cv_lib_xnet_t_error+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293else
7294 ac_check_lib_save_LIBS=$LIBS
7295LIBS="-lxnet $LIBS"
7296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h. */
7298
7299/* Override any GCC internal prototype to avoid an error.
7300 Use char because int might match the return type of a GCC
7301 builtin and then its argument prototype would still apply. */
7302#ifdef __cplusplus
7303extern "C"
7304#endif
7305char t_error ();
7306int
7307main ()
7308{
7309return t_error ();
7310 ;
7311 return 0;
7312}
7313_ACEOF
7314if ac_fn_c_try_link "$LINENO"; then :
7315 ac_cv_lib_xnet_t_error=yes
7316else
7317 ac_cv_lib_xnet_t_error=no
7318fi
7319rm -f core conftest.err conftest.$ac_objext \
7320 conftest$ac_exeext conftest.$ac_ext
7321LIBS=$ac_check_lib_save_LIBS
7322fi
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
7324$as_echo "$ac_cv_lib_xnet_t_error" >&6; }
7325if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
7326 cat >>confdefs.h <<_ACEOF
7327#define HAVE_LIBXNET 1
7328_ACEOF
7329
7330 LIBS="-lxnet $LIBS"
7331
7332else
7333 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
7334fi
7335
7336
7337 # next, we define all of the options specific to major releases
7338 case "$host" in
7339 *-*-hpux10*)
7340 if test -z "$GCC"; then
7341 CFLAGS="$CFLAGS -Ae"
7342 fi
7343 ;;
7344 *-*-hpux11*)
7345
7346$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7347
7348
7349$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7350
7351
7352$as_echo "#define USE_BTMP 1" >>confdefs.h
7353
7354 check_for_hpux_broken_getaddrinfo=1
7355 check_for_conflicting_getspnam=1
7356 ;;
7357 esac
7358
7359 # lastly, we define options specific to minor releases
7360 case "$host" in
7361 *-*-hpux10.26)
7362
7363$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7364
7365 disable_ptmx_check=yes
7366 LIBS="$LIBS -lsecpw"
7367 ;;
7368 esac
7369 ;;
7370*-*-irix5*)
7371 PATH="$PATH:/usr/etc"
7372
7373$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7374
7375 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7376
7377 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7378
7379 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7380
7381
7382$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7383
7384 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7385
7386 ;;
7387*-*-irix6*)
7388 PATH="$PATH:/usr/etc"
7389
7390$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
7391
7392
7393$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
7394
7395
7396$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
7397
7398 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
7399if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7400
7401$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
7402
7403fi
7404
7405 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7406
7407 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7408
7409 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7410
7411 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7412
7413
7414$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7415
7416 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7417
7418 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7419
7420 ;;
7421*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7422 check_for_libcrypt_later=1
7423 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7424
7425 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7426
7427 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7428
7429
7430$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7431
7432
7433$as_echo "#define USE_BTMP 1" >>confdefs.h
7434
7435 ;;
7436*-*-linux*)
7437 no_dev_ptmx=1
7438 use_pie=auto
7439 check_for_libcrypt_later=1
7440 check_for_openpty_ctty_bug=1
7441
7442$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7443
7444
7445$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7446
7447 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7448
7449
7450$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
7451
7452
7453$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7454
7455 $as_echo "#define USE_BTMP 1" >>confdefs.h
7456
7457
7458$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
7459
7460 inet6_default_4in6=yes
7461 case `uname -r` in
7462 1.*|2.0.*)
7463
7464$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
7465
7466 ;;
7467 esac
7468 # tun(4) forwarding compat code
7469 for ac_header in linux/if_tun.h
7470do :
7471 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
7472if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
7473 cat >>confdefs.h <<_ACEOF
7474#define HAVE_LINUX_IF_TUN_H 1
7475_ACEOF
7476
7477fi
7478
7479done
7480
7481 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7482
7483$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
7484
7485
7486$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7487
7488
7489$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7490
7491 fi
7492 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7493do :
7494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7495ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
7496"
7497if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7498 cat >>confdefs.h <<_ACEOF
7499#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7500_ACEOF
7501
7502fi
7503
7504done
7505
7506 for ac_func in prctl
7507do :
7508 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
7509if test "x$ac_cv_func_prctl" = xyes; then :
7510 cat >>confdefs.h <<_ACEOF
7511#define HAVE_PRCTL 1
7512_ACEOF
7513
7514fi
7515done
7516
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
7518$as_echo_n "checking for seccomp architecture... " >&6; }
7519 seccomp_audit_arch=
7520 case "$host" in
7521 x86_64-*)
7522 seccomp_audit_arch=AUDIT_ARCH_X86_64
7523 ;;
7524 i*86-*)
7525 seccomp_audit_arch=AUDIT_ARCH_I386
7526 ;;
7527 arm*-*)
7528 seccomp_audit_arch=AUDIT_ARCH_ARM
7529 ;;
7530 esac
7531 if test "x$seccomp_audit_arch" != "x" ; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
7533$as_echo "\"$seccomp_audit_arch\"" >&6; }
7534
7535cat >>confdefs.h <<_ACEOF
7536#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
7537_ACEOF
7538
7539 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
7541$as_echo "architecture not supported" >&6; }
7542 fi
7543 ;;
7544mips-sony-bsd|mips-sony-newsos4)
7545
7546$as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7547
7548 SONY=1
7549 ;;
7550*-*-netbsd*)
7551 check_for_libcrypt_before=1
7552 if test "x$withval" != "xno" ; then
7553 need_dash_r=1
7554 fi
7555
7556$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7557
7558 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7559if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7560
7561else
7562
7563$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7564
7565fi
7566
7567
7568
7569$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7570
7571 TEST_MALLOC_OPTIONS="AJRX"
7572
7573$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7574
7575
7576$as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h
7577
7578 ;;
7579*-*-freebsd*)
7580 check_for_libcrypt_later=1
7581
7582$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
7583
7584
7585$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7586
7587 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7588if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7589
7590else
7591
7592$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7593
7594fi
7595
7596
7597
7598$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7599
7600
7601$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7602
7603 TEST_MALLOC_OPTIONS="AJRX"
7604 # Preauth crypto occasionally uses file descriptors for crypto offload
7605 # and will crash if they cannot be opened.
7606
7607$as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
7608
7609 ;;
7610*-*-bsdi*)
7611 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7612
7613 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7614
7615 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7616
7617 ;;
7618*-next-*)
7619 conf_lastlog_location="/usr/adm/lastlog"
7620 conf_utmp_location=/etc/utmp
7621 conf_wtmp_location=/usr/adm/wtmp
7622 maildir=/usr/spool/mail
7623
7624$as_echo "#define HAVE_NEXT 1" >>confdefs.h
7625
7626 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7627
7628 $as_echo "#define USE_PIPES 1" >>confdefs.h
7629
7630
7631$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
7632
7633 ;;
7634*-*-openbsd*)
7635 use_pie=auto
7636
7637$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
7638
7639
7640$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
7641
7642
7643$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
7644
7645
7646$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
7647
7648 TEST_MALLOC_OPTIONS="AFGJPRX"
7649 ;;
7650*-*-solaris*)
7651 if test "x$withval" != "xno" ; then
7652 need_dash_r=1
7653 fi
7654 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7655
7656 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7657
7658
7659$as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
7660
7661 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7662
7663
7664$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7665
7666 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7667
7668 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7669
7670$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7671
7672
7673$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7674
7675
7676$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7677
7678 external_path_file=/etc/default/login
7679 # hardwire lastlog location (can't detect it on some versions)
7680 conf_lastlog_location="/var/adm/lastlog"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7682$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7683 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7684 if test "$sol2ver" -ge 8; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686$as_echo "yes" >&6; }
7687 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7688
7689
7690$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7691
7692 else
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694$as_echo "no" >&6; }
7695 fi
7696
7697# Check whether --with-solaris-contracts was given.
7698if test "${with_solaris_contracts+set}" = set; then :
7699 withval=$with_solaris_contracts;
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7701$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7702if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704else
7705 ac_check_lib_save_LIBS=$LIBS
7706LIBS="-lcontract $LIBS"
7707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708/* end confdefs.h. */
7709
7710/* Override any GCC internal prototype to avoid an error.
7711 Use char because int might match the return type of a GCC
7712 builtin and then its argument prototype would still apply. */
7713#ifdef __cplusplus
7714extern "C"
7715#endif
7716char ct_tmpl_activate ();
7717int
7718main ()
7719{
7720return ct_tmpl_activate ();
7721 ;
7722 return 0;
7723}
7724_ACEOF
7725if ac_fn_c_try_link "$LINENO"; then :
7726 ac_cv_lib_contract_ct_tmpl_activate=yes
7727else
7728 ac_cv_lib_contract_ct_tmpl_activate=no
7729fi
7730rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732LIBS=$ac_check_lib_save_LIBS
7733fi
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7735$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7736if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7737
7738$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7739
7740 SSHDLIBS="$SSHDLIBS -lcontract"
7741 SPC_MSG="yes"
7742fi
7743
7744
7745fi
7746
7747
7748# Check whether --with-solaris-projects was given.
7749if test "${with_solaris_projects+set}" = set; then :
7750 withval=$with_solaris_projects;
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7752$as_echo_n "checking for setproject in -lproject... " >&6; }
7753if ${ac_cv_lib_project_setproject+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755else
7756 ac_check_lib_save_LIBS=$LIBS
7757LIBS="-lproject $LIBS"
7758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h. */
7760
7761/* Override any GCC internal prototype to avoid an error.
7762 Use char because int might match the return type of a GCC
7763 builtin and then its argument prototype would still apply. */
7764#ifdef __cplusplus
7765extern "C"
7766#endif
7767char setproject ();
7768int
7769main ()
7770{
7771return setproject ();
7772 ;
7773 return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_link "$LINENO"; then :
7777 ac_cv_lib_project_setproject=yes
7778else
7779 ac_cv_lib_project_setproject=no
7780fi
7781rm -f core conftest.err conftest.$ac_objext \
7782 conftest$ac_exeext conftest.$ac_ext
7783LIBS=$ac_check_lib_save_LIBS
7784fi
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7786$as_echo "$ac_cv_lib_project_setproject" >&6; }
7787if test "x$ac_cv_lib_project_setproject" = xyes; then :
7788
7789$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7790
7791 SSHDLIBS="$SSHDLIBS -lproject"
7792 SP_MSG="yes"
7793fi
7794
7795
7796fi
7797
7798 TEST_SHELL=$SHELL # let configure find us a capable shell
7799 ;;
7800*-*-sunos4*)
7801 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7802 for ac_func in getpwanam
7803do :
7804 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7805if test "x$ac_cv_func_getpwanam" = xyes; then :
7806 cat >>confdefs.h <<_ACEOF
7807#define HAVE_GETPWANAM 1
7808_ACEOF
7809
7810fi
7811done
7812
7813 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7814
7815 conf_utmp_location=/etc/utmp
7816 conf_wtmp_location=/var/adm/wtmp
7817 conf_lastlog_location=/var/adm/lastlog
7818 $as_echo "#define USE_PIPES 1" >>confdefs.h
7819
7820 ;;
7821*-ncr-sysv*)
7822 LIBS="$LIBS -lc89"
7823 $as_echo "#define USE_PIPES 1" >>confdefs.h
7824
7825 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7826
7827 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7828
7829 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7830
7831 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7832
7833 ;;
7834*-sni-sysv*)
7835 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7837$as_echo_n "checking for dlsym in -ldl... " >&6; }
7838if ${ac_cv_lib_dl_dlsym+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840else
7841 ac_check_lib_save_LIBS=$LIBS
7842LIBS="-ldl $LIBS"
7843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h. */
7845
7846/* Override any GCC internal prototype to avoid an error.
7847 Use char because int might match the return type of a GCC
7848 builtin and then its argument prototype would still apply. */
7849#ifdef __cplusplus
7850extern "C"
7851#endif
7852char dlsym ();
7853int
7854main ()
7855{
7856return dlsym ();
7857 ;
7858 return 0;
7859}
7860_ACEOF
7861if ac_fn_c_try_link "$LINENO"; then :
7862 ac_cv_lib_dl_dlsym=yes
7863else
7864 ac_cv_lib_dl_dlsym=no
7865fi
7866rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868LIBS=$ac_check_lib_save_LIBS
7869fi
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7871$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7872if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7873 cat >>confdefs.h <<_ACEOF
7874#define HAVE_LIBDL 1
7875_ACEOF
7876
7877 LIBS="-ldl $LIBS"
7878
7879fi
7880
7881 # -lresolv needs to be at the end of LIBS or DNS lookups break
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7883$as_echo_n "checking for res_query in -lresolv... " >&6; }
7884if ${ac_cv_lib_resolv_res_query+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886else
7887 ac_check_lib_save_LIBS=$LIBS
7888LIBS="-lresolv $LIBS"
7889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h. */
7891
7892/* Override any GCC internal prototype to avoid an error.
7893 Use char because int might match the return type of a GCC
7894 builtin and then its argument prototype would still apply. */
7895#ifdef __cplusplus
7896extern "C"
7897#endif
7898char res_query ();
7899int
7900main ()
7901{
7902return res_query ();
7903 ;
7904 return 0;
7905}
7906_ACEOF
7907if ac_fn_c_try_link "$LINENO"; then :
7908 ac_cv_lib_resolv_res_query=yes
7909else
7910 ac_cv_lib_resolv_res_query=no
7911fi
7912rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914LIBS=$ac_check_lib_save_LIBS
7915fi
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7917$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7918if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7919 LIBS="$LIBS -lresolv"
7920fi
7921
7922 IPADDR_IN_DISPLAY=yes
7923 $as_echo "#define USE_PIPES 1" >>confdefs.h
7924
7925 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7926
7927 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7928
7929 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7930
7931 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7932
7933 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7934
7935 external_path_file=/etc/default/login
7936 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7937 # Attention: always take care to bind libsocket and libnsl before libc,
7938 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7939 ;;
7940# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7941*-*-sysv4.2*)
7942 $as_echo "#define USE_PIPES 1" >>confdefs.h
7943
7944 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7945
7946 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7947
7948 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7949
7950
7951$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7952
7953 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7954
7955 TEST_SHELL=$SHELL # let configure find us a capable shell
7956 ;;
7957# UnixWare 7.x, OpenUNIX 8
7958*-*-sysv5*)
7959 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7960
7961$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7962
7963 $as_echo "#define USE_PIPES 1" >>confdefs.h
7964
7965 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7966
7967 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7968
7969 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7970
7971 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7972
7973 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7974
7975 TEST_SHELL=$SHELL # let configure find us a capable shell
7976 case "$host" in
7977 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7978 maildir=/var/spool/mail
7979
7980$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7981
7982 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7983
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7985$as_echo_n "checking for getluid in -lprot... " >&6; }
7986if ${ac_cv_lib_prot_getluid+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988else
7989 ac_check_lib_save_LIBS=$LIBS
7990LIBS="-lprot $LIBS"
7991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h. */
7993
7994/* Override any GCC internal prototype to avoid an error.
7995 Use char because int might match the return type of a GCC
7996 builtin and then its argument prototype would still apply. */
7997#ifdef __cplusplus
7998extern "C"
7999#endif
8000char getluid ();
8001int
8002main ()
8003{
8004return getluid ();
8005 ;
8006 return 0;
8007}
8008_ACEOF
8009if ac_fn_c_try_link "$LINENO"; then :
8010 ac_cv_lib_prot_getluid=yes
8011else
8012 ac_cv_lib_prot_getluid=no
8013fi
8014rm -f core conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8016LIBS=$ac_check_lib_save_LIBS
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
8019$as_echo "$ac_cv_lib_prot_getluid" >&6; }
8020if test "x$ac_cv_lib_prot_getluid" = xyes; then :
8021 LIBS="$LIBS -lprot"
8022 for ac_func in getluid setluid
8023do :
8024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8025ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8026if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8027 cat >>confdefs.h <<_ACEOF
8028#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8029_ACEOF
8030
8031fi
8032done
8033
8034 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8035
8036 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8037
8038
8039fi
8040
8041 ;;
8042 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8043
8044 check_for_libcrypt_later=1
8045 ;;
8046 esac
8047 ;;
8048*-*-sysv*)
8049 ;;
8050# SCO UNIX and OEM versions of SCO UNIX
8051*-*-sco3.2v4*)
8052 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
8053 ;;
8054# SCO OpenServer 5.x
8055*-*-sco3.2v5*)
8056 if test -z "$GCC"; then
8057 CFLAGS="$CFLAGS -belf"
8058 fi
8059 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8060 no_dev_ptmx=1
8061 $as_echo "#define USE_PIPES 1" >>confdefs.h
8062
8063 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8064
8065 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8066
8067 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8068
8069 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8070
8071 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8072
8073 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8074
8075 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8076
8077 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8078
8079 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8080
8081 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8082
8083 for ac_func in getluid setluid
8084do :
8085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8086ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8087if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8088 cat >>confdefs.h <<_ACEOF
8089#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8090_ACEOF
8091
8092fi
8093done
8094
8095 MANTYPE=man
8096 TEST_SHELL=$SHELL # let configure find us a capable shell
8097 SKIP_DISABLE_LASTLOG_DEFINE=yes
8098 ;;
8099*-*-unicosmk*)
8100
8101$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8102
8103 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8104
8105 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8106
8107 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8108
8109 $as_echo "#define USE_PIPES 1" >>confdefs.h
8110
8111 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8112
8113 LDFLAGS="$LDFLAGS"
8114 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8115 MANTYPE=cat
8116 ;;
8117*-*-unicosmp*)
8118 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8119
8120 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8121
8122 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8123
8124 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8125
8126 $as_echo "#define USE_PIPES 1" >>confdefs.h
8127
8128 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8129
8130 LDFLAGS="$LDFLAGS"
8131 LIBS="$LIBS -lgen -lacid -ldb"
8132 MANTYPE=cat
8133 ;;
8134*-*-unicos*)
8135 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8136
8137 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8138
8139 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8140
8141 $as_echo "#define USE_PIPES 1" >>confdefs.h
8142
8143 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8144
8145 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8146
8147 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
8148 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8149 MANTYPE=cat
8150 ;;
8151*-dec-osf*)
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
8153$as_echo_n "checking for Digital Unix SIA... " >&6; }
8154 no_osfsia=""
8155
8156# Check whether --with-osfsia was given.
8157if test "${with_osfsia+set}" = set; then :
8158 withval=$with_osfsia;
8159 if test "x$withval" = "xno" ; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8161$as_echo "disabled" >&6; }
8162 no_osfsia=1
8163 fi
8164
8165fi
8166
8167 if test -z "$no_osfsia" ; then
8168 if test -f /etc/sia/matrix.conf; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8170$as_echo "yes" >&6; }
8171
8172$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
8173
8174
8175$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
8176
8177 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8178
8179 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8180 SIA_MSG="yes"
8181 else
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183$as_echo "no" >&6; }
8184
8185$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
8186
8187 fi
8188 fi
8189 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8190
8191 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8192
8193 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8194
8195 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8196
8197
8198$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
8199
8200 ;;
8201
8202*-*-nto-qnx*)
8203 $as_echo "#define USE_PIPES 1" >>confdefs.h
8204
8205 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
8206
8207 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
8208
8209 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8210
8211
8212$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
8213
8214 enable_etc_default_login=no # has incompatible /etc/default/login
8215 case "$host" in
8216 *-*-nto-qnx6*)
8217 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8218
8219 ;;
8220 esac
8221 ;;
8222
8223*-*-ultrix*)
8224
8225$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
8226
8227
8228$as_echo "#define BROKEN_MMAP 1" >>confdefs.h
8229
8230 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8231
8232
8233$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
8234
8235 ;;
8236
8237*-*-lynxos)
8238 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8239
8240$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
8241
8242 ;;
8243esac
8244
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
8246$as_echo_n "checking compiler and flags for sanity... " >&6; }
8247if test "$cross_compiling" = yes; then :
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
8249$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8250
8251else
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253/* end confdefs.h. */
8254 #include <stdio.h>
8255int
8256main ()
8257{
8258 exit(0);
8259 ;
8260 return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_run "$LINENO"; then :
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8265$as_echo "yes" >&6; }
8266else
8267
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269$as_echo "no" >&6; }
8270 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
8271
8272fi
8273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8274 conftest.$ac_objext conftest.beam conftest.$ac_ext
8275fi
8276
8277
8278# Checks for libraries.
8279ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
8280if test "x$ac_cv_func_yp_match" = xyes; then :
8281
8282else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
8284$as_echo_n "checking for yp_match in -lnsl... " >&6; }
8285if ${ac_cv_lib_nsl_yp_match+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287else
8288 ac_check_lib_save_LIBS=$LIBS
8289LIBS="-lnsl $LIBS"
8290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h. */
8292
8293/* Override any GCC internal prototype to avoid an error.
8294 Use char because int might match the return type of a GCC
8295 builtin and then its argument prototype would still apply. */
8296#ifdef __cplusplus
8297extern "C"
8298#endif
8299char yp_match ();
8300int
8301main ()
8302{
8303return yp_match ();
8304 ;
8305 return 0;
8306}
8307_ACEOF
8308if ac_fn_c_try_link "$LINENO"; then :
8309 ac_cv_lib_nsl_yp_match=yes
8310else
8311 ac_cv_lib_nsl_yp_match=no
8312fi
8313rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315LIBS=$ac_check_lib_save_LIBS
8316fi
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
8318$as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
8319if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
8320 cat >>confdefs.h <<_ACEOF
8321#define HAVE_LIBNSL 1
8322_ACEOF
8323
8324 LIBS="-lnsl $LIBS"
8325
8326fi
8327
8328fi
8329
8330ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
8331if test "x$ac_cv_func_setsockopt" = xyes; then :
8332
8333else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
8335$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
8336if ${ac_cv_lib_socket_setsockopt+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338else
8339 ac_check_lib_save_LIBS=$LIBS
8340LIBS="-lsocket $LIBS"
8341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h. */
8343
8344/* Override any GCC internal prototype to avoid an error.
8345 Use char because int might match the return type of a GCC
8346 builtin and then its argument prototype would still apply. */
8347#ifdef __cplusplus
8348extern "C"
8349#endif
8350char setsockopt ();
8351int
8352main ()
8353{
8354return setsockopt ();
8355 ;
8356 return 0;
8357}
8358_ACEOF
8359if ac_fn_c_try_link "$LINENO"; then :
8360 ac_cv_lib_socket_setsockopt=yes
8361else
8362 ac_cv_lib_socket_setsockopt=no
8363fi
8364rm -f core conftest.err conftest.$ac_objext \
8365 conftest$ac_exeext conftest.$ac_ext
8366LIBS=$ac_check_lib_save_LIBS
8367fi
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
8369$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
8370if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
8371 cat >>confdefs.h <<_ACEOF
8372#define HAVE_LIBSOCKET 1
8373_ACEOF
8374
8375 LIBS="-lsocket $LIBS"
8376
8377fi
8378
8379fi
8380
8381
8382for ac_func in dirname
8383do :
8384 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
8385if test "x$ac_cv_func_dirname" = xyes; then :
8386 cat >>confdefs.h <<_ACEOF
8387#define HAVE_DIRNAME 1
8388_ACEOF
8389 for ac_header in libgen.h
8390do :
8391 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8392if test "x$ac_cv_header_libgen_h" = xyes; then :
8393 cat >>confdefs.h <<_ACEOF
8394#define HAVE_LIBGEN_H 1
8395_ACEOF
8396
8397fi
8398
8399done
8400
8401else
8402
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
8404$as_echo_n "checking for dirname in -lgen... " >&6; }
8405if ${ac_cv_lib_gen_dirname+:} false; then :
8406 $as_echo_n "(cached) " >&6
8407else
8408 ac_check_lib_save_LIBS=$LIBS
8409LIBS="-lgen $LIBS"
8410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411/* end confdefs.h. */
8412
8413/* Override any GCC internal prototype to avoid an error.
8414 Use char because int might match the return type of a GCC
8415 builtin and then its argument prototype would still apply. */
8416#ifdef __cplusplus
8417extern "C"
8418#endif
8419char dirname ();
8420int
8421main ()
8422{
8423return dirname ();
8424 ;
8425 return 0;
8426}
8427_ACEOF
8428if ac_fn_c_try_link "$LINENO"; then :
8429 ac_cv_lib_gen_dirname=yes
8430else
8431 ac_cv_lib_gen_dirname=no
8432fi
8433rm -f core conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8435LIBS=$ac_check_lib_save_LIBS
8436fi
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
8438$as_echo "$ac_cv_lib_gen_dirname" >&6; }
8439if test "x$ac_cv_lib_gen_dirname" = xyes; then :
8440
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
8442$as_echo_n "checking for broken dirname... " >&6; }
8443if ${ac_cv_have_broken_dirname+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445else
8446
8447 save_LIBS="$LIBS"
8448 LIBS="$LIBS -lgen"
8449 if test "$cross_compiling" = yes; then :
8450 ac_cv_have_broken_dirname="no"
8451else
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h. */
8454
8455#include <libgen.h>
8456#include <string.h>
8457
8458int main(int argc, char **argv) {
8459 char *s, buf[32];
8460
8461 strncpy(buf,"/etc", 32);
8462 s = dirname(buf);
8463 if (!s || strncmp(s, "/", 32) != 0) {
8464 exit(1);
8465 } else {
8466 exit(0);
8467 }
8468}
8469
8470_ACEOF
8471if ac_fn_c_try_run "$LINENO"; then :
8472 ac_cv_have_broken_dirname="no"
8473else
8474 ac_cv_have_broken_dirname="yes"
8475fi
8476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8477 conftest.$ac_objext conftest.beam conftest.$ac_ext
8478fi
8479
8480 LIBS="$save_LIBS"
8481
8482fi
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
8484$as_echo "$ac_cv_have_broken_dirname" >&6; }
8485 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
8486 LIBS="$LIBS -lgen"
8487 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
8488
8489 for ac_header in libgen.h
8490do :
8491 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8492if test "x$ac_cv_header_libgen_h" = xyes; then :
8493 cat >>confdefs.h <<_ACEOF
8494#define HAVE_LIBGEN_H 1
8495_ACEOF
8496
8497fi
8498
8499done
8500
8501 fi
8502
8503fi
8504
8505
8506fi
8507done
8508
8509
8510ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
8511if test "x$ac_cv_func_getspnam" = xyes; then :
8512
8513else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
8515$as_echo_n "checking for getspnam in -lgen... " >&6; }
8516if ${ac_cv_lib_gen_getspnam+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518else
8519 ac_check_lib_save_LIBS=$LIBS
8520LIBS="-lgen $LIBS"
8521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h. */
8523
8524/* Override any GCC internal prototype to avoid an error.
8525 Use char because int might match the return type of a GCC
8526 builtin and then its argument prototype would still apply. */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530char getspnam ();
8531int
8532main ()
8533{
8534return getspnam ();
8535 ;
8536 return 0;
8537}
8538_ACEOF
8539if ac_fn_c_try_link "$LINENO"; then :
8540 ac_cv_lib_gen_getspnam=yes
8541else
8542 ac_cv_lib_gen_getspnam=no
8543fi
8544rm -f core conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546LIBS=$ac_check_lib_save_LIBS
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
8549$as_echo "$ac_cv_lib_gen_getspnam" >&6; }
8550if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
8551 LIBS="$LIBS -lgen"
8552fi
8553
8554fi
8555
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
8557$as_echo_n "checking for library containing basename... " >&6; }
8558if ${ac_cv_search_basename+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560else
8561 ac_func_search_save_LIBS=$LIBS
8562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h. */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char basename ();
8572int
8573main ()
8574{
8575return basename ();
8576 ;
8577 return 0;
8578}
8579_ACEOF
8580for ac_lib in '' gen; do
8581 if test -z "$ac_lib"; then
8582 ac_res="none required"
8583 else
8584 ac_res=-l$ac_lib
8585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8586 fi
8587 if ac_fn_c_try_link "$LINENO"; then :
8588 ac_cv_search_basename=$ac_res
8589fi
8590rm -f core conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext
8592 if ${ac_cv_search_basename+:} false; then :
8593 break
8594fi
8595done
8596if ${ac_cv_search_basename+:} false; then :
8597
8598else
8599 ac_cv_search_basename=no
8600fi
8601rm conftest.$ac_ext
8602LIBS=$ac_func_search_save_LIBS
8603fi
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8605$as_echo "$ac_cv_search_basename" >&6; }
8606ac_res=$ac_cv_search_basename
8607if test "$ac_res" != no; then :
8608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8609
8610$as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8611
8612fi
8613
8614
8615
8616# Check whether --with-zlib was given.
8617if test "${with_zlib+set}" = set; then :
8618 withval=$with_zlib; if test "x$withval" = "xno" ; then
8619 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
8620 elif test "x$withval" != "xyes"; then
8621 if test -d "$withval/lib"; then
8622 if test -n "${need_dash_r}"; then
8623 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8624 else
8625 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8626 fi
8627 else
8628 if test -n "${need_dash_r}"; then
8629 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8630 else
8631 LDFLAGS="-L${withval} ${LDFLAGS}"
8632 fi
8633 fi
8634 if test -d "$withval/include"; then
8635 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8636 else
8637 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8638 fi
8639 fi
8640
8641fi
8642
8643
8644ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8645if test "x$ac_cv_header_zlib_h" = xyes; then :
8646
8647else
8648 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
8649fi
8650
8651
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
8653$as_echo_n "checking for deflate in -lz... " >&6; }
8654if ${ac_cv_lib_z_deflate+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656else
8657 ac_check_lib_save_LIBS=$LIBS
8658LIBS="-lz $LIBS"
8659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660/* end confdefs.h. */
8661
8662/* Override any GCC internal prototype to avoid an error.
8663 Use char because int might match the return type of a GCC
8664 builtin and then its argument prototype would still apply. */
8665#ifdef __cplusplus
8666extern "C"
8667#endif
8668char deflate ();
8669int
8670main ()
8671{
8672return deflate ();
8673 ;
8674 return 0;
8675}
8676_ACEOF
8677if ac_fn_c_try_link "$LINENO"; then :
8678 ac_cv_lib_z_deflate=yes
8679else
8680 ac_cv_lib_z_deflate=no
8681fi
8682rm -f core conftest.err conftest.$ac_objext \
8683 conftest$ac_exeext conftest.$ac_ext
8684LIBS=$ac_check_lib_save_LIBS
8685fi
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8687$as_echo "$ac_cv_lib_z_deflate" >&6; }
8688if test "x$ac_cv_lib_z_deflate" = xyes; then :
8689 cat >>confdefs.h <<_ACEOF
8690#define HAVE_LIBZ 1
8691_ACEOF
8692
8693 LIBS="-lz $LIBS"
8694
8695else
8696
8697 saved_CPPFLAGS="$CPPFLAGS"
8698 saved_LDFLAGS="$LDFLAGS"
8699 save_LIBS="$LIBS"
8700 if test -n "${need_dash_r}"; then
8701 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8702 else
8703 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8704 fi
8705 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8706 LIBS="$LIBS -lz"
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h. */
8709
8710/* Override any GCC internal prototype to avoid an error.
8711 Use char because int might match the return type of a GCC
8712 builtin and then its argument prototype would still apply. */
8713#ifdef __cplusplus
8714extern "C"
8715#endif
8716char deflate ();
8717int
8718main ()
8719{
8720return deflate ();
8721 ;
8722 return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_link "$LINENO"; then :
8726 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8727
8728else
8729
8730 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8731
8732
8733fi
8734rm -f core conftest.err conftest.$ac_objext \
8735 conftest$ac_exeext conftest.$ac_ext
8736
8737
8738fi
8739
8740
8741
8742# Check whether --with-zlib-version-check was given.
8743if test "${with_zlib_version_check+set}" = set; then :
8744 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8745 zlib_check_nonfatal=1
8746 fi
8747
8748
8749fi
8750
8751
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8753$as_echo_n "checking for possibly buggy zlib... " >&6; }
8754if test "$cross_compiling" = yes; then :
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8756$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8757
8758else
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h. */
8761
8762#include <stdio.h>
8763#include <stdlib.h>
8764#include <zlib.h>
8765
8766int
8767main ()
8768{
8769
8770 int a=0, b=0, c=0, d=0, n, v;
8771 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8772 if (n != 3 && n != 4)
8773 exit(1);
8774 v = a*1000000 + b*10000 + c*100 + d;
8775 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8776
8777 /* 1.1.4 is OK */
8778 if (a == 1 && b == 1 && c >= 4)
8779 exit(0);
8780
8781 /* 1.2.3 and up are OK */
8782 if (v >= 1020300)
8783 exit(0);
8784
8785 exit(2);
8786
8787 ;
8788 return 0;
8789}
8790_ACEOF
8791if ac_fn_c_try_run "$LINENO"; then :
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793$as_echo "no" >&6; }
8794else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8796$as_echo "yes" >&6; }
8797 if test -z "$zlib_check_nonfatal" ; then
8798 as_fn_error $? "*** zlib too old - check config.log ***
8799Your reported zlib version has known security problems. It's possible your
8800vendor has fixed these problems without changing the version number. If you
8801are sure this is the case, you can disable the check by running
8802\"./configure --without-zlib-version-check\".
8803If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8804See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8805 else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8807$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8808 fi
8809
8810fi
8811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8812 conftest.$ac_objext conftest.beam conftest.$ac_ext
8813fi
8814
8815
8816ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8817if test "x$ac_cv_func_strcasecmp" = xyes; then :
8818
8819else
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8821$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8822if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824else
8825 ac_check_lib_save_LIBS=$LIBS
8826LIBS="-lresolv $LIBS"
8827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828/* end confdefs.h. */
8829
8830/* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
8833#ifdef __cplusplus
8834extern "C"
8835#endif
8836char strcasecmp ();
8837int
8838main ()
8839{
8840return strcasecmp ();
8841 ;
8842 return 0;
8843}
8844_ACEOF
8845if ac_fn_c_try_link "$LINENO"; then :
8846 ac_cv_lib_resolv_strcasecmp=yes
8847else
8848 ac_cv_lib_resolv_strcasecmp=no
8849fi
8850rm -f core conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852LIBS=$ac_check_lib_save_LIBS
8853fi
8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8855$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8856if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8857 LIBS="$LIBS -lresolv"
8858fi
8859
8860
8861fi
8862
8863for ac_func in utimes
8864do :
8865 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8866if test "x$ac_cv_func_utimes" = xyes; then :
8867 cat >>confdefs.h <<_ACEOF
8868#define HAVE_UTIMES 1
8869_ACEOF
8870
8871else
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8873$as_echo_n "checking for utimes in -lc89... " >&6; }
8874if ${ac_cv_lib_c89_utimes+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876else
8877 ac_check_lib_save_LIBS=$LIBS
8878LIBS="-lc89 $LIBS"
8879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880/* end confdefs.h. */
8881
8882/* Override any GCC internal prototype to avoid an error.
8883 Use char because int might match the return type of a GCC
8884 builtin and then its argument prototype would still apply. */
8885#ifdef __cplusplus
8886extern "C"
8887#endif
8888char utimes ();
8889int
8890main ()
8891{
8892return utimes ();
8893 ;
8894 return 0;
8895}
8896_ACEOF
8897if ac_fn_c_try_link "$LINENO"; then :
8898 ac_cv_lib_c89_utimes=yes
8899else
8900 ac_cv_lib_c89_utimes=no
8901fi
8902rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904LIBS=$ac_check_lib_save_LIBS
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8907$as_echo "$ac_cv_lib_c89_utimes" >&6; }
8908if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8909 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8910
8911 LIBS="$LIBS -lc89"
8912fi
8913
8914
8915fi
8916done
8917
8918
8919for ac_header in bsd/libutil.h libutil.h
8920do :
8921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8922ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8923if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8924 cat >>confdefs.h <<_ACEOF
8925#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8926_ACEOF
8927
8928fi
8929
8930done
8931
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
8933$as_echo_n "checking for library containing fmt_scaled... " >&6; }
8934if ${ac_cv_search_fmt_scaled+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936else
8937 ac_func_search_save_LIBS=$LIBS
8938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939/* end confdefs.h. */
8940
8941/* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8944#ifdef __cplusplus
8945extern "C"
8946#endif
8947char fmt_scaled ();
8948int
8949main ()
8950{
8951return fmt_scaled ();
8952 ;
8953 return 0;
8954}
8955_ACEOF
8956for ac_lib in '' util bsd; do
8957 if test -z "$ac_lib"; then
8958 ac_res="none required"
8959 else
8960 ac_res=-l$ac_lib
8961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8962 fi
8963 if ac_fn_c_try_link "$LINENO"; then :
8964 ac_cv_search_fmt_scaled=$ac_res
8965fi
8966rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext
8968 if ${ac_cv_search_fmt_scaled+:} false; then :
8969 break
8970fi
8971done
8972if ${ac_cv_search_fmt_scaled+:} false; then :
8973
8974else
8975 ac_cv_search_fmt_scaled=no
8976fi
8977rm conftest.$ac_ext
8978LIBS=$ac_func_search_save_LIBS
8979fi
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
8981$as_echo "$ac_cv_search_fmt_scaled" >&6; }
8982ac_res=$ac_cv_search_fmt_scaled
8983if test "$ac_res" != no; then :
8984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985
8986fi
8987
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
8989$as_echo_n "checking for library containing scan_scaled... " >&6; }
8990if ${ac_cv_search_scan_scaled+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992else
8993 ac_func_search_save_LIBS=$LIBS
8994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h. */
8996
8997/* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000#ifdef __cplusplus
9001extern "C"
9002#endif
9003char scan_scaled ();
9004int
9005main ()
9006{
9007return scan_scaled ();
9008 ;
9009 return 0;
9010}
9011_ACEOF
9012for ac_lib in '' util bsd; do
9013 if test -z "$ac_lib"; then
9014 ac_res="none required"
9015 else
9016 ac_res=-l$ac_lib
9017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9018 fi
9019 if ac_fn_c_try_link "$LINENO"; then :
9020 ac_cv_search_scan_scaled=$ac_res
9021fi
9022rm -f core conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext
9024 if ${ac_cv_search_scan_scaled+:} false; then :
9025 break
9026fi
9027done
9028if ${ac_cv_search_scan_scaled+:} false; then :
9029
9030else
9031 ac_cv_search_scan_scaled=no
9032fi
9033rm conftest.$ac_ext
9034LIBS=$ac_func_search_save_LIBS
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
9037$as_echo "$ac_cv_search_scan_scaled" >&6; }
9038ac_res=$ac_cv_search_scan_scaled
9039if test "$ac_res" != no; then :
9040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9041
9042fi
9043
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
9045$as_echo_n "checking for library containing login... " >&6; }
9046if ${ac_cv_search_login+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048else
9049 ac_func_search_save_LIBS=$LIBS
9050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051/* end confdefs.h. */
9052
9053/* Override any GCC internal prototype to avoid an error.
9054 Use char because int might match the return type of a GCC
9055 builtin and then its argument prototype would still apply. */
9056#ifdef __cplusplus
9057extern "C"
9058#endif
9059char login ();
9060int
9061main ()
9062{
9063return login ();
9064 ;
9065 return 0;
9066}
9067_ACEOF
9068for ac_lib in '' util bsd; do
9069 if test -z "$ac_lib"; then
9070 ac_res="none required"
9071 else
9072 ac_res=-l$ac_lib
9073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9074 fi
9075 if ac_fn_c_try_link "$LINENO"; then :
9076 ac_cv_search_login=$ac_res
9077fi
9078rm -f core conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext
9080 if ${ac_cv_search_login+:} false; then :
9081 break
9082fi
9083done
9084if ${ac_cv_search_login+:} false; then :
9085
9086else
9087 ac_cv_search_login=no
9088fi
9089rm conftest.$ac_ext
9090LIBS=$ac_func_search_save_LIBS
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
9093$as_echo "$ac_cv_search_login" >&6; }
9094ac_res=$ac_cv_search_login
9095if test "$ac_res" != no; then :
9096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9097
9098fi
9099
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
9101$as_echo_n "checking for library containing logout... " >&6; }
9102if ${ac_cv_search_logout+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104else
9105 ac_func_search_save_LIBS=$LIBS
9106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107/* end confdefs.h. */
9108
9109/* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9112#ifdef __cplusplus
9113extern "C"
9114#endif
9115char logout ();
9116int
9117main ()
9118{
9119return logout ();
9120 ;
9121 return 0;
9122}
9123_ACEOF
9124for ac_lib in '' util bsd; do
9125 if test -z "$ac_lib"; then
9126 ac_res="none required"
9127 else
9128 ac_res=-l$ac_lib
9129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9130 fi
9131 if ac_fn_c_try_link "$LINENO"; then :
9132 ac_cv_search_logout=$ac_res
9133fi
9134rm -f core conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext
9136 if ${ac_cv_search_logout+:} false; then :
9137 break
9138fi
9139done
9140if ${ac_cv_search_logout+:} false; then :
9141
9142else
9143 ac_cv_search_logout=no
9144fi
9145rm conftest.$ac_ext
9146LIBS=$ac_func_search_save_LIBS
9147fi
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
9149$as_echo "$ac_cv_search_logout" >&6; }
9150ac_res=$ac_cv_search_logout
9151if test "$ac_res" != no; then :
9152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9153
9154fi
9155
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
9157$as_echo_n "checking for library containing logwtmp... " >&6; }
9158if ${ac_cv_search_logwtmp+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160else
9161 ac_func_search_save_LIBS=$LIBS
9162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h. */
9164
9165/* Override any GCC internal prototype to avoid an error.
9166 Use char because int might match the return type of a GCC
9167 builtin and then its argument prototype would still apply. */
9168#ifdef __cplusplus
9169extern "C"
9170#endif
9171char logwtmp ();
9172int
9173main ()
9174{
9175return logwtmp ();
9176 ;
9177 return 0;
9178}
9179_ACEOF
9180for ac_lib in '' util bsd; do
9181 if test -z "$ac_lib"; then
9182 ac_res="none required"
9183 else
9184 ac_res=-l$ac_lib
9185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9186 fi
9187 if ac_fn_c_try_link "$LINENO"; then :
9188 ac_cv_search_logwtmp=$ac_res
9189fi
9190rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext
9192 if ${ac_cv_search_logwtmp+:} false; then :
9193 break
9194fi
9195done
9196if ${ac_cv_search_logwtmp+:} false; then :
9197
9198else
9199 ac_cv_search_logwtmp=no
9200fi
9201rm conftest.$ac_ext
9202LIBS=$ac_func_search_save_LIBS
9203fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
9205$as_echo "$ac_cv_search_logwtmp" >&6; }
9206ac_res=$ac_cv_search_logwtmp
9207if test "$ac_res" != no; then :
9208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9209
9210fi
9211
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
9213$as_echo_n "checking for library containing openpty... " >&6; }
9214if ${ac_cv_search_openpty+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216else
9217 ac_func_search_save_LIBS=$LIBS
9218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219/* end confdefs.h. */
9220
9221/* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9224#ifdef __cplusplus
9225extern "C"
9226#endif
9227char openpty ();
9228int
9229main ()
9230{
9231return openpty ();
9232 ;
9233 return 0;
9234}
9235_ACEOF
9236for ac_lib in '' util bsd; do
9237 if test -z "$ac_lib"; then
9238 ac_res="none required"
9239 else
9240 ac_res=-l$ac_lib
9241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9242 fi
9243 if ac_fn_c_try_link "$LINENO"; then :
9244 ac_cv_search_openpty=$ac_res
9245fi
9246rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext
9248 if ${ac_cv_search_openpty+:} false; then :
9249 break
9250fi
9251done
9252if ${ac_cv_search_openpty+:} false; then :
9253
9254else
9255 ac_cv_search_openpty=no
9256fi
9257rm conftest.$ac_ext
9258LIBS=$ac_func_search_save_LIBS
9259fi
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
9261$as_echo "$ac_cv_search_openpty" >&6; }
9262ac_res=$ac_cv_search_openpty
9263if test "$ac_res" != no; then :
9264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9265
9266fi
9267
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
9269$as_echo_n "checking for library containing updwtmp... " >&6; }
9270if ${ac_cv_search_updwtmp+:} false; then :
9271 $as_echo_n "(cached) " >&6
9272else
9273 ac_func_search_save_LIBS=$LIBS
9274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275/* end confdefs.h. */
9276
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. */
9280#ifdef __cplusplus
9281extern "C"
9282#endif
9283char updwtmp ();
9284int
9285main ()
9286{
9287return updwtmp ();
9288 ;
9289 return 0;
9290}
9291_ACEOF
9292for ac_lib in '' util bsd; do
9293 if test -z "$ac_lib"; then
9294 ac_res="none required"
9295 else
9296 ac_res=-l$ac_lib
9297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9298 fi
9299 if ac_fn_c_try_link "$LINENO"; then :
9300 ac_cv_search_updwtmp=$ac_res
9301fi
9302rm -f core conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext
9304 if ${ac_cv_search_updwtmp+:} false; then :
9305 break
9306fi
9307done
9308if ${ac_cv_search_updwtmp+:} false; then :
9309
9310else
9311 ac_cv_search_updwtmp=no
9312fi
9313rm conftest.$ac_ext
9314LIBS=$ac_func_search_save_LIBS
9315fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
9317$as_echo "$ac_cv_search_updwtmp" >&6; }
9318ac_res=$ac_cv_search_updwtmp
9319if test "$ac_res" != no; then :
9320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9321
9322fi
9323
9324for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
9325do :
9326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9327ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9328if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9329 cat >>confdefs.h <<_ACEOF
9330#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9331_ACEOF
9332
9333fi
9334done
9335
9336
9337# On some platforms, inet_ntop may be found in libresolv or libnsl.
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9339$as_echo_n "checking for library containing inet_ntop... " >&6; }
9340if ${ac_cv_search_inet_ntop+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342else
9343 ac_func_search_save_LIBS=$LIBS
9344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345/* end confdefs.h. */
9346
9347/* Override any GCC internal prototype to avoid an error.
9348 Use char because int might match the return type of a GCC
9349 builtin and then its argument prototype would still apply. */
9350#ifdef __cplusplus
9351extern "C"
9352#endif
9353char inet_ntop ();
9354int
9355main ()
9356{
9357return inet_ntop ();
9358 ;
9359 return 0;
9360}
9361_ACEOF
9362for ac_lib in '' resolv nsl; do
9363 if test -z "$ac_lib"; then
9364 ac_res="none required"
9365 else
9366 ac_res=-l$ac_lib
9367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9368 fi
9369 if ac_fn_c_try_link "$LINENO"; then :
9370 ac_cv_search_inet_ntop=$ac_res
9371fi
9372rm -f core conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext
9374 if ${ac_cv_search_inet_ntop+:} false; then :
9375 break
9376fi
9377done
9378if ${ac_cv_search_inet_ntop+:} false; then :
9379
9380else
9381 ac_cv_search_inet_ntop=no
9382fi
9383rm conftest.$ac_ext
9384LIBS=$ac_func_search_save_LIBS
9385fi
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9387$as_echo "$ac_cv_search_inet_ntop" >&6; }
9388ac_res=$ac_cv_search_inet_ntop
9389if test "$ac_res" != no; then :
9390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9391
9392fi
9393
9394
9395for ac_func in strftime
9396do :
9397 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9398if test "x$ac_cv_func_strftime" = xyes; then :
9399 cat >>confdefs.h <<_ACEOF
9400#define HAVE_STRFTIME 1
9401_ACEOF
9402
9403else
9404 # strftime is in -lintl on SCO UNIX.
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9406$as_echo_n "checking for strftime in -lintl... " >&6; }
9407if ${ac_cv_lib_intl_strftime+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409else
9410 ac_check_lib_save_LIBS=$LIBS
9411LIBS="-lintl $LIBS"
9412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413/* end confdefs.h. */
9414
9415/* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
9418#ifdef __cplusplus
9419extern "C"
9420#endif
9421char strftime ();
9422int
9423main ()
9424{
9425return strftime ();
9426 ;
9427 return 0;
9428}
9429_ACEOF
9430if ac_fn_c_try_link "$LINENO"; then :
9431 ac_cv_lib_intl_strftime=yes
9432else
9433 ac_cv_lib_intl_strftime=no
9434fi
9435rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437LIBS=$ac_check_lib_save_LIBS
9438fi
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9440$as_echo "$ac_cv_lib_intl_strftime" >&6; }
9441if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9442 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9443
9444LIBS="-lintl $LIBS"
9445fi
9446
9447fi
9448done
9449
9450
9451# Check for ALTDIRFUNC glob() extension
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
9453$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
9454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h. */
9456
9457 #include <glob.h>
9458 #ifdef GLOB_ALTDIRFUNC
9459 FOUNDIT
9460 #endif
9461
9462_ACEOF
9463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9464 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
9465
9466
9467$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
9468
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9470$as_echo "yes" >&6; }
9471
9472else
9473
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475$as_echo "no" >&6; }
9476
9477
9478fi
9479rm -f conftest*
9480
9481
9482# Check for g.gl_matchc glob() extension
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
9484$as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
9485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486/* end confdefs.h. */
9487 #include <glob.h>
9488int
9489main ()
9490{
9491 glob_t g; g.gl_matchc = 1;
9492 ;
9493 return 0;
9494}
9495_ACEOF
9496if ac_fn_c_try_compile "$LINENO"; then :
9497
9498
9499$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
9500
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9502$as_echo "yes" >&6; }
9503
9504else
9505
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507$as_echo "no" >&6; }
9508
9509fi
9510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511
9512# Check for g.gl_statv glob() extension
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
9514$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
9515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h. */
9517 #include <glob.h>
9518int
9519main ()
9520{
9521
9522#ifndef GLOB_KEEPSTAT
9523#error "glob does not support GLOB_KEEPSTAT extension"
9524#endif
9525glob_t g;
9526g.gl_statv = NULL;
9527
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532if ac_fn_c_try_compile "$LINENO"; then :
9533
9534
9535$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
9536
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9538$as_echo "yes" >&6; }
9539
9540else
9541
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543$as_echo "no" >&6; }
9544
9545
9546fi
9547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548
9549ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
9550"
9551if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
9552 ac_have_decl=1
9553else
9554 ac_have_decl=0
9555fi
9556
9557cat >>confdefs.h <<_ACEOF
9558#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
9559_ACEOF
9560
9561
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
9563$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
9564if test "$cross_compiling" = yes; then :
9565
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
9567$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
9568 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9569
9570
9571
9572else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574/* end confdefs.h. */
9575
9576#include <sys/types.h>
9577#include <dirent.h>
9578int
9579main ()
9580{
9581
9582 struct dirent d;
9583 exit(sizeof(d.d_name)<=sizeof(char));
9584
9585 ;
9586 return 0;
9587}
9588_ACEOF
9589if ac_fn_c_try_run "$LINENO"; then :
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9591$as_echo "yes" >&6; }
9592else
9593
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595$as_echo "no" >&6; }
9596
9597$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9598
9599
9600fi
9601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9602 conftest.$ac_objext conftest.beam conftest.$ac_ext
9603fi
9604
9605
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
9607$as_echo_n "checking for /proc/pid/fd directory... " >&6; }
9608if test -d "/proc/$$/fd" ; then
9609
9610$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9613$as_echo "yes" >&6; }
9614else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616$as_echo "no" >&6; }
9617fi
9618
9619# Check whether user wants S/Key support
9620SKEY_MSG="no"
9621
9622# Check whether --with-skey was given.
9623if test "${with_skey+set}" = set; then :
9624 withval=$with_skey;
9625 if test "x$withval" != "xno" ; then
9626
9627 if test "x$withval" != "xyes" ; then
9628 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9629 LDFLAGS="$LDFLAGS -L${withval}/lib"
9630 fi
9631
9632
9633$as_echo "#define SKEY 1" >>confdefs.h
9634
9635 LIBS="-lskey $LIBS"
9636 SKEY_MSG="yes"
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
9639$as_echo_n "checking for s/key support... " >&6; }
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641/* end confdefs.h. */
9642
9643#include <stdio.h>
9644#include <skey.h>
9645
9646int
9647main ()
9648{
9649
9650 char *ff = skey_keyinfo(""); ff="";
9651 exit(0);
9652
9653 ;
9654 return 0;
9655}
9656_ACEOF
9657if ac_fn_c_try_link "$LINENO"; then :
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9659$as_echo "yes" >&6; }
9660else
9661
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663$as_echo "no" >&6; }
9664 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
9665
9666fi
9667rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
9670$as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672/* end confdefs.h. */
9673
9674#include <stdio.h>
9675#include <skey.h>
9676
9677int
9678main ()
9679{
9680
9681 (void)skeychallenge(NULL,"name","",0);
9682
9683 ;
9684 return 0;
9685}
9686_ACEOF
9687if ac_fn_c_try_compile "$LINENO"; then :
9688
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9690$as_echo "yes" >&6; }
9691
9692$as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
9693
9694else
9695
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
9698
9699fi
9700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 fi
9702
9703
9704fi
9705
9706
9707# Check whether user wants to use ldns
9708LDNS_MSG="no"
9709
9710# Check whether --with-ldns was given.
9711if test "${with_ldns+set}" = set; then :
9712 withval=$with_ldns;
9713 if test "x$withval" != "xno" ; then
9714
9715 if test "x$withval" != "xyes" ; then
9716 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9717 LDFLAGS="$LDFLAGS -L${withval}/lib"
9718 fi
9719
9720
9721$as_echo "#define HAVE_LDNS 1" >>confdefs.h
9722
9723 LIBS="-lldns $LIBS"
9724 LDNS_MSG="yes"
9725
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
9727$as_echo_n "checking for ldns support... " >&6; }
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729/* end confdefs.h. */
9730
9731#include <stdio.h>
9732#include <stdlib.h>
9733#include <stdint.h>
9734#include <ldns/ldns.h>
9735int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
9736
9737
9738_ACEOF
9739if ac_fn_c_try_link "$LINENO"; then :
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9741$as_echo "yes" >&6; }
9742else
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745$as_echo "no" >&6; }
9746 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
9747
9748fi
9749rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 fi
9752
9753
9754fi
9755
9756
9757# Check whether user wants libedit support
9758LIBEDIT_MSG="no"
9759
9760# Check whether --with-libedit was given.
9761if test "${with_libedit+set}" = set; then :
9762 withval=$with_libedit; if test "x$withval" != "xno" ; then
9763 if test "x$withval" = "xyes" ; then
9764 if test -n "$ac_tool_prefix"; then
9765 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9766set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9768$as_echo_n "checking for $ac_word... " >&6; }
9769if ${ac_cv_path_PKGCONFIG+:} false; then :
9770 $as_echo_n "(cached) " >&6
9771else
9772 case $PKGCONFIG in
9773 [\\/]* | ?:[\\/]*)
9774 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
9775 ;;
9776 *)
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778for as_dir in $PATH
9779do
9780 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 break 2
9787 fi
9788done
9789 done
9790IFS=$as_save_IFS
9791
9792 ;;
9793esac
9794fi
9795PKGCONFIG=$ac_cv_path_PKGCONFIG
9796if test -n "$PKGCONFIG"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
9798$as_echo "$PKGCONFIG" >&6; }
9799else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801$as_echo "no" >&6; }
9802fi
9803
9804
9805fi
9806if test -z "$ac_cv_path_PKGCONFIG"; then
9807 ac_pt_PKGCONFIG=$PKGCONFIG
9808 # Extract the first word of "pkg-config", so it can be a program name with args.
9809set dummy pkg-config; ac_word=$2
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811$as_echo_n "checking for $ac_word... " >&6; }
9812if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814else
9815 case $ac_pt_PKGCONFIG in
9816 [\\/]* | ?:[\\/]*)
9817 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
9818 ;;
9819 *)
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821for as_dir in $PATH
9822do
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2
9830 fi
9831done
9832 done
9833IFS=$as_save_IFS
9834
9835 ;;
9836esac
9837fi
9838ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
9839if test -n "$ac_pt_PKGCONFIG"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
9841$as_echo "$ac_pt_PKGCONFIG" >&6; }
9842else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844$as_echo "no" >&6; }
9845fi
9846
9847 if test "x$ac_pt_PKGCONFIG" = x; then
9848 PKGCONFIG="no"
9849 else
9850 case $cross_compiling:$ac_tool_warned in
9851yes:)
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9854ac_tool_warned=yes ;;
9855esac
9856 PKGCONFIG=$ac_pt_PKGCONFIG
9857 fi
9858else
9859 PKGCONFIG="$ac_cv_path_PKGCONFIG"
9860fi
9861
9862 if test "x$PKGCONFIG" != "xno"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
9864$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
9865 if "$PKGCONFIG" libedit; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9867$as_echo "yes" >&6; }
9868 use_pkgconfig_for_libedit=yes
9869 else
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871$as_echo "no" >&6; }
9872 fi
9873 fi
9874 else
9875 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9876 if test -n "${need_dash_r}"; then
9877 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9878 else
9879 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9880 fi
9881 fi
9882 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
9883 LIBEDIT=`$PKGCONFIG --libs libedit`
9884 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
9885 else
9886 LIBEDIT="-ledit -lcurses"
9887 fi
9888 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
9890$as_echo_n "checking for el_init in -ledit... " >&6; }
9891if ${ac_cv_lib_edit_el_init+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893else
9894 ac_check_lib_save_LIBS=$LIBS
9895LIBS="-ledit $OTHERLIBS
9896 $LIBS"
9897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h. */
9899
9900/* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9903#ifdef __cplusplus
9904extern "C"
9905#endif
9906char el_init ();
9907int
9908main ()
9909{
9910return el_init ();
9911 ;
9912 return 0;
9913}
9914_ACEOF
9915if ac_fn_c_try_link "$LINENO"; then :
9916 ac_cv_lib_edit_el_init=yes
9917else
9918 ac_cv_lib_edit_el_init=no
9919fi
9920rm -f core conftest.err conftest.$ac_objext \
9921 conftest$ac_exeext conftest.$ac_ext
9922LIBS=$ac_check_lib_save_LIBS
9923fi
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
9925$as_echo "$ac_cv_lib_edit_el_init" >&6; }
9926if test "x$ac_cv_lib_edit_el_init" = xyes; then :
9927
9928$as_echo "#define USE_LIBEDIT 1" >>confdefs.h
9929
9930 LIBEDIT_MSG="yes"
9931
9932
9933else
9934 as_fn_error $? "libedit not found" "$LINENO" 5
9935fi
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
9938$as_echo_n "checking if libedit version is compatible... " >&6; }
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940/* end confdefs.h. */
9941 #include <histedit.h>
9942int
9943main ()
9944{
9945
9946 int i = H_SETSIZE;
9947 el_init("", NULL, NULL, NULL);
9948 exit(0);
9949
9950 ;
9951 return 0;
9952}
9953_ACEOF
9954if ac_fn_c_try_compile "$LINENO"; then :
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9956$as_echo "yes" >&6; }
9957else
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959$as_echo "no" >&6; }
9960 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
9961
9962fi
9963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 fi
9965
9966fi
9967
9968
9969AUDIT_MODULE=none
9970
9971# Check whether --with-audit was given.
9972if test "${with_audit+set}" = set; then :
9973 withval=$with_audit;
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
9975$as_echo_n "checking for supported audit module... " >&6; }
9976 case "$withval" in
9977 bsm)
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
9979$as_echo "bsm" >&6; }
9980 AUDIT_MODULE=bsm
9981 for ac_header in bsm/audit.h
9982do :
9983 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
9984#ifdef HAVE_TIME_H
9985# include <time.h>
9986#endif
9987
9988
9989"
9990if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
9991 cat >>confdefs.h <<_ACEOF
9992#define HAVE_BSM_AUDIT_H 1
9993_ACEOF
9994
9995else
9996 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
9997fi
9998
9999done
10000
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
10002$as_echo_n "checking for getaudit in -lbsm... " >&6; }
10003if ${ac_cv_lib_bsm_getaudit+:} false; then :
10004 $as_echo_n "(cached) " >&6
10005else
10006 ac_check_lib_save_LIBS=$LIBS
10007LIBS="-lbsm $LIBS"
10008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h. */
10010
10011/* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10014#ifdef __cplusplus
10015extern "C"
10016#endif
10017char getaudit ();
10018int
10019main ()
10020{
10021return getaudit ();
10022 ;
10023 return 0;
10024}
10025_ACEOF
10026if ac_fn_c_try_link "$LINENO"; then :
10027 ac_cv_lib_bsm_getaudit=yes
10028else
10029 ac_cv_lib_bsm_getaudit=no
10030fi
10031rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033LIBS=$ac_check_lib_save_LIBS
10034fi
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
10036$as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
10037if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
10038 cat >>confdefs.h <<_ACEOF
10039#define HAVE_LIBBSM 1
10040_ACEOF
10041
10042 LIBS="-lbsm $LIBS"
10043
10044else
10045 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
10046fi
10047
10048 for ac_func in getaudit
10049do :
10050 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
10051if test "x$ac_cv_func_getaudit" = xyes; then :
10052 cat >>confdefs.h <<_ACEOF
10053#define HAVE_GETAUDIT 1
10054_ACEOF
10055
10056else
10057 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
10058fi
10059done
10060
10061 # These are optional
10062 for ac_func in getaudit_addr aug_get_machine
10063do :
10064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10065ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10066if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10067 cat >>confdefs.h <<_ACEOF
10068#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10069_ACEOF
10070
10071fi
10072done
10073
10074
10075$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
10076
10077 if test "$sol2ver" -ge 11; then
10078 SSHDLIBS="$SSHDLIBS -lscf"
10079
10080$as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
10081
10082 fi
10083 ;;
10084 linux)
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
10086$as_echo "linux" >&6; }
10087 AUDIT_MODULE=linux
10088 for ac_header in libaudit.h
10089do :
10090 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10091if test "x$ac_cv_header_libaudit_h" = xyes; then :
10092 cat >>confdefs.h <<_ACEOF
10093#define HAVE_LIBAUDIT_H 1
10094_ACEOF
10095
10096fi
10097
10098done
10099
10100 SSHDLIBS="$SSHDLIBS -laudit"
10101
10102$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
10103
10104 ;;
10105 debug)
10106 AUDIT_MODULE=debug
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
10108$as_echo "debug" >&6; }
10109
10110$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
10111
10112 ;;
10113 no)
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115$as_echo "no" >&6; }
10116 ;;
10117 *)
10118 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
10119 ;;
10120 esac
10121
10122fi
10123
10124
10125
10126# Check whether --with-pie was given.
10127if test "${with_pie+set}" = set; then :
10128 withval=$with_pie;
10129 if test "x$withval" = "xno"; then
10130 use_pie=no
10131 fi
10132 if test "x$withval" = "xyes"; then
10133 use_pie=yes
10134 fi
10135
10136
10137fi
10138
10139if test "x$use_pie" = "x"; then
10140 use_pie=no
10141fi
10142if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
10143 # Turn off automatic PIE when toolchain hardening is off.
10144 use_pie=no
10145fi
10146if test "x$use_pie" = "xauto"; then
10147 # Automatic PIE requires gcc >= 4.x
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5
10149$as_echo_n "checking for gcc >= 4.x... " >&6; }
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151/* end confdefs.h. */
10152
10153#if !defined(__GNUC__) || __GNUC__ < 4
10154#error gcc is too old
10155#endif
10156
10157_ACEOF
10158if ac_fn_c_try_compile "$LINENO"; then :
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10160$as_echo "yes" >&6; }
10161else
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
10164 use_pie=no
10165
10166fi
10167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168fi
10169if test "x$use_pie" != "xno"; then
10170 SAVED_CFLAGS="$CFLAGS"
10171 SAVED_LDFLAGS="$LDFLAGS"
10172 {
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5
10174$as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; }
10175 saved_CFLAGS="$CFLAGS"
10176 CFLAGS="$CFLAGS $WERROR -fPIE"
10177 _define_flag=""
10178 test "x$_define_flag" = "x" && _define_flag="-fPIE"
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h. */
10181
10182#include <stdlib.h>
10183#include <stdio.h>
10184int main(int argc, char **argv) {
10185 /* Some math to catch -ftrapv problems in the toolchain */
10186 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10187 float l = i * 2.1;
10188 double m = l / 0.5;
10189 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10190 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10191 exit(0);
10192}
10193
10194_ACEOF
10195if ac_fn_c_try_compile "$LINENO"; then :
10196
10197if `grep -i "unrecognized option" conftest.err >/dev/null`
10198then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200$as_echo "no" >&6; }
10201 CFLAGS="$saved_CFLAGS"
10202else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10204$as_echo "yes" >&6; }
10205 CFLAGS="$saved_CFLAGS $_define_flag"
10206fi
10207else
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209$as_echo "no" >&6; }
10210 CFLAGS="$saved_CFLAGS"
10211
10212fi
10213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214}
10215 {
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5
10217$as_echo_n "checking if $LD supports link flag -pie... " >&6; }
10218 saved_LDFLAGS="$LDFLAGS"
10219 LDFLAGS="$LDFLAGS $WERROR -pie"
10220 _define_flag=""
10221 test "x$_define_flag" = "x" && _define_flag="-pie"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223/* end confdefs.h. */
10224
10225#include <stdlib.h>
10226#include <stdio.h>
10227int main(int argc, char **argv) {
10228 /* Some math to catch -ftrapv problems in the toolchain */
10229 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10230 float l = i * 2.1;
10231 double m = l / 0.5;
10232 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10233 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10234 exit(0);
10235}
10236
10237_ACEOF
10238if ac_fn_c_try_link "$LINENO"; then :
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10240$as_echo "yes" >&6; }
10241 LDFLAGS="$saved_LDFLAGS $_define_flag"
10242else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244$as_echo "no" >&6; }
10245 LDFLAGS="$saved_LDFLAGS"
10246
10247fi
10248rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250}
10251 # We use both -fPIE and -pie or neither.
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5
10253$as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; }
10254 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
10255 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10257$as_echo "yes" >&6; }
10258 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260$as_echo "no" >&6; }
10261 CFLAGS="$SAVED_CFLAGS"
10262 LDFLAGS="$SAVED_LDFLAGS"
10263 fi
10264fi
10265
10266for ac_func in \
10267 Blowfish_initstate \
10268 Blowfish_expandstate \
10269 Blowfish_expand0state \
10270 Blowfish_stream2word \
10271 asprintf \
10272 b64_ntop \
10273 __b64_ntop \
10274 b64_pton \
10275 __b64_pton \
10276 bcopy \
10277 bcrypt_pbkdf \
10278 bindresvport_sa \
10279 blf_enc \
10280 cap_rights_limit \
10281 clock \
10282 closefrom \
10283 dirfd \
10284 endgrent \
10285 explicit_bzero \
10286 fchmod \
10287 fchown \
10288 freeaddrinfo \
10289 fstatfs \
10290 fstatvfs \
10291 futimes \
10292 getaddrinfo \
10293 getcwd \
10294 getgrouplist \
10295 getnameinfo \
10296 getopt \
10297 getpeereid \
10298 getpeerucred \
10299 getpgid \
10300 getpgrp \
10301 _getpty \
10302 getrlimit \
10303 getttyent \
10304 glob \
10305 group_from_gid \
10306 inet_aton \
10307 inet_ntoa \
10308 inet_ntop \
10309 innetgr \
10310 login_getcapbool \
10311 mblen \
10312 md5_crypt \
10313 memmove \
10314 memset_s \
10315 mkdtemp \
10316 mmap \
10317 ngetaddrinfo \
10318 nsleep \
10319 ogetaddrinfo \
10320 openlog_r \
10321 poll \
10322 prctl \
10323 pstat \
10324 readpassphrase \
10325 realpath \
10326 recvmsg \
10327 rresvport_af \
10328 sendmsg \
10329 setdtablesize \
10330 setegid \
10331 setenv \
10332 seteuid \
10333 setgroupent \
10334 setgroups \
10335 setlinebuf \
10336 setlogin \
10337 setpassent\
10338 setpcred \
10339 setproctitle \
10340 setregid \
10341 setreuid \
10342 setrlimit \
10343 setsid \
10344 setvbuf \
10345 sigaction \
10346 sigvec \
10347 snprintf \
10348 socketpair \
10349 statfs \
10350 statvfs \
10351 strdup \
10352 strerror \
10353 strlcat \
10354 strlcpy \
10355 strmode \
10356 strnlen \
10357 strnvis \
10358 strptime \
10359 strtonum \
10360 strtoll \
10361 strtoul \
10362 strtoull \
10363 swap32 \
10364 sysconf \
10365 tcgetpgrp \
10366 timingsafe_bcmp \
10367 truncate \
10368 unsetenv \
10369 updwtmpx \
10370 user_from_uid \
10371 usleep \
10372 vasprintf \
10373 vsnprintf \
10374 waitpid \
10375
10376do :
10377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10378ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10379if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10380 cat >>confdefs.h <<_ACEOF
10381#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10382_ACEOF
10383
10384fi
10385done
10386
10387
10388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h. */
10390 #include <ctype.h>
10391int
10392main ()
10393{
10394 return (isblank('a'));
10395 ;
10396 return 0;
10397}
10398_ACEOF
10399if ac_fn_c_try_link "$LINENO"; then :
10400
10401$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
10402
10403
10404fi
10405rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407
10408# PKCS#11 support requires dlopen() and co
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10410$as_echo_n "checking for library containing dlopen... " >&6; }
10411if ${ac_cv_search_dlopen+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413else
10414 ac_func_search_save_LIBS=$LIBS
10415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h. */
10417
10418/* Override any GCC internal prototype to avoid an error.
10419 Use char because int might match the return type of a GCC
10420 builtin and then its argument prototype would still apply. */
10421#ifdef __cplusplus
10422extern "C"
10423#endif
10424char dlopen ();
10425int
10426main ()
10427{
10428return dlopen ();
10429 ;
10430 return 0;
10431}
10432_ACEOF
10433for ac_lib in '' dl; do
10434 if test -z "$ac_lib"; then
10435 ac_res="none required"
10436 else
10437 ac_res=-l$ac_lib
10438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10439 fi
10440 if ac_fn_c_try_link "$LINENO"; then :
10441 ac_cv_search_dlopen=$ac_res
10442fi
10443rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext
10445 if ${ac_cv_search_dlopen+:} false; then :
10446 break
10447fi
10448done
10449if ${ac_cv_search_dlopen+:} false; then :
10450
10451else
10452 ac_cv_search_dlopen=no
10453fi
10454rm conftest.$ac_ext
10455LIBS=$ac_func_search_save_LIBS
10456fi
10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10458$as_echo "$ac_cv_search_dlopen" >&6; }
10459ac_res=$ac_cv_search_dlopen
10460if test "$ac_res" != no; then :
10461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10462
10463$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
10464
10465
10466fi
10467
10468
10469# IRIX has a const char return value for gai_strerror()
10470for ac_func in gai_strerror
10471do :
10472 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
10473if test "x$ac_cv_func_gai_strerror" = xyes; then :
10474 cat >>confdefs.h <<_ACEOF
10475#define HAVE_GAI_STRERROR 1
10476_ACEOF
10477
10478 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
10479
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481/* end confdefs.h. */
10482
10483#include <sys/types.h>
10484#include <sys/socket.h>
10485#include <netdb.h>
10486
10487const char *gai_strerror(int);
10488
10489int
10490main ()
10491{
10492
10493 char *str;
10494 str = gai_strerror(0);
10495
10496 ;
10497 return 0;
10498}
10499_ACEOF
10500if ac_fn_c_try_compile "$LINENO"; then :
10501
10502
10503$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
10504
10505fi
10506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507fi
10508done
10509
10510
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
10512$as_echo_n "checking for library containing nanosleep... " >&6; }
10513if ${ac_cv_search_nanosleep+:} false; then :
10514 $as_echo_n "(cached) " >&6
10515else
10516 ac_func_search_save_LIBS=$LIBS
10517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h. */
10519
10520/* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10523#ifdef __cplusplus
10524extern "C"
10525#endif
10526char nanosleep ();
10527int
10528main ()
10529{
10530return nanosleep ();
10531 ;
10532 return 0;
10533}
10534_ACEOF
10535for ac_lib in '' rt posix4; do
10536 if test -z "$ac_lib"; then
10537 ac_res="none required"
10538 else
10539 ac_res=-l$ac_lib
10540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10541 fi
10542 if ac_fn_c_try_link "$LINENO"; then :
10543 ac_cv_search_nanosleep=$ac_res
10544fi
10545rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext
10547 if ${ac_cv_search_nanosleep+:} false; then :
10548 break
10549fi
10550done
10551if ${ac_cv_search_nanosleep+:} false; then :
10552
10553else
10554 ac_cv_search_nanosleep=no
10555fi
10556rm conftest.$ac_ext
10557LIBS=$ac_func_search_save_LIBS
10558fi
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
10560$as_echo "$ac_cv_search_nanosleep" >&6; }
10561ac_res=$ac_cv_search_nanosleep
10562if test "$ac_res" != no; then :
10563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10564
10565$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
10566
10567fi
10568
10569
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10571$as_echo_n "checking for library containing clock_gettime... " >&6; }
10572if ${ac_cv_search_clock_gettime+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574else
10575 ac_func_search_save_LIBS=$LIBS
10576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577/* end confdefs.h. */
10578
10579/* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10582#ifdef __cplusplus
10583extern "C"
10584#endif
10585char clock_gettime ();
10586int
10587main ()
10588{
10589return clock_gettime ();
10590 ;
10591 return 0;
10592}
10593_ACEOF
10594for ac_lib in '' rt; do
10595 if test -z "$ac_lib"; then
10596 ac_res="none required"
10597 else
10598 ac_res=-l$ac_lib
10599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10600 fi
10601 if ac_fn_c_try_link "$LINENO"; then :
10602 ac_cv_search_clock_gettime=$ac_res
10603fi
10604rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext
10606 if ${ac_cv_search_clock_gettime+:} false; then :
10607 break
10608fi
10609done
10610if ${ac_cv_search_clock_gettime+:} false; then :
10611
10612else
10613 ac_cv_search_clock_gettime=no
10614fi
10615rm conftest.$ac_ext
10616LIBS=$ac_func_search_save_LIBS
10617fi
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10619$as_echo "$ac_cv_search_clock_gettime" >&6; }
10620ac_res=$ac_cv_search_clock_gettime
10621if test "$ac_res" != no; then :
10622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10623
10624$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10625
10626fi
10627
10628
10629ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
10630if test "x$ac_cv_have_decl_getrusage" = xyes; then :
10631 for ac_func in getrusage
10632do :
10633 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
10634if test "x$ac_cv_func_getrusage" = xyes; then :
10635 cat >>confdefs.h <<_ACEOF
10636#define HAVE_GETRUSAGE 1
10637_ACEOF
10638
10639fi
10640done
10641
10642fi
10643
10644ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
10645#ifdef HAVE_STRING_H
10646# include <string.h>
10647#endif
10648
10649"
10650if test "x$ac_cv_have_decl_strsep" = xyes; then :
10651 for ac_func in strsep
10652do :
10653 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
10654if test "x$ac_cv_func_strsep" = xyes; then :
10655 cat >>confdefs.h <<_ACEOF
10656#define HAVE_STRSEP 1
10657_ACEOF
10658
10659fi
10660done
10661
10662fi
10663
10664
10665ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
10666
10667"
10668if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
10669 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
10670
10671else
10672 for ac_func in tcsendbreak
10673do :
10674 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
10675if test "x$ac_cv_func_tcsendbreak" = xyes; then :
10676 cat >>confdefs.h <<_ACEOF
10677#define HAVE_TCSENDBREAK 1
10678_ACEOF
10679
10680fi
10681done
10682
10683fi
10684
10685
10686ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
10687"
10688if test "x$ac_cv_have_decl_h_errno" = xyes; then :
10689 ac_have_decl=1
10690else
10691 ac_have_decl=0
10692fi
10693
10694cat >>confdefs.h <<_ACEOF
10695#define HAVE_DECL_H_ERRNO $ac_have_decl
10696_ACEOF
10697
10698
10699ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
10700#include <sys/types.h>
10701#include <sys/socket.h>
10702
10703"
10704if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
10705 ac_have_decl=1
10706else
10707 ac_have_decl=0
10708fi
10709
10710cat >>confdefs.h <<_ACEOF
10711#define HAVE_DECL_SHUT_RD $ac_have_decl
10712_ACEOF
10713
10714
10715ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
10716#include <sys/types.h>
10717#ifdef HAVE_SYS_STAT_H
10718# include <sys/stat.h>
10719#endif
10720#ifdef HAVE_FCNTL_H
10721# include <fcntl.h>
10722#endif
10723
10724"
10725if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
10726 ac_have_decl=1
10727else
10728 ac_have_decl=0
10729fi
10730
10731cat >>confdefs.h <<_ACEOF
10732#define HAVE_DECL_O_NONBLOCK $ac_have_decl
10733_ACEOF
10734
10735
10736ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
10737#include <sys/types.h>
10738#include <sys/uio.h>
10739#include <unistd.h>
10740
10741"
10742if test "x$ac_cv_have_decl_writev" = xyes; then :
10743 ac_have_decl=1
10744else
10745 ac_have_decl=0
10746fi
10747
10748cat >>confdefs.h <<_ACEOF
10749#define HAVE_DECL_WRITEV $ac_have_decl
10750_ACEOF
10751
10752
10753ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
10754#include <sys/param.h>
10755
10756"
10757if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
10758 ac_have_decl=1
10759else
10760 ac_have_decl=0
10761fi
10762
10763cat >>confdefs.h <<_ACEOF
10764#define HAVE_DECL_MAXSYMLINKS $ac_have_decl
10765_ACEOF
10766
10767
10768ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
10769#include <stddef.h>
10770
10771"
10772if test "x$ac_cv_have_decl_offsetof" = xyes; then :
10773 ac_have_decl=1
10774else
10775 ac_have_decl=0
10776fi
10777
10778cat >>confdefs.h <<_ACEOF
10779#define HAVE_DECL_OFFSETOF $ac_have_decl
10780_ACEOF
10781
10782
10783# extra bits for select(2)
10784ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
10785#include <sys/param.h>
10786#include <sys/types.h>
10787#ifdef HAVE_SYS_SYSMACROS_H
10788#include <sys/sysmacros.h>
10789#endif
10790#ifdef HAVE_SYS_SELECT_H
10791#include <sys/select.h>
10792#endif
10793#ifdef HAVE_SYS_TIME_H
10794#include <sys/time.h>
10795#endif
10796#ifdef HAVE_UNISTD_H
10797#include <unistd.h>
10798#endif
10799
10800"
10801if test "x$ac_cv_have_decl_howmany" = xyes; then :
10802 ac_have_decl=1
10803else
10804 ac_have_decl=0
10805fi
10806
10807cat >>confdefs.h <<_ACEOF
10808#define HAVE_DECL_HOWMANY $ac_have_decl
10809_ACEOF
10810ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
10811#include <sys/param.h>
10812#include <sys/types.h>
10813#ifdef HAVE_SYS_SYSMACROS_H
10814#include <sys/sysmacros.h>
10815#endif
10816#ifdef HAVE_SYS_SELECT_H
10817#include <sys/select.h>
10818#endif
10819#ifdef HAVE_SYS_TIME_H
10820#include <sys/time.h>
10821#endif
10822#ifdef HAVE_UNISTD_H
10823#include <unistd.h>
10824#endif
10825
10826"
10827if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
10828 ac_have_decl=1
10829else
10830 ac_have_decl=0
10831fi
10832
10833cat >>confdefs.h <<_ACEOF
10834#define HAVE_DECL_NFDBITS $ac_have_decl
10835_ACEOF
10836
10837ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
10838#include <sys/param.h>
10839#include <sys/types.h>
10840#ifdef HAVE_SYS_SELECT_H
10841#include <sys/select.h>
10842#endif
10843#ifdef HAVE_SYS_TIME_H
10844#include <sys/time.h>
10845#endif
10846#ifdef HAVE_UNISTD_H
10847#include <unistd.h>
10848#endif
10849
10850"
10851if test "x$ac_cv_type_fd_mask" = xyes; then :
10852
10853cat >>confdefs.h <<_ACEOF
10854#define HAVE_FD_MASK 1
10855_ACEOF
10856
10857
10858fi
10859
10860
10861for ac_func in setresuid
10862do :
10863 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
10864if test "x$ac_cv_func_setresuid" = xyes; then :
10865 cat >>confdefs.h <<_ACEOF
10866#define HAVE_SETRESUID 1
10867_ACEOF
10868
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
10870$as_echo_n "checking if setresuid seems to work... " >&6; }
10871 if test "$cross_compiling" = yes; then :
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
10873$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10874
10875else
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877/* end confdefs.h. */
10878
10879#include <stdlib.h>
10880#include <errno.h>
10881
10882int
10883main ()
10884{
10885
10886 errno=0;
10887 setresuid(0,0,0);
10888 if (errno==ENOSYS)
10889 exit(1);
10890 else
10891 exit(0);
10892
10893 ;
10894 return 0;
10895}
10896_ACEOF
10897if ac_fn_c_try_run "$LINENO"; then :
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10899$as_echo "yes" >&6; }
10900else
10901
10902$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
10903
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
10905$as_echo "not implemented" >&6; }
10906fi
10907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10908 conftest.$ac_objext conftest.beam conftest.$ac_ext
10909fi
10910
10911
10912fi
10913done
10914
10915
10916for ac_func in setresgid
10917do :
10918 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
10919if test "x$ac_cv_func_setresgid" = xyes; then :
10920 cat >>confdefs.h <<_ACEOF
10921#define HAVE_SETRESGID 1
10922_ACEOF
10923
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
10925$as_echo_n "checking if setresgid seems to work... " >&6; }
10926 if test "$cross_compiling" = yes; then :
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
10928$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10929
10930else
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932/* end confdefs.h. */
10933
10934#include <stdlib.h>
10935#include <errno.h>
10936
10937int
10938main ()
10939{
10940
10941 errno=0;
10942 setresgid(0,0,0);
10943 if (errno==ENOSYS)
10944 exit(1);
10945 else
10946 exit(0);
10947
10948 ;
10949 return 0;
10950}
10951_ACEOF
10952if ac_fn_c_try_run "$LINENO"; then :
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10954$as_echo "yes" >&6; }
10955else
10956
10957$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
10958
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
10960$as_echo "not implemented" >&6; }
10961fi
10962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10963 conftest.$ac_objext conftest.beam conftest.$ac_ext
10964fi
10965
10966
10967fi
10968done
10969
10970
10971for ac_func in gettimeofday time
10972do :
10973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10974ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10975if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10976 cat >>confdefs.h <<_ACEOF
10977#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10978_ACEOF
10979
10980fi
10981done
10982
10983for ac_func in endutent getutent getutid getutline pututline setutent
10984do :
10985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10987if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10988 cat >>confdefs.h <<_ACEOF
10989#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10990_ACEOF
10991
10992fi
10993done
10994
10995for ac_func in utmpname
10996do :
10997 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
10998if test "x$ac_cv_func_utmpname" = xyes; then :
10999 cat >>confdefs.h <<_ACEOF
11000#define HAVE_UTMPNAME 1
11001_ACEOF
11002
11003fi
11004done
11005
11006for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
11007do :
11008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11009ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11010if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11011 cat >>confdefs.h <<_ACEOF
11012#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11013_ACEOF
11014
11015fi
11016done
11017
11018for ac_func in setutxdb setutxent utmpxname
11019do :
11020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11022if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11023 cat >>confdefs.h <<_ACEOF
11024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025_ACEOF
11026
11027fi
11028done
11029
11030for ac_func in getlastlogxbyname
11031do :
11032 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
11033if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
11034 cat >>confdefs.h <<_ACEOF
11035#define HAVE_GETLASTLOGXBYNAME 1
11036_ACEOF
11037
11038fi
11039done
11040
11041
11042ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
11043if test "x$ac_cv_func_daemon" = xyes; then :
11044
11045$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11046
11047else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
11049$as_echo_n "checking for daemon in -lbsd... " >&6; }
11050if ${ac_cv_lib_bsd_daemon+:} false; then :
11051 $as_echo_n "(cached) " >&6
11052else
11053 ac_check_lib_save_LIBS=$LIBS
11054LIBS="-lbsd $LIBS"
11055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056/* end confdefs.h. */
11057
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char daemon ();
11065int
11066main ()
11067{
11068return daemon ();
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073if ac_fn_c_try_link "$LINENO"; then :
11074 ac_cv_lib_bsd_daemon=yes
11075else
11076 ac_cv_lib_bsd_daemon=no
11077fi
11078rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080LIBS=$ac_check_lib_save_LIBS
11081fi
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
11083$as_echo "$ac_cv_lib_bsd_daemon" >&6; }
11084if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
11085 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11086
11087fi
11088
11089
11090fi
11091
11092
11093ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11094if test "x$ac_cv_func_getpagesize" = xyes; then :
11095
11096$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11097
11098else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
11100$as_echo_n "checking for getpagesize in -lucb... " >&6; }
11101if ${ac_cv_lib_ucb_getpagesize+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103else
11104 ac_check_lib_save_LIBS=$LIBS
11105LIBS="-lucb $LIBS"
11106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107/* end confdefs.h. */
11108
11109/* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11112#ifdef __cplusplus
11113extern "C"
11114#endif
11115char getpagesize ();
11116int
11117main ()
11118{
11119return getpagesize ();
11120 ;
11121 return 0;
11122}
11123_ACEOF
11124if ac_fn_c_try_link "$LINENO"; then :
11125 ac_cv_lib_ucb_getpagesize=yes
11126else
11127 ac_cv_lib_ucb_getpagesize=no
11128fi
11129rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11131LIBS=$ac_check_lib_save_LIBS
11132fi
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
11134$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
11135if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
11136 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11137
11138fi
11139
11140
11141fi
11142
11143
11144# Check for broken snprintf
11145if test "x$ac_cv_func_snprintf" = "xyes" ; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
11147$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
11148 if test "$cross_compiling" = yes; then :
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
11150$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
11151
11152else
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h. */
11155 #include <stdio.h>
11156int
11157main ()
11158{
11159
11160 char b[5];
11161 snprintf(b,5,"123456789");
11162 exit(b[4]!='\0');
11163
11164 ;
11165 return 0;
11166}
11167_ACEOF
11168if ac_fn_c_try_run "$LINENO"; then :
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11170$as_echo "yes" >&6; }
11171else
11172
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174$as_echo "no" >&6; }
11175
11176$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11177
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
11179$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
11180
11181fi
11182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11183 conftest.$ac_objext conftest.beam conftest.$ac_ext
11184fi
11185
11186fi
11187
11188# We depend on vsnprintf returning the right thing on overflow: the
11189# number of characters it tried to create (as per SUSv3)
11190if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
11192$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
11193 if test "$cross_compiling" = yes; then :
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
11195$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
11196
11197else
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199/* end confdefs.h. */
11200
11201#include <sys/types.h>
11202#include <stdio.h>
11203#include <stdarg.h>
11204
11205int x_snprintf(char *str, size_t count, const char *fmt, ...)
11206{
11207 size_t ret;
11208 va_list ap;
11209
11210 va_start(ap, fmt);
11211 ret = vsnprintf(str, count, fmt, ap);
11212 va_end(ap);
11213 return ret;
11214}
11215
11216int
11217main ()
11218{
11219
11220char x[1];
11221if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
11222 return 1;
11223if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
11224 return 1;
11225return 0;
11226
11227 ;
11228 return 0;
11229}
11230_ACEOF
11231if ac_fn_c_try_run "$LINENO"; then :
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11233$as_echo "yes" >&6; }
11234else
11235
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237$as_echo "no" >&6; }
11238
11239$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11240
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
11242$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
11243
11244fi
11245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11246 conftest.$ac_objext conftest.beam conftest.$ac_ext
11247fi
11248
11249fi
11250
11251# On systems where [v]snprintf is broken, but is declared in stdio,
11252# check that the fmt argument is const char * or just char *.
11253# This is only useful for when BROKEN_SNPRINTF
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
11255$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
11256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257/* end confdefs.h. */
11258
11259#include <stdio.h>
11260int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
11261
11262int
11263main ()
11264{
11265
11266 snprintf(0, 0, 0);
11267
11268 ;
11269 return 0;
11270}
11271_ACEOF
11272if ac_fn_c_try_compile "$LINENO"; then :
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11274$as_echo "yes" >&6; }
11275
11276$as_echo "#define SNPRINTF_CONST const" >>confdefs.h
11277
11278else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280$as_echo "no" >&6; }
11281 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
11282
11283fi
11284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285
11286# Check for missing getpeereid (or equiv) support
11287NO_PEERCHECK=""
11288if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
11290$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292/* end confdefs.h. */
11293
11294#include <sys/types.h>
11295#include <sys/socket.h>
11296int
11297main ()
11298{
11299int i = SO_PEERCRED;
11300 ;
11301 return 0;
11302}
11303_ACEOF
11304if ac_fn_c_try_compile "$LINENO"; then :
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306$as_echo "yes" >&6; }
11307
11308$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
11309
11310
11311else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313$as_echo "no" >&6; }
11314 NO_PEERCHECK=1
11315
11316fi
11317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318fi
11319
11320if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
11322$as_echo_n "checking for (overly) strict mkstemp... " >&6; }
11323if test "$cross_compiling" = yes; then :
11324
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11326$as_echo "yes" >&6; }
11327 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
11328
11329
11330
11331else
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333/* end confdefs.h. */
11334
11335#include <stdlib.h>
11336
11337int
11338main ()
11339{
11340
11341 char template[]="conftest.mkstemp-test";
11342 if (mkstemp(template) == -1)
11343 exit(1);
11344 unlink(template);
11345 exit(0);
11346
11347 ;
11348 return 0;
11349}
11350_ACEOF
11351if ac_fn_c_try_run "$LINENO"; then :
11352
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
11355
11356else
11357
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359$as_echo "yes" >&6; }
11360
11361$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
11362
11363
11364fi
11365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11366 conftest.$ac_objext conftest.beam conftest.$ac_ext
11367fi
11368
11369fi
11370
11371if test ! -z "$check_for_openpty_ctty_bug"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
11373$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
11374 if test "$cross_compiling" = yes; then :
11375
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
11377$as_echo "cross-compiling, assuming yes" >&6; }
11378
11379
11380else
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382/* end confdefs.h. */
11383
11384#include <stdio.h>
11385#include <sys/fcntl.h>
11386#include <sys/types.h>
11387#include <sys/wait.h>
11388
11389int
11390main ()
11391{
11392
11393 pid_t pid;
11394 int fd, ptyfd, ttyfd, status;
11395
11396 pid = fork();
11397 if (pid < 0) { /* failed */
11398 exit(1);
11399 } else if (pid > 0) { /* parent */
11400 waitpid(pid, &status, 0);
11401 if (WIFEXITED(status))
11402 exit(WEXITSTATUS(status));
11403 else
11404 exit(2);
11405 } else { /* child */
11406 close(0); close(1); close(2);
11407 setsid();
11408 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
11409 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
11410 if (fd >= 0)
11411 exit(3); /* Acquired ctty: broken */
11412 else
11413 exit(0); /* Did not acquire ctty: OK */
11414 }
11415
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420if ac_fn_c_try_run "$LINENO"; then :
11421
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11423$as_echo "yes" >&6; }
11424
11425else
11426
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
11429 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
11430
11431
11432fi
11433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11434 conftest.$ac_objext conftest.beam conftest.$ac_ext
11435fi
11436
11437fi
11438
11439if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11440 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
11442$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
11443 if test "$cross_compiling" = yes; then :
11444
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
11446$as_echo "cross-compiling, assuming yes" >&6; }
11447
11448
11449else
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451/* end confdefs.h. */
11452
11453#include <stdio.h>
11454#include <sys/socket.h>
11455#include <netdb.h>
11456#include <errno.h>
11457#include <netinet/in.h>
11458
11459#define TEST_PORT "2222"
11460
11461int
11462main ()
11463{
11464
11465 int err, sock;
11466 struct addrinfo *gai_ai, *ai, hints;
11467 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11468
11469 memset(&hints, 0, sizeof(hints));
11470 hints.ai_family = PF_UNSPEC;
11471 hints.ai_socktype = SOCK_STREAM;
11472 hints.ai_flags = AI_PASSIVE;
11473
11474 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11475 if (err != 0) {
11476 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11477 exit(1);
11478 }
11479
11480 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11481 if (ai->ai_family != AF_INET6)
11482 continue;
11483
11484 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11485 sizeof(ntop), strport, sizeof(strport),
11486 NI_NUMERICHOST|NI_NUMERICSERV);
11487
11488 if (err != 0) {
11489 if (err == EAI_SYSTEM)
11490 perror("getnameinfo EAI_SYSTEM");
11491 else
11492 fprintf(stderr, "getnameinfo failed: %s\n",
11493 gai_strerror(err));
11494 exit(2);
11495 }
11496
11497 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
11498 if (sock < 0)
11499 perror("socket");
11500 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
11501 if (errno == EBADF)
11502 exit(3);
11503 }
11504 }
11505 exit(0);
11506
11507 ;
11508 return 0;
11509}
11510_ACEOF
11511if ac_fn_c_try_run "$LINENO"; then :
11512
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11514$as_echo "yes" >&6; }
11515
11516else
11517
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519$as_echo "no" >&6; }
11520 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11521
11522
11523fi
11524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11525 conftest.$ac_objext conftest.beam conftest.$ac_ext
11526fi
11527
11528fi
11529
11530if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11531 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
11533$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
11534 if test "$cross_compiling" = yes; then :
11535
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
11537$as_echo "cross-compiling, assuming no" >&6; }
11538
11539
11540else
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542/* end confdefs.h. */
11543
11544#include <stdio.h>
11545#include <sys/socket.h>
11546#include <netdb.h>
11547#include <errno.h>
11548#include <netinet/in.h>
11549
11550#define TEST_PORT "2222"
11551
11552int
11553main ()
11554{
11555
11556 int err, sock;
11557 struct addrinfo *gai_ai, *ai, hints;
11558 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11559
11560 memset(&hints, 0, sizeof(hints));
11561 hints.ai_family = PF_UNSPEC;
11562 hints.ai_socktype = SOCK_STREAM;
11563 hints.ai_flags = AI_PASSIVE;
11564
11565 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11566 if (err != 0) {
11567 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11568 exit(1);
11569 }
11570
11571 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11572 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
11573 continue;
11574
11575 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11576 sizeof(ntop), strport, sizeof(strport),
11577 NI_NUMERICHOST|NI_NUMERICSERV);
11578
11579 if (ai->ai_family == AF_INET && err != 0) {
11580 perror("getnameinfo");
11581 exit(2);
11582 }
11583 }
11584 exit(0);
11585
11586 ;
11587 return 0;
11588}
11589_ACEOF
11590if ac_fn_c_try_run "$LINENO"; then :
11591
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11593$as_echo "yes" >&6; }
11594
11595$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
11596
11597
11598else
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601$as_echo "no" >&6; }
11602 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11603
11604
11605fi
11606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11607 conftest.$ac_objext conftest.beam conftest.$ac_ext
11608fi
11609
11610fi
11611
11612if test "x$check_for_conflicting_getspnam" = "x1"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
11614$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616/* end confdefs.h. */
11617 #include <shadow.h>
11618int
11619main ()
11620{
11621 exit(0);
11622 ;
11623 return 0;
11624}
11625_ACEOF
11626if ac_fn_c_try_compile "$LINENO"; then :
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
11630
11631else
11632
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634$as_echo "yes" >&6; }
11635
11636$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
11637
11638
11639
11640fi
11641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642fi
11643
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11645$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11646if ${ac_cv_func_getpgrp_void+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648else
11649 # Use it with a single arg.
11650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651/* end confdefs.h. */
11652$ac_includes_default
11653int
11654main ()
11655{
11656getpgrp (0);
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661if ac_fn_c_try_compile "$LINENO"; then :
11662 ac_cv_func_getpgrp_void=no
11663else
11664 ac_cv_func_getpgrp_void=yes
11665fi
11666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11667
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11670$as_echo "$ac_cv_func_getpgrp_void" >&6; }
11671if test $ac_cv_func_getpgrp_void = yes; then
11672
11673$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11674
11675fi
11676
11677
11678# Search for OpenSSL
11679saved_CPPFLAGS="$CPPFLAGS"
11680saved_LDFLAGS="$LDFLAGS"
11681
11682# Check whether --with-ssl-dir was given.
11683if test "${with_ssl_dir+set}" = set; then :
11684 withval=$with_ssl_dir;
11685 if test "x$withval" != "xno" ; then
11686 case "$withval" in
11687 # Relative paths
11688 ./*|../*) withval="`pwd`/$withval"
11689 esac
11690 if test -d "$withval/lib"; then
11691 if test -n "${need_dash_r}"; then
11692 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11693 else
11694 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11695 fi
11696 elif test -d "$withval/lib64"; then
11697 if test -n "${need_dash_r}"; then
11698 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
11699 else
11700 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
11701 fi
11702 else
11703 if test -n "${need_dash_r}"; then
11704 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11705 else
11706 LDFLAGS="-L${withval} ${LDFLAGS}"
11707 fi
11708 fi
11709 if test -d "$withval/include"; then
11710 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11711 else
11712 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11713 fi
11714 fi
11715
11716
11717fi
11718
11719LIBS="-lcrypto $LIBS"
11720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721/* end confdefs.h. */
11722
11723/* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11726#ifdef __cplusplus
11727extern "C"
11728#endif
11729char RAND_add ();
11730int
11731main ()
11732{
11733return RAND_add ();
11734 ;
11735 return 0;
11736}
11737_ACEOF
11738if ac_fn_c_try_link "$LINENO"; then :
11739
11740$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11741
11742else
11743
11744 if test -n "${need_dash_r}"; then
11745 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
11746 else
11747 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
11748 fi
11749 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
11750 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
11751if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
11752
11753else
11754 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
11755fi
11756
11757
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759/* end confdefs.h. */
11760
11761/* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
11764#ifdef __cplusplus
11765extern "C"
11766#endif
11767char RAND_add ();
11768int
11769main ()
11770{
11771return RAND_add ();
11772 ;
11773 return 0;
11774}
11775_ACEOF
11776if ac_fn_c_try_link "$LINENO"; then :
11777 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11778
11779else
11780
11781 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
11782
11783
11784fi
11785rm -f core conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787
11788
11789fi
11790rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792
11793# Determine OpenSSL header version
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
11795$as_echo_n "checking OpenSSL header version... " >&6; }
11796if test "$cross_compiling" = yes; then :
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11799$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11800
11801
11802else
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804/* end confdefs.h. */
11805
11806#include <stdio.h>
11807#include <string.h>
11808#include <openssl/opensslv.h>
11809#define DATA "conftest.sslincver"
11810
11811int
11812main ()
11813{
11814
11815 FILE *fd;
11816 int rc;
11817
11818 fd = fopen(DATA,"w");
11819 if(fd == NULL)
11820 exit(1);
11821
11822 if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
11823 exit(1);
11824
11825 exit(0);
11826
11827 ;
11828 return 0;
11829}
11830_ACEOF
11831if ac_fn_c_try_run "$LINENO"; then :
11832
11833 ssl_header_ver=`cat conftest.sslincver`
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
11835$as_echo "$ssl_header_ver" >&6; }
11836
11837else
11838
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11840$as_echo "not found" >&6; }
11841 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
11842
11843fi
11844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11845 conftest.$ac_objext conftest.beam conftest.$ac_ext
11846fi
11847
11848
11849# Determine OpenSSL library version
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
11851$as_echo_n "checking OpenSSL library version... " >&6; }
11852if test "$cross_compiling" = yes; then :
11853
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11855$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11856
11857
11858else
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860/* end confdefs.h. */
11861
11862#include <stdio.h>
11863#include <string.h>
11864#include <openssl/opensslv.h>
11865#include <openssl/crypto.h>
11866#define DATA "conftest.ssllibver"
11867
11868int
11869main ()
11870{
11871
11872 FILE *fd;
11873 int rc;
11874
11875 fd = fopen(DATA,"w");
11876 if(fd == NULL)
11877 exit(1);
11878
11879 if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(),
11880 SSLeay_version(SSLEAY_VERSION))) <0)
11881 exit(1);
11882
11883 exit(0);
11884
11885 ;
11886 return 0;
11887}
11888_ACEOF
11889if ac_fn_c_try_run "$LINENO"; then :
11890
11891 ssl_library_ver=`cat conftest.ssllibver`
11892 # Check version is supported.
11893 case "$ssl_library_ver" in
11894 0090[0-7]*|009080[0-5]*)
11895 as_fn_error $? "OpenSSL >= 0.9.8f required" "$LINENO" 5
11896 ;;
11897 *) ;;
11898 esac
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
11900$as_echo "$ssl_library_ver" >&6; }
11901
11902else
11903
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11905$as_echo "not found" >&6; }
11906 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
11907
11908fi
11909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11910 conftest.$ac_objext conftest.beam conftest.$ac_ext
11911fi
11912
11913
11914# XXX make --without-openssl work
11915
11916cat >>confdefs.h <<_ACEOF
11917#define WITH_OPENSSL 1
11918_ACEOF
11919
11920
11921cat >>confdefs.h <<_ACEOF
11922#define WITH_SSH1 1
11923_ACEOF
11924
11925
11926
11927# Check whether --with-openssl-header-check was given.
11928if test "${with_openssl_header_check+set}" = set; then :
11929 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
11930 openssl_check_nonfatal=1
11931 fi
11932
11933
11934fi
11935
11936
11937# Sanity check OpenSSL headers
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
11939$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
11940if test "$cross_compiling" = yes; then :
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11943$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11944
11945
11946else
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948/* end confdefs.h. */
11949
11950#include <string.h>
11951#include <openssl/opensslv.h>
11952
11953int
11954main ()
11955{
11956
11957 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
11958
11959 ;
11960 return 0;
11961}
11962_ACEOF
11963if ac_fn_c_try_run "$LINENO"; then :
11964
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966$as_echo "yes" >&6; }
11967
11968else
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971$as_echo "no" >&6; }
11972 if test "x$openssl_check_nonfatal" = "x"; then
11973 as_fn_error $? "Your OpenSSL headers do not match your
11974library. Check config.log for details.
11975If you are sure your installation is consistent, you can disable the check
11976by running \"./configure --without-openssl-header-check\".
11977Also see contrib/findssl.sh for help identifying header/library mismatches.
11978" "$LINENO" 5
11979 else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
11981library. Check config.log for details.
11982Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
11983$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
11984library. Check config.log for details.
11985Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
11986 fi
11987
11988fi
11989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11990 conftest.$ac_objext conftest.beam conftest.$ac_ext
11991fi
11992
11993
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
11995$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
11996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h. */
11998 #include <openssl/evp.h>
11999int
12000main ()
12001{
12002 SSLeay_add_all_algorithms();
12003 ;
12004 return 0;
12005}
12006_ACEOF
12007if ac_fn_c_try_link "$LINENO"; then :
12008
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12010$as_echo "yes" >&6; }
12011
12012else
12013
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015$as_echo "no" >&6; }
12016 saved_LIBS="$LIBS"
12017 LIBS="$LIBS -ldl"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
12019$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h. */
12022 #include <openssl/evp.h>
12023int
12024main ()
12025{
12026 SSLeay_add_all_algorithms();
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031if ac_fn_c_try_link "$LINENO"; then :
12032
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12034$as_echo "yes" >&6; }
12035
12036else
12037
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039$as_echo "no" >&6; }
12040 LIBS="$saved_LIBS"
12041
12042
12043fi
12044rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046
12047
12048fi
12049rm -f core conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051
12052for ac_func in \
12053 BN_is_prime_ex \
12054 DSA_generate_parameters_ex \
12055 EVP_DigestInit_ex \
12056 EVP_DigestFinal_ex \
12057 EVP_MD_CTX_init \
12058 EVP_MD_CTX_cleanup \
12059 EVP_MD_CTX_copy_ex \
12060 HMAC_CTX_init \
12061 RSA_generate_key_ex \
12062 RSA_get_default_method \
12063
12064do :
12065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12067if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12068 cat >>confdefs.h <<_ACEOF
12069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070_ACEOF
12071
12072fi
12073done
12074
12075
12076
12077# Check whether --with-ssl-engine was given.
12078if test "${with_ssl_engine+set}" = set; then :
12079 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
12081$as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083/* end confdefs.h. */
12084
12085#include <openssl/engine.h>
12086
12087int
12088main ()
12089{
12090
12091 ENGINE_load_builtin_engines();
12092 ENGINE_register_all_complete();
12093
12094 ;
12095 return 0;
12096}
12097_ACEOF
12098if ac_fn_c_try_compile "$LINENO"; then :
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12100$as_echo "yes" >&6; }
12101
12102$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
12103
12104
12105else
12106 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
12107
12108fi
12109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 fi
12111
12112fi
12113
12114
12115# Check for OpenSSL without EVP_aes_{192,256}_cbc
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
12117$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
12118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119/* end confdefs.h. */
12120
12121#include <string.h>
12122#include <openssl/evp.h>
12123
12124int
12125main ()
12126{
12127
12128 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
12129
12130 ;
12131 return 0;
12132}
12133_ACEOF
12134if ac_fn_c_try_link "$LINENO"; then :
12135
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137$as_echo "no" >&6; }
12138
12139else
12140
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12142$as_echo "yes" >&6; }
12143
12144$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
12145
12146
12147
12148fi
12149rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151
12152# Check for OpenSSL with EVP_aes_*ctr
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
12154$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
12155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156/* end confdefs.h. */
12157
12158#include <string.h>
12159#include <openssl/evp.h>
12160
12161int
12162main ()
12163{
12164
12165 exit(EVP_aes_128_ctr() == NULL ||
12166 EVP_aes_192_cbc() == NULL ||
12167 EVP_aes_256_cbc() == NULL);
12168
12169 ;
12170 return 0;
12171}
12172_ACEOF
12173if ac_fn_c_try_link "$LINENO"; then :
12174
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12176$as_echo "yes" >&6; }
12177
12178$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
12179
12180
12181else
12182
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184$as_echo "no" >&6; }
12185
12186
12187fi
12188rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190
12191# Check for OpenSSL with EVP_aes_*gcm
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
12193$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
12194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195/* end confdefs.h. */
12196
12197#include <string.h>
12198#include <openssl/evp.h>
12199
12200int
12201main ()
12202{
12203
12204 exit(EVP_aes_128_gcm() == NULL ||
12205 EVP_aes_256_gcm() == NULL ||
12206 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
12207 EVP_CTRL_GCM_IV_GEN == 0 ||
12208 EVP_CTRL_GCM_SET_TAG == 0 ||
12209 EVP_CTRL_GCM_GET_TAG == 0 ||
12210 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
12211
12212 ;
12213 return 0;
12214}
12215_ACEOF
12216if ac_fn_c_try_link "$LINENO"; then :
12217
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12219$as_echo "yes" >&6; }
12220
12221$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
12222
12223
12224else
12225
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227$as_echo "no" >&6; }
12228 unsupported_algorithms="$unsupported_cipers \
12229 aes128-gcm@openssh.com aes256-gcm@openssh.com"
12230
12231
12232fi
12233rm -f core conftest.err conftest.$ac_objext \
12234 conftest$ac_exeext conftest.$ac_ext
12235
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
12237$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
12238if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240else
12241 ac_func_search_save_LIBS=$LIBS
12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243/* end confdefs.h. */
12244
12245/* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12248#ifdef __cplusplus
12249extern "C"
12250#endif
12251char EVP_CIPHER_CTX_ctrl ();
12252int
12253main ()
12254{
12255return EVP_CIPHER_CTX_ctrl ();
12256 ;
12257 return 0;
12258}
12259_ACEOF
12260for ac_lib in '' crypto; do
12261 if test -z "$ac_lib"; then
12262 ac_res="none required"
12263 else
12264 ac_res=-l$ac_lib
12265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12266 fi
12267 if ac_fn_c_try_link "$LINENO"; then :
12268 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
12269fi
12270rm -f core conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext
12272 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12273 break
12274fi
12275done
12276if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12277
12278else
12279 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
12280fi
12281rm conftest.$ac_ext
12282LIBS=$ac_func_search_save_LIBS
12283fi
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
12285$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
12286ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
12287if test "$ac_res" != no; then :
12288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12289
12290$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
12291
12292fi
12293
12294
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
12296$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
12297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298/* end confdefs.h. */
12299
12300#include <string.h>
12301#include <openssl/evp.h>
12302
12303int
12304main ()
12305{
12306
12307 if(EVP_DigestUpdate(NULL, NULL,0))
12308 exit(0);
12309
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314if ac_fn_c_try_link "$LINENO"; then :
12315
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12317$as_echo "yes" >&6; }
12318
12319else
12320
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322$as_echo "no" >&6; }
12323
12324$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
12325
12326
12327
12328fi
12329rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331
12332# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
12333# because the system crypt() is more featureful.
12334if test "x$check_for_libcrypt_before" = "x1"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12336$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12337if ${ac_cv_lib_crypt_crypt+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339else
12340 ac_check_lib_save_LIBS=$LIBS
12341LIBS="-lcrypt $LIBS"
12342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h. */
12344
12345/* Override any GCC internal prototype to avoid an error.
12346 Use char because int might match the return type of a GCC
12347 builtin and then its argument prototype would still apply. */
12348#ifdef __cplusplus
12349extern "C"
12350#endif
12351char crypt ();
12352int
12353main ()
12354{
12355return crypt ();
12356 ;
12357 return 0;
12358}
12359_ACEOF
12360if ac_fn_c_try_link "$LINENO"; then :
12361 ac_cv_lib_crypt_crypt=yes
12362else
12363 ac_cv_lib_crypt_crypt=no
12364fi
12365rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367LIBS=$ac_check_lib_save_LIBS
12368fi
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12370$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12371if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12372 cat >>confdefs.h <<_ACEOF
12373#define HAVE_LIBCRYPT 1
12374_ACEOF
12375
12376 LIBS="-lcrypt $LIBS"
12377
12378fi
12379
12380fi
12381
12382# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
12383# version in OpenSSL.
12384if test "x$check_for_libcrypt_later" = "x1"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12386$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12387if ${ac_cv_lib_crypt_crypt+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389else
12390 ac_check_lib_save_LIBS=$LIBS
12391LIBS="-lcrypt $LIBS"
12392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393/* end confdefs.h. */
12394
12395/* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12398#ifdef __cplusplus
12399extern "C"
12400#endif
12401char crypt ();
12402int
12403main ()
12404{
12405return crypt ();
12406 ;
12407 return 0;
12408}
12409_ACEOF
12410if ac_fn_c_try_link "$LINENO"; then :
12411 ac_cv_lib_crypt_crypt=yes
12412else
12413 ac_cv_lib_crypt_crypt=no
12414fi
12415rm -f core conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417LIBS=$ac_check_lib_save_LIBS
12418fi
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12420$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12421if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12422 LIBS="$LIBS -lcrypt"
12423fi
12424
12425fi
12426for ac_func in crypt DES_crypt
12427do :
12428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12429ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12430if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12431 cat >>confdefs.h <<_ACEOF
12432#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12433_ACEOF
12434
12435fi
12436done
12437
12438
12439# Search for SHA256 support in libc and/or OpenSSL
12440for ac_func in SHA256_Update EVP_sha256
12441do :
12442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12443ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12444if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12445 cat >>confdefs.h <<_ACEOF
12446#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12447_ACEOF
12448
12449else
12450 unsupported_algorithms="$unsupported_algorithms \
12451 hmac-sha2-256 hmac-sha2-512 \
12452 diffie-hellman-group-exchange-sha256 \
12453 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
12454
12455
12456fi
12457done
12458
12459# Search for RIPE-MD support in OpenSSL
12460for ac_func in EVP_ripemd160
12461do :
12462 ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160"
12463if test "x$ac_cv_func_EVP_ripemd160" = xyes; then :
12464 cat >>confdefs.h <<_ACEOF
12465#define HAVE_EVP_RIPEMD160 1
12466_ACEOF
12467
12468else
12469 unsupported_algorithms="$unsupported_algorithms \
12470 hmac-ripemd160
12471 hmac-ripemd160@openssh.com
12472 hmac-ripemd160-etm@openssh.com"
12473
12474
12475fi
12476done
12477
12478
12479# Check complete ECC support in OpenSSL
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
12481$as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; }
12482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483/* end confdefs.h. */
12484
12485#include <openssl/ec.h>
12486#include <openssl/ecdh.h>
12487#include <openssl/ecdsa.h>
12488#include <openssl/evp.h>
12489#include <openssl/objects.h>
12490#include <openssl/opensslv.h>
12491#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12492# error "OpenSSL < 0.9.8g has unreliable ECC code"
12493#endif
12494
12495int
12496main ()
12497{
12498
12499 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
12500 const EVP_MD *m = EVP_sha256(); /* We need this too */
12501
12502 ;
12503 return 0;
12504}
12505_ACEOF
12506if ac_fn_c_try_link "$LINENO"; then :
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12508$as_echo "yes" >&6; }
12509 enable_nistp256=1
12510else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
12513
12514fi
12515rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext conftest.$ac_ext
12517
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5
12519$as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; }
12520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h. */
12522
12523#include <openssl/ec.h>
12524#include <openssl/ecdh.h>
12525#include <openssl/ecdsa.h>
12526#include <openssl/evp.h>
12527#include <openssl/objects.h>
12528#include <openssl/opensslv.h>
12529#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12530# error "OpenSSL < 0.9.8g has unreliable ECC code"
12531#endif
12532
12533int
12534main ()
12535{
12536
12537 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
12538 const EVP_MD *m = EVP_sha384(); /* We need this too */
12539
12540 ;
12541 return 0;
12542}
12543_ACEOF
12544if ac_fn_c_try_link "$LINENO"; then :
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12546$as_echo "yes" >&6; }
12547 enable_nistp384=1
12548else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
12551
12552fi
12553rm -f core conftest.err conftest.$ac_objext \
12554 conftest$ac_exeext conftest.$ac_ext
12555
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5
12557$as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; }
12558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559/* end confdefs.h. */
12560
12561#include <openssl/ec.h>
12562#include <openssl/ecdh.h>
12563#include <openssl/ecdsa.h>
12564#include <openssl/evp.h>
12565#include <openssl/objects.h>
12566#include <openssl/opensslv.h>
12567#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12568# error "OpenSSL < 0.9.8g has unreliable ECC code"
12569#endif
12570
12571int
12572main ()
12573{
12574
12575 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
12576 const EVP_MD *m = EVP_sha512(); /* We need this too */
12577
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582if ac_fn_c_try_link "$LINENO"; then :
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584$as_echo "yes" >&6; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5
12586$as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; }
12587 if test "$cross_compiling" = yes; then :
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5
12589$as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
12590 enable_nistp521=1
12591
12592else
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594/* end confdefs.h. */
12595
12596#include <openssl/ec.h>
12597#include <openssl/ecdh.h>
12598#include <openssl/ecdsa.h>
12599#include <openssl/evp.h>
12600#include <openssl/objects.h>
12601#include <openssl/opensslv.h>
12602
12603int
12604main ()
12605{
12606
12607 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
12608 const EVP_MD *m = EVP_sha512(); /* We need this too */
12609 exit(e == NULL || m == NULL);
12610
12611 ;
12612 return 0;
12613}
12614_ACEOF
12615if ac_fn_c_try_run "$LINENO"; then :
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617$as_echo "yes" >&6; }
12618 enable_nistp521=1
12619else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621$as_echo "no" >&6; }
12622fi
12623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12624 conftest.$ac_objext conftest.beam conftest.$ac_ext
12625fi
12626
12627else
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629$as_echo "no" >&6; }
12630
12631fi
12632rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
12634
12635COMMENT_OUT_ECC="#no ecc#"
12636TEST_SSH_ECC=no
12637
12638if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
12639 test x$enable_nistp521 = x1; then
12640
12641$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
12642
12643fi
12644if test x$enable_nistp256 = x1; then
12645
12646$as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h
12647
12648 TEST_SSH_ECC=yes
12649 COMMENT_OUT_ECC=""
12650else
12651 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
12652 ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com"
12653fi
12654if test x$enable_nistp384 = x1; then
12655
12656$as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h
12657
12658 TEST_SSH_ECC=yes
12659 COMMENT_OUT_ECC=""
12660else
12661 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
12662 ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com"
12663fi
12664if test x$enable_nistp521 = x1; then
12665
12666$as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h
12667
12668 TEST_SSH_ECC=yes
12669 COMMENT_OUT_ECC=""
12670else
12671 unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
12672 ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com"
12673fi
12674
12675
12676
12677
12678for ac_func in \
12679 arc4random \
12680 arc4random_buf \
12681 arc4random_stir \
12682 arc4random_uniform \
12683
12684do :
12685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12686ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12687if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12688 cat >>confdefs.h <<_ACEOF
12689#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12690_ACEOF
12691
12692fi
12693done
12694
12695
12696saved_LIBS="$LIBS"
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
12698$as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
12699if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701else
12702 ac_check_lib_save_LIBS=$LIBS
12703LIBS="-liaf $LIBS"
12704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705/* end confdefs.h. */
12706
12707/* Override any GCC internal prototype to avoid an error.
12708 Use char because int might match the return type of a GCC
12709 builtin and then its argument prototype would still apply. */
12710#ifdef __cplusplus
12711extern "C"
12712#endif
12713char ia_openinfo ();
12714int
12715main ()
12716{
12717return ia_openinfo ();
12718 ;
12719 return 0;
12720}
12721_ACEOF
12722if ac_fn_c_try_link "$LINENO"; then :
12723 ac_cv_lib_iaf_ia_openinfo=yes
12724else
12725 ac_cv_lib_iaf_ia_openinfo=no
12726fi
12727rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729LIBS=$ac_check_lib_save_LIBS
12730fi
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
12732$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
12733if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
12734
12735 LIBS="$LIBS -liaf"
12736 for ac_func in set_id
12737do :
12738 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
12739if test "x$ac_cv_func_set_id" = xyes; then :
12740 cat >>confdefs.h <<_ACEOF
12741#define HAVE_SET_ID 1
12742_ACEOF
12743 SSHDLIBS="$SSHDLIBS -liaf"
12744
12745$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
12746
12747
12748fi
12749done
12750
12751
12752fi
12753
12754LIBS="$saved_LIBS"
12755
12756### Configure cryptographic random number support
12757
12758# Check wheter OpenSSL seeds itself
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
12760$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
12761if test "$cross_compiling" = yes; then :
12762
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12764$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12765 # This is safe, since we will fatal() at runtime if
12766 # OpenSSL is not seeded correctly.
12767 OPENSSL_SEEDS_ITSELF=yes
12768
12769
12770else
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772/* end confdefs.h. */
12773
12774#include <string.h>
12775#include <openssl/rand.h>
12776
12777int
12778main ()
12779{
12780
12781 exit(RAND_status() == 1 ? 0 : 1);
12782
12783 ;
12784 return 0;
12785}
12786_ACEOF
12787if ac_fn_c_try_run "$LINENO"; then :
12788
12789 OPENSSL_SEEDS_ITSELF=yes
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12791$as_echo "yes" >&6; }
12792
12793else
12794
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
12797
12798fi
12799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12800 conftest.$ac_objext conftest.beam conftest.$ac_ext
12801fi
12802
12803
12804# PRNGD TCP socket
12805
12806# Check whether --with-prngd-port was given.
12807if test "${with_prngd_port+set}" = set; then :
12808 withval=$with_prngd_port;
12809 case "$withval" in
12810 no)
12811 withval=""
12812 ;;
12813 [0-9]*)
12814 ;;
12815 *)
12816 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
12817 ;;
12818 esac
12819 if test ! -z "$withval" ; then
12820 PRNGD_PORT="$withval"
12821
12822cat >>confdefs.h <<_ACEOF
12823#define PRNGD_PORT $PRNGD_PORT
12824_ACEOF
12825
12826 fi
12827
12828
12829fi
12830
12831
12832# PRNGD Unix domain socket
12833
12834# Check whether --with-prngd-socket was given.
12835if test "${with_prngd_socket+set}" = set; then :
12836 withval=$with_prngd_socket;
12837 case "$withval" in
12838 yes)
12839 withval="/var/run/egd-pool"
12840 ;;
12841 no)
12842 withval=""
12843 ;;
12844 /*)
12845 ;;
12846 *)
12847 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
12848 ;;
12849 esac
12850
12851 if test ! -z "$withval" ; then
12852 if test ! -z "$PRNGD_PORT" ; then
12853 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
12854 fi
12855 if test ! -r "$withval" ; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
12857$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
12858 fi
12859 PRNGD_SOCKET="$withval"
12860
12861cat >>confdefs.h <<_ACEOF
12862#define PRNGD_SOCKET "$PRNGD_SOCKET"
12863_ACEOF
12864
12865 fi
12866
12867else
12868
12869 # Check for existing socket only if we don't have a random device already
12870 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
12872$as_echo_n "checking for PRNGD/EGD socket... " >&6; }
12873 # Insert other locations here
12874 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
12875 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
12876 PRNGD_SOCKET="$sock"
12877 cat >>confdefs.h <<_ACEOF
12878#define PRNGD_SOCKET "$PRNGD_SOCKET"
12879_ACEOF
12880
12881 break;
12882 fi
12883 done
12884 if test ! -z "$PRNGD_SOCKET" ; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
12886$as_echo "$PRNGD_SOCKET" >&6; }
12887 else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12889$as_echo "not found" >&6; }
12890 fi
12891 fi
12892
12893
12894fi
12895
12896
12897# Which randomness source do we use?
12898if test ! -z "$PRNGD_PORT" ; then
12899 RAND_MSG="PRNGd port $PRNGD_PORT"
12900elif test ! -z "$PRNGD_SOCKET" ; then
12901 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
12902elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
12903
12904$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
12905
12906 RAND_MSG="OpenSSL internal ONLY"
12907else
12908 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
12909fi
12910
12911# Check for PAM libs
12912PAM_MSG="no"
12913
12914# Check whether --with-pam was given.
12915if test "${with_pam+set}" = set; then :
12916 withval=$with_pam;
12917 if test "x$withval" != "xno" ; then
12918 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
12919 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
12920 as_fn_error $? "PAM headers not found" "$LINENO" 5
12921 fi
12922
12923 saved_LIBS="$LIBS"
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12925$as_echo_n "checking for dlopen in -ldl... " >&6; }
12926if ${ac_cv_lib_dl_dlopen+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928else
12929 ac_check_lib_save_LIBS=$LIBS
12930LIBS="-ldl $LIBS"
12931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h. */
12933
12934/* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12937#ifdef __cplusplus
12938extern "C"
12939#endif
12940char dlopen ();
12941int
12942main ()
12943{
12944return dlopen ();
12945 ;
12946 return 0;
12947}
12948_ACEOF
12949if ac_fn_c_try_link "$LINENO"; then :
12950 ac_cv_lib_dl_dlopen=yes
12951else
12952 ac_cv_lib_dl_dlopen=no
12953fi
12954rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956LIBS=$ac_check_lib_save_LIBS
12957fi
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12959$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12960if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12961 cat >>confdefs.h <<_ACEOF
12962#define HAVE_LIBDL 1
12963_ACEOF
12964
12965 LIBS="-ldl $LIBS"
12966
12967fi
12968
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
12970$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
12971if ${ac_cv_lib_pam_pam_set_item+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973else
12974 ac_check_lib_save_LIBS=$LIBS
12975LIBS="-lpam $LIBS"
12976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h. */
12978
12979/* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12982#ifdef __cplusplus
12983extern "C"
12984#endif
12985char pam_set_item ();
12986int
12987main ()
12988{
12989return pam_set_item ();
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994if ac_fn_c_try_link "$LINENO"; then :
12995 ac_cv_lib_pam_pam_set_item=yes
12996else
12997 ac_cv_lib_pam_pam_set_item=no
12998fi
12999rm -f core conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13001LIBS=$ac_check_lib_save_LIBS
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
13004$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
13005if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
13006 cat >>confdefs.h <<_ACEOF
13007#define HAVE_LIBPAM 1
13008_ACEOF
13009
13010 LIBS="-lpam $LIBS"
13011
13012else
13013 as_fn_error $? "*** libpam missing" "$LINENO" 5
13014fi
13015
13016 for ac_func in pam_getenvlist
13017do :
13018 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
13019if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
13020 cat >>confdefs.h <<_ACEOF
13021#define HAVE_PAM_GETENVLIST 1
13022_ACEOF
13023
13024fi
13025done
13026
13027 for ac_func in pam_putenv
13028do :
13029 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
13030if test "x$ac_cv_func_pam_putenv" = xyes; then :
13031 cat >>confdefs.h <<_ACEOF
13032#define HAVE_PAM_PUTENV 1
13033_ACEOF
13034
13035fi
13036done
13037
13038 LIBS="$saved_LIBS"
13039
13040 PAM_MSG="yes"
13041
13042 SSHDLIBS="$SSHDLIBS -lpam"
13043
13044$as_echo "#define USE_PAM 1" >>confdefs.h
13045
13046
13047 if test $ac_cv_lib_dl_dlopen = yes; then
13048 case "$LIBS" in
13049 *-ldl*)
13050 # libdl already in LIBS
13051 ;;
13052 *)
13053 SSHDLIBS="$SSHDLIBS -ldl"
13054 ;;
13055 esac
13056 fi
13057 fi
13058
13059
13060fi
13061
13062
13063# Check for older PAM
13064if test "x$PAM_MSG" = "xyes" ; then
13065 # Check PAM strerror arguments (old PAM)
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
13067$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h. */
13070
13071#include <stdlib.h>
13072#if defined(HAVE_SECURITY_PAM_APPL_H)
13073#include <security/pam_appl.h>
13074#elif defined (HAVE_PAM_PAM_APPL_H)
13075#include <pam/pam_appl.h>
13076#endif
13077
13078int
13079main ()
13080{
13081
13082(void)pam_strerror((pam_handle_t *)NULL, -1);
13083
13084 ;
13085 return 0;
13086}
13087_ACEOF
13088if ac_fn_c_try_compile "$LINENO"; then :
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090$as_echo "no" >&6; }
13091else
13092
13093
13094$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
13095
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13097$as_echo "yes" >&6; }
13098 PAM_MSG="yes (old library)"
13099
13100
13101fi
13102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103fi
13104
13105case "$host" in
13106*-*-cygwin*)
13107 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
13108 ;;
13109*)
13110 SSH_PRIVSEP_USER=sshd
13111 ;;
13112esac
13113
13114# Check whether --with-privsep-user was given.
13115if test "${with_privsep_user+set}" = set; then :
13116 withval=$with_privsep_user;
13117 if test -n "$withval" && test "x$withval" != "xno" && \
13118 test "x${withval}" != "xyes"; then
13119 SSH_PRIVSEP_USER=$withval
13120 fi
13121
13122
13123fi
13124
13125if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
13126
13127cat >>confdefs.h <<_ACEOF
13128#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
13129_ACEOF
13130
13131else
13132
13133cat >>confdefs.h <<_ACEOF
13134#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
13135_ACEOF
13136
13137fi
13138
13139
13140if test "x$have_linux_no_new_privs" = "x1" ; then
13141ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
13142 #include <sys/types.h>
13143 #include <linux/seccomp.h>
13144
13145"
13146if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
13147 have_seccomp_filter=1
13148fi
13149
13150fi
13151if test "x$have_seccomp_filter" = "x1" ; then
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
13153$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
13154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155/* end confdefs.h. */
13156
13157 #include <errno.h>
13158 #include <elf.h>
13159 #include <linux/audit.h>
13160 #include <linux/seccomp.h>
13161 #include <stdlib.h>
13162 #include <sys/prctl.h>
13163
13164int
13165main ()
13166{
13167 int i = $seccomp_audit_arch;
13168 errno = 0;
13169 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
13170 exit(errno == EFAULT ? 0 : 1);
13171 ;
13172 return 0;
13173}
13174_ACEOF
13175if ac_fn_c_try_link "$LINENO"; then :
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13177$as_echo "yes" >&6; }
13178else
13179
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181$as_echo "no" >&6; }
13182 # Disable seccomp filter as a target
13183 have_seccomp_filter=0
13184
13185
13186fi
13187rm -f core conftest.err conftest.$ac_objext \
13188 conftest$ac_exeext conftest.$ac_ext
13189fi
13190
13191# Decide which sandbox style to use
13192sandbox_arg=""
13193
13194# Check whether --with-sandbox was given.
13195if test "${with_sandbox+set}" = set; then :
13196 withval=$with_sandbox;
13197 if test "x$withval" = "xyes" ; then
13198 sandbox_arg=""
13199 else
13200 sandbox_arg="$withval"
13201 fi
13202
13203
13204fi
13205
13206
13207# Some platforms (seems to be the ones that have a kernel poll(2)-type
13208# function with which they implement select(2)) use an extra file descriptor
13209# when calling select(2), which means we can't use the rlimit sandbox.
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
13211$as_echo_n "checking if select works with descriptor rlimit... " >&6; }
13212if test "$cross_compiling" = yes; then :
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13214$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13215
13216else
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218/* end confdefs.h. */
13219
13220#include <sys/types.h>
13221#ifdef HAVE_SYS_TIME_H
13222# include <sys/time.h>
13223#endif
13224#include <sys/resource.h>
13225#ifdef HAVE_SYS_SELECT_H
13226# include <sys/select.h>
13227#endif
13228#include <errno.h>
13229#include <fcntl.h>
13230#include <stdlib.h>
13231
13232int
13233main ()
13234{
13235
13236 struct rlimit rl_zero;
13237 int fd, r;
13238 fd_set fds;
13239 struct timeval tv;
13240
13241 fd = open("/dev/null", O_RDONLY);
13242 FD_ZERO(&fds);
13243 FD_SET(fd, &fds);
13244 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13245 setrlimit(RLIMIT_FSIZE, &rl_zero);
13246 setrlimit(RLIMIT_NOFILE, &rl_zero);
13247 tv.tv_sec = 1;
13248 tv.tv_usec = 0;
13249 r = select(fd+1, &fds, NULL, NULL, &tv);
13250 exit (r == -1 ? 1 : 0);
13251
13252 ;
13253 return 0;
13254}
13255_ACEOF
13256if ac_fn_c_try_run "$LINENO"; then :
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13258$as_echo "yes" >&6; }
13259 select_works_with_rlimit=yes
13260else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262$as_echo "no" >&6; }
13263 select_works_with_rlimit=no
13264fi
13265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13266 conftest.$ac_objext conftest.beam conftest.$ac_ext
13267fi
13268
13269
13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
13271$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
13272if test "$cross_compiling" = yes; then :
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13274$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13275
13276else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h. */
13279
13280#include <sys/types.h>
13281#ifdef HAVE_SYS_TIME_H
13282# include <sys/time.h>
13283#endif
13284#include <sys/resource.h>
13285#include <errno.h>
13286#include <stdlib.h>
13287
13288int
13289main ()
13290{
13291
13292 struct rlimit rl_zero;
13293 int fd, r;
13294 fd_set fds;
13295
13296 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13297 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
13298 exit (r == -1 ? 1 : 0);
13299
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304if ac_fn_c_try_run "$LINENO"; then :
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13306$as_echo "yes" >&6; }
13307 rlimit_nofile_zero_works=yes
13308else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310$as_echo "no" >&6; }
13311 rlimit_nofile_zero_works=no
13312fi
13313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13314 conftest.$ac_objext conftest.beam conftest.$ac_ext
13315fi
13316
13317
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
13319$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
13320if test "$cross_compiling" = yes; then :
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13322$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13323
13324else
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326/* end confdefs.h. */
13327
13328#include <sys/types.h>
13329#include <sys/resource.h>
13330#include <stdlib.h>
13331
13332int
13333main ()
13334{
13335
13336 struct rlimit rl_zero;
13337
13338 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13339 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
13340
13341 ;
13342 return 0;
13343}
13344_ACEOF
13345if ac_fn_c_try_run "$LINENO"; then :
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13347$as_echo "yes" >&6; }
13348else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350$as_echo "no" >&6; }
13351
13352$as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
13353
13354fi
13355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13356 conftest.$ac_objext conftest.beam conftest.$ac_ext
13357fi
13358
13359
13360if test "x$sandbox_arg" = "xsystrace" || \
13361 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
13362 test "x$have_systr_policy_kill" != "x1" && \
13363 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
13364 SANDBOX_STYLE="systrace"
13365
13366$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
13367
13368elif test "x$sandbox_arg" = "xdarwin" || \
13369 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
13370 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
13371 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
13372 "x$ac_cv_header_sandbox_h" != "xyes" && \
13373 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
13374 SANDBOX_STYLE="darwin"
13375
13376$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
13377
13378elif test "x$sandbox_arg" = "xseccomp_filter" || \
13379 ( test -z "$sandbox_arg" && \
13380 test "x$have_seccomp_filter" = "x1" && \
13381 test "x$ac_cv_header_elf_h" = "xyes" && \
13382 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
13383 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
13384 test "x$seccomp_audit_arch" != "x" && \
13385 test "x$have_linux_no_new_privs" = "x1" && \
13386 test "x$ac_cv_func_prctl" = "xyes" ) ; then
13387 test "x$seccomp_audit_arch" = "x" && \
13388 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
13389 test "x$have_linux_no_new_privs" != "x1" && \
13390 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
13391 test "x$have_seccomp_filter" != "x1" && \
13392 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
13393 test "x$ac_cv_func_prctl" != "xyes" && \
13394 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
13395 SANDBOX_STYLE="seccomp_filter"
13396
13397$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
13398
13399elif test "x$sandbox_arg" = "xcapsicum" || \
13400 ( test -z "$sandbox_arg" && \
13401 test "x$ac_cv_header_sys_capability_h" = "xyes" && \
13402 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
13403 test "x$ac_cv_header_sys_capability_h" != "xyes" && \
13404 as_fn_error $? "capsicum sandbox requires sys/capability.h header" "$LINENO" 5
13405 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
13406 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5
13407 SANDBOX_STYLE="capsicum"
13408
13409$as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h
13410
13411elif test "x$sandbox_arg" = "xrlimit" || \
13412 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
13413 test "x$select_works_with_rlimit" = "xyes" && \
13414 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
13415 test "x$ac_cv_func_setrlimit" != "xyes" && \
13416 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
13417 test "x$select_works_with_rlimit" != "xyes" && \
13418 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
13419 SANDBOX_STYLE="rlimit"
13420
13421$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
13422
13423elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
13424 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
13425 SANDBOX_STYLE="none"
13426
13427$as_echo "#define SANDBOX_NULL 1" >>confdefs.h
13428
13429else
13430 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
13431fi
13432
13433# Cheap hack to ensure NEWS-OS libraries are arranged right.
13434if test ! -z "$SONY" ; then
13435 LIBS="$LIBS -liberty";
13436fi
13437
13438# Check for long long datatypes
13439ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13440if test "x$ac_cv_type_long_long" = xyes; then :
13441
13442cat >>confdefs.h <<_ACEOF
13443#define HAVE_LONG_LONG 1
13444_ACEOF
13445
13446
13447fi
13448ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
13449if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
13450
13451cat >>confdefs.h <<_ACEOF
13452#define HAVE_UNSIGNED_LONG_LONG 1
13453_ACEOF
13454
13455
13456fi
13457ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
13458if test "x$ac_cv_type_long_double" = xyes; then :
13459
13460cat >>confdefs.h <<_ACEOF
13461#define HAVE_LONG_DOUBLE 1
13462_ACEOF
13463
13464
13465fi
13466
13467
13468# Check datatype sizes
13469# The cast to long int works around a bug in the HP C Compiler
13470# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13471# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13472# This bug is HP SR number 8606223364.
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
13474$as_echo_n "checking size of short int... " >&6; }
13475if ${ac_cv_sizeof_short_int+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477else
13478 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
13479
13480else
13481 if test "$ac_cv_type_short_int" = yes; then
13482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13484as_fn_error 77 "cannot compute sizeof (short int)
13485See \`config.log' for more details" "$LINENO" 5; }
13486 else
13487 ac_cv_sizeof_short_int=0
13488 fi
13489fi
13490
13491fi
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
13493$as_echo "$ac_cv_sizeof_short_int" >&6; }
13494
13495
13496
13497cat >>confdefs.h <<_ACEOF
13498#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13499_ACEOF
13500
13501
13502# The cast to long int works around a bug in the HP C Compiler
13503# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13504# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13505# This bug is HP SR number 8606223364.
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13507$as_echo_n "checking size of int... " >&6; }
13508if ${ac_cv_sizeof_int+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510else
13511 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13512
13513else
13514 if test "$ac_cv_type_int" = yes; then
13515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13517as_fn_error 77 "cannot compute sizeof (int)
13518See \`config.log' for more details" "$LINENO" 5; }
13519 else
13520 ac_cv_sizeof_int=0
13521 fi
13522fi
13523
13524fi
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13526$as_echo "$ac_cv_sizeof_int" >&6; }
13527
13528
13529
13530cat >>confdefs.h <<_ACEOF
13531#define SIZEOF_INT $ac_cv_sizeof_int
13532_ACEOF
13533
13534
13535# The cast to long int works around a bug in the HP C Compiler
13536# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13537# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13538# This bug is HP SR number 8606223364.
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
13540$as_echo_n "checking size of long int... " >&6; }
13541if ${ac_cv_sizeof_long_int+:} false; then :
13542 $as_echo_n "(cached) " >&6
13543else
13544 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
13545
13546else
13547 if test "$ac_cv_type_long_int" = yes; then
13548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13550as_fn_error 77 "cannot compute sizeof (long int)
13551See \`config.log' for more details" "$LINENO" 5; }
13552 else
13553 ac_cv_sizeof_long_int=0
13554 fi
13555fi
13556
13557fi
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
13559$as_echo "$ac_cv_sizeof_long_int" >&6; }
13560
13561
13562
13563cat >>confdefs.h <<_ACEOF
13564#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13565_ACEOF
13566
13567
13568# The cast to long int works around a bug in the HP C Compiler
13569# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13570# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13571# This bug is HP SR number 8606223364.
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
13573$as_echo_n "checking size of long long int... " >&6; }
13574if ${ac_cv_sizeof_long_long_int+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576else
13577 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
13578
13579else
13580 if test "$ac_cv_type_long_long_int" = yes; then
13581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13583as_fn_error 77 "cannot compute sizeof (long long int)
13584See \`config.log' for more details" "$LINENO" 5; }
13585 else
13586 ac_cv_sizeof_long_long_int=0
13587 fi
13588fi
13589
13590fi
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
13592$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
13593
13594
13595
13596cat >>confdefs.h <<_ACEOF
13597#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13598_ACEOF
13599
13600
13601
13602# Sanity check long long for some platforms (AIX)
13603if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
13604 ac_cv_sizeof_long_long_int=0
13605fi
13606
13607# compute LLONG_MIN and LLONG_MAX if we don't know them.
13608if test -z "$have_llong_max"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
13610$as_echo_n "checking for max value of long long... " >&6; }
13611 if test "$cross_compiling" = yes; then :
13612
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
13614$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13615
13616
13617else
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619/* end confdefs.h. */
13620
13621#include <stdio.h>
13622/* Why is this so damn hard? */
13623#ifdef __GNUC__
13624# undef __GNUC__
13625#endif
13626#define __USE_ISOC99
13627#include <limits.h>
13628#define DATA "conftest.llminmax"
13629#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
13630
13631/*
13632 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
13633 * we do this the hard way.
13634 */
13635static int
13636fprint_ll(FILE *f, long long n)
13637{
13638 unsigned int i;
13639 int l[sizeof(long long) * 8];
13640
13641 if (n < 0)
13642 if (fprintf(f, "-") < 0)
13643 return -1;
13644 for (i = 0; n != 0; i++) {
13645 l[i] = my_abs(n % 10);
13646 n /= 10;
13647 }
13648 do {
13649 if (fprintf(f, "%d", l[--i]) < 0)
13650 return -1;
13651 } while (i != 0);
13652 if (fprintf(f, " ") < 0)
13653 return -1;
13654 return 0;
13655}
13656
13657int
13658main ()
13659{
13660
13661 FILE *f;
13662 long long i, llmin, llmax = 0;
13663
13664 if((f = fopen(DATA,"w")) == NULL)
13665 exit(1);
13666
13667#if defined(LLONG_MIN) && defined(LLONG_MAX)
13668 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
13669 llmin = LLONG_MIN;
13670 llmax = LLONG_MAX;
13671#else
13672 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
13673 /* This will work on one's complement and two's complement */
13674 for (i = 1; i > llmax; i <<= 1, i++)
13675 llmax = i;
13676 llmin = llmax + 1LL; /* wrap */
13677#endif
13678
13679 /* Sanity check */
13680 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
13681 || llmax - 1 > llmax || llmin == llmax || llmin == 0
13682 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
13683 fprintf(f, "unknown unknown\n");
13684 exit(2);
13685 }
13686
13687 if (fprint_ll(f, llmin) < 0)
13688 exit(3);
13689 if (fprint_ll(f, llmax) < 0)
13690 exit(4);
13691 if (fclose(f) < 0)
13692 exit(5);
13693 exit(0);
13694
13695 ;
13696 return 0;
13697}
13698_ACEOF
13699if ac_fn_c_try_run "$LINENO"; then :
13700
13701 llong_min=`$AWK '{print $1}' conftest.llminmax`
13702 llong_max=`$AWK '{print $2}' conftest.llminmax`
13703
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
13705$as_echo "$llong_max" >&6; }
13706
13707cat >>confdefs.h <<_ACEOF
13708#define LLONG_MAX ${llong_max}LL
13709_ACEOF
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
13712$as_echo_n "checking for min value of long long... " >&6; }
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
13714$as_echo "$llong_min" >&6; }
13715
13716cat >>confdefs.h <<_ACEOF
13717#define LLONG_MIN ${llong_min}LL
13718_ACEOF
13719
13720
13721else
13722
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13724$as_echo "not found" >&6; }
13725
13726fi
13727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13728 conftest.$ac_objext conftest.beam conftest.$ac_ext
13729fi
13730
13731fi
13732
13733
13734# More checks for data types
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
13736$as_echo_n "checking for u_int type... " >&6; }
13737if ${ac_cv_have_u_int+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739else
13740
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742/* end confdefs.h. */
13743 #include <sys/types.h>
13744int
13745main ()
13746{
13747 u_int a; a = 1;
13748 ;
13749 return 0;
13750}
13751_ACEOF
13752if ac_fn_c_try_compile "$LINENO"; then :
13753 ac_cv_have_u_int="yes"
13754else
13755 ac_cv_have_u_int="no"
13756
13757fi
13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759
13760fi
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
13762$as_echo "$ac_cv_have_u_int" >&6; }
13763if test "x$ac_cv_have_u_int" = "xyes" ; then
13764
13765$as_echo "#define HAVE_U_INT 1" >>confdefs.h
13766
13767 have_u_int=1
13768fi
13769
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
13771$as_echo_n "checking for intXX_t types... " >&6; }
13772if ${ac_cv_have_intxx_t+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774else
13775
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777/* end confdefs.h. */
13778 #include <sys/types.h>
13779int
13780main ()
13781{
13782 int8_t a; int16_t b; int32_t c; a = b = c = 1;
13783 ;
13784 return 0;
13785}
13786_ACEOF
13787if ac_fn_c_try_compile "$LINENO"; then :
13788 ac_cv_have_intxx_t="yes"
13789else
13790 ac_cv_have_intxx_t="no"
13791
13792fi
13793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794
13795fi
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
13797$as_echo "$ac_cv_have_intxx_t" >&6; }
13798if test "x$ac_cv_have_intxx_t" = "xyes" ; then
13799
13800$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13801
13802 have_intxx_t=1
13803fi
13804
13805if (test -z "$have_intxx_t" && \
13806 test "x$ac_cv_header_stdint_h" = "xyes")
13807then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
13809$as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811/* end confdefs.h. */
13812 #include <stdint.h>
13813int
13814main ()
13815{
13816 int8_t a; int16_t b; int32_t c; a = b = c = 1;
13817 ;
13818 return 0;
13819}
13820_ACEOF
13821if ac_fn_c_try_compile "$LINENO"; then :
13822
13823 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13824
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13826$as_echo "yes" >&6; }
13827
13828else
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830$as_echo "no" >&6; }
13831
13832fi
13833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834fi
13835
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
13837$as_echo_n "checking for int64_t type... " >&6; }
13838if ${ac_cv_have_int64_t+:} false; then :
13839 $as_echo_n "(cached) " >&6
13840else
13841
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843/* end confdefs.h. */
13844
13845#include <sys/types.h>
13846#ifdef HAVE_STDINT_H
13847# include <stdint.h>
13848#endif
13849#include <sys/socket.h>
13850#ifdef HAVE_SYS_BITYPES_H
13851# include <sys/bitypes.h>
13852#endif
13853
13854int
13855main ()
13856{
13857
13858int64_t a; a = 1;
13859
13860 ;
13861 return 0;
13862}
13863_ACEOF
13864if ac_fn_c_try_compile "$LINENO"; then :
13865 ac_cv_have_int64_t="yes"
13866else
13867 ac_cv_have_int64_t="no"
13868
13869fi
13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871
13872fi
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
13874$as_echo "$ac_cv_have_int64_t" >&6; }
13875if test "x$ac_cv_have_int64_t" = "xyes" ; then
13876
13877$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
13878
13879fi
13880
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
13882$as_echo_n "checking for u_intXX_t types... " >&6; }
13883if ${ac_cv_have_u_intxx_t+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885else
13886
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888/* end confdefs.h. */
13889 #include <sys/types.h>
13890int
13891main ()
13892{
13893 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
13894 ;
13895 return 0;
13896}
13897_ACEOF
13898if ac_fn_c_try_compile "$LINENO"; then :
13899 ac_cv_have_u_intxx_t="yes"
13900else
13901 ac_cv_have_u_intxx_t="no"
13902
13903fi
13904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905
13906fi
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
13908$as_echo "$ac_cv_have_u_intxx_t" >&6; }
13909if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
13910
13911$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
13912
13913 have_u_intxx_t=1
13914fi
13915
13916if test -z "$have_u_intxx_t" ; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
13918$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920/* end confdefs.h. */
13921 #include <sys/socket.h>
13922int
13923main ()
13924{
13925 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
13926 ;
13927 return 0;
13928}
13929_ACEOF
13930if ac_fn_c_try_compile "$LINENO"; then :
13931
13932 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
13933
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13935$as_echo "yes" >&6; }
13936
13937else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13939$as_echo "no" >&6; }
13940
13941fi
13942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13943fi
13944
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
13946$as_echo_n "checking for u_int64_t types... " >&6; }
13947if ${ac_cv_have_u_int64_t+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949else
13950
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952/* end confdefs.h. */
13953 #include <sys/types.h>
13954int
13955main ()
13956{
13957 u_int64_t a; a = 1;
13958 ;
13959 return 0;
13960}
13961_ACEOF
13962if ac_fn_c_try_compile "$LINENO"; then :
13963 ac_cv_have_u_int64_t="yes"
13964else
13965 ac_cv_have_u_int64_t="no"
13966
13967fi
13968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969
13970fi
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
13972$as_echo "$ac_cv_have_u_int64_t" >&6; }
13973if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
13974
13975$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
13976
13977 have_u_int64_t=1
13978fi
13979
13980if (test -z "$have_u_int64_t" && \
13981 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
13982then
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
13984$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986/* end confdefs.h. */
13987 #include <sys/bitypes.h>
13988int
13989main ()
13990{
13991 u_int64_t a; a = 1
13992 ;
13993 return 0;
13994}
13995_ACEOF
13996if ac_fn_c_try_compile "$LINENO"; then :
13997
13998 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
13999
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14001$as_echo "yes" >&6; }
14002
14003else
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14005$as_echo "no" >&6; }
14006
14007fi
14008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009fi
14010
14011if test -z "$have_u_intxx_t" ; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
14013$as_echo_n "checking for uintXX_t types... " >&6; }
14014if ${ac_cv_have_uintxx_t+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016else
14017
14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019/* end confdefs.h. */
14020
14021#include <sys/types.h>
14022
14023int
14024main ()
14025{
14026
14027 uint8_t a;
14028 uint16_t b;
14029 uint32_t c;
14030 a = b = c = 1;
14031
14032 ;
14033 return 0;
14034}
14035_ACEOF
14036if ac_fn_c_try_compile "$LINENO"; then :
14037 ac_cv_have_uintxx_t="yes"
14038else
14039 ac_cv_have_uintxx_t="no"
14040
14041fi
14042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14043
14044fi
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
14046$as_echo "$ac_cv_have_uintxx_t" >&6; }
14047 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14048
14049$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14050
14051 fi
14052fi
14053
14054if (test -z "$have_uintxx_t" && \
14055 test "x$ac_cv_header_stdint_h" = "xyes")
14056then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
14058$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060/* end confdefs.h. */
14061 #include <stdint.h>
14062int
14063main ()
14064{
14065 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14066 ;
14067 return 0;
14068}
14069_ACEOF
14070if ac_fn_c_try_compile "$LINENO"; then :
14071
14072 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14073
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075$as_echo "yes" >&6; }
14076
14077else
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079$as_echo "no" >&6; }
14080
14081fi
14082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14083fi
14084
14085if (test -z "$have_uintxx_t" && \
14086 test "x$ac_cv_header_inttypes_h" = "xyes")
14087then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5
14089$as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; }
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091/* end confdefs.h. */
14092 #include <inttypes.h>
14093int
14094main ()
14095{
14096 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14097 ;
14098 return 0;
14099}
14100_ACEOF
14101if ac_fn_c_try_compile "$LINENO"; then :
14102
14103 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14104
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14106$as_echo "yes" >&6; }
14107
14108else
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110$as_echo "no" >&6; }
14111
14112fi
14113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114fi
14115
14116if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14117 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14118then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14120$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122/* end confdefs.h. */
14123
14124#include <sys/bitypes.h>
14125
14126int
14127main ()
14128{
14129
14130 int8_t a; int16_t b; int32_t c;
14131 u_int8_t e; u_int16_t f; u_int32_t g;
14132 a = b = c = e = f = g = 1;
14133
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138if ac_fn_c_try_compile "$LINENO"; then :
14139
14140 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14141
14142 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
14143
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14145$as_echo "yes" >&6; }
14146
14147else
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149$as_echo "no" >&6; }
14150
14151fi
14152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153fi
14154
14155
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
14157$as_echo_n "checking for u_char... " >&6; }
14158if ${ac_cv_have_u_char+:} false; then :
14159 $as_echo_n "(cached) " >&6
14160else
14161
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163/* end confdefs.h. */
14164 #include <sys/types.h>
14165int
14166main ()
14167{
14168 u_char foo; foo = 125;
14169 ;
14170 return 0;
14171}
14172_ACEOF
14173if ac_fn_c_try_compile "$LINENO"; then :
14174 ac_cv_have_u_char="yes"
14175else
14176 ac_cv_have_u_char="no"
14177
14178fi
14179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180
14181fi
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
14183$as_echo "$ac_cv_have_u_char" >&6; }
14184if test "x$ac_cv_have_u_char" = "xyes" ; then
14185
14186$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
14187
14188fi
14189
14190ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "
14191#include <sys/types.h>
14192#include <stdint.h>
14193
14194"
14195if test "x$ac_cv_type_intmax_t" = xyes; then :
14196
14197cat >>confdefs.h <<_ACEOF
14198#define HAVE_INTMAX_T 1
14199_ACEOF
14200
14201
14202fi
14203ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
14204#include <sys/types.h>
14205#include <stdint.h>
14206
14207"
14208if test "x$ac_cv_type_uintmax_t" = xyes; then :
14209
14210cat >>confdefs.h <<_ACEOF
14211#define HAVE_UINTMAX_T 1
14212_ACEOF
14213
14214
14215fi
14216
14217
14218
14219 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
14220#include <sys/socket.h>
14221"
14222if test "x$ac_cv_type_socklen_t" = xyes; then :
14223
14224else
14225
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14227$as_echo_n "checking for socklen_t equivalent... " >&6; }
14228 if ${curl_cv_socklen_t_equiv+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230else
14231
14232 # Systems have either "struct sockaddr *" or
14233 # "void *" as the second argument to getpeername
14234 curl_cv_socklen_t_equiv=
14235 for arg2 in "struct sockaddr" void; do
14236 for t in int size_t unsigned long "unsigned long"; do
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238/* end confdefs.h. */
14239
14240 #include <sys/types.h>
14241 #include <sys/socket.h>
14242
14243 int getpeername (int, $arg2 *, $t *);
14244
14245int
14246main ()
14247{
14248
14249 $t len;
14250 getpeername(0,0,&len);
14251
14252 ;
14253 return 0;
14254}
14255_ACEOF
14256if ac_fn_c_try_compile "$LINENO"; then :
14257
14258 curl_cv_socklen_t_equiv="$t"
14259 break
14260
14261fi
14262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263 done
14264 done
14265
14266 if test "x$curl_cv_socklen_t_equiv" = x; then
14267 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14268 fi
14269
14270fi
14271
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
14273$as_echo "$curl_cv_socklen_t_equiv" >&6; }
14274
14275cat >>confdefs.h <<_ACEOF
14276#define socklen_t $curl_cv_socklen_t_equiv
14277_ACEOF
14278
14279fi
14280
14281
14282
14283ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
14284"
14285if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
14286
14287cat >>confdefs.h <<_ACEOF
14288#define HAVE_SIG_ATOMIC_T 1
14289_ACEOF
14290
14291
14292fi
14293
14294ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
14295#include <sys/types.h>
14296#ifdef HAVE_SYS_BITYPES_H
14297#include <sys/bitypes.h>
14298#endif
14299#ifdef HAVE_SYS_STATFS_H
14300#include <sys/statfs.h>
14301#endif
14302#ifdef HAVE_SYS_STATVFS_H
14303#include <sys/statvfs.h>
14304#endif
14305
14306"
14307if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14308
14309cat >>confdefs.h <<_ACEOF
14310#define HAVE_FSBLKCNT_T 1
14311_ACEOF
14312
14313
14314fi
14315ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
14316#include <sys/types.h>
14317#ifdef HAVE_SYS_BITYPES_H
14318#include <sys/bitypes.h>
14319#endif
14320#ifdef HAVE_SYS_STATFS_H
14321#include <sys/statfs.h>
14322#endif
14323#ifdef HAVE_SYS_STATVFS_H
14324#include <sys/statvfs.h>
14325#endif
14326
14327"
14328if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14329
14330cat >>confdefs.h <<_ACEOF
14331#define HAVE_FSFILCNT_T 1
14332_ACEOF
14333
14334
14335fi
14336
14337
14338ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
14339#include <netinet/in.h>
14340"
14341if test "x$ac_cv_type_in_addr_t" = xyes; then :
14342
14343cat >>confdefs.h <<_ACEOF
14344#define HAVE_IN_ADDR_T 1
14345_ACEOF
14346
14347
14348fi
14349ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
14350#include <netinet/in.h>
14351"
14352if test "x$ac_cv_type_in_port_t" = xyes; then :
14353
14354cat >>confdefs.h <<_ACEOF
14355#define HAVE_IN_PORT_T 1
14356_ACEOF
14357
14358
14359fi
14360
14361
14362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14363$as_echo_n "checking for size_t... " >&6; }
14364if ${ac_cv_have_size_t+:} false; then :
14365 $as_echo_n "(cached) " >&6
14366else
14367
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369/* end confdefs.h. */
14370 #include <sys/types.h>
14371int
14372main ()
14373{
14374 size_t foo; foo = 1235;
14375 ;
14376 return 0;
14377}
14378_ACEOF
14379if ac_fn_c_try_compile "$LINENO"; then :
14380 ac_cv_have_size_t="yes"
14381else
14382 ac_cv_have_size_t="no"
14383
14384fi
14385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386
14387fi
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
14389$as_echo "$ac_cv_have_size_t" >&6; }
14390if test "x$ac_cv_have_size_t" = "xyes" ; then
14391
14392$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
14393
14394fi
14395
14396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14397$as_echo_n "checking for ssize_t... " >&6; }
14398if ${ac_cv_have_ssize_t+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400else
14401
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h. */
14404 #include <sys/types.h>
14405int
14406main ()
14407{
14408 ssize_t foo; foo = 1235;
14409 ;
14410 return 0;
14411}
14412_ACEOF
14413if ac_fn_c_try_compile "$LINENO"; then :
14414 ac_cv_have_ssize_t="yes"
14415else
14416 ac_cv_have_ssize_t="no"
14417
14418fi
14419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420
14421fi
14422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
14423$as_echo "$ac_cv_have_ssize_t" >&6; }
14424if test "x$ac_cv_have_ssize_t" = "xyes" ; then
14425
14426$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
14427
14428fi
14429
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
14431$as_echo_n "checking for clock_t... " >&6; }
14432if ${ac_cv_have_clock_t+:} false; then :
14433 $as_echo_n "(cached) " >&6
14434else
14435
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437/* end confdefs.h. */
14438 #include <time.h>
14439int
14440main ()
14441{
14442 clock_t foo; foo = 1235;
14443 ;
14444 return 0;
14445}
14446_ACEOF
14447if ac_fn_c_try_compile "$LINENO"; then :
14448 ac_cv_have_clock_t="yes"
14449else
14450 ac_cv_have_clock_t="no"
14451
14452fi
14453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454
14455fi
14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
14457$as_echo "$ac_cv_have_clock_t" >&6; }
14458if test "x$ac_cv_have_clock_t" = "xyes" ; then
14459
14460$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
14461
14462fi
14463
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
14465$as_echo_n "checking for sa_family_t... " >&6; }
14466if ${ac_cv_have_sa_family_t+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468else
14469
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471/* end confdefs.h. */
14472
14473#include <sys/types.h>
14474#include <sys/socket.h>
14475
14476int
14477main ()
14478{
14479 sa_family_t foo; foo = 1235;
14480 ;
14481 return 0;
14482}
14483_ACEOF
14484if ac_fn_c_try_compile "$LINENO"; then :
14485 ac_cv_have_sa_family_t="yes"
14486else
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488/* end confdefs.h. */
14489
14490#include <sys/types.h>
14491#include <sys/socket.h>
14492#include <netinet/in.h>
14493
14494int
14495main ()
14496{
14497 sa_family_t foo; foo = 1235;
14498 ;
14499 return 0;
14500}
14501_ACEOF
14502if ac_fn_c_try_compile "$LINENO"; then :
14503 ac_cv_have_sa_family_t="yes"
14504else
14505 ac_cv_have_sa_family_t="no"
14506
14507fi
14508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509
14510fi
14511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512
14513fi
14514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
14515$as_echo "$ac_cv_have_sa_family_t" >&6; }
14516if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
14517
14518$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
14519
14520fi
14521
14522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
14523$as_echo_n "checking for pid_t... " >&6; }
14524if ${ac_cv_have_pid_t+:} false; then :
14525 $as_echo_n "(cached) " >&6
14526else
14527
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529/* end confdefs.h. */
14530 #include <sys/types.h>
14531int
14532main ()
14533{
14534 pid_t foo; foo = 1235;
14535 ;
14536 return 0;
14537}
14538_ACEOF
14539if ac_fn_c_try_compile "$LINENO"; then :
14540 ac_cv_have_pid_t="yes"
14541else
14542 ac_cv_have_pid_t="no"
14543
14544fi
14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546
14547fi
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
14549$as_echo "$ac_cv_have_pid_t" >&6; }
14550if test "x$ac_cv_have_pid_t" = "xyes" ; then
14551
14552$as_echo "#define HAVE_PID_T 1" >>confdefs.h
14553
14554fi
14555
14556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
14557$as_echo_n "checking for mode_t... " >&6; }
14558if ${ac_cv_have_mode_t+:} false; then :
14559 $as_echo_n "(cached) " >&6
14560else
14561
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563/* end confdefs.h. */
14564 #include <sys/types.h>
14565int
14566main ()
14567{
14568 mode_t foo; foo = 1235;
14569 ;
14570 return 0;
14571}
14572_ACEOF
14573if ac_fn_c_try_compile "$LINENO"; then :
14574 ac_cv_have_mode_t="yes"
14575else
14576 ac_cv_have_mode_t="no"
14577
14578fi
14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580
14581fi
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
14583$as_echo "$ac_cv_have_mode_t" >&6; }
14584if test "x$ac_cv_have_mode_t" = "xyes" ; then
14585
14586$as_echo "#define HAVE_MODE_T 1" >>confdefs.h
14587
14588fi
14589
14590
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
14592$as_echo_n "checking for struct sockaddr_storage... " >&6; }
14593if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
14594 $as_echo_n "(cached) " >&6
14595else
14596
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598/* end confdefs.h. */
14599
14600#include <sys/types.h>
14601#include <sys/socket.h>
14602
14603int
14604main ()
14605{
14606 struct sockaddr_storage s;
14607 ;
14608 return 0;
14609}
14610_ACEOF
14611if ac_fn_c_try_compile "$LINENO"; then :
14612 ac_cv_have_struct_sockaddr_storage="yes"
14613else
14614 ac_cv_have_struct_sockaddr_storage="no"
14615
14616fi
14617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618
14619fi
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
14621$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
14622if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
14623
14624$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
14625
14626fi
14627
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
14629$as_echo_n "checking for struct sockaddr_in6... " >&6; }
14630if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
14631 $as_echo_n "(cached) " >&6
14632else
14633
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635/* end confdefs.h. */
14636
14637#include <sys/types.h>
14638#include <netinet/in.h>
14639
14640int
14641main ()
14642{
14643 struct sockaddr_in6 s; s.sin6_family = 0;
14644 ;
14645 return 0;
14646}
14647_ACEOF
14648if ac_fn_c_try_compile "$LINENO"; then :
14649 ac_cv_have_struct_sockaddr_in6="yes"
14650else
14651 ac_cv_have_struct_sockaddr_in6="no"
14652
14653fi
14654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655
14656fi
14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
14658$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
14659if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
14660
14661$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
14662
14663fi
14664
14665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
14666$as_echo_n "checking for struct in6_addr... " >&6; }
14667if ${ac_cv_have_struct_in6_addr+:} false; then :
14668 $as_echo_n "(cached) " >&6
14669else
14670
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672/* end confdefs.h. */
14673
14674#include <sys/types.h>
14675#include <netinet/in.h>
14676
14677int
14678main ()
14679{
14680 struct in6_addr s; s.s6_addr[0] = 0;
14681 ;
14682 return 0;
14683}
14684_ACEOF
14685if ac_fn_c_try_compile "$LINENO"; then :
14686 ac_cv_have_struct_in6_addr="yes"
14687else
14688 ac_cv_have_struct_in6_addr="no"
14689
14690fi
14691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692
14693fi
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
14695$as_echo "$ac_cv_have_struct_in6_addr" >&6; }
14696if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
14697
14698$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
14699
14700
14701 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
14702#ifdef HAVE_SYS_TYPES_H
14703#include <sys/types.h>
14704#endif
14705#include <netinet/in.h>
14706
14707"
14708if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14709
14710cat >>confdefs.h <<_ACEOF
14711#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14712_ACEOF
14713
14714
14715fi
14716
14717fi
14718
14719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
14720$as_echo_n "checking for struct addrinfo... " >&6; }
14721if ${ac_cv_have_struct_addrinfo+:} false; then :
14722 $as_echo_n "(cached) " >&6
14723else
14724
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726/* end confdefs.h. */
14727
14728#include <sys/types.h>
14729#include <sys/socket.h>
14730#include <netdb.h>
14731
14732int
14733main ()
14734{
14735 struct addrinfo s; s.ai_flags = AI_PASSIVE;
14736 ;
14737 return 0;
14738}
14739_ACEOF
14740if ac_fn_c_try_compile "$LINENO"; then :
14741 ac_cv_have_struct_addrinfo="yes"
14742else
14743 ac_cv_have_struct_addrinfo="no"
14744
14745fi
14746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14747
14748fi
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
14750$as_echo "$ac_cv_have_struct_addrinfo" >&6; }
14751if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
14752
14753$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
14754
14755fi
14756
14757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
14758$as_echo_n "checking for struct timeval... " >&6; }
14759if ${ac_cv_have_struct_timeval+:} false; then :
14760 $as_echo_n "(cached) " >&6
14761else
14762
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764/* end confdefs.h. */
14765 #include <sys/time.h>
14766int
14767main ()
14768{
14769 struct timeval tv; tv.tv_sec = 1;
14770 ;
14771 return 0;
14772}
14773_ACEOF
14774if ac_fn_c_try_compile "$LINENO"; then :
14775 ac_cv_have_struct_timeval="yes"
14776else
14777 ac_cv_have_struct_timeval="no"
14778
14779fi
14780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14781
14782fi
14783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
14784$as_echo "$ac_cv_have_struct_timeval" >&6; }
14785if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
14786
14787$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
14788
14789 have_struct_timeval=1
14790fi
14791
14792ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
14793if test "x$ac_cv_type_struct_timespec" = xyes; then :
14794
14795cat >>confdefs.h <<_ACEOF
14796#define HAVE_STRUCT_TIMESPEC 1
14797_ACEOF
14798
14799
14800fi
14801
14802
14803# We need int64_t or else certian parts of the compile will fail.
14804if test "x$ac_cv_have_int64_t" = "xno" && \
14805 test "x$ac_cv_sizeof_long_int" != "x8" && \
14806 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
14807 echo "OpenSSH requires int64_t support. Contact your vendor or install"
14808 echo "an alternative compiler (I.E., GCC) before continuing."
14809 echo ""
14810 exit 1;
14811else
14812 if test "$cross_compiling" = yes; then :
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
14814$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
14815
14816else
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818/* end confdefs.h. */
14819
14820#include <stdio.h>
14821#include <string.h>
14822#ifdef HAVE_SNPRINTF
14823main()
14824{
14825 char buf[50];
14826 char expected_out[50];
14827 int mazsize = 50 ;
14828#if (SIZEOF_LONG_INT == 8)
14829 long int num = 0x7fffffffffffffff;
14830#else
14831 long long num = 0x7fffffffffffffffll;
14832#endif
14833 strcpy(expected_out, "9223372036854775807");
14834 snprintf(buf, mazsize, "%lld", num);
14835 if(strcmp(buf, expected_out) != 0)
14836 exit(1);
14837 exit(0);
14838}
14839#else
14840main() { exit(0); }
14841#endif
14842
14843_ACEOF
14844if ac_fn_c_try_run "$LINENO"; then :
14845 true
14846else
14847 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
14848
14849fi
14850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14851 conftest.$ac_objext conftest.beam conftest.$ac_ext
14852fi
14853
14854fi
14855
14856
14857# look for field 'ut_host' in header 'utmp.h'
14858 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14859 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
14861$as_echo_n "checking for ut_host field in utmp.h... " >&6; }
14862 if eval \${$ossh_varname+:} false; then :
14863 $as_echo_n "(cached) " >&6
14864else
14865
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867/* end confdefs.h. */
14868#include <utmp.h>
14869
14870_ACEOF
14871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14872 $EGREP "ut_host" >/dev/null 2>&1; then :
14873 eval "$ossh_varname=yes"
14874else
14875 eval "$ossh_varname=no"
14876fi
14877rm -f conftest*
14878
14879fi
14880
14881 ossh_result=`eval 'echo $'"$ossh_varname"`
14882 if test -n "`echo $ossh_varname`"; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14884$as_echo "$ossh_result" >&6; }
14885 if test "x$ossh_result" = "xyes"; then
14886
14887$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
14888
14889 fi
14890 else
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14892$as_echo "no" >&6; }
14893 fi
14894
14895
14896# look for field 'ut_host' in header 'utmpx.h'
14897 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14898 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
14900$as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
14901 if eval \${$ossh_varname+:} false; then :
14902 $as_echo_n "(cached) " >&6
14903else
14904
14905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14906/* end confdefs.h. */
14907#include <utmpx.h>
14908
14909_ACEOF
14910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14911 $EGREP "ut_host" >/dev/null 2>&1; then :
14912 eval "$ossh_varname=yes"
14913else
14914 eval "$ossh_varname=no"
14915fi
14916rm -f conftest*
14917
14918fi
14919
14920 ossh_result=`eval 'echo $'"$ossh_varname"`
14921 if test -n "`echo $ossh_varname`"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14923$as_echo "$ossh_result" >&6; }
14924 if test "x$ossh_result" = "xyes"; then
14925
14926$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
14927
14928 fi
14929 else
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14931$as_echo "no" >&6; }
14932 fi
14933
14934
14935# look for field 'syslen' in header 'utmpx.h'
14936 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14937 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
14939$as_echo_n "checking for syslen field in utmpx.h... " >&6; }
14940 if eval \${$ossh_varname+:} false; then :
14941 $as_echo_n "(cached) " >&6
14942else
14943
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945/* end confdefs.h. */
14946#include <utmpx.h>
14947
14948_ACEOF
14949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14950 $EGREP "syslen" >/dev/null 2>&1; then :
14951 eval "$ossh_varname=yes"
14952else
14953 eval "$ossh_varname=no"
14954fi
14955rm -f conftest*
14956
14957fi
14958
14959 ossh_result=`eval 'echo $'"$ossh_varname"`
14960 if test -n "`echo $ossh_varname`"; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14962$as_echo "$ossh_result" >&6; }
14963 if test "x$ossh_result" = "xyes"; then
14964
14965$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
14966
14967 fi
14968 else
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14970$as_echo "no" >&6; }
14971 fi
14972
14973
14974# look for field 'ut_pid' in header 'utmp.h'
14975 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14976 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
14978$as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
14979 if eval \${$ossh_varname+:} false; then :
14980 $as_echo_n "(cached) " >&6
14981else
14982
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984/* end confdefs.h. */
14985#include <utmp.h>
14986
14987_ACEOF
14988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14989 $EGREP "ut_pid" >/dev/null 2>&1; then :
14990 eval "$ossh_varname=yes"
14991else
14992 eval "$ossh_varname=no"
14993fi
14994rm -f conftest*
14995
14996fi
14997
14998 ossh_result=`eval 'echo $'"$ossh_varname"`
14999 if test -n "`echo $ossh_varname`"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15001$as_echo "$ossh_result" >&6; }
15002 if test "x$ossh_result" = "xyes"; then
15003
15004$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
15005
15006 fi
15007 else
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009$as_echo "no" >&6; }
15010 fi
15011
15012
15013# look for field 'ut_type' in header 'utmp.h'
15014 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15015 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
15017$as_echo_n "checking for ut_type field in utmp.h... " >&6; }
15018 if eval \${$ossh_varname+:} false; then :
15019 $as_echo_n "(cached) " >&6
15020else
15021
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023/* end confdefs.h. */
15024#include <utmp.h>
15025
15026_ACEOF
15027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15028 $EGREP "ut_type" >/dev/null 2>&1; then :
15029 eval "$ossh_varname=yes"
15030else
15031 eval "$ossh_varname=no"
15032fi
15033rm -f conftest*
15034
15035fi
15036
15037 ossh_result=`eval 'echo $'"$ossh_varname"`
15038 if test -n "`echo $ossh_varname`"; then
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15040$as_echo "$ossh_result" >&6; }
15041 if test "x$ossh_result" = "xyes"; then
15042
15043$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
15044
15045 fi
15046 else
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15048$as_echo "no" >&6; }
15049 fi
15050
15051
15052# look for field 'ut_type' in header 'utmpx.h'
15053 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15054 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
15056$as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
15057 if eval \${$ossh_varname+:} false; then :
15058 $as_echo_n "(cached) " >&6
15059else
15060
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062/* end confdefs.h. */
15063#include <utmpx.h>
15064
15065_ACEOF
15066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15067 $EGREP "ut_type" >/dev/null 2>&1; then :
15068 eval "$ossh_varname=yes"
15069else
15070 eval "$ossh_varname=no"
15071fi
15072rm -f conftest*
15073
15074fi
15075
15076 ossh_result=`eval 'echo $'"$ossh_varname"`
15077 if test -n "`echo $ossh_varname`"; then
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15079$as_echo "$ossh_result" >&6; }
15080 if test "x$ossh_result" = "xyes"; then
15081
15082$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
15083
15084 fi
15085 else
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15087$as_echo "no" >&6; }
15088 fi
15089
15090
15091# look for field 'ut_tv' in header 'utmp.h'
15092 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15093 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
15095$as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
15096 if eval \${$ossh_varname+:} false; then :
15097 $as_echo_n "(cached) " >&6
15098else
15099
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101/* end confdefs.h. */
15102#include <utmp.h>
15103
15104_ACEOF
15105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15106 $EGREP "ut_tv" >/dev/null 2>&1; then :
15107 eval "$ossh_varname=yes"
15108else
15109 eval "$ossh_varname=no"
15110fi
15111rm -f conftest*
15112
15113fi
15114
15115 ossh_result=`eval 'echo $'"$ossh_varname"`
15116 if test -n "`echo $ossh_varname`"; then
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15118$as_echo "$ossh_result" >&6; }
15119 if test "x$ossh_result" = "xyes"; then
15120
15121$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
15122
15123 fi
15124 else
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15126$as_echo "no" >&6; }
15127 fi
15128
15129
15130# look for field 'ut_id' in header 'utmp.h'
15131 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15132 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
15134$as_echo_n "checking for ut_id field in utmp.h... " >&6; }
15135 if eval \${$ossh_varname+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137else
15138
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140/* end confdefs.h. */
15141#include <utmp.h>
15142
15143_ACEOF
15144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15145 $EGREP "ut_id" >/dev/null 2>&1; then :
15146 eval "$ossh_varname=yes"
15147else
15148 eval "$ossh_varname=no"
15149fi
15150rm -f conftest*
15151
15152fi
15153
15154 ossh_result=`eval 'echo $'"$ossh_varname"`
15155 if test -n "`echo $ossh_varname`"; then
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15157$as_echo "$ossh_result" >&6; }
15158 if test "x$ossh_result" = "xyes"; then
15159
15160$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
15161
15162 fi
15163 else
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15165$as_echo "no" >&6; }
15166 fi
15167
15168
15169# look for field 'ut_id' in header 'utmpx.h'
15170 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15171 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
15173$as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
15174 if eval \${$ossh_varname+:} false; then :
15175 $as_echo_n "(cached) " >&6
15176else
15177
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179/* end confdefs.h. */
15180#include <utmpx.h>
15181
15182_ACEOF
15183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15184 $EGREP "ut_id" >/dev/null 2>&1; then :
15185 eval "$ossh_varname=yes"
15186else
15187 eval "$ossh_varname=no"
15188fi
15189rm -f conftest*
15190
15191fi
15192
15193 ossh_result=`eval 'echo $'"$ossh_varname"`
15194 if test -n "`echo $ossh_varname`"; then
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15196$as_echo "$ossh_result" >&6; }
15197 if test "x$ossh_result" = "xyes"; then
15198
15199$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
15200
15201 fi
15202 else
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15204$as_echo "no" >&6; }
15205 fi
15206
15207
15208# look for field 'ut_addr' in header 'utmp.h'
15209 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15210 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
15212$as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
15213 if eval \${$ossh_varname+:} false; then :
15214 $as_echo_n "(cached) " >&6
15215else
15216
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h. */
15219#include <utmp.h>
15220
15221_ACEOF
15222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15223 $EGREP "ut_addr" >/dev/null 2>&1; then :
15224 eval "$ossh_varname=yes"
15225else
15226 eval "$ossh_varname=no"
15227fi
15228rm -f conftest*
15229
15230fi
15231
15232 ossh_result=`eval 'echo $'"$ossh_varname"`
15233 if test -n "`echo $ossh_varname`"; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15235$as_echo "$ossh_result" >&6; }
15236 if test "x$ossh_result" = "xyes"; then
15237
15238$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
15239
15240 fi
15241 else
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15243$as_echo "no" >&6; }
15244 fi
15245
15246
15247# look for field 'ut_addr' in header 'utmpx.h'
15248 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15249 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
15251$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
15252 if eval \${$ossh_varname+:} false; then :
15253 $as_echo_n "(cached) " >&6
15254else
15255
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257/* end confdefs.h. */
15258#include <utmpx.h>
15259
15260_ACEOF
15261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15262 $EGREP "ut_addr" >/dev/null 2>&1; then :
15263 eval "$ossh_varname=yes"
15264else
15265 eval "$ossh_varname=no"
15266fi
15267rm -f conftest*
15268
15269fi
15270
15271 ossh_result=`eval 'echo $'"$ossh_varname"`
15272 if test -n "`echo $ossh_varname`"; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15274$as_echo "$ossh_result" >&6; }
15275 if test "x$ossh_result" = "xyes"; then
15276
15277$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
15278
15279 fi
15280 else
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15282$as_echo "no" >&6; }
15283 fi
15284
15285
15286# look for field 'ut_addr_v6' in header 'utmp.h'
15287 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15288 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
15290$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
15291 if eval \${$ossh_varname+:} false; then :
15292 $as_echo_n "(cached) " >&6
15293else
15294
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296/* end confdefs.h. */
15297#include <utmp.h>
15298
15299_ACEOF
15300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15301 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
15302 eval "$ossh_varname=yes"
15303else
15304 eval "$ossh_varname=no"
15305fi
15306rm -f conftest*
15307
15308fi
15309
15310 ossh_result=`eval 'echo $'"$ossh_varname"`
15311 if test -n "`echo $ossh_varname`"; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15313$as_echo "$ossh_result" >&6; }
15314 if test "x$ossh_result" = "xyes"; then
15315
15316$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
15317
15318 fi
15319 else
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15321$as_echo "no" >&6; }
15322 fi
15323
15324
15325# look for field 'ut_addr_v6' in header 'utmpx.h'
15326 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15327 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
15329$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
15330 if eval \${$ossh_varname+:} false; then :
15331 $as_echo_n "(cached) " >&6
15332else
15333
15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15335/* end confdefs.h. */
15336#include <utmpx.h>
15337
15338_ACEOF
15339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15340 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
15341 eval "$ossh_varname=yes"
15342else
15343 eval "$ossh_varname=no"
15344fi
15345rm -f conftest*
15346
15347fi
15348
15349 ossh_result=`eval 'echo $'"$ossh_varname"`
15350 if test -n "`echo $ossh_varname`"; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15352$as_echo "$ossh_result" >&6; }
15353 if test "x$ossh_result" = "xyes"; then
15354
15355$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
15356
15357 fi
15358 else
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15360$as_echo "no" >&6; }
15361 fi
15362
15363
15364# look for field 'ut_exit' in header 'utmp.h'
15365 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15366 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
15368$as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
15369 if eval \${$ossh_varname+:} false; then :
15370 $as_echo_n "(cached) " >&6
15371else
15372
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374/* end confdefs.h. */
15375#include <utmp.h>
15376
15377_ACEOF
15378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15379 $EGREP "ut_exit" >/dev/null 2>&1; then :
15380 eval "$ossh_varname=yes"
15381else
15382 eval "$ossh_varname=no"
15383fi
15384rm -f conftest*
15385
15386fi
15387
15388 ossh_result=`eval 'echo $'"$ossh_varname"`
15389 if test -n "`echo $ossh_varname`"; then
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15391$as_echo "$ossh_result" >&6; }
15392 if test "x$ossh_result" = "xyes"; then
15393
15394$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
15395
15396 fi
15397 else
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15399$as_echo "no" >&6; }
15400 fi
15401
15402
15403# look for field 'ut_time' in header 'utmp.h'
15404 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15405 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
15407$as_echo_n "checking for ut_time field in utmp.h... " >&6; }
15408 if eval \${$ossh_varname+:} false; then :
15409 $as_echo_n "(cached) " >&6
15410else
15411
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413/* end confdefs.h. */
15414#include <utmp.h>
15415
15416_ACEOF
15417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15418 $EGREP "ut_time" >/dev/null 2>&1; then :
15419 eval "$ossh_varname=yes"
15420else
15421 eval "$ossh_varname=no"
15422fi
15423rm -f conftest*
15424
15425fi
15426
15427 ossh_result=`eval 'echo $'"$ossh_varname"`
15428 if test -n "`echo $ossh_varname`"; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15430$as_echo "$ossh_result" >&6; }
15431 if test "x$ossh_result" = "xyes"; then
15432
15433$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
15434
15435 fi
15436 else
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15438$as_echo "no" >&6; }
15439 fi
15440
15441
15442# look for field 'ut_time' in header 'utmpx.h'
15443 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15444 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
15446$as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
15447 if eval \${$ossh_varname+:} false; then :
15448 $as_echo_n "(cached) " >&6
15449else
15450
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452/* end confdefs.h. */
15453#include <utmpx.h>
15454
15455_ACEOF
15456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15457 $EGREP "ut_time" >/dev/null 2>&1; then :
15458 eval "$ossh_varname=yes"
15459else
15460 eval "$ossh_varname=no"
15461fi
15462rm -f conftest*
15463
15464fi
15465
15466 ossh_result=`eval 'echo $'"$ossh_varname"`
15467 if test -n "`echo $ossh_varname`"; then
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15469$as_echo "$ossh_result" >&6; }
15470 if test "x$ossh_result" = "xyes"; then
15471
15472$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
15473
15474 fi
15475 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477$as_echo "no" >&6; }
15478 fi
15479
15480
15481# look for field 'ut_tv' in header 'utmpx.h'
15482 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15483 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
15485$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
15486 if eval \${$ossh_varname+:} false; then :
15487 $as_echo_n "(cached) " >&6
15488else
15489
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491/* end confdefs.h. */
15492#include <utmpx.h>
15493
15494_ACEOF
15495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15496 $EGREP "ut_tv" >/dev/null 2>&1; then :
15497 eval "$ossh_varname=yes"
15498else
15499 eval "$ossh_varname=no"
15500fi
15501rm -f conftest*
15502
15503fi
15504
15505 ossh_result=`eval 'echo $'"$ossh_varname"`
15506 if test -n "`echo $ossh_varname`"; then
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15508$as_echo "$ossh_result" >&6; }
15509 if test "x$ossh_result" = "xyes"; then
15510
15511$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
15512
15513 fi
15514 else
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516$as_echo "no" >&6; }
15517 fi
15518
15519
15520ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
15521if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
15522
15523cat >>confdefs.h <<_ACEOF
15524#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15525_ACEOF
15526
15527
15528fi
15529
15530ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
15531#include <sys/types.h>
15532#include <pwd.h>
15533
15534"
15535if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
15536
15537cat >>confdefs.h <<_ACEOF
15538#define HAVE_STRUCT_PASSWD_PW_GECOS 1
15539_ACEOF
15540
15541
15542fi
15543ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
15544#include <sys/types.h>
15545#include <pwd.h>
15546
15547"
15548if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
15549
15550cat >>confdefs.h <<_ACEOF
15551#define HAVE_STRUCT_PASSWD_PW_CLASS 1
15552_ACEOF
15553
15554
15555fi
15556ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
15557#include <sys/types.h>
15558#include <pwd.h>
15559
15560"
15561if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
15562
15563cat >>confdefs.h <<_ACEOF
15564#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
15565_ACEOF
15566
15567
15568fi
15569ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
15570#include <sys/types.h>
15571#include <pwd.h>
15572
15573"
15574if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
15575
15576cat >>confdefs.h <<_ACEOF
15577#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
15578_ACEOF
15579
15580
15581fi
15582
15583
15584ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
15585#include <stdio.h>
15586#if HAVE_SYS_TYPES_H
15587# include <sys/types.h>
15588#endif
15589#include <netinet/in.h>
15590#include <arpa/nameser.h>
15591#include <resolv.h>
15592
15593"
15594if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
15595
15596else
15597
15598$as_echo "#define __res_state state" >>confdefs.h
15599
15600fi
15601
15602
15603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
15604$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
15605if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
15606 $as_echo_n "(cached) " >&6
15607else
15608
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610/* end confdefs.h. */
15611
15612#include <sys/types.h>
15613#include <sys/socket.h>
15614
15615int
15616main ()
15617{
15618 struct sockaddr_storage s; s.ss_family = 1;
15619 ;
15620 return 0;
15621}
15622_ACEOF
15623if ac_fn_c_try_compile "$LINENO"; then :
15624 ac_cv_have_ss_family_in_struct_ss="yes"
15625else
15626 ac_cv_have_ss_family_in_struct_ss="no"
15627fi
15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629
15630fi
15631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
15632$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
15633if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
15634
15635$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
15636
15637fi
15638
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
15640$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
15641if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
15642 $as_echo_n "(cached) " >&6
15643else
15644
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646/* end confdefs.h. */
15647
15648#include <sys/types.h>
15649#include <sys/socket.h>
15650
15651int
15652main ()
15653{
15654 struct sockaddr_storage s; s.__ss_family = 1;
15655 ;
15656 return 0;
15657}
15658_ACEOF
15659if ac_fn_c_try_compile "$LINENO"; then :
15660 ac_cv_have___ss_family_in_struct_ss="yes"
15661else
15662 ac_cv_have___ss_family_in_struct_ss="no"
15663
15664fi
15665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666
15667fi
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
15669$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
15670if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
15671
15672$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
15673
15674fi
15675
15676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
15677$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
15678if ${ac_cv_have_accrights_in_msghdr+:} false; then :
15679 $as_echo_n "(cached) " >&6
15680else
15681
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683/* end confdefs.h. */
15684
15685#include <sys/types.h>
15686#include <sys/socket.h>
15687#include <sys/uio.h>
15688
15689int
15690main ()
15691{
15692
15693#ifdef msg_accrights
15694#error "msg_accrights is a macro"
15695exit(1);
15696#endif
15697struct msghdr m;
15698m.msg_accrights = 0;
15699exit(0);
15700
15701 ;
15702 return 0;
15703}
15704_ACEOF
15705if ac_fn_c_try_compile "$LINENO"; then :
15706 ac_cv_have_accrights_in_msghdr="yes"
15707else
15708 ac_cv_have_accrights_in_msghdr="no"
15709
15710fi
15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712
15713fi
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
15715$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
15716if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
15717
15718$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
15719
15720fi
15721
15722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
15723$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
15724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725/* end confdefs.h. */
15726
15727#include <sys/param.h>
15728#include <sys/stat.h>
15729#ifdef HAVE_SYS_TIME_H
15730# include <sys/time.h>
15731#endif
15732#ifdef HAVE_SYS_MOUNT_H
15733#include <sys/mount.h>
15734#endif
15735#ifdef HAVE_SYS_STATVFS_H
15736#include <sys/statvfs.h>
15737#endif
15738
15739int
15740main ()
15741{
15742 struct statvfs s; s.f_fsid = 0;
15743 ;
15744 return 0;
15745}
15746_ACEOF
15747if ac_fn_c_try_compile "$LINENO"; then :
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15749$as_echo "yes" >&6; }
15750else
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15752$as_echo "no" >&6; }
15753
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
15755$as_echo_n "checking if fsid_t has member val... " >&6; }
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757/* end confdefs.h. */
15758
15759#include <sys/types.h>
15760#include <sys/statvfs.h>
15761
15762int
15763main ()
15764{
15765 fsid_t t; t.val[0] = 0;
15766 ;
15767 return 0;
15768}
15769_ACEOF
15770if ac_fn_c_try_compile "$LINENO"; then :
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15772$as_echo "yes" >&6; }
15773
15774$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
15775
15776else
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778$as_echo "no" >&6; }
15779fi
15780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
15783$as_echo_n "checking if f_fsid has member __val... " >&6; }
15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785/* end confdefs.h. */
15786
15787#include <sys/types.h>
15788#include <sys/statvfs.h>
15789
15790int
15791main ()
15792{
15793 fsid_t t; t.__val[0] = 0;
15794 ;
15795 return 0;
15796}
15797_ACEOF
15798if ac_fn_c_try_compile "$LINENO"; then :
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15800$as_echo "yes" >&6; }
15801
15802$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
15803
15804else
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806$as_echo "no" >&6; }
15807fi
15808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809
15810fi
15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812
15813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
15814$as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
15815if ${ac_cv_have_control_in_msghdr+:} false; then :
15816 $as_echo_n "(cached) " >&6
15817else
15818
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820/* end confdefs.h. */
15821
15822#include <sys/types.h>
15823#include <sys/socket.h>
15824#include <sys/uio.h>
15825
15826int
15827main ()
15828{
15829
15830#ifdef msg_control
15831#error "msg_control is a macro"
15832exit(1);
15833#endif
15834struct msghdr m;
15835m.msg_control = 0;
15836exit(0);
15837
15838 ;
15839 return 0;
15840}
15841_ACEOF
15842if ac_fn_c_try_compile "$LINENO"; then :
15843 ac_cv_have_control_in_msghdr="yes"
15844else
15845 ac_cv_have_control_in_msghdr="no"
15846
15847fi
15848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849
15850fi
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
15852$as_echo "$ac_cv_have_control_in_msghdr" >&6; }
15853if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
15854
15855$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
15856
15857fi
15858
15859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
15860$as_echo_n "checking if libc defines __progname... " >&6; }
15861if ${ac_cv_libc_defines___progname+:} false; then :
15862 $as_echo_n "(cached) " >&6
15863else
15864
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866/* end confdefs.h. */
15867
15868int
15869main ()
15870{
15871 extern char *__progname; printf("%s", __progname);
15872 ;
15873 return 0;
15874}
15875_ACEOF
15876if ac_fn_c_try_link "$LINENO"; then :
15877 ac_cv_libc_defines___progname="yes"
15878else
15879 ac_cv_libc_defines___progname="no"
15880
15881fi
15882rm -f core conftest.err conftest.$ac_objext \
15883 conftest$ac_exeext conftest.$ac_ext
15884
15885fi
15886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
15887$as_echo "$ac_cv_libc_defines___progname" >&6; }
15888if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
15889
15890$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
15891
15892fi
15893
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
15895$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
15896if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
15897 $as_echo_n "(cached) " >&6
15898else
15899
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h. */
15902 #include <stdio.h>
15903int
15904main ()
15905{
15906 printf("%s", __FUNCTION__);
15907 ;
15908 return 0;
15909}
15910_ACEOF
15911if ac_fn_c_try_link "$LINENO"; then :
15912 ac_cv_cc_implements___FUNCTION__="yes"
15913else
15914 ac_cv_cc_implements___FUNCTION__="no"
15915
15916fi
15917rm -f core conftest.err conftest.$ac_objext \
15918 conftest$ac_exeext conftest.$ac_ext
15919
15920fi
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
15922$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
15923if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
15924
15925$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
15926
15927fi
15928
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
15930$as_echo_n "checking whether $CC implements __func__... " >&6; }
15931if ${ac_cv_cc_implements___func__+:} false; then :
15932 $as_echo_n "(cached) " >&6
15933else
15934
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936/* end confdefs.h. */
15937 #include <stdio.h>
15938int
15939main ()
15940{
15941 printf("%s", __func__);
15942 ;
15943 return 0;
15944}
15945_ACEOF
15946if ac_fn_c_try_link "$LINENO"; then :
15947 ac_cv_cc_implements___func__="yes"
15948else
15949 ac_cv_cc_implements___func__="no"
15950
15951fi
15952rm -f core conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
15954
15955fi
15956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
15957$as_echo "$ac_cv_cc_implements___func__" >&6; }
15958if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
15959
15960$as_echo "#define HAVE___func__ 1" >>confdefs.h
15961
15962fi
15963
15964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
15965$as_echo_n "checking whether va_copy exists... " >&6; }
15966if ${ac_cv_have_va_copy+:} false; then :
15967 $as_echo_n "(cached) " >&6
15968else
15969
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971/* end confdefs.h. */
15972
15973#include <stdarg.h>
15974va_list x,y;
15975
15976int
15977main ()
15978{
15979 va_copy(x,y);
15980 ;
15981 return 0;
15982}
15983_ACEOF
15984if ac_fn_c_try_link "$LINENO"; then :
15985 ac_cv_have_va_copy="yes"
15986else
15987 ac_cv_have_va_copy="no"
15988
15989fi
15990rm -f core conftest.err conftest.$ac_objext \
15991 conftest$ac_exeext conftest.$ac_ext
15992
15993fi
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
15995$as_echo "$ac_cv_have_va_copy" >&6; }
15996if test "x$ac_cv_have_va_copy" = "xyes" ; then
15997
15998$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
15999
16000fi
16001
16002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
16003$as_echo_n "checking whether __va_copy exists... " >&6; }
16004if ${ac_cv_have___va_copy+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006else
16007
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009/* end confdefs.h. */
16010
16011#include <stdarg.h>
16012va_list x,y;
16013
16014int
16015main ()
16016{
16017 __va_copy(x,y);
16018 ;
16019 return 0;
16020}
16021_ACEOF
16022if ac_fn_c_try_link "$LINENO"; then :
16023 ac_cv_have___va_copy="yes"
16024else
16025 ac_cv_have___va_copy="no"
16026
16027fi
16028rm -f core conftest.err conftest.$ac_objext \
16029 conftest$ac_exeext conftest.$ac_ext
16030
16031fi
16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
16033$as_echo "$ac_cv_have___va_copy" >&6; }
16034if test "x$ac_cv_have___va_copy" = "xyes" ; then
16035
16036$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
16037
16038fi
16039
16040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
16041$as_echo_n "checking whether getopt has optreset support... " >&6; }
16042if ${ac_cv_have_getopt_optreset+:} false; then :
16043 $as_echo_n "(cached) " >&6
16044else
16045
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047/* end confdefs.h. */
16048 #include <getopt.h>
16049int
16050main ()
16051{
16052 extern int optreset; optreset = 0;
16053 ;
16054 return 0;
16055}
16056_ACEOF
16057if ac_fn_c_try_link "$LINENO"; then :
16058 ac_cv_have_getopt_optreset="yes"
16059else
16060 ac_cv_have_getopt_optreset="no"
16061
16062fi
16063rm -f core conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16065
16066fi
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
16068$as_echo "$ac_cv_have_getopt_optreset" >&6; }
16069if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
16070
16071$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
16072
16073fi
16074
16075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
16076$as_echo_n "checking if libc defines sys_errlist... " >&6; }
16077if ${ac_cv_libc_defines_sys_errlist+:} false; then :
16078 $as_echo_n "(cached) " >&6
16079else
16080
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082/* end confdefs.h. */
16083
16084int
16085main ()
16086{
16087 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
16088 ;
16089 return 0;
16090}
16091_ACEOF
16092if ac_fn_c_try_link "$LINENO"; then :
16093 ac_cv_libc_defines_sys_errlist="yes"
16094else
16095 ac_cv_libc_defines_sys_errlist="no"
16096
16097fi
16098rm -f core conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16100
16101fi
16102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
16103$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
16104if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
16105
16106$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
16107
16108fi
16109
16110
16111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
16112$as_echo_n "checking if libc defines sys_nerr... " >&6; }
16113if ${ac_cv_libc_defines_sys_nerr+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115else
16116
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118/* end confdefs.h. */
16119
16120int
16121main ()
16122{
16123 extern int sys_nerr; printf("%i", sys_nerr);
16124 ;
16125 return 0;
16126}
16127_ACEOF
16128if ac_fn_c_try_link "$LINENO"; then :
16129 ac_cv_libc_defines_sys_nerr="yes"
16130else
16131 ac_cv_libc_defines_sys_nerr="no"
16132
16133fi
16134rm -f core conftest.err conftest.$ac_objext \
16135 conftest$ac_exeext conftest.$ac_ext
16136
16137fi
16138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
16139$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
16140if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
16141
16142$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
16143
16144fi
16145
16146# Check libraries needed by DNS fingerprint support
16147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
16148$as_echo_n "checking for library containing getrrsetbyname... " >&6; }
16149if ${ac_cv_search_getrrsetbyname+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151else
16152 ac_func_search_save_LIBS=$LIBS
16153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154/* end confdefs.h. */
16155
16156/* Override any GCC internal prototype to avoid an error.
16157 Use char because int might match the return type of a GCC
16158 builtin and then its argument prototype would still apply. */
16159#ifdef __cplusplus
16160extern "C"
16161#endif
16162char getrrsetbyname ();
16163int
16164main ()
16165{
16166return getrrsetbyname ();
16167 ;
16168 return 0;
16169}
16170_ACEOF
16171for ac_lib in '' resolv; do
16172 if test -z "$ac_lib"; then
16173 ac_res="none required"
16174 else
16175 ac_res=-l$ac_lib
16176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16177 fi
16178 if ac_fn_c_try_link "$LINENO"; then :
16179 ac_cv_search_getrrsetbyname=$ac_res
16180fi
16181rm -f core conftest.err conftest.$ac_objext \
16182 conftest$ac_exeext
16183 if ${ac_cv_search_getrrsetbyname+:} false; then :
16184 break
16185fi
16186done
16187if ${ac_cv_search_getrrsetbyname+:} false; then :
16188
16189else
16190 ac_cv_search_getrrsetbyname=no
16191fi
16192rm conftest.$ac_ext
16193LIBS=$ac_func_search_save_LIBS
16194fi
16195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
16196$as_echo "$ac_cv_search_getrrsetbyname" >&6; }
16197ac_res=$ac_cv_search_getrrsetbyname
16198if test "$ac_res" != no; then :
16199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16200
16201$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
16202
16203else
16204
16205 # Needed by our getrrsetbyname()
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
16207$as_echo_n "checking for library containing res_query... " >&6; }
16208if ${ac_cv_search_res_query+:} false; then :
16209 $as_echo_n "(cached) " >&6
16210else
16211 ac_func_search_save_LIBS=$LIBS
16212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213/* end confdefs.h. */
16214
16215/* Override any GCC internal prototype to avoid an error.
16216 Use char because int might match the return type of a GCC
16217 builtin and then its argument prototype would still apply. */
16218#ifdef __cplusplus
16219extern "C"
16220#endif
16221char res_query ();
16222int
16223main ()
16224{
16225return res_query ();
16226 ;
16227 return 0;
16228}
16229_ACEOF
16230for ac_lib in '' resolv; do
16231 if test -z "$ac_lib"; then
16232 ac_res="none required"
16233 else
16234 ac_res=-l$ac_lib
16235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16236 fi
16237 if ac_fn_c_try_link "$LINENO"; then :
16238 ac_cv_search_res_query=$ac_res
16239fi
16240rm -f core conftest.err conftest.$ac_objext \
16241 conftest$ac_exeext
16242 if ${ac_cv_search_res_query+:} false; then :
16243 break
16244fi
16245done
16246if ${ac_cv_search_res_query+:} false; then :
16247
16248else
16249 ac_cv_search_res_query=no
16250fi
16251rm conftest.$ac_ext
16252LIBS=$ac_func_search_save_LIBS
16253fi
16254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
16255$as_echo "$ac_cv_search_res_query" >&6; }
16256ac_res=$ac_cv_search_res_query
16257if test "$ac_res" != no; then :
16258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16259
16260fi
16261
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
16263$as_echo_n "checking for library containing dn_expand... " >&6; }
16264if ${ac_cv_search_dn_expand+:} false; then :
16265 $as_echo_n "(cached) " >&6
16266else
16267 ac_func_search_save_LIBS=$LIBS
16268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269/* end confdefs.h. */
16270
16271/* Override any GCC internal prototype to avoid an error.
16272 Use char because int might match the return type of a GCC
16273 builtin and then its argument prototype would still apply. */
16274#ifdef __cplusplus
16275extern "C"
16276#endif
16277char dn_expand ();
16278int
16279main ()
16280{
16281return dn_expand ();
16282 ;
16283 return 0;
16284}
16285_ACEOF
16286for ac_lib in '' resolv; do
16287 if test -z "$ac_lib"; then
16288 ac_res="none required"
16289 else
16290 ac_res=-l$ac_lib
16291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16292 fi
16293 if ac_fn_c_try_link "$LINENO"; then :
16294 ac_cv_search_dn_expand=$ac_res
16295fi
16296rm -f core conftest.err conftest.$ac_objext \
16297 conftest$ac_exeext
16298 if ${ac_cv_search_dn_expand+:} false; then :
16299 break
16300fi
16301done
16302if ${ac_cv_search_dn_expand+:} false; then :
16303
16304else
16305 ac_cv_search_dn_expand=no
16306fi
16307rm conftest.$ac_ext
16308LIBS=$ac_func_search_save_LIBS
16309fi
16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
16311$as_echo "$ac_cv_search_dn_expand" >&6; }
16312ac_res=$ac_cv_search_dn_expand
16313if test "$ac_res" != no; then :
16314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16315
16316fi
16317
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
16319$as_echo_n "checking if res_query will link... " >&6; }
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321/* end confdefs.h. */
16322
16323#include <sys/types.h>
16324#include <netinet/in.h>
16325#include <arpa/nameser.h>
16326#include <netdb.h>
16327#include <resolv.h>
16328
16329int
16330main ()
16331{
16332
16333 res_query (0, 0, 0, 0, 0);
16334
16335 ;
16336 return 0;
16337}
16338_ACEOF
16339if ac_fn_c_try_link "$LINENO"; then :
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16341$as_echo "yes" >&6; }
16342else
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16344$as_echo "no" >&6; }
16345 saved_LIBS="$LIBS"
16346 LIBS="$LIBS -lresolv"
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
16348$as_echo_n "checking for res_query in -lresolv... " >&6; }
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h. */
16351
16352#include <sys/types.h>
16353#include <netinet/in.h>
16354#include <arpa/nameser.h>
16355#include <netdb.h>
16356#include <resolv.h>
16357
16358int
16359main ()
16360{
16361
16362 res_query (0, 0, 0, 0, 0);
16363
16364 ;
16365 return 0;
16366}
16367_ACEOF
16368if ac_fn_c_try_link "$LINENO"; then :
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16370$as_echo "yes" >&6; }
16371else
16372 LIBS="$saved_LIBS"
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16374$as_echo "no" >&6; }
16375fi
16376rm -f core conftest.err conftest.$ac_objext \
16377 conftest$ac_exeext conftest.$ac_ext
16378
16379fi
16380rm -f core conftest.err conftest.$ac_objext \
16381 conftest$ac_exeext conftest.$ac_ext
16382 for ac_func in _getshort _getlong
16383do :
16384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16386if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16387 cat >>confdefs.h <<_ACEOF
16388#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16389_ACEOF
16390
16391fi
16392done
16393
16394 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
16395 #include <arpa/nameser.h>
16396"
16397if test "x$ac_cv_have_decl__getshort" = xyes; then :
16398 ac_have_decl=1
16399else
16400 ac_have_decl=0
16401fi
16402
16403cat >>confdefs.h <<_ACEOF
16404#define HAVE_DECL__GETSHORT $ac_have_decl
16405_ACEOF
16406ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
16407 #include <arpa/nameser.h>
16408"
16409if test "x$ac_cv_have_decl__getlong" = xyes; then :
16410 ac_have_decl=1
16411else
16412 ac_have_decl=0
16413fi
16414
16415cat >>confdefs.h <<_ACEOF
16416#define HAVE_DECL__GETLONG $ac_have_decl
16417_ACEOF
16418
16419 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
16420"
16421if test "x$ac_cv_member_HEADER_ad" = xyes; then :
16422
16423$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
16424
16425fi
16426
16427
16428fi
16429
16430
16431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
16432$as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
16433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434/* end confdefs.h. */
16435
16436#include <stdio.h>
16437#if HAVE_SYS_TYPES_H
16438# include <sys/types.h>
16439#endif
16440#include <netinet/in.h>
16441#include <arpa/nameser.h>
16442#include <resolv.h>
16443extern struct __res_state _res;
16444
16445int
16446main ()
16447{
16448
16449 ;
16450 return 0;
16451}
16452_ACEOF
16453if ac_fn_c_try_link "$LINENO"; then :
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16455$as_echo "yes" >&6; }
16456
16457$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
16458
16459
16460else
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462$as_echo "no" >&6; }
16463
16464fi
16465rm -f core conftest.err conftest.$ac_objext \
16466 conftest$ac_exeext conftest.$ac_ext
16467
16468# Check whether user wants SELinux support
16469SELINUX_MSG="no"
16470LIBSELINUX=""
16471
16472# Check whether --with-selinux was given.
16473if test "${with_selinux+set}" = set; then :
16474 withval=$with_selinux; if test "x$withval" != "xno" ; then
16475 save_LIBS="$LIBS"
16476
16477$as_echo "#define WITH_SELINUX 1" >>confdefs.h
16478
16479 SELINUX_MSG="yes"
16480 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
16481if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
16482
16483else
16484 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
16485fi
16486
16487
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
16489$as_echo_n "checking for setexeccon in -lselinux... " >&6; }
16490if ${ac_cv_lib_selinux_setexeccon+:} false; then :
16491 $as_echo_n "(cached) " >&6
16492else
16493 ac_check_lib_save_LIBS=$LIBS
16494LIBS="-lselinux $LIBS"
16495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496/* end confdefs.h. */
16497
16498/* Override any GCC internal prototype to avoid an error.
16499 Use char because int might match the return type of a GCC
16500 builtin and then its argument prototype would still apply. */
16501#ifdef __cplusplus
16502extern "C"
16503#endif
16504char setexeccon ();
16505int
16506main ()
16507{
16508return setexeccon ();
16509 ;
16510 return 0;
16511}
16512_ACEOF
16513if ac_fn_c_try_link "$LINENO"; then :
16514 ac_cv_lib_selinux_setexeccon=yes
16515else
16516 ac_cv_lib_selinux_setexeccon=no
16517fi
16518rm -f core conftest.err conftest.$ac_objext \
16519 conftest$ac_exeext conftest.$ac_ext
16520LIBS=$ac_check_lib_save_LIBS
16521fi
16522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
16523$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
16524if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
16525 LIBSELINUX="-lselinux"
16526 LIBS="$LIBS -lselinux"
16527
16528else
16529 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
16530fi
16531
16532 SSHLIBS="$SSHLIBS $LIBSELINUX"
16533 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
16534 for ac_func in getseuserbyname get_default_context_with_level
16535do :
16536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16537ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16538if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16539 cat >>confdefs.h <<_ACEOF
16540#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16541_ACEOF
16542
16543fi
16544done
16545
16546 LIBS="$save_LIBS"
16547 fi
16548
16549fi
16550
16551
16552
16553
16554# Check whether user wants Kerberos 5 support
16555KRB5_MSG="no"
16556
16557# Check whether --with-kerberos5 was given.
16558if test "${with_kerberos5+set}" = set; then :
16559 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
16560 if test "x$withval" = "xyes" ; then
16561 KRB5ROOT="/usr/local"
16562 else
16563 KRB5ROOT=${withval}
16564 fi
16565
16566
16567$as_echo "#define KRB5 1" >>confdefs.h
16568
16569 KRB5_MSG="yes"
16570
16571 # Extract the first word of "krb5-config", so it can be a program name with args.
16572set dummy krb5-config; ac_word=$2
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16574$as_echo_n "checking for $ac_word... " >&6; }
16575if ${ac_cv_path_KRB5CONF+:} false; then :
16576 $as_echo_n "(cached) " >&6
16577else
16578 case $KRB5CONF in
16579 [\\/]* | ?:[\\/]*)
16580 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
16581 ;;
16582 *)
16583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16584as_dummy="$KRB5ROOT/bin:$PATH"
16585for as_dir in $as_dummy
16586do
16587 IFS=$as_save_IFS
16588 test -z "$as_dir" && as_dir=.
16589 for ac_exec_ext in '' $ac_executable_extensions; do
16590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16591 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
16592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16593 break 2
16594 fi
16595done
16596 done
16597IFS=$as_save_IFS
16598
16599 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
16600 ;;
16601esac
16602fi
16603KRB5CONF=$ac_cv_path_KRB5CONF
16604if test -n "$KRB5CONF"; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
16606$as_echo "$KRB5CONF" >&6; }
16607else
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609$as_echo "no" >&6; }
16610fi
16611
16612
16613 if test -x $KRB5CONF ; then
16614 K5CFLAGS="`$KRB5CONF --cflags`"
16615 K5LIBS="`$KRB5CONF --libs`"
16616 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
16617
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
16619$as_echo_n "checking for gssapi support... " >&6; }
16620 if $KRB5CONF | grep gssapi >/dev/null ; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622$as_echo "yes" >&6; }
16623
16624$as_echo "#define GSSAPI 1" >>confdefs.h
16625
16626 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
16627 GSSLIBS="`$KRB5CONF --libs gssapi`"
16628 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
16629 else
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16631$as_echo "no" >&6; }
16632 fi
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16634$as_echo_n "checking whether we are using Heimdal... " >&6; }
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636/* end confdefs.h. */
16637 #include <krb5.h>
16638
16639int
16640main ()
16641{
16642 char *tmp = heimdal_version;
16643 ;
16644 return 0;
16645}
16646_ACEOF
16647if ac_fn_c_try_compile "$LINENO"; then :
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16649$as_echo "yes" >&6; }
16650
16651$as_echo "#define HEIMDAL 1" >>confdefs.h
16652
16653else
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16655$as_echo "no" >&6; }
16656
16657fi
16658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 else
16660 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
16661 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16663$as_echo_n "checking whether we are using Heimdal... " >&6; }
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665/* end confdefs.h. */
16666 #include <krb5.h>
16667
16668int
16669main ()
16670{
16671 char *tmp = heimdal_version;
16672 ;
16673 return 0;
16674}
16675_ACEOF
16676if ac_fn_c_try_compile "$LINENO"; then :
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16678$as_echo "yes" >&6; }
16679 $as_echo "#define HEIMDAL 1" >>confdefs.h
16680
16681 K5LIBS="-lkrb5"
16682 K5LIBS="$K5LIBS -lcom_err -lasn1"
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
16684$as_echo_n "checking for net_write in -lroken... " >&6; }
16685if ${ac_cv_lib_roken_net_write+:} false; then :
16686 $as_echo_n "(cached) " >&6
16687else
16688 ac_check_lib_save_LIBS=$LIBS
16689LIBS="-lroken $LIBS"
16690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691/* end confdefs.h. */
16692
16693/* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
16696#ifdef __cplusplus
16697extern "C"
16698#endif
16699char net_write ();
16700int
16701main ()
16702{
16703return net_write ();
16704 ;
16705 return 0;
16706}
16707_ACEOF
16708if ac_fn_c_try_link "$LINENO"; then :
16709 ac_cv_lib_roken_net_write=yes
16710else
16711 ac_cv_lib_roken_net_write=no
16712fi
16713rm -f core conftest.err conftest.$ac_objext \
16714 conftest$ac_exeext conftest.$ac_ext
16715LIBS=$ac_check_lib_save_LIBS
16716fi
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
16718$as_echo "$ac_cv_lib_roken_net_write" >&6; }
16719if test "x$ac_cv_lib_roken_net_write" = xyes; then :
16720 K5LIBS="$K5LIBS -lroken"
16721fi
16722
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16724$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16725if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
16726 $as_echo_n "(cached) " >&6
16727else
16728 ac_check_lib_save_LIBS=$LIBS
16729LIBS="-ldes $LIBS"
16730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731/* end confdefs.h. */
16732
16733/* Override any GCC internal prototype to avoid an error.
16734 Use char because int might match the return type of a GCC
16735 builtin and then its argument prototype would still apply. */
16736#ifdef __cplusplus
16737extern "C"
16738#endif
16739char des_cbc_encrypt ();
16740int
16741main ()
16742{
16743return des_cbc_encrypt ();
16744 ;
16745 return 0;
16746}
16747_ACEOF
16748if ac_fn_c_try_link "$LINENO"; then :
16749 ac_cv_lib_des_des_cbc_encrypt=yes
16750else
16751 ac_cv_lib_des_des_cbc_encrypt=no
16752fi
16753rm -f core conftest.err conftest.$ac_objext \
16754 conftest$ac_exeext conftest.$ac_ext
16755LIBS=$ac_check_lib_save_LIBS
16756fi
16757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16758$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16759if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
16760 K5LIBS="$K5LIBS -ldes"
16761fi
16762
16763
16764else
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16766$as_echo "no" >&6; }
16767 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
16768
16769
16770fi
16771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
16773$as_echo_n "checking for library containing dn_expand... " >&6; }
16774if ${ac_cv_search_dn_expand+:} false; then :
16775 $as_echo_n "(cached) " >&6
16776else
16777 ac_func_search_save_LIBS=$LIBS
16778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779/* end confdefs.h. */
16780
16781/* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16784#ifdef __cplusplus
16785extern "C"
16786#endif
16787char dn_expand ();
16788int
16789main ()
16790{
16791return dn_expand ();
16792 ;
16793 return 0;
16794}
16795_ACEOF
16796for ac_lib in '' resolv; do
16797 if test -z "$ac_lib"; then
16798 ac_res="none required"
16799 else
16800 ac_res=-l$ac_lib
16801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16802 fi
16803 if ac_fn_c_try_link "$LINENO"; then :
16804 ac_cv_search_dn_expand=$ac_res
16805fi
16806rm -f core conftest.err conftest.$ac_objext \
16807 conftest$ac_exeext
16808 if ${ac_cv_search_dn_expand+:} false; then :
16809 break
16810fi
16811done
16812if ${ac_cv_search_dn_expand+:} false; then :
16813
16814else
16815 ac_cv_search_dn_expand=no
16816fi
16817rm conftest.$ac_ext
16818LIBS=$ac_func_search_save_LIBS
16819fi
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
16821$as_echo "$ac_cv_search_dn_expand" >&6; }
16822ac_res=$ac_cv_search_dn_expand
16823if test "$ac_res" != no; then :
16824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16825
16826fi
16827
16828
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
16830$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
16831if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
16832 $as_echo_n "(cached) " >&6
16833else
16834 ac_check_lib_save_LIBS=$LIBS
16835LIBS="-lgssapi_krb5 $LIBS"
16836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837/* end confdefs.h. */
16838
16839/* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16842#ifdef __cplusplus
16843extern "C"
16844#endif
16845char gss_init_sec_context ();
16846int
16847main ()
16848{
16849return gss_init_sec_context ();
16850 ;
16851 return 0;
16852}
16853_ACEOF
16854if ac_fn_c_try_link "$LINENO"; then :
16855 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
16856else
16857 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
16858fi
16859rm -f core conftest.err conftest.$ac_objext \
16860 conftest$ac_exeext conftest.$ac_ext
16861LIBS=$ac_check_lib_save_LIBS
16862fi
16863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
16864$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
16865if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
16866 $as_echo "#define GSSAPI 1" >>confdefs.h
16867
16868 GSSLIBS="-lgssapi_krb5"
16869else
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
16871$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
16872if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
16873 $as_echo_n "(cached) " >&6
16874else
16875 ac_check_lib_save_LIBS=$LIBS
16876LIBS="-lgssapi $LIBS"
16877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878/* end confdefs.h. */
16879
16880/* Override any GCC internal prototype to avoid an error.
16881 Use char because int might match the return type of a GCC
16882 builtin and then its argument prototype would still apply. */
16883#ifdef __cplusplus
16884extern "C"
16885#endif
16886char gss_init_sec_context ();
16887int
16888main ()
16889{
16890return gss_init_sec_context ();
16891 ;
16892 return 0;
16893}
16894_ACEOF
16895if ac_fn_c_try_link "$LINENO"; then :
16896 ac_cv_lib_gssapi_gss_init_sec_context=yes
16897else
16898 ac_cv_lib_gssapi_gss_init_sec_context=no
16899fi
16900rm -f core conftest.err conftest.$ac_objext \
16901 conftest$ac_exeext conftest.$ac_ext
16902LIBS=$ac_check_lib_save_LIBS
16903fi
16904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
16905$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
16906if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
16907 $as_echo "#define GSSAPI 1" >>confdefs.h
16908
16909 GSSLIBS="-lgssapi"
16910else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
16912$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
16913if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
16914 $as_echo_n "(cached) " >&6
16915else
16916 ac_check_lib_save_LIBS=$LIBS
16917LIBS="-lgss $LIBS"
16918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919/* end confdefs.h. */
16920
16921/* Override any GCC internal prototype to avoid an error.
16922 Use char because int might match the return type of a GCC
16923 builtin and then its argument prototype would still apply. */
16924#ifdef __cplusplus
16925extern "C"
16926#endif
16927char gss_init_sec_context ();
16928int
16929main ()
16930{
16931return gss_init_sec_context ();
16932 ;
16933 return 0;
16934}
16935_ACEOF
16936if ac_fn_c_try_link "$LINENO"; then :
16937 ac_cv_lib_gss_gss_init_sec_context=yes
16938else
16939 ac_cv_lib_gss_gss_init_sec_context=no
16940fi
16941rm -f core conftest.err conftest.$ac_objext \
16942 conftest$ac_exeext conftest.$ac_ext
16943LIBS=$ac_check_lib_save_LIBS
16944fi
16945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
16946$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
16947if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
16948 $as_echo "#define GSSAPI 1" >>confdefs.h
16949
16950 GSSLIBS="-lgss"
16951else
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
16953$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
16954fi
16955
16956
16957fi
16958
16959
16960fi
16961
16962
16963 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
16964if test "x$ac_cv_header_gssapi_h" = xyes; then :
16965
16966else
16967 unset ac_cv_header_gssapi_h
16968 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
16969 for ac_header in gssapi.h
16970do :
16971 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
16972if test "x$ac_cv_header_gssapi_h" = xyes; then :
16973 cat >>confdefs.h <<_ACEOF
16974#define HAVE_GSSAPI_H 1
16975_ACEOF
16976
16977else
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
16979$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
16980
16981fi
16982
16983done
16984
16985
16986
16987fi
16988
16989
16990
16991 oldCPP="$CPPFLAGS"
16992 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
16993 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
16994if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
16995
16996else
16997 CPPFLAGS="$oldCPP"
16998fi
16999
17000
17001
17002 fi
17003 if test ! -z "$need_dash_r" ; then
17004 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
17005 fi
17006 if test ! -z "$blibpath" ; then
17007 blibpath="$blibpath:${KRB5ROOT}/lib"
17008 fi
17009
17010 for ac_header in gssapi.h gssapi/gssapi.h
17011do :
17012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17013ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17014if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17015 cat >>confdefs.h <<_ACEOF
17016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17017_ACEOF
17018
17019fi
17020
17021done
17022
17023 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
17024do :
17025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17026ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17027if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17028 cat >>confdefs.h <<_ACEOF
17029#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17030_ACEOF
17031
17032fi
17033
17034done
17035
17036 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
17037do :
17038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17039ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17040if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17041 cat >>confdefs.h <<_ACEOF
17042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17043_ACEOF
17044
17045fi
17046
17047done
17048
17049
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
17051$as_echo_n "checking for library containing k_hasafs... " >&6; }
17052if ${ac_cv_search_k_hasafs+:} false; then :
17053 $as_echo_n "(cached) " >&6
17054else
17055 ac_func_search_save_LIBS=$LIBS
17056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057/* end confdefs.h. */
17058
17059/* Override any GCC internal prototype to avoid an error.
17060 Use char because int might match the return type of a GCC
17061 builtin and then its argument prototype would still apply. */
17062#ifdef __cplusplus
17063extern "C"
17064#endif
17065char k_hasafs ();
17066int
17067main ()
17068{
17069return k_hasafs ();
17070 ;
17071 return 0;
17072}
17073_ACEOF
17074for ac_lib in '' kafs; do
17075 if test -z "$ac_lib"; then
17076 ac_res="none required"
17077 else
17078 ac_res=-l$ac_lib
17079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17080 fi
17081 if ac_fn_c_try_link "$LINENO"; then :
17082 ac_cv_search_k_hasafs=$ac_res
17083fi
17084rm -f core conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext
17086 if ${ac_cv_search_k_hasafs+:} false; then :
17087 break
17088fi
17089done
17090if ${ac_cv_search_k_hasafs+:} false; then :
17091
17092else
17093 ac_cv_search_k_hasafs=no
17094fi
17095rm conftest.$ac_ext
17096LIBS=$ac_func_search_save_LIBS
17097fi
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
17099$as_echo "$ac_cv_search_k_hasafs" >&6; }
17100ac_res=$ac_cv_search_k_hasafs
17101if test "$ac_res" != no; then :
17102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17103
17104$as_echo "#define USE_AFS 1" >>confdefs.h
17105
17106fi
17107
17108
17109 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
17110#ifdef HAVE_GSSAPI_H
17111# include <gssapi.h>
17112#elif defined(HAVE_GSSAPI_GSSAPI_H)
17113# include <gssapi/gssapi.h>
17114#endif
17115
17116#ifdef HAVE_GSSAPI_GENERIC_H
17117# include <gssapi_generic.h>
17118#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
17119# include <gssapi/gssapi_generic.h>
17120#endif
17121
17122"
17123if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
17124 ac_have_decl=1
17125else
17126 ac_have_decl=0
17127fi
17128
17129cat >>confdefs.h <<_ACEOF
17130#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
17131_ACEOF
17132
17133 saved_LIBS="$LIBS"
17134 LIBS="$LIBS $K5LIBS"
17135 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
17136do :
17137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17138ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17139if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17140 cat >>confdefs.h <<_ACEOF
17141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17142_ACEOF
17143
17144fi
17145done
17146
17147 LIBS="$saved_LIBS"
17148
17149 fi
17150
17151
17152fi
17153
17154
17155
17156
17157# Looking for programs, paths and files
17158
17159PRIVSEP_PATH=/var/empty
17160
17161# Check whether --with-privsep-path was given.
17162if test "${with_privsep_path+set}" = set; then :
17163 withval=$with_privsep_path;
17164 if test -n "$withval" && test "x$withval" != "xno" && \
17165 test "x${withval}" != "xyes"; then
17166 PRIVSEP_PATH=$withval
17167 fi
17168
17169
17170fi
17171
17172
17173
17174
17175# Check whether --with-xauth was given.
17176if test "${with_xauth+set}" = set; then :
17177 withval=$with_xauth;
17178 if test -n "$withval" && test "x$withval" != "xno" && \
17179 test "x${withval}" != "xyes"; then
17180 xauth_path=$withval
17181 fi
17182
17183else
17184
17185 TestPath="$PATH"
17186 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
17187 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
17188 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
17189 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
17190 # Extract the first word of "xauth", so it can be a program name with args.
17191set dummy xauth; ac_word=$2
17192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17193$as_echo_n "checking for $ac_word... " >&6; }
17194if ${ac_cv_path_xauth_path+:} false; then :
17195 $as_echo_n "(cached) " >&6
17196else
17197 case $xauth_path in
17198 [\\/]* | ?:[\\/]*)
17199 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
17200 ;;
17201 *)
17202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17203for as_dir in $TestPath
17204do
17205 IFS=$as_save_IFS
17206 test -z "$as_dir" && as_dir=.
17207 for ac_exec_ext in '' $ac_executable_extensions; do
17208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17209 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
17210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17211 break 2
17212 fi
17213done
17214 done
17215IFS=$as_save_IFS
17216
17217 ;;
17218esac
17219fi
17220xauth_path=$ac_cv_path_xauth_path
17221if test -n "$xauth_path"; then
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
17223$as_echo "$xauth_path" >&6; }
17224else
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17226$as_echo "no" >&6; }
17227fi
17228
17229
17230 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
17231 xauth_path="/usr/openwin/bin/xauth"
17232 fi
17233
17234
17235fi
17236
17237
17238STRIP_OPT=-s
17239# Check whether --enable-strip was given.
17240if test "${enable_strip+set}" = set; then :
17241 enableval=$enable_strip;
17242 if test "x$enableval" = "xno" ; then
17243 STRIP_OPT=
17244 fi
17245
17246
17247fi
17248
17249
17250
17251if test -z "$xauth_path" ; then
17252 XAUTH_PATH="undefined"
17253
17254else
17255
17256cat >>confdefs.h <<_ACEOF
17257#define XAUTH_PATH "$xauth_path"
17258_ACEOF
17259
17260 XAUTH_PATH=$xauth_path
17261
17262fi
17263
17264# Check for mail directory
17265
17266# Check whether --with-maildir was given.
17267if test "${with_maildir+set}" = set; then :
17268 withval=$with_maildir;
17269 if test "X$withval" != X && test "x$withval" != xno && \
17270 test "x${withval}" != xyes; then
17271
17272cat >>confdefs.h <<_ACEOF
17273#define MAIL_DIRECTORY "$withval"
17274_ACEOF
17275
17276 fi
17277
17278else
17279
17280 if test "X$maildir" != "X"; then
17281 cat >>confdefs.h <<_ACEOF
17282#define MAIL_DIRECTORY "$maildir"
17283_ACEOF
17284
17285 else
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
17287$as_echo_n "checking Discovering system mail directory... " >&6; }
17288 if test "$cross_compiling" = yes; then :
17289
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
17291$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
17292
17293
17294else
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296/* end confdefs.h. */
17297
17298#include <stdio.h>
17299#include <string.h>
17300#ifdef HAVE_PATHS_H
17301#include <paths.h>
17302#endif
17303#ifdef HAVE_MAILLOCK_H
17304#include <maillock.h>
17305#endif
17306#define DATA "conftest.maildir"
17307
17308int
17309main ()
17310{
17311
17312 FILE *fd;
17313 int rc;
17314
17315 fd = fopen(DATA,"w");
17316 if(fd == NULL)
17317 exit(1);
17318
17319#if defined (_PATH_MAILDIR)
17320 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
17321 exit(1);
17322#elif defined (MAILDIR)
17323 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
17324 exit(1);
17325#elif defined (_PATH_MAIL)
17326 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
17327 exit(1);
17328#else
17329 exit (2);
17330#endif
17331
17332 exit(0);
17333
17334 ;
17335 return 0;
17336}
17337_ACEOF
17338if ac_fn_c_try_run "$LINENO"; then :
17339
17340 maildir_what=`awk -F: '{print $1}' conftest.maildir`
17341 maildir=`awk -F: '{print $2}' conftest.maildir \
17342 | sed 's|/$||'`
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
17344$as_echo "Using: $maildir from $maildir_what" >&6; }
17345 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
17346 cat >>confdefs.h <<_ACEOF
17347#define MAIL_DIRECTORY "$maildir"
17348_ACEOF
17349
17350 fi
17351
17352else
17353
17354 if test "X$ac_status" = "X2";then
17355# our test program didn't find it. Default to /var/spool/mail
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
17357$as_echo "Using: default value of /var/spool/mail" >&6; }
17358 cat >>confdefs.h <<_ACEOF
17359#define MAIL_DIRECTORY "/var/spool/mail"
17360_ACEOF
17361
17362 else
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
17364$as_echo "*** not found ***" >&6; }
17365 fi
17366
17367fi
17368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17369 conftest.$ac_objext conftest.beam conftest.$ac_ext
17370fi
17371
17372 fi
17373
17374
17375fi
17376 # maildir
17377
17378if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
17380$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
17381 disable_ptmx_check=yes
17382fi
17383if test -z "$no_dev_ptmx" ; then
17384 if test "x$disable_ptmx_check" != "xyes" ; then
17385 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
17387$as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
17388if eval \${$as_ac_File+:} false; then :
17389 $as_echo_n "(cached) " >&6
17390else
17391 test "$cross_compiling" = yes &&
17392 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17393if test -r ""/dev/ptmx""; then
17394 eval "$as_ac_File=yes"
17395else
17396 eval "$as_ac_File=no"
17397fi
17398fi
17399eval ac_res=\$$as_ac_File
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17401$as_echo "$ac_res" >&6; }
17402if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17403
17404
17405cat >>confdefs.h <<_ACEOF
17406#define HAVE_DEV_PTMX 1
17407_ACEOF
17408
17409 have_dev_ptmx=1
17410
17411
17412fi
17413
17414 fi
17415fi
17416
17417if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
17418 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
17419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
17420$as_echo_n "checking for \"/dev/ptc\"... " >&6; }
17421if eval \${$as_ac_File+:} false; then :
17422 $as_echo_n "(cached) " >&6
17423else
17424 test "$cross_compiling" = yes &&
17425 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17426if test -r ""/dev/ptc""; then
17427 eval "$as_ac_File=yes"
17428else
17429 eval "$as_ac_File=no"
17430fi
17431fi
17432eval ac_res=\$$as_ac_File
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17434$as_echo "$ac_res" >&6; }
17435if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17436
17437
17438cat >>confdefs.h <<_ACEOF
17439#define HAVE_DEV_PTS_AND_PTC 1
17440_ACEOF
17441
17442 have_dev_ptc=1
17443
17444
17445fi
17446
17447else
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
17449$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
17450fi
17451
17452# Options from here on. Some of these are preset by platform above
17453
17454# Check whether --with-mantype was given.
17455if test "${with_mantype+set}" = set; then :
17456 withval=$with_mantype;
17457 case "$withval" in
17458 man|cat|doc)
17459 MANTYPE=$withval
17460 ;;
17461 *)
17462 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
17463 ;;
17464 esac
17465
17466
17467fi
17468
17469if test -z "$MANTYPE"; then
17470 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
17471 for ac_prog in nroff awf
17472do
17473 # Extract the first word of "$ac_prog", so it can be a program name with args.
17474set dummy $ac_prog; ac_word=$2
17475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17476$as_echo_n "checking for $ac_word... " >&6; }
17477if ${ac_cv_path_NROFF+:} false; then :
17478 $as_echo_n "(cached) " >&6
17479else
17480 case $NROFF in
17481 [\\/]* | ?:[\\/]*)
17482 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
17483 ;;
17484 *)
17485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17486for as_dir in $TestPath
17487do
17488 IFS=$as_save_IFS
17489 test -z "$as_dir" && as_dir=.
17490 for ac_exec_ext in '' $ac_executable_extensions; do
17491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17492 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
17493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17494 break 2
17495 fi
17496done
17497 done
17498IFS=$as_save_IFS
17499
17500 ;;
17501esac
17502fi
17503NROFF=$ac_cv_path_NROFF
17504if test -n "$NROFF"; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
17506$as_echo "$NROFF" >&6; }
17507else
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509$as_echo "no" >&6; }
17510fi
17511
17512
17513 test -n "$NROFF" && break
17514done
17515test -n "$NROFF" || NROFF="/bin/false"
17516
17517 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
17518 MANTYPE=doc
17519 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
17520 MANTYPE=man
17521 else
17522 MANTYPE=cat
17523 fi
17524fi
17525
17526if test "$MANTYPE" = "doc"; then
17527 mansubdir=man;
17528else
17529 mansubdir=$MANTYPE;
17530fi
17531
17532
17533# Check whether to enable MD5 passwords
17534MD5_MSG="no"
17535
17536# Check whether --with-md5-passwords was given.
17537if test "${with_md5_passwords+set}" = set; then :
17538 withval=$with_md5_passwords;
17539 if test "x$withval" != "xno" ; then
17540
17541$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
17542
17543 MD5_MSG="yes"
17544 fi
17545
17546
17547fi
17548
17549
17550# Whether to disable shadow password support
17551
17552# Check whether --with-shadow was given.
17553if test "${with_shadow+set}" = set; then :
17554 withval=$with_shadow;
17555 if test "x$withval" = "xno" ; then
17556 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
17557
17558 disable_shadow=yes
17559 fi
17560
17561
17562fi
17563
17564
17565if test -z "$disable_shadow" ; then
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
17567$as_echo_n "checking if the systems has expire shadow information... " >&6; }
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569/* end confdefs.h. */
17570
17571#include <sys/types.h>
17572#include <shadow.h>
17573struct spwd sp;
17574
17575int
17576main ()
17577{
17578 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583if ac_fn_c_try_compile "$LINENO"; then :
17584 sp_expire_available=yes
17585fi
17586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17587
17588 if test "x$sp_expire_available" = "xyes" ; then
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17590$as_echo "yes" >&6; }
17591
17592$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
17593
17594 else
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17596$as_echo "no" >&6; }
17597 fi
17598fi
17599
17600# Use ip address instead of hostname in $DISPLAY
17601if test ! -z "$IPADDR_IN_DISPLAY" ; then
17602 DISPLAY_HACK_MSG="yes"
17603
17604$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
17605
17606else
17607 DISPLAY_HACK_MSG="no"
17608
17609# Check whether --with-ipaddr-display was given.
17610if test "${with_ipaddr_display+set}" = set; then :
17611 withval=$with_ipaddr_display;
17612 if test "x$withval" != "xno" ; then
17613 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
17614
17615 DISPLAY_HACK_MSG="yes"
17616 fi
17617
17618
17619fi
17620
17621fi
17622
17623# check for /etc/default/login and use it if present.
17624# Check whether --enable-etc-default-login was given.
17625if test "${enable_etc_default_login+set}" = set; then :
17626 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
17628$as_echo "$as_me: /etc/default/login handling disabled" >&6;}
17629 etc_default_login=no
17630 else
17631 etc_default_login=yes
17632 fi
17633else
17634 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
17635 then
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
17637$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
17638 etc_default_login=no
17639 else
17640 etc_default_login=yes
17641 fi
17642
17643fi
17644
17645
17646if test "x$etc_default_login" != "xno"; then
17647 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
17648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
17649$as_echo_n "checking for \"/etc/default/login\"... " >&6; }
17650if eval \${$as_ac_File+:} false; then :
17651 $as_echo_n "(cached) " >&6
17652else
17653 test "$cross_compiling" = yes &&
17654 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17655if test -r ""/etc/default/login""; then
17656 eval "$as_ac_File=yes"
17657else
17658 eval "$as_ac_File=no"
17659fi
17660fi
17661eval ac_res=\$$as_ac_File
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17663$as_echo "$ac_res" >&6; }
17664if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17665 external_path_file=/etc/default/login
17666fi
17667
17668 if test "x$external_path_file" = "x/etc/default/login"; then
17669
17670$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
17671
17672 fi
17673fi
17674
17675if test $ac_cv_func_login_getcapbool = "yes" && \
17676 test $ac_cv_header_login_cap_h = "yes" ; then
17677 external_path_file=/etc/login.conf
17678fi
17679
17680# Whether to mess with the default path
17681SERVER_PATH_MSG="(default)"
17682
17683# Check whether --with-default-path was given.
17684if test "${with_default_path+set}" = set; then :
17685 withval=$with_default_path;
17686 if test "x$external_path_file" = "x/etc/login.conf" ; then
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17688--with-default-path=PATH has no effect on this system.
17689Edit /etc/login.conf instead." >&5
17690$as_echo "$as_me: WARNING:
17691--with-default-path=PATH has no effect on this system.
17692Edit /etc/login.conf instead." >&2;}
17693 elif test "x$withval" != "xno" ; then
17694 if test ! -z "$external_path_file" ; then
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17696--with-default-path=PATH will only be used if PATH is not defined in
17697$external_path_file ." >&5
17698$as_echo "$as_me: WARNING:
17699--with-default-path=PATH will only be used if PATH is not defined in
17700$external_path_file ." >&2;}
17701 fi
17702 user_path="$withval"
17703 SERVER_PATH_MSG="$withval"
17704 fi
17705
17706else
17707 if test "x$external_path_file" = "x/etc/login.conf" ; then
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
17709$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
17710 else
17711 if test ! -z "$external_path_file" ; then
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17713If PATH is defined in $external_path_file, ensure the path to scp is included,
17714otherwise scp will not work." >&5
17715$as_echo "$as_me: WARNING:
17716If PATH is defined in $external_path_file, ensure the path to scp is included,
17717otherwise scp will not work." >&2;}
17718 fi
17719 if test "$cross_compiling" = yes; then :
17720 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17721
17722else
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724/* end confdefs.h. */
17725
17726/* find out what STDPATH is */
17727#include <stdio.h>
17728#ifdef HAVE_PATHS_H
17729# include <paths.h>
17730#endif
17731#ifndef _PATH_STDPATH
17732# ifdef _PATH_USERPATH /* Irix */
17733# define _PATH_STDPATH _PATH_USERPATH
17734# else
17735# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
17736# endif
17737#endif
17738#include <sys/types.h>
17739#include <sys/stat.h>
17740#include <fcntl.h>
17741#define DATA "conftest.stdpath"
17742
17743int
17744main ()
17745{
17746
17747 FILE *fd;
17748 int rc;
17749
17750 fd = fopen(DATA,"w");
17751 if(fd == NULL)
17752 exit(1);
17753
17754 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
17755 exit(1);
17756
17757 exit(0);
17758
17759 ;
17760 return 0;
17761}
17762_ACEOF
17763if ac_fn_c_try_run "$LINENO"; then :
17764 user_path=`cat conftest.stdpath`
17765else
17766 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17767fi
17768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17769 conftest.$ac_objext conftest.beam conftest.$ac_ext
17770fi
17771
17772# make sure $bindir is in USER_PATH so scp will work
17773 t_bindir="${bindir}"
17774 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
17775 t_bindir=`eval echo ${t_bindir}`
17776 case $t_bindir in
17777 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
17778 esac
17779 case $t_bindir in
17780 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
17781 esac
17782 done
17783 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
17784 if test $? -ne 0 ; then
17785 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
17786 if test $? -ne 0 ; then
17787 user_path=$user_path:$t_bindir
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
17789$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
17790 fi
17791 fi
17792 fi
17793
17794fi
17795
17796if test "x$external_path_file" != "x/etc/login.conf" ; then
17797
17798cat >>confdefs.h <<_ACEOF
17799#define USER_PATH "$user_path"
17800_ACEOF
17801
17802
17803fi
17804
17805# Set superuser path separately to user path
17806
17807# Check whether --with-superuser-path was given.
17808if test "${with_superuser_path+set}" = set; then :
17809 withval=$with_superuser_path;
17810 if test -n "$withval" && test "x$withval" != "xno" && \
17811 test "x${withval}" != "xyes"; then
17812
17813cat >>confdefs.h <<_ACEOF
17814#define SUPERUSER_PATH "$withval"
17815_ACEOF
17816
17817 superuser_path=$withval
17818 fi
17819
17820
17821fi
17822
17823
17824
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
17826$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
17827IPV4_IN6_HACK_MSG="no"
17828
17829# Check whether --with-4in6 was given.
17830if test "${with_4in6+set}" = set; then :
17831 withval=$with_4in6;
17832 if test "x$withval" != "xno" ; then
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17834$as_echo "yes" >&6; }
17835
17836$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
17837
17838 IPV4_IN6_HACK_MSG="yes"
17839 else
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17841$as_echo "no" >&6; }
17842 fi
17843
17844else
17845
17846 if test "x$inet6_default_4in6" = "xyes"; then
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
17848$as_echo "yes (default)" >&6; }
17849 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
17850
17851 IPV4_IN6_HACK_MSG="yes"
17852 else
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
17854$as_echo "no (default)" >&6; }
17855 fi
17856
17857
17858fi
17859
17860
17861# Whether to enable BSD auth support
17862BSD_AUTH_MSG=no
17863
17864# Check whether --with-bsd-auth was given.
17865if test "${with_bsd_auth+set}" = set; then :
17866 withval=$with_bsd_auth;
17867 if test "x$withval" != "xno" ; then
17868
17869$as_echo "#define BSD_AUTH 1" >>confdefs.h
17870
17871 BSD_AUTH_MSG=yes
17872 fi
17873
17874
17875fi
17876
17877
17878# Where to place sshd.pid
17879piddir=/var/run
17880# make sure the directory exists
17881if test ! -d $piddir ; then
17882 piddir=`eval echo ${sysconfdir}`
17883 case $piddir in
17884 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
17885 esac
17886fi
17887
17888
17889# Check whether --with-pid-dir was given.
17890if test "${with_pid_dir+set}" = set; then :
17891 withval=$with_pid_dir;
17892 if test -n "$withval" && test "x$withval" != "xno" && \
17893 test "x${withval}" != "xyes"; then
17894 piddir=$withval
17895 if test ! -d $piddir ; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
17897$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
17898 fi
17899 fi
17900
17901
17902fi
17903
17904
17905
17906cat >>confdefs.h <<_ACEOF
17907#define _PATH_SSH_PIDDIR "$piddir"
17908_ACEOF
17909
17910
17911
17912# Check whether --enable-lastlog was given.
17913if test "${enable_lastlog+set}" = set; then :
17914 enableval=$enable_lastlog;
17915 if test "x$enableval" = "xno" ; then
17916 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
17917
17918 fi
17919
17920
17921fi
17922
17923# Check whether --enable-utmp was given.
17924if test "${enable_utmp+set}" = set; then :
17925 enableval=$enable_utmp;
17926 if test "x$enableval" = "xno" ; then
17927 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
17928
17929 fi
17930
17931
17932fi
17933
17934# Check whether --enable-utmpx was given.
17935if test "${enable_utmpx+set}" = set; then :
17936 enableval=$enable_utmpx;
17937 if test "x$enableval" = "xno" ; then
17938
17939$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
17940
17941 fi
17942
17943
17944fi
17945
17946# Check whether --enable-wtmp was given.
17947if test "${enable_wtmp+set}" = set; then :
17948 enableval=$enable_wtmp;
17949 if test "x$enableval" = "xno" ; then
17950 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
17951
17952 fi
17953
17954
17955fi
17956
17957# Check whether --enable-wtmpx was given.
17958if test "${enable_wtmpx+set}" = set; then :
17959 enableval=$enable_wtmpx;
17960 if test "x$enableval" = "xno" ; then
17961
17962$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
17963
17964 fi
17965
17966
17967fi
17968
17969# Check whether --enable-libutil was given.
17970if test "${enable_libutil+set}" = set; then :
17971 enableval=$enable_libutil;
17972 if test "x$enableval" = "xno" ; then
17973 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
17974
17975 fi
17976
17977
17978fi
17979
17980# Check whether --enable-pututline was given.
17981if test "${enable_pututline+set}" = set; then :
17982 enableval=$enable_pututline;
17983 if test "x$enableval" = "xno" ; then
17984
17985$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
17986
17987 fi
17988
17989
17990fi
17991
17992# Check whether --enable-pututxline was given.
17993if test "${enable_pututxline+set}" = set; then :
17994 enableval=$enable_pututxline;
17995 if test "x$enableval" = "xno" ; then
17996
17997$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
17998
17999 fi
18000
18001
18002fi
18003
18004
18005# Check whether --with-lastlog was given.
18006if test "${with_lastlog+set}" = set; then :
18007 withval=$with_lastlog;
18008 if test "x$withval" = "xno" ; then
18009 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18010
18011 elif test -n "$withval" && test "x${withval}" != "xyes"; then
18012 conf_lastlog_location=$withval
18013 fi
18014
18015
18016fi
18017
18018
18019
18020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
18021$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
18022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023/* end confdefs.h. */
18024
18025#include <sys/types.h>
18026#include <utmp.h>
18027#ifdef HAVE_LASTLOG_H
18028# include <lastlog.h>
18029#endif
18030#ifdef HAVE_PATHS_H
18031# include <paths.h>
18032#endif
18033#ifdef HAVE_LOGIN_H
18034# include <login.h>
18035#endif
18036
18037int
18038main ()
18039{
18040 char *lastlog = LASTLOG_FILE;
18041 ;
18042 return 0;
18043}
18044_ACEOF
18045if ac_fn_c_try_compile "$LINENO"; then :
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18047$as_echo "yes" >&6; }
18048else
18049
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18051$as_echo "no" >&6; }
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
18053$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055/* end confdefs.h. */
18056
18057#include <sys/types.h>
18058#include <utmp.h>
18059#ifdef HAVE_LASTLOG_H
18060# include <lastlog.h>
18061#endif
18062#ifdef HAVE_PATHS_H
18063# include <paths.h>
18064#endif
18065
18066int
18067main ()
18068{
18069 char *lastlog = _PATH_LASTLOG;
18070 ;
18071 return 0;
18072}
18073_ACEOF
18074if ac_fn_c_try_compile "$LINENO"; then :
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18076$as_echo "yes" >&6; }
18077else
18078
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18080$as_echo "no" >&6; }
18081 system_lastlog_path=no
18082
18083fi
18084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085
18086fi
18087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18088
18089if test -z "$conf_lastlog_location"; then
18090 if test x"$system_lastlog_path" = x"no" ; then
18091 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
18092 if (test -d "$f" || test -f "$f") ; then
18093 conf_lastlog_location=$f
18094 fi
18095 done
18096 if test -z "$conf_lastlog_location"; then
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
18098$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
18099 fi
18100 fi
18101fi
18102
18103if test -n "$conf_lastlog_location"; then
18104
18105cat >>confdefs.h <<_ACEOF
18106#define CONF_LASTLOG_FILE "$conf_lastlog_location"
18107_ACEOF
18108
18109fi
18110
18111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
18112$as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
18113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114/* end confdefs.h. */
18115
18116#include <sys/types.h>
18117#include <utmp.h>
18118#ifdef HAVE_PATHS_H
18119# include <paths.h>
18120#endif
18121
18122int
18123main ()
18124{
18125 char *utmp = UTMP_FILE;
18126 ;
18127 return 0;
18128}
18129_ACEOF
18130if ac_fn_c_try_compile "$LINENO"; then :
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18132$as_echo "yes" >&6; }
18133else
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135$as_echo "no" >&6; }
18136 system_utmp_path=no
18137
18138fi
18139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18140if test -z "$conf_utmp_location"; then
18141 if test x"$system_utmp_path" = x"no" ; then
18142 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
18143 if test -f $f ; then
18144 conf_utmp_location=$f
18145 fi
18146 done
18147 if test -z "$conf_utmp_location"; then
18148 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18149
18150 fi
18151 fi
18152fi
18153if test -n "$conf_utmp_location"; then
18154
18155cat >>confdefs.h <<_ACEOF
18156#define CONF_UTMP_FILE "$conf_utmp_location"
18157_ACEOF
18158
18159fi
18160
18161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
18162$as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
18163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164/* end confdefs.h. */
18165
18166#include <sys/types.h>
18167#include <utmp.h>
18168#ifdef HAVE_PATHS_H
18169# include <paths.h>
18170#endif
18171
18172int
18173main ()
18174{
18175 char *wtmp = WTMP_FILE;
18176 ;
18177 return 0;
18178}
18179_ACEOF
18180if ac_fn_c_try_compile "$LINENO"; then :
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18182$as_echo "yes" >&6; }
18183else
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18185$as_echo "no" >&6; }
18186 system_wtmp_path=no
18187
18188fi
18189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18190if test -z "$conf_wtmp_location"; then
18191 if test x"$system_wtmp_path" = x"no" ; then
18192 for f in /usr/adm/wtmp /var/log/wtmp; do
18193 if test -f $f ; then
18194 conf_wtmp_location=$f
18195 fi
18196 done
18197 if test -z "$conf_wtmp_location"; then
18198 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18199
18200 fi
18201 fi
18202fi
18203if test -n "$conf_wtmp_location"; then
18204
18205cat >>confdefs.h <<_ACEOF
18206#define CONF_WTMP_FILE "$conf_wtmp_location"
18207_ACEOF
18208
18209fi
18210
18211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
18212$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
18213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214/* end confdefs.h. */
18215
18216#include <sys/types.h>
18217#include <utmp.h>
18218#ifdef HAVE_UTMPX_H
18219#include <utmpx.h>
18220#endif
18221#ifdef HAVE_PATHS_H
18222# include <paths.h>
18223#endif
18224
18225int
18226main ()
18227{
18228 char *wtmpx = WTMPX_FILE;
18229 ;
18230 return 0;
18231}
18232_ACEOF
18233if ac_fn_c_try_compile "$LINENO"; then :
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18235$as_echo "yes" >&6; }
18236else
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18238$as_echo "no" >&6; }
18239 system_wtmpx_path=no
18240
18241fi
18242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243if test -z "$conf_wtmpx_location"; then
18244 if test x"$system_wtmpx_path" = x"no" ; then
18245 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
18246
18247 fi
18248else
18249
18250cat >>confdefs.h <<_ACEOF
18251#define CONF_WTMPX_FILE "$conf_wtmpx_location"
18252_ACEOF
18253
18254fi
18255
18256
18257if test ! -z "$blibpath" ; then
18258 LDFLAGS="$LDFLAGS $blibflags$blibpath"
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
18260$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
18261fi
18262
18263ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
18264#ifdef HAVE_SYS_TYPES_H
18265#include <sys/types.h>
18266#endif
18267#ifdef HAVE_UTMP_H
18268#include <utmp.h>
18269#endif
18270#ifdef HAVE_UTMPX_H
18271#include <utmpx.h>
18272#endif
18273#ifdef HAVE_LASTLOG_H
18274#include <lastlog.h>
18275#endif
18276
18277"
18278if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
18279
18280else
18281
18282 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
18283 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18284
18285 fi
18286
18287fi
18288
18289
18290ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
18291#ifdef HAVE_SYS_TYPES_H
18292#include <sys/types.h>
18293#endif
18294#ifdef HAVE_UTMP_H
18295#include <utmp.h>
18296#endif
18297#ifdef HAVE_UTMPX_H
18298#include <utmpx.h>
18299#endif
18300#ifdef HAVE_LASTLOG_H
18301#include <lastlog.h>
18302#endif
18303
18304"
18305if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
18306
18307else
18308
18309 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18310
18311 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18312
18313
18314fi
18315
18316
18317CFLAGS="$CFLAGS $werror_flags"
18318
18319if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
18320 TEST_SSH_IPV6=no
18321else
18322 TEST_SSH_IPV6=yes
18323fi
18324ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
18325if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
18326 TEST_SSH_IPV6=no
18327fi
18328
18329TEST_SSH_IPV6=$TEST_SSH_IPV6
18330
18331TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
18332
18333UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
18334
18335
18336
18337ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
18338
18339cat >confcache <<\_ACEOF
18340# This file is a shell script that caches the results of configure
18341# tests run on this system so they can be shared between configure
18342# scripts and configure runs, see configure's option --config-cache.
18343# It is not useful on other systems. If it contains results you don't
18344# want to keep, you may remove or edit it.
18345#
18346# config.status only pays attention to the cache file if you give it
18347# the --recheck option to rerun configure.
18348#
18349# `ac_cv_env_foo' variables (set or unset) will be overridden when
18350# loading this file, other *unset* `ac_cv_foo' will be assigned the
18351# following values.
18352
18353_ACEOF
18354
18355# The following way of writing the cache mishandles newlines in values,
18356# but we know of no workaround that is simple, portable, and efficient.
18357# So, we kill variables containing newlines.
18358# Ultrix sh set writes to stderr and can't be redirected directly,
18359# and sets the high bit in the cache file unless we assign to the vars.
18360(
18361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18362 eval ac_val=\$$ac_var
18363 case $ac_val in #(
18364 *${as_nl}*)
18365 case $ac_var in #(
18366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18367$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18368 esac
18369 case $ac_var in #(
18370 _ | IFS | as_nl) ;; #(
18371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18372 *) { eval $ac_var=; unset $ac_var;} ;;
18373 esac ;;
18374 esac
18375 done
18376
18377 (set) 2>&1 |
18378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18379 *${as_nl}ac_space=\ *)
18380 # `set' does not quote correctly, so add quotes: double-quote
18381 # substitution turns \\\\ into \\, and sed turns \\ into \.
18382 sed -n \
18383 "s/'/'\\\\''/g;
18384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18385 ;; #(
18386 *)
18387 # `set' quotes correctly as required by POSIX, so do not add quotes.
18388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18389 ;;
18390 esac |
18391 sort
18392) |
18393 sed '
18394 /^ac_cv_env_/b end
18395 t clear
18396 :clear
18397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18398 t end
18399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18400 :end' >>confcache
18401if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18402 if test -w "$cache_file"; then
18403 if test "x$cache_file" != "x/dev/null"; then
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18405$as_echo "$as_me: updating cache $cache_file" >&6;}
18406 if test ! -f "$cache_file" || test -h "$cache_file"; then
18407 cat confcache >"$cache_file"
18408 else
18409 case $cache_file in #(
18410 */* | ?:*)
18411 mv -f confcache "$cache_file"$$ &&
18412 mv -f "$cache_file"$$ "$cache_file" ;; #(
18413 *)
18414 mv -f confcache "$cache_file" ;;
18415 esac
18416 fi
18417 fi
18418 else
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18420$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18421 fi
18422fi
18423rm -f confcache
18424
18425test "x$prefix" = xNONE && prefix=$ac_default_prefix
18426# Let make expand exec_prefix.
18427test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18428
18429DEFS=-DHAVE_CONFIG_H
18430
18431ac_libobjs=
18432ac_ltlibobjs=
18433U=
18434for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18435 # 1. Remove the extension, and $U if already installed.
18436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18437 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18439 # will be set to the directory where LIBOBJS objects are built.
18440 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18441 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18442done
18443LIBOBJS=$ac_libobjs
18444
18445LTLIBOBJS=$ac_ltlibobjs
18446
18447
18448
18449
18450: "${CONFIG_STATUS=./config.status}"
18451ac_write_fail=0
18452ac_clean_files_save=$ac_clean_files
18453ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18454{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18455$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18456as_write_fail=0
18457cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18458#! $SHELL
18459# Generated by $as_me.
18460# Run this file to recreate the current configuration.
18461# Compiler output produced by configure, useful for debugging
18462# configure, is in config.log if it exists.
18463
18464debug=false
18465ac_cs_recheck=false
18466ac_cs_silent=false
18467
18468SHELL=\${CONFIG_SHELL-$SHELL}
18469export SHELL
18470_ASEOF
18471cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18472## -------------------- ##
18473## M4sh Initialization. ##
18474## -------------------- ##
18475
18476# Be more Bourne compatible
18477DUALCASE=1; export DUALCASE # for MKS sh
18478if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18479 emulate sh
18480 NULLCMD=:
18481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18482 # is contrary to our usage. Disable this feature.
18483 alias -g '${1+"$@"}'='"$@"'
18484 setopt NO_GLOB_SUBST
18485else
18486 case `(set -o) 2>/dev/null` in #(
18487 *posix*) :
18488 set -o posix ;; #(
18489 *) :
18490 ;;
18491esac
18492fi
18493
18494
18495as_nl='
18496'
18497export as_nl
18498# Printing a long string crashes Solaris 7 /usr/bin/printf.
18499as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18500as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18501as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18502# Prefer a ksh shell builtin over an external printf program on Solaris,
18503# but without wasting forks for bash or zsh.
18504if test -z "$BASH_VERSION$ZSH_VERSION" \
18505 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18506 as_echo='print -r --'
18507 as_echo_n='print -rn --'
18508elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18509 as_echo='printf %s\n'
18510 as_echo_n='printf %s'
18511else
18512 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18513 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18514 as_echo_n='/usr/ucb/echo -n'
18515 else
18516 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18517 as_echo_n_body='eval
18518 arg=$1;
18519 case $arg in #(
18520 *"$as_nl"*)
18521 expr "X$arg" : "X\\(.*\\)$as_nl";
18522 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18523 esac;
18524 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18525 '
18526 export as_echo_n_body
18527 as_echo_n='sh -c $as_echo_n_body as_echo'
18528 fi
18529 export as_echo_body
18530 as_echo='sh -c $as_echo_body as_echo'
18531fi
18532
18533# The user is always right.
18534if test "${PATH_SEPARATOR+set}" != set; then
18535 PATH_SEPARATOR=:
18536 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18537 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18538 PATH_SEPARATOR=';'
18539 }
18540fi
18541
18542
18543# IFS
18544# We need space, tab and new line, in precisely that order. Quoting is
18545# there to prevent editors from complaining about space-tab.
18546# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18547# splitting by setting IFS to empty value.)
18548IFS=" "" $as_nl"
18549
18550# Find who we are. Look in the path if we contain no directory separator.
18551as_myself=
18552case $0 in #((
18553 *[\\/]* ) as_myself=$0 ;;
18554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18555for as_dir in $PATH
18556do
18557 IFS=$as_save_IFS
18558 test -z "$as_dir" && as_dir=.
18559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18560 done
18561IFS=$as_save_IFS
18562
18563 ;;
18564esac
18565# We did not find ourselves, most probably we were run as `sh COMMAND'
18566# in which case we are not to be found in the path.
18567if test "x$as_myself" = x; then
18568 as_myself=$0
18569fi
18570if test ! -f "$as_myself"; then
18571 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18572 exit 1
18573fi
18574
18575# Unset variables that we do not need and which cause bugs (e.g. in
18576# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18577# suppresses any "Segmentation fault" message there. '((' could
18578# trigger a bug in pdksh 5.2.14.
18579for as_var in BASH_ENV ENV MAIL MAILPATH
18580do eval test x\${$as_var+set} = xset \
18581 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18582done
18583PS1='$ '
18584PS2='> '
18585PS4='+ '
18586
18587# NLS nuisances.
18588LC_ALL=C
18589export LC_ALL
18590LANGUAGE=C
18591export LANGUAGE
18592
18593# CDPATH.
18594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18595
18596
18597# as_fn_error STATUS ERROR [LINENO LOG_FD]
18598# ----------------------------------------
18599# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18600# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18601# script with STATUS, using 1 if that was 0.
18602as_fn_error ()
18603{
18604 as_status=$1; test $as_status -eq 0 && as_status=1
18605 if test "$4"; then
18606 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18607 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18608 fi
18609 $as_echo "$as_me: error: $2" >&2
18610 as_fn_exit $as_status
18611} # as_fn_error
18612
18613
18614# as_fn_set_status STATUS
18615# -----------------------
18616# Set $? to STATUS, without forking.
18617as_fn_set_status ()
18618{
18619 return $1
18620} # as_fn_set_status
18621
18622# as_fn_exit STATUS
18623# -----------------
18624# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18625as_fn_exit ()
18626{
18627 set +e
18628 as_fn_set_status $1
18629 exit $1
18630} # as_fn_exit
18631
18632# as_fn_unset VAR
18633# ---------------
18634# Portably unset VAR.
18635as_fn_unset ()
18636{
18637 { eval $1=; unset $1;}
18638}
18639as_unset=as_fn_unset
18640# as_fn_append VAR VALUE
18641# ----------------------
18642# Append the text in VALUE to the end of the definition contained in VAR. Take
18643# advantage of any shell optimizations that allow amortized linear growth over
18644# repeated appends, instead of the typical quadratic growth present in naive
18645# implementations.
18646if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18647 eval 'as_fn_append ()
18648 {
18649 eval $1+=\$2
18650 }'
18651else
18652 as_fn_append ()
18653 {
18654 eval $1=\$$1\$2
18655 }
18656fi # as_fn_append
18657
18658# as_fn_arith ARG...
18659# ------------------
18660# Perform arithmetic evaluation on the ARGs, and store the result in the
18661# global $as_val. Take advantage of shells that can avoid forks. The arguments
18662# must be portable across $(()) and expr.
18663if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18664 eval 'as_fn_arith ()
18665 {
18666 as_val=$(( $* ))
18667 }'
18668else
18669 as_fn_arith ()
18670 {
18671 as_val=`expr "$@" || test $? -eq 1`
18672 }
18673fi # as_fn_arith
18674
18675
18676if expr a : '\(a\)' >/dev/null 2>&1 &&
18677 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18678 as_expr=expr
18679else
18680 as_expr=false
18681fi
18682
18683if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18684 as_basename=basename
18685else
18686 as_basename=false
18687fi
18688
18689if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18690 as_dirname=dirname
18691else
18692 as_dirname=false
18693fi
18694
18695as_me=`$as_basename -- "$0" ||
18696$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18697 X"$0" : 'X\(//\)$' \| \
18698 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18699$as_echo X/"$0" |
18700 sed '/^.*\/\([^/][^/]*\)\/*$/{
18701 s//\1/
18702 q
18703 }
18704 /^X\/\(\/\/\)$/{
18705 s//\1/
18706 q
18707 }
18708 /^X\/\(\/\).*/{
18709 s//\1/
18710 q
18711 }
18712 s/.*/./; q'`
18713
18714# Avoid depending upon Character Ranges.
18715as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18716as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18717as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18718as_cr_digits='0123456789'
18719as_cr_alnum=$as_cr_Letters$as_cr_digits
18720
18721ECHO_C= ECHO_N= ECHO_T=
18722case `echo -n x` in #(((((
18723-n*)
18724 case `echo 'xy\c'` in
18725 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18726 xy) ECHO_C='\c';;
18727 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18728 ECHO_T=' ';;
18729 esac;;
18730*)
18731 ECHO_N='-n';;
18732esac
18733
18734rm -f conf$$ conf$$.exe conf$$.file
18735if test -d conf$$.dir; then
18736 rm -f conf$$.dir/conf$$.file
18737else
18738 rm -f conf$$.dir
18739 mkdir conf$$.dir 2>/dev/null
18740fi
18741if (echo >conf$$.file) 2>/dev/null; then
18742 if ln -s conf$$.file conf$$ 2>/dev/null; then
18743 as_ln_s='ln -s'
18744 # ... but there are two gotchas:
18745 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18746 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18747 # In both cases, we have to default to `cp -p'.
18748 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18749 as_ln_s='cp -p'
18750 elif ln conf$$.file conf$$ 2>/dev/null; then
18751 as_ln_s=ln
18752 else
18753 as_ln_s='cp -p'
18754 fi
18755else
18756 as_ln_s='cp -p'
18757fi
18758rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18759rmdir conf$$.dir 2>/dev/null
18760
18761
18762# as_fn_mkdir_p
18763# -------------
18764# Create "$as_dir" as a directory, including parents if necessary.
18765as_fn_mkdir_p ()
18766{
18767
18768 case $as_dir in #(
18769 -*) as_dir=./$as_dir;;
18770 esac
18771 test -d "$as_dir" || eval $as_mkdir_p || {
18772 as_dirs=
18773 while :; do
18774 case $as_dir in #(
18775 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18776 *) as_qdir=$as_dir;;
18777 esac
18778 as_dirs="'$as_qdir' $as_dirs"
18779 as_dir=`$as_dirname -- "$as_dir" ||
18780$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18781 X"$as_dir" : 'X\(//\)[^/]' \| \
18782 X"$as_dir" : 'X\(//\)$' \| \
18783 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18784$as_echo X"$as_dir" |
18785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18786 s//\1/
18787 q
18788 }
18789 /^X\(\/\/\)[^/].*/{
18790 s//\1/
18791 q
18792 }
18793 /^X\(\/\/\)$/{
18794 s//\1/
18795 q
18796 }
18797 /^X\(\/\).*/{
18798 s//\1/
18799 q
18800 }
18801 s/.*/./; q'`
18802 test -d "$as_dir" && break
18803 done
18804 test -z "$as_dirs" || eval "mkdir $as_dirs"
18805 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18806
18807
18808} # as_fn_mkdir_p
18809if mkdir -p . 2>/dev/null; then
18810 as_mkdir_p='mkdir -p "$as_dir"'
18811else
18812 test -d ./-p && rmdir ./-p
18813 as_mkdir_p=false
18814fi
18815
18816if test -x / >/dev/null 2>&1; then
18817 as_test_x='test -x'
18818else
18819 if ls -dL / >/dev/null 2>&1; then
18820 as_ls_L_option=L
18821 else
18822 as_ls_L_option=
18823 fi
18824 as_test_x='
18825 eval sh -c '\''
18826 if test -d "$1"; then
18827 test -d "$1/.";
18828 else
18829 case $1 in #(
18830 -*)set "./$1";;
18831 esac;
18832 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18833 ???[sx]*):;;*)false;;esac;fi
18834 '\'' sh
18835 '
18836fi
18837as_executable_p=$as_test_x
18838
18839# Sed expression to map a string onto a valid CPP name.
18840as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18841
18842# Sed expression to map a string onto a valid variable name.
18843as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18844
18845
18846exec 6>&1
18847## ----------------------------------- ##
18848## Main body of $CONFIG_STATUS script. ##
18849## ----------------------------------- ##
18850_ASEOF
18851test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18852
18853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18854# Save the log message, to keep $0 and so on meaningful, and to
18855# report actual input values of CONFIG_FILES etc. instead of their
18856# values after options handling.
18857ac_log="
18858This file was extended by OpenSSH $as_me Portable, which was
18859generated by GNU Autoconf 2.68. Invocation command line was
18860
18861 CONFIG_FILES = $CONFIG_FILES
18862 CONFIG_HEADERS = $CONFIG_HEADERS
18863 CONFIG_LINKS = $CONFIG_LINKS
18864 CONFIG_COMMANDS = $CONFIG_COMMANDS
18865 $ $0 $@
18866
18867on `(hostname || uname -n) 2>/dev/null | sed 1q`
18868"
18869
18870_ACEOF
18871
18872case $ac_config_files in *"
18873"*) set x $ac_config_files; shift; ac_config_files=$*;;
18874esac
18875
18876case $ac_config_headers in *"
18877"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18878esac
18879
18880
18881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18882# Files that config.status was made for.
18883config_files="$ac_config_files"
18884config_headers="$ac_config_headers"
18885
18886_ACEOF
18887
18888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18889ac_cs_usage="\
18890\`$as_me' instantiates files and other configuration actions
18891from templates according to the current configuration. Unless the files
18892and actions are specified as TAGs, all are instantiated by default.
18893
18894Usage: $0 [OPTION]... [TAG]...
18895
18896 -h, --help print this help, then exit
18897 -V, --version print version number and configuration settings, then exit
18898 --config print configuration, then exit
18899 -q, --quiet, --silent
18900 do not print progress messages
18901 -d, --debug don't remove temporary files
18902 --recheck update $as_me by reconfiguring in the same conditions
18903 --file=FILE[:TEMPLATE]
18904 instantiate the configuration file FILE
18905 --header=FILE[:TEMPLATE]
18906 instantiate the configuration header FILE
18907
18908Configuration files:
18909$config_files
18910
18911Configuration headers:
18912$config_headers
18913
18914Report bugs to <openssh-unix-dev@mindrot.org>."
18915
18916_ACEOF
18917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18918ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18919ac_cs_version="\\
18920OpenSSH config.status Portable
18921configured by $0, generated by GNU Autoconf 2.68,
18922 with options \\"\$ac_cs_config\\"
18923
18924Copyright (C) 2010 Free Software Foundation, Inc.
18925This config.status script is free software; the Free Software Foundation
18926gives unlimited permission to copy, distribute and modify it."
18927
18928ac_pwd='$ac_pwd'
18929srcdir='$srcdir'
18930INSTALL='$INSTALL'
18931AWK='$AWK'
18932test -n "\$AWK" || AWK=awk
18933_ACEOF
18934
18935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18936# The default lists apply if the user does not specify any file.
18937ac_need_defaults=:
18938while test $# != 0
18939do
18940 case $1 in
18941 --*=?*)
18942 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18943 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18944 ac_shift=:
18945 ;;
18946 --*=)
18947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18948 ac_optarg=
18949 ac_shift=:
18950 ;;
18951 *)
18952 ac_option=$1
18953 ac_optarg=$2
18954 ac_shift=shift
18955 ;;
18956 esac
18957
18958 case $ac_option in
18959 # Handling of the options.
18960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18961 ac_cs_recheck=: ;;
18962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18963 $as_echo "$ac_cs_version"; exit ;;
18964 --config | --confi | --conf | --con | --co | --c )
18965 $as_echo "$ac_cs_config"; exit ;;
18966 --debug | --debu | --deb | --de | --d | -d )
18967 debug=: ;;
18968 --file | --fil | --fi | --f )
18969 $ac_shift
18970 case $ac_optarg in
18971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18972 '') as_fn_error $? "missing file argument" ;;
18973 esac
18974 as_fn_append CONFIG_FILES " '$ac_optarg'"
18975 ac_need_defaults=false;;
18976 --header | --heade | --head | --hea )
18977 $ac_shift
18978 case $ac_optarg in
18979 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18980 esac
18981 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18982 ac_need_defaults=false;;
18983 --he | --h)
18984 # Conflict between --help and --header
18985 as_fn_error $? "ambiguous option: \`$1'
18986Try \`$0 --help' for more information.";;
18987 --help | --hel | -h )
18988 $as_echo "$ac_cs_usage"; exit ;;
18989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18990 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18991 ac_cs_silent=: ;;
18992
18993 # This is an error.
18994 -*) as_fn_error $? "unrecognized option: \`$1'
18995Try \`$0 --help' for more information." ;;
18996
18997 *) as_fn_append ac_config_targets " $1"
18998 ac_need_defaults=false ;;
18999
19000 esac
19001 shift
19002done
19003
19004ac_configure_extra_args=
19005
19006if $ac_cs_silent; then
19007 exec 6>/dev/null
19008 ac_configure_extra_args="$ac_configure_extra_args --silent"
19009fi
19010
19011_ACEOF
19012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19013if \$ac_cs_recheck; then
19014 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19015 shift
19016 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19017 CONFIG_SHELL='$SHELL'
19018 export CONFIG_SHELL
19019 exec "\$@"
19020fi
19021
19022_ACEOF
19023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19024exec 5>>config.log
19025{
19026 echo
19027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19028## Running $as_me. ##
19029_ASBOX
19030 $as_echo "$ac_log"
19031} >&5
19032
19033_ACEOF
19034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19035_ACEOF
19036
19037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19038
19039# Handling of arguments.
19040for ac_config_target in $ac_config_targets
19041do
19042 case $ac_config_target in
19043 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19044 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19045 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
19046 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
19047 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
19048 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
19049 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
19050 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
19051
19052 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19053 esac
19054done
19055
19056
19057# If the user did not use the arguments to specify the items to instantiate,
19058# then the envvar interface is used. Set only those that are not.
19059# We use the long form for the default assignment because of an extremely
19060# bizarre bug on SunOS 4.1.3.
19061if $ac_need_defaults; then
19062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19064fi
19065
19066# Have a temporary directory for convenience. Make it in the build tree
19067# simply because there is no reason against having it here, and in addition,
19068# creating and moving files from /tmp can sometimes cause problems.
19069# Hook for its removal unless debugging.
19070# Note that there is a small window in which the directory will not be cleaned:
19071# after its creation but before its name has been assigned to `$tmp'.
19072$debug ||
19073{
19074 tmp= ac_tmp=
19075 trap 'exit_status=$?
19076 : "${ac_tmp:=$tmp}"
19077 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19078' 0
19079 trap 'as_fn_exit 1' 1 2 13 15
19080}
19081# Create a (secure) tmp directory for tmp files.
19082
19083{
19084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19085 test -d "$tmp"
19086} ||
19087{
19088 tmp=./conf$$-$RANDOM
19089 (umask 077 && mkdir "$tmp")
19090} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19091ac_tmp=$tmp
19092
19093# Set up the scripts for CONFIG_FILES section.
19094# No need to generate them if there are no CONFIG_FILES.
19095# This happens for instance with `./config.status config.h'.
19096if test -n "$CONFIG_FILES"; then
19097
19098
19099ac_cr=`echo X | tr X '\015'`
19100# On cygwin, bash can eat \r inside `` if the user requested igncr.
19101# But we know of no other shell where ac_cr would be empty at this
19102# point, so we can use a bashism as a fallback.
19103if test "x$ac_cr" = x; then
19104 eval ac_cr=\$\'\\r\'
19105fi
19106ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19107if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19108 ac_cs_awk_cr='\\r'
19109else
19110 ac_cs_awk_cr=$ac_cr
19111fi
19112
19113echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19114_ACEOF
19115
19116
19117{
19118 echo "cat >conf$$subs.awk <<_ACEOF" &&
19119 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19120 echo "_ACEOF"
19121} >conf$$subs.sh ||
19122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19123ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19124ac_delim='%!_!# '
19125for ac_last_try in false false false false false :; do
19126 . ./conf$$subs.sh ||
19127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19128
19129 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19130 if test $ac_delim_n = $ac_delim_num; then
19131 break
19132 elif $ac_last_try; then
19133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19134 else
19135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19136 fi
19137done
19138rm -f conf$$subs.sh
19139
19140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19141cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19142_ACEOF
19143sed -n '
19144h
19145s/^/S["/; s/!.*/"]=/
19146p
19147g
19148s/^[^!]*!//
19149:repl
19150t repl
19151s/'"$ac_delim"'$//
19152t delim
19153:nl
19154h
19155s/\(.\{148\}\)..*/\1/
19156t more1
19157s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19158p
19159n
19160b repl
19161:more1
19162s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19163p
19164g
19165s/.\{148\}//
19166t nl
19167:delim
19168h
19169s/\(.\{148\}\)..*/\1/
19170t more2
19171s/["\\]/\\&/g; s/^/"/; s/$/"/
19172p
19173b
19174:more2
19175s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19176p
19177g
19178s/.\{148\}//
19179t delim
19180' <conf$$subs.awk | sed '
19181/^[^""]/{
19182 N
19183 s/\n//
19184}
19185' >>$CONFIG_STATUS || ac_write_fail=1
19186rm -f conf$$subs.awk
19187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19188_ACAWK
19189cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19190 for (key in S) S_is_set[key] = 1
19191 FS = ""
19192
19193}
19194{
19195 line = $ 0
19196 nfields = split(line, field, "@")
19197 substed = 0
19198 len = length(field[1])
19199 for (i = 2; i < nfields; i++) {
19200 key = field[i]
19201 keylen = length(key)
19202 if (S_is_set[key]) {
19203 value = S[key]
19204 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19205 len += length(value) + length(field[++i])
19206 substed = 1
19207 } else
19208 len += 1 + keylen
19209 }
19210
19211 print line
19212}
19213
19214_ACAWK
19215_ACEOF
19216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19217if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19218 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19219else
19220 cat
19221fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19222 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19223_ACEOF
19224
19225# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19226# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19227# trailing colons and then remove the whole line if VPATH becomes empty
19228# (actually we leave an empty line to preserve line numbers).
19229if test "x$srcdir" = x.; then
19230 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19231h
19232s///
19233s/^/:/
19234s/[ ]*$/:/
19235s/:\$(srcdir):/:/g
19236s/:\${srcdir}:/:/g
19237s/:@srcdir@:/:/g
19238s/^:*//
19239s/:*$//
19240x
19241s/\(=[ ]*\).*/\1/
19242G
19243s/\n//
19244s/^[^=]*=[ ]*$//
19245}'
19246fi
19247
19248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19249fi # test -n "$CONFIG_FILES"
19250
19251# Set up the scripts for CONFIG_HEADERS section.
19252# No need to generate them if there are no CONFIG_HEADERS.
19253# This happens for instance with `./config.status Makefile'.
19254if test -n "$CONFIG_HEADERS"; then
19255cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19256BEGIN {
19257_ACEOF
19258
19259# Transform confdefs.h into an awk script `defines.awk', embedded as
19260# here-document in config.status, that substitutes the proper values into
19261# config.h.in to produce config.h.
19262
19263# Create a delimiter string that does not exist in confdefs.h, to ease
19264# handling of long lines.
19265ac_delim='%!_!# '
19266for ac_last_try in false false :; do
19267 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19268 if test -z "$ac_tt"; then
19269 break
19270 elif $ac_last_try; then
19271 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19272 else
19273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19274 fi
19275done
19276
19277# For the awk script, D is an array of macro values keyed by name,
19278# likewise P contains macro parameters if any. Preserve backslash
19279# newline sequences.
19280
19281ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19282sed -n '
19283s/.\{148\}/&'"$ac_delim"'/g
19284t rset
19285:rset
19286s/^[ ]*#[ ]*define[ ][ ]*/ /
19287t def
19288d
19289:def
19290s/\\$//
19291t bsnl
19292s/["\\]/\\&/g
19293s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19294D["\1"]=" \3"/p
19295s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19296d
19297:bsnl
19298s/["\\]/\\&/g
19299s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19300D["\1"]=" \3\\\\\\n"\\/p
19301t cont
19302s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19303t cont
19304d
19305:cont
19306n
19307s/.\{148\}/&'"$ac_delim"'/g
19308t clear
19309:clear
19310s/\\$//
19311t bsnlc
19312s/["\\]/\\&/g; s/^/"/; s/$/"/p
19313d
19314:bsnlc
19315s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19316b cont
19317' <confdefs.h | sed '
19318s/'"$ac_delim"'/"\\\
19319"/g' >>$CONFIG_STATUS || ac_write_fail=1
19320
19321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19322 for (key in D) D_is_set[key] = 1
19323 FS = ""
19324}
19325/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19326 line = \$ 0
19327 split(line, arg, " ")
19328 if (arg[1] == "#") {
19329 defundef = arg[2]
19330 mac1 = arg[3]
19331 } else {
19332 defundef = substr(arg[1], 2)
19333 mac1 = arg[2]
19334 }
19335 split(mac1, mac2, "(") #)
19336 macro = mac2[1]
19337 prefix = substr(line, 1, index(line, defundef) - 1)
19338 if (D_is_set[macro]) {
19339 # Preserve the white space surrounding the "#".
19340 print prefix "define", macro P[macro] D[macro]
19341 next
19342 } else {
19343 # Replace #undef with comments. This is necessary, for example,
19344 # in the case of _POSIX_SOURCE, which is predefined and required
19345 # on some systems where configure will not decide to define it.
19346 if (defundef == "undef") {
19347 print "/*", prefix defundef, macro, "*/"
19348 next
19349 }
19350 }
19351}
19352{ print }
19353_ACAWK
19354_ACEOF
19355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19356 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19357fi # test -n "$CONFIG_HEADERS"
19358
19359
19360eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19361shift
19362for ac_tag
19363do
19364 case $ac_tag in
19365 :[FHLC]) ac_mode=$ac_tag; continue;;
19366 esac
19367 case $ac_mode$ac_tag in
19368 :[FHL]*:*);;
19369 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19370 :[FH]-) ac_tag=-:-;;
19371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19372 esac
19373 ac_save_IFS=$IFS
19374 IFS=:
19375 set x $ac_tag
19376 IFS=$ac_save_IFS
19377 shift
19378 ac_file=$1
19379 shift
19380
19381 case $ac_mode in
19382 :L) ac_source=$1;;
19383 :[FH])
19384 ac_file_inputs=
19385 for ac_f
19386 do
19387 case $ac_f in
19388 -) ac_f="$ac_tmp/stdin";;
19389 *) # Look for the file first in the build tree, then in the source tree
19390 # (if the path is not absolute). The absolute path cannot be DOS-style,
19391 # because $ac_f cannot contain `:'.
19392 test -f "$ac_f" ||
19393 case $ac_f in
19394 [\\/$]*) false;;
19395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19396 esac ||
19397 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19398 esac
19399 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19400 as_fn_append ac_file_inputs " '$ac_f'"
19401 done
19402
19403 # Let's still pretend it is `configure' which instantiates (i.e., don't
19404 # use $as_me), people would be surprised to read:
19405 # /* config.h. Generated by config.status. */
19406 configure_input='Generated from '`
19407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19408 `' by configure.'
19409 if test x"$ac_file" != x-; then
19410 configure_input="$ac_file. $configure_input"
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19412$as_echo "$as_me: creating $ac_file" >&6;}
19413 fi
19414 # Neutralize special characters interpreted by sed in replacement strings.
19415 case $configure_input in #(
19416 *\&* | *\|* | *\\* )
19417 ac_sed_conf_input=`$as_echo "$configure_input" |
19418 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19419 *) ac_sed_conf_input=$configure_input;;
19420 esac
19421
19422 case $ac_tag in
19423 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19425 esac
19426 ;;
19427 esac
19428
19429 ac_dir=`$as_dirname -- "$ac_file" ||
19430$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19431 X"$ac_file" : 'X\(//\)[^/]' \| \
19432 X"$ac_file" : 'X\(//\)$' \| \
19433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19434$as_echo X"$ac_file" |
19435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19436 s//\1/
19437 q
19438 }
19439 /^X\(\/\/\)[^/].*/{
19440 s//\1/
19441 q
19442 }
19443 /^X\(\/\/\)$/{
19444 s//\1/
19445 q
19446 }
19447 /^X\(\/\).*/{
19448 s//\1/
19449 q
19450 }
19451 s/.*/./; q'`
19452 as_dir="$ac_dir"; as_fn_mkdir_p
19453 ac_builddir=.
19454
19455case "$ac_dir" in
19456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19457*)
19458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19459 # A ".." for each directory in $ac_dir_suffix.
19460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19461 case $ac_top_builddir_sub in
19462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19464 esac ;;
19465esac
19466ac_abs_top_builddir=$ac_pwd
19467ac_abs_builddir=$ac_pwd$ac_dir_suffix
19468# for backward compatibility:
19469ac_top_builddir=$ac_top_build_prefix
19470
19471case $srcdir in
19472 .) # We are building in place.
19473 ac_srcdir=.
19474 ac_top_srcdir=$ac_top_builddir_sub
19475 ac_abs_top_srcdir=$ac_pwd ;;
19476 [\\/]* | ?:[\\/]* ) # Absolute name.
19477 ac_srcdir=$srcdir$ac_dir_suffix;
19478 ac_top_srcdir=$srcdir
19479 ac_abs_top_srcdir=$srcdir ;;
19480 *) # Relative name.
19481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19482 ac_top_srcdir=$ac_top_build_prefix$srcdir
19483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19484esac
19485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19486
19487
19488 case $ac_mode in
19489 :F)
19490 #
19491 # CONFIG_FILE
19492 #
19493
19494 case $INSTALL in
19495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19496 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19497 esac
19498_ACEOF
19499
19500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19501# If the template does not know about datarootdir, expand it.
19502# FIXME: This hack should be removed a few years after 2.60.
19503ac_datarootdir_hack=; ac_datarootdir_seen=
19504ac_sed_dataroot='
19505/datarootdir/ {
19506 p
19507 q
19508}
19509/@datadir@/p
19510/@docdir@/p
19511/@infodir@/p
19512/@localedir@/p
19513/@mandir@/p'
19514case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19515*datarootdir*) ac_datarootdir_seen=yes;;
19516*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19518$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19519_ACEOF
19520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19521 ac_datarootdir_hack='
19522 s&@datadir@&$datadir&g
19523 s&@docdir@&$docdir&g
19524 s&@infodir@&$infodir&g
19525 s&@localedir@&$localedir&g
19526 s&@mandir@&$mandir&g
19527 s&\\\${datarootdir}&$datarootdir&g' ;;
19528esac
19529_ACEOF
19530
19531# Neutralize VPATH when `$srcdir' = `.'.
19532# Shell code in configure.ac might set extrasub.
19533# FIXME: do we really want to maintain this feature?
19534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19535ac_sed_extra="$ac_vpsub
19536$extrasub
19537_ACEOF
19538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19539:t
19540/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19541s|@configure_input@|$ac_sed_conf_input|;t t
19542s&@top_builddir@&$ac_top_builddir_sub&;t t
19543s&@top_build_prefix@&$ac_top_build_prefix&;t t
19544s&@srcdir@&$ac_srcdir&;t t
19545s&@abs_srcdir@&$ac_abs_srcdir&;t t
19546s&@top_srcdir@&$ac_top_srcdir&;t t
19547s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19548s&@builddir@&$ac_builddir&;t t
19549s&@abs_builddir@&$ac_abs_builddir&;t t
19550s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19551s&@INSTALL@&$ac_INSTALL&;t t
19552$ac_datarootdir_hack
19553"
19554eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19555 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19556
19557test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19558 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19560 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19562which seems to be undefined. Please make sure it is defined" >&5
19563$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19564which seems to be undefined. Please make sure it is defined" >&2;}
19565
19566 rm -f "$ac_tmp/stdin"
19567 case $ac_file in
19568 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19569 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19570 esac \
19571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19572 ;;
19573 :H)
19574 #
19575 # CONFIG_HEADER
19576 #
19577 if test x"$ac_file" != x-; then
19578 {
19579 $as_echo "/* $configure_input */" \
19580 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19581 } >"$ac_tmp/config.h" \
19582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19583 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19585$as_echo "$as_me: $ac_file is unchanged" >&6;}
19586 else
19587 rm -f "$ac_file"
19588 mv "$ac_tmp/config.h" "$ac_file" \
19589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19590 fi
19591 else
19592 $as_echo "/* $configure_input */" \
19593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19594 || as_fn_error $? "could not create -" "$LINENO" 5
19595 fi
19596 ;;
19597
19598
19599 esac
19600
19601done # for ac_tag
19602
19603
19604as_fn_exit 0
19605_ACEOF
19606ac_clean_files=$ac_clean_files_save
19607
19608test $ac_write_fail = 0 ||
19609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19610
19611
19612# configure is writing to config.log, and then calls config.status.
19613# config.status does its own redirection, appending to config.log.
19614# Unfortunately, on DOS this fails, as config.log is still kept open
19615# by configure, so config.status won't be able to write to it; its
19616# output is simply discarded. So we exec the FD to /dev/null,
19617# effectively closing config.log, so it can be properly (re)opened and
19618# appended to by config.status. When coming back to configure, we
19619# need to make the FD available again.
19620if test "$no_create" != yes; then
19621 ac_cs_success=:
19622 ac_config_status_args=
19623 test "$silent" = yes &&
19624 ac_config_status_args="$ac_config_status_args --quiet"
19625 exec 5>/dev/null
19626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19627 exec 5>>config.log
19628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19629 # would make configure fail if this is the last instruction.
19630 $ac_cs_success || as_fn_exit 1
19631fi
19632if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19634$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19635fi
19636
19637
19638# Print summary of options
19639
19640# Someone please show me a better way :)
19641A=`eval echo ${prefix}` ; A=`eval echo ${A}`
19642B=`eval echo ${bindir}` ; B=`eval echo ${B}`
19643C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
19644D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
19645E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
19646F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
19647G=`eval echo ${piddir}` ; G=`eval echo ${G}`
19648H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
19649I=`eval echo ${user_path}` ; I=`eval echo ${I}`
19650J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
19651
19652echo ""
19653echo "OpenSSH has been configured with the following options:"
19654echo " User binaries: $B"
19655echo " System binaries: $C"
19656echo " Configuration files: $D"
19657echo " Askpass program: $E"
19658echo " Manual pages: $F"
19659echo " PID file: $G"
19660echo " Privilege separation chroot path: $H"
19661if test "x$external_path_file" = "x/etc/login.conf" ; then
19662echo " At runtime, sshd will use the path defined in $external_path_file"
19663echo " Make sure the path to scp is present, otherwise scp will not work"
19664else
19665echo " sshd default user PATH: $I"
19666 if test ! -z "$external_path_file"; then
19667echo " (If PATH is set in $external_path_file it will be used instead. If"
19668echo " used, ensure the path to scp is present, otherwise scp will not work.)"
19669 fi
19670fi
19671if test ! -z "$superuser_path" ; then
19672echo " sshd superuser user PATH: $J"
19673fi
19674echo " Manpage format: $MANTYPE"
19675echo " PAM support: $PAM_MSG"
19676echo " OSF SIA support: $SIA_MSG"
19677echo " KerberosV support: $KRB5_MSG"
19678echo " SELinux support: $SELINUX_MSG"
19679echo " Smartcard support: $SCARD_MSG"
19680echo " S/KEY support: $SKEY_MSG"
19681echo " MD5 password support: $MD5_MSG"
19682echo " libedit support: $LIBEDIT_MSG"
19683echo " Solaris process contract support: $SPC_MSG"
19684echo " Solaris project support: $SP_MSG"
19685echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
19686echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
19687echo " BSD Auth support: $BSD_AUTH_MSG"
19688echo " Random number source: $RAND_MSG"
19689echo " Privsep sandbox style: $SANDBOX_STYLE"
19690
19691echo ""
19692
19693echo " Host: ${host}"
19694echo " Compiler: ${CC}"
19695echo " Compiler flags: ${CFLAGS}"
19696echo "Preprocessor flags: ${CPPFLAGS}"
19697echo " Linker flags: ${LDFLAGS}"
19698echo " Libraries: ${LIBS}"
19699if test ! -z "${SSHDLIBS}"; then
19700echo " +for sshd: ${SSHDLIBS}"
19701fi
19702if test ! -z "${SSHLIBS}"; then
19703echo " +for ssh: ${SSHLIBS}"
19704fi
19705
19706echo ""
19707
19708if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
19709 echo "SVR4 style packages are supported with \"make package\""
19710 echo ""
19711fi
19712
19713if test "x$PAM_MSG" = "xyes" ; then
19714 echo "PAM is enabled. You may need to install a PAM control file "
19715 echo "for sshd, otherwise password authentication may fail. "
19716 echo "Example PAM control files can be found in the contrib/ "
19717 echo "subdirectory"
19718 echo ""
19719fi
19720
19721if test ! -z "$NO_PEERCHECK" ; then
19722 echo "WARNING: the operating system that you are using does not"
19723 echo "appear to support getpeereid(), getpeerucred() or the"
19724 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
19725 echo "enforce security checks to prevent unauthorised connections to"
19726 echo "ssh-agent. Their absence increases the risk that a malicious"
19727 echo "user can connect to your agent."
19728 echo ""
19729fi
19730
19731if test "$AUDIT_MODULE" = "bsm" ; then
19732 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
19733 echo "See the Solaris section in README.platform for details."
19734fi